Home
last modified time | relevance | path

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

/cts/tests/tests/sensorprivacy/src/android/sensorprivacy/cts/
DSensorPrivacyCameraTest.kt26 val cameraManager: CameraManager = context.getSystemService(CameraManager::class.java)!! in init() constant
27 Assume.assumeTrue("No camera available", cameraManager.cameraIdList.isNotEmpty()) in init()
/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/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/permission4/AppThatAccessesCameraAndMic/src/android/permission4/cts/appthataccessescameraandmic/
DAccessCameraOrMicActivity.kt53 private lateinit var cameraManager: CameraManager variable in android.permission4.cts.appthataccessescameraandmic.AccessCameraOrMicActivity
109 val config = cameraManager!!.getCameraCharacteristics(cameraId) in onOpened()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java1704 CameraManager cameraManager) throws CameraAccessException { in getSupportedSizeForFormat() argument
1705 return getSupportedSizeForFormat(format, cameraId, cameraManager, in getSupportedSizeForFormat()
1710 CameraManager cameraManager, boolean maxResolution) throws CameraAccessException { in getSupportedSizeForFormat() argument
1711 CameraCharacteristics properties = cameraManager.getCameraCharacteristics(cameraId); in getSupportedSizeForFormat()
1748 CameraManager cameraManager) throws CameraAccessException { in getSupportedSizeForClass() argument
1749 CameraCharacteristics properties = cameraManager.getCameraCharacteristics(cameraId); in getSupportedSizeForClass()
1790 CameraManager cameraManager, Size bound) throws CameraAccessException { in getSupportedPreviewSizes() argument
1793 cameraManager); in getSupportedPreviewSizes()
1845 CameraManager cameraManager, int format, Size bound) throws CameraAccessException { in getSortedSizesForFormat() argument
1846 return getSortedSizesForFormat(cameraId, cameraManager, format, /*maxResolution*/false, in getSortedSizesForFormat()
[all …]
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
DCameraDeviceInfo.java62 public CameraCharacteristicsStorer(CameraManager cameraManager, DeviceInfoStore store) { in CameraCharacteristicsStorer() argument
63 if (cameraManager == null || store == null) { in CameraCharacteristicsStorer()
68 mCameraManager = cameraManager; in CameraCharacteristicsStorer()
563 CameraManager cameraManager = (CameraManager) in collectDeviceInfo() local
566 String[] cameraIdList = cameraManager.getCameraIdList(); in collectDeviceInfo()
572 new CameraCharacteristicsStorer(cameraManager, store); in collectDeviceInfo()
578 CameraCharacteristics ch = cameraManager.getCameraCharacteristics( in collectDeviceInfo()
/cts/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp1762 ACameraManager* cameraManager = ACameraManager_create(); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative() local
1763 if (cameraManager == nullptr) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1767 ACameraManager_delete(cameraManager); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1768 cameraManager = nullptr; in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1771 cameraManager = ACameraManager_create(); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1777 ACameraManager_delete(cameraManager); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1778 cameraManager = nullptr; in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1795 if (cameraManager) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1796 ACameraManager_delete(cameraManager); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()