Home
last modified time | relevance | path

Searched refs:FlashMode (Results 1 – 7 of 7) sorted by relevance

/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DCameraCapabilities.java52 protected final EnumSet<FlashMode> mSupportedFlashModes = EnumSet.noneOf(FlashMode.class);
114 public enum FlashMode { enum in CameraCapabilities
377 public String stringify(FlashMode flash) { in stringify()
389 public FlashMode flashModeFromString(String val) { in flashModeFromString()
391 return FlashMode.values()[0]; in flashModeFromString()
394 return FlashMode.valueOf(toEnumCase(val)); in flashModeFromString()
396 return FlashMode.values()[0]; in flashModeFromString()
584 public final Set<FlashMode> getSupportedFlashModes() { in getSupportedFlashModes()
585 return new HashSet<FlashMode>(mSupportedFlashModes); in getSupportedFlashModes()
591 public final boolean supports(FlashMode flash) { in supports()
[all …]
DAndroidCamera2Capabilities.java120 mSupportedFlashModes.add(FlashMode.OFF); in buildFlashModes()
122 mSupportedFlashModes.add(FlashMode.AUTO); in buildFlashModes()
123 mSupportedFlashModes.add(FlashMode.ON); in buildFlashModes()
124 mSupportedFlashModes.add(FlashMode.TORCH); in buildFlashModes()
127 mSupportedFlashModes.add(FlashMode.RED_EYE); in buildFlashModes()
DAndroidCameraCapabilities.java175 mSupportedFlashModes.add(FlashMode.NO_FLASH); in buildFlashModes()
179 mSupportedFlashModes.add(FlashMode.AUTO); in buildFlashModes()
181 mSupportedFlashModes.add(FlashMode.OFF); in buildFlashModes()
183 mSupportedFlashModes.add(FlashMode.ON); in buildFlashModes()
185 mSupportedFlashModes.add(FlashMode.RED_EYE); in buildFlashModes()
187 mSupportedFlashModes.add(FlashMode.TORCH); in buildFlashModes()
DAndroidCamera2Settings.java30 import com.android.ex.camera2.portability.CameraCapabilities.FlashMode;
163 private FlashMode flashModeFromRequest() { in flashModeFromRequest()
168 return FlashMode.OFF; in flashModeFromRequest()
170 return FlashMode.AUTO; in flashModeFromRequest()
173 return FlashMode.TORCH; in flashModeFromRequest()
175 return FlashMode.ON; in flashModeFromRequest()
179 return FlashMode.RED_EYE; in flashModeFromRequest()
DCameraSettings.java52 protected CameraCapabilities.FlashMode mCurrentFlashMode;
382 public CameraCapabilities.FlashMode getCurrentFlashMode() { in getCurrentFlashMode()
386 public void setFlashMode(CameraCapabilities.FlashMode flashMode) { in setFlashMode()
DAndroidCameraAgentImpl.java695 if (settings.getCurrentFlashMode() != CameraCapabilities.FlashMode.NO_FLASH) { in applySettingsToParameters()
/frameworks/ex/camera2/portability/tests/src/com/android/ex/camera2/portability/
DCamera2PortabilityTest.java31 import com.android.ex.camera2.portability.CameraCapabilities.FlashMode;
54 for(FlashMode val : FlashMode.values()) { in cameraCapabilitiesStringifier()
74 assertEquals(strfy.flashModeFromString(null), FlashMode.NO_FLASH); in cameraCapabilitiesStringifierNull()
88 assertEquals(strfy.flashModeFromString("crap"), FlashMode.NO_FLASH); in cameraCapabilitiesStringifierInvalid()