Searched refs:facing (Results 1 – 25 of 26) sorted by relevance
12
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()
33 public static Camera createCamera(int facing) { in createCamera() argument36 cameraInfo.facing = facing; in createCamera()43 outCameraInfo.facing = cameraInfo.facing; in getCameraInfo()
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() argument111 return findFirstCameraFacing(facing) != null; in hasCameraFacing()120 public CameraId findFirstCameraFacing(@Nonnull Facing facing) { in findFirstCameraFacing() argument121 if (facing == Facing.BACK && mFirstBackCameraId != null) { in findFirstCameraFacing()123 } else if (facing == Facing.FRONT && mFirstFrontCameraId != null) { in findFirstCameraFacing()
83 int direction = mCameraInfo.facing; in getCameraDirection()
101 public CameraId findFirstCameraFacing(@Nonnull Facing facing) { in findFirstCameraFacing() argument102 String cameraId = findCameraId(facing); in findFirstCameraFacing()124 private String findCameraId(Facing facing) { in findCameraId() argument125 if (facing == Facing.FRONT) { in findCameraId()154 private String findFirstCameraIdFacing(int facing) { in findFirstCameraIdFacing() argument160 if (characteristics.get(CameraCharacteristics.LENS_FACING) == facing) { in findFirstCameraIdFacing()
159 if (cameraInfo.facing == CameraInfo.CAMERA_FACING_FRONT) { in CameraManager()161 } else if (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) { in CameraManager()228 mCameraInfo.facing == CameraInfo.CAMERA_FACING_FRONT in swapCamera()243 if (mCameraIndex >= 0 && mCameraInfo.facing == desiredFacing) { in selectCamera()255 if (cameraInfo.facing == desiredFacing) { in selectCamera()545 if (mCameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in updateCameraOrientation()627 mFocusOverlayManager.setMirror(mCameraInfo.facing == CameraInfo.CAMERA_FACING_BACK); in tryShowPreview()
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()
425 final boolean frontCamera = cameraInfo != null && cameraInfo.facing == in updateViewState()
133 Integer facing = cameraCharacteristics.get(CameraCharacteristics.LENS_FACING);134 if (facing == null) {139 switch (facing) {
310 SettingsUtil.CameraDeviceSelector facing) { in upgradeCameraSizeSetting() argument312 if (facing == SettingsUtil.CAMERA_FACING_FRONT) { in upgradeCameraSizeSetting()314 } else if (facing == SettingsUtil.CAMERA_FACING_BACK) { in upgradeCameraSizeSetting()331 int camera = SettingsUtil.getCameraId(infos, facing); in upgradeCameraSizeSetting()
179 public Rational getPictureAspectRatio(CameraId cameraId, Facing facing) in getPictureAspectRatio() argument181 Size pictureSize = getPictureSize(cameraId, facing); in getPictureAspectRatio()
37 public boolean hasCameraFacing(Facing facing); in hasCameraFacing() argument49 public CameraId findFirstCameraFacing(Facing facing); in findFirstCameraFacing() argument
199 if (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in doInBackground()209 if (info.facing == Camera.CameraInfo.CAMERA_FACING_BACK) { in doInBackground()289 if (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in getAutoDisplayOrientation()
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()
366 public void setCameraFacing(int facing) { in setCameraFacing() argument374 mCameraFacing = facing; in setCameraFacing()
344 if (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in getDisplayOrientation()624 if (info.facing == CameraInfo.CAMERA_FACING_FRONT) { in setRotationParameter()
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()
386 boolean mirror = (info.facing == CameraInfo.CAMERA_FACING_FRONT); in initializeFirstTime()533 mFaceView.setMirror(info.facing == CameraInfo.CAMERA_FACING_FRONT); in startFaceDetection()
81 public void setFacingAndOrientation(int facing, int orientation) { in setFacingAndOrientation() argument82 mFacing = facing; in setFacingAndOrientation()
63 Integer facing = mCameraCharacteristics.get(CameraCharacteristics.LENS_FACING); in CameraInfoCache() local64 …if (facing == (useFrontCamera ? CameraMetadata.LENS_FACING_FRONT : CameraMetadata.LENS_FACING_BACK… in CameraInfoCache()
67 if (info.facing == CameraInfo.CAMERA_FACING_BACK) { in hasBackCamera()
66 if (info.facing == CameraInfo.CAMERA_FACING_BACK) { in hasBackCamera()
178 cameraDirection = CameraManager.get().getCameraInfo().facing; in onClick()
1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
1dictionary=main:en_us,locale=en_US,description=English (US),date ...