Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/
DCameraUtils.java37 public static boolean blockUntilOpenCamera(CameraManager cameraManager, Handler handler) { in blockUntilOpenCamera() argument
39 String[] cameraIdList = cameraManager.getCameraIdList(); in blockUntilOpenCamera()
45 cameraManager.openCamera(cameraId, callback, handler); in blockUntilOpenCamera()
/cts/tests/tests/sensorprivacy/test-apps/utils/src/android/sensorprivacy/cts/testapp/utils/
DUtils.kt63 val cameraManager = context.getSystemService(CameraManager::class.java)!! in openCam() constant
66 val cameraId = cameraManager!!.cameraIdList[0] in openCam()
67 val config = cameraManager!!.getCameraCharacteristics(cameraId) in openCam()
85 val isExternalCamera = (cameraManager!!.getCameraCharacteristics(cameraId) in openCam()
137 cameraManager!!.openCamera(cameraId, executor, cameraDeviceCallback) in openCam()
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/
DVirtualCameraNdkTest.java111 CameraManager cameraManager = mContext.getSystemService(CameraManager.class); in getCameraIds_defaultDevice() local
113 String[] defaultDeviceCameras = cameraManager.getCameraIdListNoLazy(); in getCameraIds_defaultDevice()
131 CameraManager cameraManager = mContext in getCameraIds_virtualDevice() local
143 assertThat(ndkCameras).containsExactlyElementsIn(cameraManager.getCameraIdListNoLazy()); in getCameraIds_virtualDevice()
DVirtualCameraCameraXTest.kt198 val cameraManager = vdContext!!.getSystemService(CameraManager::class.java) in <lambda>() constant
200 cameraManager!!.cameraIdList in <lambda>()
204 cameraManager.getCameraCharacteristics(BACK_CAMERA_ID) in <lambda>()
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/
DStreamedAppBehaviorTest.java81 final CameraManager cameraManager = activity.getSystemService(CameraManager.class); in accessCameraFromActivity() local
102 cameraManager.openCamera(cameraId, cameraCallback, null); in accessCameraFromActivity()
/cts/tests/camera/src/android/hardware/camera2/cts/
DIdleUidTest.java118 private static void assertCameraAccess(CameraManager cameraManager, in assertCameraAccess() argument
125 cameraManager.openCamera(cameraId, callback, handler); in assertCameraAccess()
/cts/tests/tests/sensorprivacy/src/android/sensorprivacy/cts/
DSensorPrivacyCameraTest.kt51 val cameraManager: CameraManager = context.getSystemService(CameraManager::class.java)!! in init() constant
52 Assume.assumeTrue("No camera available", cameraManager.cameraIdList.isNotEmpty()) in init()
DSensorPrivacyBaseTest.kt624 val cameraManager = context.getSystemService(CameraManager::class.java)!! in <lambda>() constant
625 val cameraIdList = cameraManager.cameraIdList in <lambda>()
628 val cameraId = cameraManager.cameraIdList[0] in <lambda>()
629 val availableTestPatternModes = cameraManager.getCameraCharacteristics(cameraId) in <lambda>()
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
DCameraDeviceInfo.java66 public CameraCharacteristicsStorer(CameraManager cameraManager, DeviceInfoStore store) { in CameraCharacteristicsStorer() argument
67 if (cameraManager == null || store == null) { in CameraCharacteristicsStorer()
72 mCameraManager = cameraManager; in CameraCharacteristicsStorer()
617 CameraManager cameraManager = (CameraManager) in collectDeviceInfo() local
620 String[] cameraIdList = cameraManager.getCameraIdList(); in collectDeviceInfo()
626 new CameraCharacteristicsStorer(cameraManager, store); in collectDeviceInfo()
632 CameraCharacteristics ch = cameraManager.getCameraCharacteristics( in collectDeviceInfo()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java1990 CameraManager cameraManager) throws CameraAccessException { in getSupportedSizeForFormat() argument
1991 return getSupportedSizeForFormat(format, cameraId, cameraManager, in getSupportedSizeForFormat()
1996 CameraManager cameraManager, boolean maxResolution) throws CameraAccessException { in getSupportedSizeForFormat() argument
1997 CameraCharacteristics properties = cameraManager.getCameraCharacteristics(cameraId); in getSupportedSizeForFormat()
2034 CameraManager cameraManager) throws CameraAccessException { in getSupportedSizeForClass() argument
2035 CameraCharacteristics properties = cameraManager.getCameraCharacteristics(cameraId); in getSupportedSizeForClass()
2076 CameraManager cameraManager, Size bound) throws CameraAccessException { in getSupportedPreviewSizes() argument
2079 cameraManager); in getSupportedPreviewSizes()
2131 CameraManager cameraManager, int format, Size bound) throws CameraAccessException { in getSortedSizesForFormat() argument
2132 return getSortedSizesForFormat(cameraId, cameraManager, format, /*maxResolution*/false, in getSortedSizesForFormat()
[all …]
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpsLoggingTest.kt788 val cameraManager = context.getSystemService(CameraManager::class.java)!! in nativeNoteOp() constant
792 assumeTrue(cameraManager.cameraIdList.isNotEmpty()) in nativeNoteOp()
794 val cameraId = cameraManager!!.cameraIdList[0] in nativeNoteOp()
795 val config = cameraManager!!.getCameraCharacteristics(cameraId) in nativeNoteOp()
832 cameraManager!!.openCamera(cameraId, context.mainExecutor, cameraDeviceCallback) in nativeNoteOp()
/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.cpp1903 ACameraManager* cameraManager = ACameraManager_create(); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative() local
1904 if (cameraManager == nullptr) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1908 ACameraManager_delete(cameraManager); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1909 cameraManager = nullptr; in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1912 cameraManager = ACameraManager_create(); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1918 ACameraManager_delete(cameraManager); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1919 cameraManager = nullptr; in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1936 if (cameraManager) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1937 ACameraManager_delete(cameraManager); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()