Home
last modified time | relevance | path

Searched refs:cameraManager (Results 1 – 6 of 6) sorted by relevance

/cts/tests/camera/src/android/hardware/camera2/cts/
DIdleUidTest.java77 final CameraManager cameraManager = InstrumentationRegistry.getTargetContext() in testCameraAccessForIdleUid() local
79 for (String cameraId : cameraManager.getCameraIdList()) { in testCameraAccessForIdleUid()
80 testCameraAccessForIdleUidByCamera(cameraManager, cameraId, in testCameraAccessForIdleUid()
90 final CameraManager cameraManager = InstrumentationRegistry.getTargetContext() in testCameraAccessBecomingInactiveUid() local
92 for (String cameraId : cameraManager.getCameraIdList()) { in testCameraAccessBecomingInactiveUid()
93 testCameraAccessBecomingInactiveUidByCamera(cameraManager, cameraId, in testCameraAccessBecomingInactiveUid()
99 private void testCameraAccessForIdleUidByCamera(CameraManager cameraManager, in testCameraAccessForIdleUidByCamera() argument
102 assertCameraAccess(cameraManager, cameraId, true, handler); in testCameraAccessForIdleUidByCamera()
108 assertCameraAccess(cameraManager, cameraId, false, handler); in testCameraAccessForIdleUidByCamera()
115 assertCameraAccess(cameraManager, cameraId, true, handler); in testCameraAccessForIdleUidByCamera()
[all …]
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCameraUtils.java38 public static boolean blockUntilOpenCamera(CameraManager cameraManager, Handler handler) { in blockUntilOpenCamera() argument
40 String[] cameraIdList = cameraManager.getCameraIdList(); in blockUntilOpenCamera()
46 cameraManager.openCamera(cameraId, callback, handler); in blockUntilOpenCamera()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java1134 CameraManager cameraManager) throws CameraAccessException { in getSupportedSizeForFormat() argument
1135 CameraCharacteristics properties = cameraManager.getCameraCharacteristics(cameraId); in getSupportedSizeForFormat()
1163 CameraManager cameraManager) throws CameraAccessException { in getSupportedSizeForClass() argument
1164 CameraCharacteristics properties = cameraManager.getCameraCharacteristics(cameraId); in getSupportedSizeForClass()
1205 CameraManager cameraManager, Size bound) throws CameraAccessException { in getSupportedPreviewSizes() argument
1208 cameraManager); in getSupportedPreviewSizes()
1261 CameraManager cameraManager, int format, Size bound) throws CameraAccessException { in getSortedSizesForFormat() argument
1263 Size[] sizes = getSupportedSizeForFormat(format, cameraId, cameraManager); in getSortedSizesForFormat()
1293 CameraManager cameraManager, Size bound) throws CameraAccessException { in getSupportedVideoSizes() argument
1296 cameraId, cameraManager); in getSupportedVideoSizes()
[all …]
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
DCameraDeviceInfo.java57 public CameraCharacteristicsStorer(CameraManager cameraManager, DeviceInfoStore store) { in CameraCharacteristicsStorer() argument
58 if (cameraManager == null || store == null) { in CameraCharacteristicsStorer()
63 mCameraManager = cameraManager; in CameraCharacteristicsStorer()
419 CameraManager cameraManager = (CameraManager) in collectDeviceInfo() local
422 String[] cameraIdList = cameraManager.getCameraIdList(); in collectDeviceInfo()
426 new CameraCharacteristicsStorer(cameraManager, store); in collectDeviceInfo()
/cts/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp1148 ACameraManager* cameraManager = ACameraManager_create(); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative() local
1149 if (cameraManager == nullptr) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1153 ACameraManager_delete(cameraManager); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1154 cameraManager = nullptr; in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1157 cameraManager = ACameraManager_create(); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1163 ACameraManager_delete(cameraManager); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1164 cameraManager = nullptr; in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1181 if (cameraManager) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1182 ACameraManager_delete(cameraManager); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraMetadataGetter.java92 public CameraMetadataGetter(CameraManager cameraManager) { in CameraMetadataGetter() argument
93 if (cameraManager == null) { in CameraMetadataGetter()
98 mCameraManager = cameraManager; in CameraMetadataGetter()