Home
last modified time | relevance | path

Searched refs:facing (Results 1 – 25 of 30) sorted by relevance

12

/packages/apps/Camera2/src/com/android/camera/one/v2/
DCamera2OneCameraManagerImpl.java116 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/
DCameraManagerTest.java68 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()
DMockCameraFactory.java33 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/
DLegacyOneCameraManagerImpl.java74 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()
DOneCameraCharacteristicsImpl.java83 int direction = mCameraInfo.facing; in getCameraDirection()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/video/android/
DImsMediaVideoSource.cpp115 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()
DImsMediaCamera.cpp728 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/
DCameraManager.java160 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/
DOneCameraManager.java39 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/
DOneCameraFeatureConfigCreator.java161 Integer facing = cameraCharacteristics.get(CameraCharacteristics.LENS_FACING);
162 if (facing == null) {
167 switch (facing) {
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DFaceEnrollPreviewFragment.java252 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/
DAppUpgrader.java311 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()
DResolutionSetting.java182 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/
DCameraHolder.java103 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()
DEffectsRecorder.java366 public void setCameraFacing(int facing) { in setCameraFacing() argument
374 mCameraFacing = facing; in setCameraFacing()
DUtil.java344 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/
DCameraManager.java224 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()
DCameraMediaChooser.java425 final boolean frontCamera = cameraInfo != null && cameraInfo.facing == in updateViewState()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/nodes/
DRtpEncoderNode.cpp301 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/
DCameraInfoCache.java63 Integer facing = mCameraCharacteristics.get(CameraCharacteristics.LENS_FACING); in CameraInfoCache() local
64 …if (facing == (useFrontCamera ? CameraMetadata.LENS_FACING_FRONT : CameraMetadata.LENS_FACING_BACK… in CameraInfoCache()
DPreviewOverlay.java81 public void setFacingAndOrientation(int facing, int orientation) { in setFacingAndOrientation() argument
82 mFacing = facing; in setFacingAndOrientation()
/packages/apps/Gallery2/src/com/android/camera/
DDisableCameraReceiver.java66 if (info.facing == CameraInfo.CAMERA_FACING_BACK) { in hasBackCamera()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/include/nodes/
DRtpEncoderNode.h62 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/
DImsMediaCamera.h235 bool GetSensorOrientation(const int cameraId, int32_t* facing, int32_t* angle);
/packages/apps/Dialer/java/com/android/dialer/callcomposer/
DCameraComposerFragment.java180 cameraDirection = CameraManager.get().getCameraInfo().facing; in onClick()

12