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.java76 final CameraManager cameraManager = InstrumentationRegistry.getTargetContext() in testCameraAccessForIdleUid() local
78 for (String cameraId : cameraManager.getCameraIdList()) { in testCameraAccessForIdleUid()
79 testCameraAccessForIdleUidByCamera(cameraManager, cameraId, in testCameraAccessForIdleUid()
89 final CameraManager cameraManager = InstrumentationRegistry.getTargetContext() in testCameraAccessBecomingInactiveUid() local
91 for (String cameraId : cameraManager.getCameraIdList()) { in testCameraAccessBecomingInactiveUid()
92 testCameraAccessBecomingInactiveUidByCamera(cameraManager, cameraId, in testCameraAccessBecomingInactiveUid()
98 private void testCameraAccessForIdleUidByCamera(CameraManager cameraManager, in testCameraAccessForIdleUidByCamera() argument
101 assertCameraAccess(cameraManager, cameraId, true, handler); in testCameraAccessForIdleUidByCamera()
107 assertCameraAccess(cameraManager, cameraId, false, handler); in testCameraAccessForIdleUidByCamera()
114 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.java1174 CameraManager cameraManager) throws CameraAccessException { in getSupportedSizeForFormat() argument
1175 CameraCharacteristics properties = cameraManager.getCameraCharacteristics(cameraId); in getSupportedSizeForFormat()
1203 CameraManager cameraManager) throws CameraAccessException { in getSupportedSizeForClass() argument
1204 CameraCharacteristics properties = cameraManager.getCameraCharacteristics(cameraId); in getSupportedSizeForClass()
1245 CameraManager cameraManager, Size bound) throws CameraAccessException { in getSupportedPreviewSizes() argument
1248 cameraManager); in getSupportedPreviewSizes()
1301 CameraManager cameraManager, int format, Size bound) throws CameraAccessException { in getSortedSizesForFormat() argument
1303 Size[] sizes = getSupportedSizeForFormat(format, cameraId, cameraManager); in getSortedSizesForFormat()
1333 CameraManager cameraManager, Size bound) throws CameraAccessException { in getSupportedVideoSizes() argument
1336 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/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()
/cts/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp1604 ACameraManager* cameraManager = ACameraManager_create(); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative() local
1605 if (cameraManager == nullptr) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1609 ACameraManager_delete(cameraManager); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1610 cameraManager = nullptr; in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1613 cameraManager = ACameraManager_create(); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1619 ACameraManager_delete(cameraManager); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1620 cameraManager = nullptr; in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1637 if (cameraManager) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1638 ACameraManager_delete(cameraManager); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()