camera/camera-extensions/src/androidTest/java/androidx/camera/extensions/util/ExtensionsTestUtil.java
/**
     * Creates an {@link ImageCaptureExtenderImpl} object for specific {@link ExtensionMode} and
     * camera id.
     *
     * @param extensionMode The extension mode for the created object.
     * @param cameraId The target camera id.
     * @param cameraCharacteristics The camera characteristics of the target camera.
     * @return An {@link ImageCaptureExtenderImpl} object.
     */
Creates an  ImageCaptureExtenderImpl object for specific  ExtensionMode and
camera id.

@param extensionMode The extension mode for the created object.
@param cameraId The target camera id.
@param cameraCharacteristics The camera characteristics of the target camera.
@return An  ImageCaptureExtenderImpl object.
Creates an ImageCaptureExtenderImpl object for specific ExtensionMode and camera id . @param extensionMode The extension mode for the created object . @param cameraId The target camera id . @param cameraCharacteristics The camera characteristics of the target camera . @return An ImageCaptureExtenderImpl object .
@NonNull
    public static ImageCaptureExtenderImpl createImageCaptureExtenderImpl(
            @ExtensionMode.Mode int extensionMode, @NonNull String cameraId,
            @NonNull CameraCharacteristics cameraCharacteristics) {
        ImageCaptureExtenderImpl impl = null;
        switch (extensionMode) {
            case HDR:
                impl = new HdrImageCaptureExtenderImpl();
                break;
            case BOKEH:
                impl = new BokehImageCaptureExtenderImpl();
                break;
            case FACE_RETOUCH:
                impl = new BeautyImageCaptureExtenderImpl();
                break;
            case NIGHT:
                impl = new NightImageCaptureExtenderImpl();
                break;
            case AUTO:
                impl = new AutoImageCaptureExtenderImpl();
                break;
        }
        assertNotNull(impl);
        impl.init(cameraId, cameraCharacteristics);
        return impl;
    }
@ NonNull public static ImageCaptureExtenderImpl createImageCaptureExtenderImpl ( @ ExtensionMode . Mode int extensionMode , @ NonNull String cameraId , @ NonNull CameraCharacteristics cameraCharacteristics ) { ImageCaptureExtenderImpl impl = null ; switch ( extensionMode ) { case HDR : impl = new HdrImageCaptureExtenderImpl ( ) ; break ; case BOKEH : impl = new BokehImageCaptureExtenderImpl ( ) ; break ; case FACE_RETOUCH : impl = new BeautyImageCaptureExtenderImpl ( ) ; break ; case NIGHT : impl = new NightImageCaptureExtenderImpl ( ) ; break ; case AUTO : impl = new AutoImageCaptureExtenderImpl ( ) ; break ; } assertNotNull ( impl ) ; impl . init ( cameraId , cameraCharacteristics ) ; return impl ; }
Creates an {@link ImageCaptureExtenderImpl} object for specific {@link ExtensionMode} and
 camera id.
Creates an { @link ImageCaptureExtenderImpl } object for specific { @link ExtensionMode } and camera id .