Home
last modified time | relevance | path

Searched refs:FaceDetectMode (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/one/v2/face/
DFaceDetect.java23 import com.android.camera.one.OneCameraCharacteristics.FaceDetectMode;
32 … public static FaceDetectMode getHighestFaceDetectMode(OneCameraCharacteristics characteristics) { in getHighestFaceDetectMode()
33 List<FaceDetectMode> faceDetectModes = characteristics.getSupportedFaceDetectModes(); in getHighestFaceDetectMode()
35 if (faceDetectModes.contains(FaceDetectMode.FULL)) { in getHighestFaceDetectMode()
36 return FaceDetectMode.FULL; in getHighestFaceDetectMode()
37 } else if (faceDetectModes.contains(FaceDetectMode.SIMPLE)) { in getHighestFaceDetectMode()
38 return FaceDetectMode.SIMPLE; in getHighestFaceDetectMode()
40 return FaceDetectMode.NONE; in getHighestFaceDetectMode()
/packages/apps/Camera2/src/com/android/camera/one/v2/common/
DStatisticsFaceDetectMode.java21 import com.android.camera.one.OneCameraCharacteristics.FaceDetectMode;
29 private final Supplier<FaceDetectMode> mFaceDetectMode;
31 public StatisticsFaceDetectMode(Supplier<FaceDetectMode> faceDetectMode) { in StatisticsFaceDetectMode()
37 if (mFaceDetectMode.get() == FaceDetectMode.FULL) { in get()
41 if (mFaceDetectMode.get() == FaceDetectMode.SIMPLE) { in get()
DControlModeSelector.java21 import com.android.camera.one.OneCameraCharacteristics.FaceDetectMode;
30 private final Supplier<FaceDetectMode> mFaceDetectMode;
35 Supplier<FaceDetectMode> faceDetectMode, in ControlModeSelector()
50 if (mFaceDetectMode.get() == FaceDetectMode.FULL || in get()
51 mFaceDetectMode.get() == FaceDetectMode.SIMPLE) { in get()
DControlSceneModeSelector.java23 import com.android.camera.one.OneCameraCharacteristics.FaceDetectMode;
37 private final Supplier<FaceDetectMode> mFaceDetectMode;
41 Supplier<FaceDetectMode> faceDetectMode, in ControlSceneModeSelector()
56 if (mFaceDetectMode.get() == FaceDetectMode.FULL || in get()
57 mFaceDetectMode.get() == FaceDetectMode.SIMPLE) { in get()
DBasicCameraFactory.java30 import com.android.camera.one.OneCameraCharacteristics.FaceDetectMode;
97 Supplier<FaceDetectMode> faceDetectMode = Suppliers.ofInstance( in BasicCameraFactory()
/packages/apps/Camera2/src/com/android/camera/one/v2/
DOneCameraCharacteristicsImpl.java165 public List<FaceDetectMode> getSupportedFaceDetectModes() { in getSupportedFaceDetectModes()
169 List<FaceDetectMode> oneModes = new ArrayList<>(modes.length); in getSupportedFaceDetectModes()
173 oneModes.add(FaceDetectMode.FULL); in getSupportedFaceDetectModes()
176 oneModes.add(FaceDetectMode.SIMPLE); in getSupportedFaceDetectModes()
179 oneModes.add(FaceDetectMode.NONE); in getSupportedFaceDetectModes()
/packages/apps/Camera2/src/com/android/camera/one/v1/
DOneCameraCharacteristicsImpl.java118 public List<FaceDetectMode> getSupportedFaceDetectModes() { in getSupportedFaceDetectModes()
119 List<FaceDetectMode> oneModes = new ArrayList<>(1); in getSupportedFaceDetectModes()
120 oneModes.add(FaceDetectMode.NONE); in getSupportedFaceDetectModes()
/packages/apps/Camera2/src/com/android/camera/one/
DOneCameraCharacteristics.java37 public enum FaceDetectMode { enum
92 public List<FaceDetectMode> getSupportedFaceDetectModes(); in getSupportedFaceDetectModes()