Searched refs:facing (Results 1 – 25 of 27) sorted by relevance
12
113 public CameraId findFirstCameraFacing(@Nonnull Facing facing) { in findFirstCameraFacing() argument114 String cameraId = findCameraId(facing); in findFirstCameraFacing()136 private String findCameraId(Facing facing) { in findCameraId() argument137 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() argument190 if (characteristics.get(CameraCharacteristics.LENS_FACING) == facing) { in findFirstCameraIdFacing()
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()
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()
161 Integer facing = cameraCharacteristics.get(CameraCharacteristics.LENS_FACING);162 if (facing == null) {167 switch (facing) {
37 public boolean hasCameraFacing(Facing facing); in hasCameraFacing() argument49 public CameraId findFirstCameraFacing(Facing facing); in findFirstCameraFacing() argument
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()
425 final boolean frontCamera = cameraInfo != null && cameraInfo.facing == in updateViewState()
311 SettingsUtil.CameraDeviceSelector facing) { in upgradeCameraSizeSetting() argument313 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()
182 public Rational getPictureAspectRatio(CameraId cameraId, Facing facing) in getPictureAspectRatio() argument184 Size pictureSize = getPictureSize(cameraId, facing); in getPictureAspectRatio()
252 Integer facing = characteristics.get(CameraCharacteristics.LENS_FACING); in setUpCameraOutputs() local253 if (facing == null || facing != CameraCharacteristics.LENS_FACING_FRONT) { in setUpCameraOutputs()
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()
66 if (info.facing == CameraInfo.CAMERA_FACING_BACK) { in hasBackCamera()
69 if (info.facing == CameraInfo.CAMERA_FACING_BACK) { in hasBackCamera()
295 if (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) { in initCamera()
180 cameraDirection = CameraManager.get().getCameraInfo().facing; in onClick()
1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...