/packages/apps/Camera2/src/com/android/camera/one/v2/ |
D | Camera2OneCameraManagerImpl.java | 113 public CameraId findFirstCameraFacing(@Nonnull Facing facing) { in findFirstCameraFacing() argument 114 String cameraId = findCameraId(facing); in findFirstCameraFacing() 136 private String findCameraId(Facing facing) { in findCameraId() argument 137 String id = mCameraFacingCache.get(facing); in findCameraId() 142 if (facing == Facing.FRONT) { in findCameraId() 148 mCameraFacingCache.put(facing, id); in findCameraId() 174 private String findFirstCameraIdFacing(int facing) { in findFirstCameraIdFacing() argument 180 if (characteristics.get(CameraCharacteristics.LENS_FACING) == facing) { in findFirstCameraIdFacing()
|
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/ |
D | CameraManagerTest.java | 61 assertEquals(CameraInfo.CAMERA_FACING_FRONT, CameraManager.get().getCameraInfo().facing); in testFrontFacingOnlyGetInfo() 63 assertEquals(CameraInfo.CAMERA_FACING_FRONT, CameraManager.get().getCameraInfo().facing); in testFrontFacingOnlyGetInfo() 73 assertEquals(CameraInfo.CAMERA_FACING_BACK, CameraManager.get().getCameraInfo().facing); in testBackFacingOnlyGetInfo() 75 assertEquals(CameraInfo.CAMERA_FACING_BACK, CameraManager.get().getCameraInfo().facing); in testBackFacingOnlyGetInfo() 86 assertEquals(CameraInfo.CAMERA_FACING_FRONT, CameraManager.get().getCameraInfo().facing); in testFrontAndBackGetInfo() 88 assertEquals(CameraInfo.CAMERA_FACING_BACK, CameraManager.get().getCameraInfo().facing); in testFrontAndBackGetInfo() 97 assertEquals(CameraInfo.CAMERA_FACING_FRONT, CameraManager.get().getCameraInfo().facing); in testSwapCamera() 99 assertEquals(CameraInfo.CAMERA_FACING_BACK, CameraManager.get().getCameraInfo().facing); in testSwapCamera()
|
D | MockCameraFactory.java | 33 public static Camera createCamera(int facing) { in createCamera() argument 36 cameraInfo.facing = facing; in createCamera() 43 outCameraInfo.facing = cameraInfo.facing; in getCameraInfo()
|
/packages/apps/Camera2/src/com/android/camera/one/v1/ |
D | LegacyOneCameraManagerImpl.java | 73 if (cameraInfos[i].facing == Camera.CameraInfo.CAMERA_FACING_BACK) { in instance() 76 if (cameraInfos[i].facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in instance() 110 public boolean hasCameraFacing(@Nonnull Facing facing) { in hasCameraFacing() argument 111 return findFirstCameraFacing(facing) != null; in hasCameraFacing() 120 public CameraId findFirstCameraFacing(@Nonnull Facing facing) { in findFirstCameraFacing() argument 121 if (facing == Facing.BACK && mFirstBackCameraId != null) { in findFirstCameraFacing() 123 } else if (facing == Facing.FRONT && mFirstFrontCameraId != null) { in findFirstCameraFacing()
|
D | OneCameraCharacteristicsImpl.java | 83 int direction = mCameraInfo.facing; in getCameraDirection()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/ |
D | CameraManager.java | 160 if (cameraInfo.facing == CameraInfo.CAMERA_FACING_FRONT) { in CameraManager() 162 } else if (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) { in CameraManager() 229 cameraInfo.facing == CameraInfo.CAMERA_FACING_FRONT in swapCamera() 244 if (cameraIndex >= 0 && this.cameraInfo.facing == desiredFacing) { in selectCamera() 256 if (cameraInfo.facing == desiredFacing) { in selectCamera() 618 cameraInfo.facing == CameraInfo.CAMERA_FACING_FRONT); in tryShowPreview() 648 focusOverlayManager.setMirror(cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK); in tryShowPreview() 719 cameraInfo.facing == CameraInfo.CAMERA_FACING_FRONT); in onOrientationChanged()
|
/packages/apps/Camera2/src/com/android/camera/one/config/ |
D | OneCameraFeatureConfigCreator.java | 161 Integer facing = cameraCharacteristics.get(CameraCharacteristics.LENS_FACING); 162 if (facing == null) { 167 switch (facing) {
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | CameraManager.java | 224 if (cameraInfo.facing == CameraInfo.CAMERA_FACING_FRONT) { in CameraManager() 226 } else if (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) { in CameraManager() 296 selectCamera(mCameraInfo.facing == CameraInfo.CAMERA_FACING_FRONT ? in swapCamera() 310 if (mCameraIndex >= 0 && mCameraInfo.facing == desiredFacing) { in selectCamera() 322 if (cameraInfo.facing == desiredFacing) { in selectCamera() 684 if (mCameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in updateCameraOrientation() 765 mFocusOverlayManager.setMirror(mCameraInfo.facing == CameraInfo.CAMERA_FACING_BACK); in tryShowPreview()
|
D | CameraMediaChooser.java | 425 final boolean frontCamera = cameraInfo != null && cameraInfo.facing == in updateViewState()
|
/packages/apps/Camera2/src/com/android/camera/one/ |
D | OneCameraManager.java | 37 public boolean hasCameraFacing(Facing facing); in hasCameraFacing() argument 49 public CameraId findFirstCameraFacing(Facing facing); in findFirstCameraFacing() argument
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
D | AppUpgrader.java | 311 SettingsUtil.CameraDeviceSelector facing) { in upgradeCameraSizeSetting() argument 313 if (facing == SettingsUtil.CAMERA_FACING_FRONT) { in upgradeCameraSizeSetting() 315 } else if (facing == SettingsUtil.CAMERA_FACING_BACK) { in upgradeCameraSizeSetting() 332 int camera = SettingsUtil.getCameraId(infos, facing); in upgradeCameraSizeSetting()
|
D | ResolutionSetting.java | 179 public Rational getPictureAspectRatio(CameraId cameraId, Facing facing) in getPictureAspectRatio() argument 181 Size pictureSize = getPictureSize(cameraId, facing); in getPictureAspectRatio()
|
/packages/apps/Settings/src/com/android/settings/biometrics/face/ |
D | FaceEnrollPreviewFragment.java | 251 Integer facing = characteristics.get(CameraCharacteristics.LENS_FACING); in setUpCameraOutputs() local 252 if (facing == null || facing != CameraCharacteristics.LENS_FACING_FRONT) { in setUpCameraOutputs()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/face/ |
D | FaceEnrollPreviewFragment.java | 251 Integer facing = characteristics.get(CameraCharacteristics.LENS_FACING); in setUpCameraOutputs() local 252 if (facing == null || facing != CameraCharacteristics.LENS_FACING_FRONT) { in setUpCameraOutputs()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | CameraHolder.java | 103 if (mBackCameraId == -1 && mInfo[i].facing == CameraInfo.CAMERA_FACING_BACK) { in CameraHolder() 106 if (mFrontCameraId == -1 && mInfo[i].facing == CameraInfo.CAMERA_FACING_FRONT) { in CameraHolder()
|
D | EffectsRecorder.java | 366 public void setCameraFacing(int facing) { in setCameraFacing() argument 374 mCameraFacing = facing; in setCameraFacing()
|
D | Util.java | 344 if (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in getDisplayOrientation() 624 if (info.facing == CameraInfo.CAMERA_FACING_FRONT) { in setRotationParameter()
|
D | VideoCamera.java | 1251 if (info.facing == CameraInfo.CAMERA_FACING_FRONT) { in initializeRecorder() 1290 mEffectsRecorder.setCameraFacing(info.facing); in initializeEffectsPreview() 1660 boolean mirror = (info[mCameraId].facing == CameraInfo.CAMERA_FACING_FRONT); in showAlert()
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | CameraInfoCache.java | 63 Integer facing = mCameraCharacteristics.get(CameraCharacteristics.LENS_FACING); in CameraInfoCache() local 64 …if (facing == (useFrontCamera ? CameraMetadata.LENS_FACING_FRONT : CameraMetadata.LENS_FACING_BACK… in CameraInfoCache()
|
D | PreviewOverlay.java | 81 public void setFacingAndOrientation(int facing, int orientation) { in setFacingAndOrientation() argument 82 mFacing = facing; in setFacingAndOrientation()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | DisableCameraReceiver.java | 67 if (info.facing == CameraInfo.CAMERA_FACING_BACK) { in hasBackCamera()
|
/packages/apps/Gallery2/src/com/android/camera/ |
D | DisableCameraReceiver.java | 66 if (info.facing == CameraInfo.CAMERA_FACING_BACK) { in hasBackCamera()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/qrcode/ |
D | QrCamera.java | 282 if (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) { in initCamera()
|
/packages/apps/Settings/src/com/android/settings/wifi/qrcode/ |
D | QrCamera.java | 290 if (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) { in initCamera()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/ |
D | CameraComposerFragment.java | 180 cameraDirection = CameraManager.get().getCameraInfo().facing; in onClick()
|