/packages/apps/Camera2/src/com/android/camera/one/v2/ |
D | Camera2OneCameraManagerImpl.java | 116 public CameraId findFirstCameraFacing(@Nonnull Facing facing) { in findFirstCameraFacing() argument 117 String cameraId = findCameraId(facing); in findFirstCameraFacing() 152 private String findCameraId(Facing facing) { in findCameraId() argument 153 String id = mCameraFacingCache.get(facing); in findCameraId() 158 if (facing == Facing.FRONT) { in findCameraId() 165 mCameraFacingCache.put(facing, id); in findCameraId() 200 private String findFirstCameraIdFacing(int facing) { in findFirstCameraIdFacing() argument 206 if (characteristics.get(CameraCharacteristics.LENS_FACING) == facing) { in findFirstCameraIdFacing()
|
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/ |
D | CameraManagerTest.java | 68 assertEquals(CameraInfo.CAMERA_FACING_FRONT, CameraManager.get().getCameraInfo().facing); in testFrontFacingOnlyGetInfo() 70 assertEquals(CameraInfo.CAMERA_FACING_FRONT, CameraManager.get().getCameraInfo().facing); in testFrontFacingOnlyGetInfo() 80 assertEquals(CameraInfo.CAMERA_FACING_BACK, CameraManager.get().getCameraInfo().facing); in testBackFacingOnlyGetInfo() 82 assertEquals(CameraInfo.CAMERA_FACING_BACK, CameraManager.get().getCameraInfo().facing); in testBackFacingOnlyGetInfo() 93 assertEquals(CameraInfo.CAMERA_FACING_FRONT, CameraManager.get().getCameraInfo().facing); in testFrontAndBackGetInfo() 95 assertEquals(CameraInfo.CAMERA_FACING_BACK, CameraManager.get().getCameraInfo().facing); in testFrontAndBackGetInfo() 104 assertEquals(CameraInfo.CAMERA_FACING_FRONT, CameraManager.get().getCameraInfo().facing); in testSwapCamera() 106 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 | 74 if (cameraInfos[i].facing == Camera.CameraInfo.CAMERA_FACING_BACK) { in instance() 77 if (cameraInfos[i].facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in instance() 111 public boolean hasCameraFacing(@Nonnull Facing facing) { in hasCameraFacing() argument 112 return findFirstCameraFacing(facing) != null; in hasCameraFacing() 121 public CameraId findFirstCameraFacing(@Nonnull Facing facing) { in findFirstCameraFacing() argument 122 if (facing == Facing.BACK && mFirstBackCameraId != null) { in findFirstCameraFacing() 124 } else if (facing == Facing.FRONT && mFirstFrontCameraId != null) { in findFirstCameraFacing()
|
D | OneCameraCharacteristicsImpl.java | 83 int direction = mCameraInfo.facing; in getCameraDirection()
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/video/android/ |
D | ImsMediaVideoSource.cpp | 115 int32_t facing = kCameraFacingFront; in SetDeviceOrientation() local 121 mCamera->GetSensorOrientation(mCameraId, &facing, &sensorOrientation); in SetDeviceOrientation() 122 IMLOGD2("[SetDeviceOrientation] camera facing[%d], sensorOrientation[%d]", facing, in SetDeviceOrientation() 129 if (facing == kCameraFacingFront) in SetDeviceOrientation() 155 mListener->OnEvent(kVideoSourceEventUpdateOrientation, facing, rotateDegree); in SetDeviceOrientation() 399 int32_t facing, sensorOrientation; in onCameraFrame() local 400 mCamera->GetSensorOrientation(mCameraId, &facing, &sensorOrientation); in onCameraFrame() 402 switch (facing) in onCameraFrame()
|
D | ImsMediaCamera.cpp | 728 bool ImsMediaCamera::GetSensorOrientation(const int cameraId, int32_t* facing, int32_t* angle) in GetSensorOrientation() argument 730 if (!mManager || facing == nullptr || angle == nullptr) in GetSensorOrientation() 753 mCameraFacing == 0 ? * facing = kCameraFacingFront : * facing = kCameraFacingRear; in GetSensorOrientation()
|
/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/ |
D | OneCameraManager.java | 39 public boolean hasCameraFacing(Facing facing); in hasCameraFacing() argument 51 public CameraId findFirstCameraFacing(Facing facing); in findFirstCameraFacing() argument
|
/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/Settings/src/com/android/settings/biometrics/face/ |
D | FaceEnrollPreviewFragment.java | 252 Integer facing = characteristics.get(CameraCharacteristics.LENS_FACING); in setUpCameraOutputs() local 253 if (facing == null || facing != CameraCharacteristics.LENS_FACING_FRONT) { in setUpCameraOutputs()
|
/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 | 182 public Rational getPictureAspectRatio(CameraId cameraId, Facing facing) in getPictureAspectRatio() argument 184 Size pictureSize = getPictureSize(cameraId, facing); in getPictureAspectRatio()
|
/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()
|
/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() 685 if (mCameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in updateCameraOrientation() 766 mFocusOverlayManager.setMirror(mCameraInfo.facing == CameraInfo.CAMERA_FACING_BACK); in tryShowPreview()
|
D | CameraMediaChooser.java | 425 final boolean frontCamera = cameraInfo != null && cameraInfo.facing == in updateViewState()
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/nodes/ |
D | RtpEncoderNode.cpp | 301 bool RtpEncoderNode::SetCvoExtension(const int64_t facing, const int64_t orientation) in SetCvoExtension() argument 303 IMLOGD3("[SetCvoExtension] cvoValue[%d], facing[%ld], orientation[%ld]", mCvoValue, facing, in SetCvoExtension() 311 if (facing == kCameraFacingRear) in SetCvoExtension()
|
/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/Gallery2/src/com/android/camera/ |
D | DisableCameraReceiver.java | 66 if (info.facing == CameraInfo.CAMERA_FACING_BACK) { in hasBackCamera()
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/include/nodes/ |
D | RtpEncoderNode.h | 62 bool SetCvoExtension(const int64_t facing, const int64_t orientation);
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/include/video/android/ |
D | ImsMediaCamera.h | 235 bool GetSensorOrientation(const int cameraId, int32_t* facing, int32_t* angle);
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/ |
D | CameraComposerFragment.java | 180 cameraDirection = CameraManager.get().getCameraInfo().facing; in onClick()
|