Home
last modified time | relevance | path

Searched refs:cameraManager (Results 1 – 9 of 9) 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/CtsUseMicOrCameraForSensorPrivacy/src/android/sensorprivacy/cts/usemiccamera/
DUseMicCamera.kt119 val cameraManager = getSystemService(CameraManager::class.java)!! in openCam() constant
121 val cameraId = cameraManager!!.cameraIdList[0] in openCam()
122 val config = cameraManager!!.getCameraCharacteristics(cameraId) in openCam()
160 cameraManager!!.openCamera(cameraId, mainExecutor, 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/tools/cts-device-info/src/com/android/cts/deviceinfo/
DCameraDeviceInfo.java59 public CameraCharacteristicsStorer(CameraManager cameraManager, DeviceInfoStore store) { in CameraCharacteristicsStorer() argument
60 if (cameraManager == null || store == null) { in CameraCharacteristicsStorer()
65 mCameraManager = cameraManager; in CameraCharacteristicsStorer()
491 CameraManager cameraManager = (CameraManager) in collectDeviceInfo() local
494 String[] cameraIdList = cameraManager.getCameraIdList(); in collectDeviceInfo()
500 new CameraCharacteristicsStorer(cameraManager, store); in collectDeviceInfo()
506 CameraCharacteristics ch = cameraManager.getCameraCharacteristics( in collectDeviceInfo()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java1681 CameraManager cameraManager) throws CameraAccessException { in getSupportedSizeForFormat() argument
1682 CameraCharacteristics properties = cameraManager.getCameraCharacteristics(cameraId); in getSupportedSizeForFormat()
1710 CameraManager cameraManager) throws CameraAccessException { in getSupportedSizeForClass() argument
1711 CameraCharacteristics properties = cameraManager.getCameraCharacteristics(cameraId); in getSupportedSizeForClass()
1752 CameraManager cameraManager, Size bound) throws CameraAccessException { in getSupportedPreviewSizes() argument
1755 cameraManager); in getSupportedPreviewSizes()
1808 CameraManager cameraManager, int format, Size bound) throws CameraAccessException { in getSortedSizesForFormat() argument
1810 Size[] sizes = getSupportedSizeForFormat(format, cameraId, cameraManager); in getSortedSizesForFormat()
1840 CameraManager cameraManager, Size bound) throws CameraAccessException { in getSupportedVideoSizes() argument
1843 cameraId, cameraManager); in getSupportedVideoSizes()
[all …]
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpsLoggingTest.kt784 val cameraManager = context.getSystemService(CameraManager::class.java) in nativeNoteOp() constant
788 assumeTrue(cameraManager.cameraIdList.isNotEmpty()) in nativeNoteOp()
790 val cameraId = cameraManager!!.cameraIdList[0] in nativeNoteOp()
791 val config = cameraManager!!.getCameraCharacteristics(cameraId) in nativeNoteOp()
828 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.cpp1754 ACameraManager* cameraManager = ACameraManager_create(); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative() local
1755 if (cameraManager == nullptr) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1759 ACameraManager_delete(cameraManager); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1760 cameraManager = nullptr; in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1763 cameraManager = ACameraManager_create(); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1769 ACameraManager_delete(cameraManager); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1770 cameraManager = nullptr; in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1787 if (cameraManager) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()
1788 ACameraManager_delete(cameraManager); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetAndCloseNative()