Home
last modified time | relevance | path

Searched refs:CameraInfo (Results 1 – 25 of 35) sorted by relevance

12

/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/
DCameraManagerTest.java20 import android.hardware.Camera.CameraInfo;
48 CameraManager.get().selectCamera(CameraInfo.CAMERA_FACING_BACK); in testNoCameraDeviceGetInfo()
56 MockCameraFactory.createCamera(CameraInfo.CAMERA_FACING_FRONT) in testFrontFacingOnlyGetInfo()
60 CameraManager.get().selectCamera(CameraInfo.CAMERA_FACING_FRONT); in testFrontFacingOnlyGetInfo()
61 assertEquals(CameraInfo.CAMERA_FACING_FRONT, CameraManager.get().getCameraInfo().facing); in testFrontFacingOnlyGetInfo()
62 CameraManager.get().selectCamera(CameraInfo.CAMERA_FACING_BACK); in testFrontFacingOnlyGetInfo()
63 assertEquals(CameraInfo.CAMERA_FACING_FRONT, CameraManager.get().getCameraInfo().facing); in testFrontFacingOnlyGetInfo()
68 MockCameraFactory.createCamera(CameraInfo.CAMERA_FACING_BACK) in testBackFacingOnlyGetInfo()
72 CameraManager.get().selectCamera(CameraInfo.CAMERA_FACING_FRONT); in testBackFacingOnlyGetInfo()
73 assertEquals(CameraInfo.CAMERA_FACING_BACK, CameraManager.get().getCameraInfo().facing); in testBackFacingOnlyGetInfo()
[all …]
DMockCameraFactory.java20 import android.hardware.Camera.CameraInfo;
31 private static Map<Camera, CameraInfo> sCameraInfos = new HashMap<Camera, CameraInfo>();
35 CameraInfo cameraInfo = new CameraInfo(); in createCamera()
41 public static void getCameraInfo(Camera camera, CameraInfo outCameraInfo) { in getCameraInfo()
42 CameraInfo cameraInfo = sCameraInfos.get(camera); in getCameraInfo()
62 (CameraInfo) invocation.getArguments()[1] in createCameraWrapper()
66 }).when(wrapper).getCameraInfo(Mockito.anyInt(), Mockito.any(CameraInfo.class)); in createCameraWrapper()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/
DCameraManager.java21 import android.hardware.Camera.CameraInfo;
98 private final CameraInfo mCameraInfo;
148 mCameraInfo = new CameraInfo(); in CameraManager()
154 final CameraInfo cameraInfo = new CameraInfo(); in CameraManager()
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()
229 ? CameraInfo.CAMERA_FACING_BACK in swapCamera()
230 : CameraInfo.CAMERA_FACING_FRONT); in swapCamera()
252 final CameraInfo cameraInfo = new CameraInfo(); in selectCamera()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DCameraManager.java26 import android.hardware.Camera.CameraInfo;
84 void getCameraInfo(int index, CameraInfo cameraInfo); in getCameraInfo()
132 public void getCameraInfo(final int index, final CameraInfo cameraInfo) {
148 private final CameraInfo mCameraInfo;
213 mCameraInfo = new CameraInfo(); in CameraManager()
219 final CameraInfo cameraInfo = new CameraInfo(); in CameraManager()
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()
297 CameraInfo.CAMERA_FACING_BACK : in swapCamera()
[all …]
/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/
DVideoChatTestActivity.java80 Camera.CameraInfo info = in getCameraOrientation()
81 new Camera.CameraInfo(); in getCameraOrientation()
197 Camera.CameraInfo info = new Camera.CameraInfo(); in doInBackground()
199 if (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in doInBackground()
207 Camera.CameraInfo info = new Camera.CameraInfo(); in doInBackground()
209 if (info.facing == Camera.CameraInfo.CAMERA_FACING_BACK) { in doInBackground()
284 android.hardware.Camera.CameraInfo info = in getAutoDisplayOrientation()
285 new android.hardware.Camera.CameraInfo(); in getAutoDisplayOrientation()
289 if (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in getAutoDisplayOrientation()
/packages/apps/LegacyCamera/src/com/android/camera/
DCameraHolder.java21 import android.hardware.Camera.CameraInfo;
54 private CameraInfo[] mInfo;
99 mInfo = new CameraInfo[mNumberOfCameras]; in CameraHolder()
101 mInfo[i] = new CameraInfo(); in CameraHolder()
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()
116 public CameraInfo[] getCameraInfo() { in getCameraInfo()
DUtil.java33 import android.hardware.Camera.CameraInfo;
341 Camera.CameraInfo info = new Camera.CameraInfo(); in getDisplayOrientation()
344 if (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in getDisplayOrientation()
354 Camera.CameraInfo info = new Camera.CameraInfo(); in getCameraOrientation()
515 return (intentCameraId == android.hardware.Camera.CameraInfo.CAMERA_FACING_FRONT); in isFrontCameraIntent()
519 return (intentCameraId == android.hardware.Camera.CameraInfo.CAMERA_FACING_BACK); in isBackCameraIntent()
623 CameraInfo info = CameraHolder.instance().getCameraInfo()[cameraId]; in setRotationParameter()
624 if (info.facing == CameraInfo.CAMERA_FACING_FRONT) { in setRotationParameter()
DCameraSettings.java23 import android.hardware.Camera.CameraInfo;
67 private final CameraInfo[] mCameraInfo;
71 int cameraId, CameraInfo[] cameraInfo) { in CameraSettings()
DEffectsRecorder.java95 private int mCameraFacing = Camera.CameraInfo.CAMERA_FACING_BACK;
324 if (mCameraFacing == Camera.CameraInfo.CAMERA_FACING_BACK) { in setRecordingOrientation()
496 if (mCameraFacing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in initializeEffect()
DVideoCamera.java41 import android.hardware.Camera.CameraInfo;
1250 CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId]; in initializeRecorder()
1251 if (info.facing == CameraInfo.CAMERA_FACING_FRONT) { in initializeRecorder()
1281 CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId]; in initializeEffectsPreview()
1659 CameraInfo[] info = CameraHolder.instance().getCameraInfo(); in showAlert()
1660 boolean mirror = (info[mCameraId].facing == CameraInfo.CAMERA_FACING_FRONT); in showAlert()
/packages/apps/Camera2/src/com/android/camera/one/v1/
DLegacyOneCameraManagerImpl.java45 private final Camera.CameraInfo[] mCameraInfos;
56 Camera.CameraInfo[] cameraInfos; in instance()
59 cameraInfos = new Camera.CameraInfo[numberOfCameras]; in instance()
61 cameraInfos[i] = new Camera.CameraInfo(); in instance()
73 if (cameraInfos[i].facing == Camera.CameraInfo.CAMERA_FACING_BACK) { in instance()
76 if (cameraInfos[i].facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in instance()
97 Camera.CameraInfo[] info) { in LegacyOneCameraManagerImpl()
DOneCameraCharacteristicsImpl.java37 private final Camera.CameraInfo mCameraInfo;
47 Camera.CameraInfo cameraInfo, Camera.Parameters cameraParameters) { in OneCameraCharacteristicsImpl()
84 if (direction == Camera.CameraInfo.CAMERA_FACING_BACK) { in getCameraDirection()
/packages/apps/Camera2/src/com/android/camera/
DDisableCameraReceiver.java24 import android.hardware.Camera.CameraInfo;
64 CameraInfo info = new CameraInfo(); in hasBackCamera()
67 if (info.facing == CameraInfo.CAMERA_FACING_BACK) { in hasBackCamera()
DCameraTestDevice.java19 import android.hardware.Camera.CameraInfo;
29 public static void injectMockCamera(CameraInfo[] info, CameraProxy[] camera) { in injectMockCamera()
/packages/apps/Gallery2/src/com/android/camera/
DDisableCameraReceiver.java24 import android.hardware.Camera.CameraInfo;
63 CameraInfo info = new CameraInfo(); in hasBackCamera()
66 if (info.facing == CameraInfo.CAMERA_FACING_BACK) { in hasBackCamera()
/packages/services/Car/evs/app/
DConfigManager.h25 struct CameraInfo { struct
70 const std::vector<CameraInfo>& getCameras() const { return mCameras; }; in getCameras()
74 std::vector<CameraInfo> mCameras;
DRenderTopView.h39 const std::vector<ConfigManager::CameraInfo>& camList,
49 const ConfigManager::CameraInfo& info;
52 ActiveCamera(const ConfigManager::CameraInfo& c) : info(c) {}; in ActiveCamera()
DRenderPixelCopy.h36 RenderPixelCopy(sp<IEvsEnumerator> enumerator, const ConfigManager::CameraInfo& cam);
45 ConfigManager::CameraInfo mCameraInfo;
DRenderDirectView.h36 RenderDirectView(sp<IEvsEnumerator> enumerator, const ConfigManager::CameraInfo& cam);
45 ConfigManager::CameraInfo mCameraInfo;
DRenderTopView.cpp67 static android::mat4 cameraLookMatrix(const ConfigManager::CameraInfo& cam) { in cameraLookMatrix()
95 const std::vector<ConfigManager::CameraInfo>& camList, in RenderTopView()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/
DCameraComposerFragment.java23 import android.hardware.Camera.CameraInfo;
79 private int cameraDirection = CameraInfo.CAMERA_FACING_BACK;
337 previewImageView.setScaleX(cameraDirection == CameraInfo.CAMERA_FACING_FRONT ? -1 : 1); in updateViewState()
342 if (cameraDirection == CameraInfo.CAMERA_FACING_FRONT) { in updateViewState()
/packages/apps/Camera2/tests/src/com/android/camera/stress/
DVideoCapture.java92 android.hardware.Camera.CameraInfo.CAMERA_FACING_BACK); in testBackVideoCapture()
106 android.hardware.Camera.CameraInfo.CAMERA_FACING_FRONT); in testFrontVideoCapture()
DImageCapture.java99 android.hardware.Camera.CameraInfo.CAMERA_FACING_BACK); in testBackImageCapture()
113 android.hardware.Camera.CameraInfo.CAMERA_FACING_FRONT); in testFrontImageCapture()
/packages/apps/LegacyCamera/tests/src/com/android/camera/stress/
DVideoCapture.java96 android.hardware.Camera.CameraInfo.CAMERA_FACING_BACK); in testBackVideoCapture()
111 android.hardware.Camera.CameraInfo.CAMERA_FACING_FRONT); in testFrontVideoCapture()
DImageCapture.java102 android.hardware.Camera.CameraInfo.CAMERA_FACING_BACK); in testBackImageCapture()
117 android.hardware.Camera.CameraInfo.CAMERA_FACING_FRONT); in testFrontImageCapture()

12