Home
last modified time | relevance | path

Searched refs:CameraInfo (Results 1 – 25 of 42) 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/services/Car/cpp/evs/sampleDriver/
DConfigManager.h56 class CameraInfo {
58 CameraInfo() : in CameraInfo() function
63 virtual ~CameraInfo();
100 class CameraGroupInfo : public CameraInfo {
202 unique_ptr<CameraInfo>& getCameraInfo(const string cameraId) noexcept { in getCameraInfo()
232 unordered_map<string, unique_ptr<CameraInfo>> mCameraInfo;
310 bool readCameraDeviceInfo(CameraInfo *aCamera,
329 CameraInfo *aCamera,
347 CameraInfo *aCamera,
365 bool constructCameraMetadata(CameraInfo *aCamera,
DConfigManager.cpp103 CameraInfo *aCamera = new CameraInfo(); in readCameraInfo()
113 mCameraInfo.insert_or_assign(id, unique_ptr<CameraInfo>(aCamera)); in readCameraInfo()
128 ConfigManager::readCameraDeviceInfo(CameraInfo *aCamera, in readCameraDeviceInfo()
163 CameraInfo *aCamera, in readCameraCapabilities()
247 CameraInfo *aCamera, in readCameraMetadata()
354 ConfigManager::constructCameraMetadata(CameraInfo *aCamera, in constructCameraMetadata()
703 unique_ptr<ConfigManager::CameraInfo> aCamera; in readConfigDataFromBinary()
1061 ConfigManager::CameraInfo::~CameraInfo() { in ~CameraInfo()
DEvsV4lCamera.h94 unique_ptr<ConfigManager::CameraInfo> &camInfo,
111 unique_ptr<ConfigManager::CameraInfo> &camInfo);
156 unique_ptr<ConfigManager::CameraInfo> &mCameraInfo;
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/
DCameraManager.java21 import android.hardware.Camera.CameraInfo;
99 private final CameraInfo cameraInfo;
149 this.cameraInfo = new CameraInfo(); in CameraManager()
155 final CameraInfo cameraInfo = new CameraInfo(); in CameraManager()
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()
230 ? CameraInfo.CAMERA_FACING_BACK in swapCamera()
231 : CameraInfo.CAMERA_FACING_FRONT); in swapCamera()
253 final CameraInfo cameraInfo = new CameraInfo(); in selectCamera()
[all …]
/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()
/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/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/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/apps/Camera2/src/com/android/camera/
DSetActivitiesCameraReceiver.java24 import android.hardware.Camera.CameraInfo;
66 CameraInfo info = new CameraInfo(); in hasBackCamera()
69 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/services/Car/cpp/evs/support_library/
DConfigManager.h29 struct CameraInfo { struct
74 const std::vector<CameraInfo>& getCameras() const { return mCameras; }; in getCameras()
78 std::vector<CameraInfo> mCameras;
/packages/services/Car/cpp/evs/apps/default/
DRenderTopView.h39 const std::vector<ConfigManager::CameraInfo>& camList,
49 const ConfigManager::CameraInfo& info;
52 ActiveCamera(const ConfigManager::CameraInfo& c) : info(c) {}; in ActiveCamera()
DConfigManager.h28 struct CameraInfo { struct
83 const std::vector<CameraInfo>& getCameras() const { return mCameras; }; in getCameras()
122 std::vector<CameraInfo> mCameras;
DRenderPixelCopy.h36 RenderPixelCopy(sp<IEvsEnumerator> enumerator, const ConfigManager::CameraInfo& cam);
45 ConfigManager::CameraInfo mCameraInfo;
/packages/apps/Settings/src/com/android/settings/wifi/qrcode/
DQrCamera.java25 import android.hardware.Camera.CameraInfo;
291 Camera.CameraInfo cameraInfo = new Camera.CameraInfo(); in initCamera()
295 if (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) { in initCamera()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/
DCameraComposerFragment.java23 import android.hardware.Camera.CameraInfo;
79 private int cameraDirection = CameraInfo.CAMERA_FACING_BACK;
340 previewImageView.setScaleX(cameraDirection == CameraInfo.CAMERA_FACING_FRONT ? -1 : 1); in updateViewState()
345 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