Home
last modified time | relevance | path

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

12

/packages/apps/Camera2/src/com/android/camera/one/v2/
DCamera2OneCameraManagerImpl.java113 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()
149 mCameraFacingCache.put(facing, id); in findCameraId()
184 private String findFirstCameraIdFacing(int facing) { in findFirstCameraIdFacing() argument
190 if (characteristics.get(CameraCharacteristics.LENS_FACING) == facing) { in findFirstCameraIdFacing()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/
DCameraManagerTest.java61 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()
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.java73 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()
DOneCameraCharacteristicsImpl.java83 int direction = mCameraInfo.facing; in getCameraDirection()
/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/config/
DOneCameraFeatureConfigCreator.java161 Integer facing = cameraCharacteristics.get(CameraCharacteristics.LENS_FACING);
162 if (facing == null) {
167 switch (facing) {
/packages/apps/Camera2/src/com/android/camera/one/
DOneCameraManager.java37 public boolean hasCameraFacing(Facing facing); in hasCameraFacing() argument
49 public CameraId findFirstCameraFacing(Facing facing); in findFirstCameraFacing() argument
/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/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/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/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()
DVideoCamera.java1251 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()
DCamera.java386 boolean mirror = (info.facing == CameraInfo.CAMERA_FACING_FRONT); in initializeFirstTime()
533 mFaceView.setMirror(info.facing == CameraInfo.CAMERA_FACING_FRONT); in startFaceDetection()
/packages/apps/DevCamera/src/com/android/devcamera/
DPreviewOverlay.java81 public void setFacingAndOrientation(int facing, int orientation) { in setFacingAndOrientation() argument
82 mFacing = facing; in setFacingAndOrientation()
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()
/packages/apps/Gallery2/src/com/android/camera/
DDisableCameraReceiver.java66 if (info.facing == CameraInfo.CAMERA_FACING_BACK) { in hasBackCamera()
/packages/apps/Camera2/src/com/android/camera/
DSetActivitiesCameraReceiver.java69 if (info.facing == CameraInfo.CAMERA_FACING_BACK) { in hasBackCamera()
/packages/apps/Settings/src/com/android/settings/wifi/qrcode/
DQrCamera.java295 if (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) { in initCamera()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/
DCameraComposerFragment.java180 cameraDirection = CameraManager.get().getCameraInfo().facing; in onClick()
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...

12