Home
last modified time | relevance | path

Searched refs:FocusMode (Results 1 – 6 of 6) sorted by relevance

/frameworks/ex/camera2/portability/tests/src/com/android/ex/camera2/portability/
DCamera2PortabilityTest.java32 import com.android.ex.camera2.portability.CameraCapabilities.FocusMode;
51 for(FocusMode val : FocusMode.values()) { in cameraCapabilitiesStringifier()
73 assertEquals(strfy.focusModeFromString(null), FocusMode.AUTO); in cameraCapabilitiesStringifierNull()
87 assertEquals(strfy.focusModeFromString("crap"), FocusMode.AUTO); in cameraCapabilitiesStringifierInvalid()
119 set.setFocusMode(FocusMode.AUTO); in camera2SettingsSetOptionsAndGetRequestSettings()
121 set.setFocusMode(FocusMode.CONTINUOUS_PICTURE); in camera2SettingsSetOptionsAndGetRequestSettings()
123 set.setFocusMode(FocusMode.CONTINUOUS_VIDEO); in camera2SettingsSetOptionsAndGetRequestSettings()
125 set.setFocusMode(FocusMode.EXTENDED_DOF); in camera2SettingsSetOptionsAndGetRequestSettings()
127 set.setFocusMode(FocusMode.FIXED); in camera2SettingsSetOptionsAndGetRequestSettings()
129 set.setFocusMode(FocusMode.MACRO); in camera2SettingsSetOptionsAndGetRequestSettings()
[all …]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DCameraCapabilities.java53 protected final EnumSet<FocusMode> mSupportedFocusModes = EnumSet.noneOf(FocusMode.class);
72 public enum FocusMode { enum in CameraCapabilities
347 public String stringify(FocusMode focus) { in stringify()
359 public FocusMode focusModeFromString(String val) { in focusModeFromString()
361 return FocusMode.values()[0]; in focusModeFromString()
364 return FocusMode.valueOf(toEnumCase(val)); in focusModeFromString()
366 return FocusMode.values()[0]; in focusModeFromString()
598 public final Set<FocusMode> getSupportedFocusModes() { in getSupportedFocusModes()
599 return new HashSet<FocusMode>(mSupportedFocusModes); in getSupportedFocusModes()
605 public final boolean supports(FocusMode focus) { in supports()
[all …]
DAndroidCamera2Capabilities.java90 if (supports(FocusMode.AUTO)) { in AndroidCamera2Capabilities()
137 FocusMode equiv = focusModeFromInt(focus); in buildFocusModes()
165 public static FocusMode focusModeFromInt(int fm) { in focusModeFromInt()
168 return FocusMode.AUTO; in focusModeFromInt()
170 return FocusMode.CONTINUOUS_PICTURE; in focusModeFromInt()
172 return FocusMode.CONTINUOUS_VIDEO; in focusModeFromInt()
174 return FocusMode.EXTENDED_DOF; in focusModeFromInt()
176 return FocusMode.FIXED; in focusModeFromInt()
179 return FocusMode.MACRO; in focusModeFromInt()
DAndroidCameraCapabilities.java74 if (supports(FocusMode.AUTO)) { in AndroidCameraCapabilities()
198 mSupportedFocusModes.add(FocusMode.AUTO); in buildFocusModes()
200 mSupportedFocusModes.add(FocusMode.CONTINUOUS_PICTURE); in buildFocusModes()
202 mSupportedFocusModes.add(FocusMode.CONTINUOUS_VIDEO); in buildFocusModes()
204 mSupportedFocusModes.add(FocusMode.EXTENDED_DOF); in buildFocusModes()
206 mSupportedFocusModes.add(FocusMode.FIXED); in buildFocusModes()
208 mSupportedFocusModes.add(FocusMode.INFINITY); in buildFocusModes()
210 mSupportedFocusModes.add(FocusMode.MACRO); in buildFocusModes()
DCameraSettings.java53 protected CameraCapabilities.FocusMode mCurrentFocusMode;
396 public void setFocusMode(CameraCapabilities.FocusMode focusMode) { in setFocusMode()
403 public CameraCapabilities.FocusMode getCurrentFocusMode() { in getCurrentFocusMode()
DAndroidCamera2Settings.java31 import com.android.ex.camera2.portability.CameraCapabilities.FocusMode;