Searched refs:FlashMode (Results 1 – 7 of 7) sorted by relevance
52 protected final EnumSet<FlashMode> mSupportedFlashModes = EnumSet.noneOf(FlashMode.class);114 public enum FlashMode { enum in CameraCapabilities377 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 …]
120 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()
175 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()
30 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()
52 protected CameraCapabilities.FlashMode mCurrentFlashMode;382 public CameraCapabilities.FlashMode getCurrentFlashMode() { in getCurrentFlashMode()386 public void setFlashMode(CameraCapabilities.FlashMode flashMode) { in setFlashMode()
695 if (settings.getCurrentFlashMode() != CameraCapabilities.FlashMode.NO_FLASH) { in applySettingsToParameters()
31 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()