Home
last modified time | relevance | path

Searched refs:cameraDevice (Results 1 – 15 of 15) sorted by relevance

/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/
DCameraUtils.java66 public void onOpened(CameraDevice cameraDevice) { in onOpened() argument
69 if (cameraDevice != null) { in onOpened()
70 cameraDevice.close(); in onOpened()
76 public void onDisconnected(CameraDevice cameraDevice) { in onDisconnected() argument
82 public void onError(CameraDevice cameraDevice, int error) { in onError() argument
/cts/tests/tests/sensorprivacy/test-apps/utils/src/android/sensorprivacy/cts/testapp/utils/
DUtils.kt81 var cameraDevice: CompletableFuture<CameraDevice> = CompletableFuture() in openCam() variable
115 cameraDevice.complete(cD) in openCam()
128 cameraDevice.complete(cD) in openCam()
142 return Cam(cameraDevice.join(), handlerThread) in openCam()
151 class Cam(val cameraDevice: CameraDevice?, val thread: Thread) { constant in android.sensorprivacy.cts.testapp.utils.Cam
153 cameraDevice?.close() in close()
/cts/tests/camera/src/android/hardware/camera2/cts/
DIdleUidTest.java150 final CameraDevice cameraDevice = captor.getValue(); in assertCameraAccess() local
151 assertThat(cameraDevice).isNotNull(); in assertCameraAccess()
152 cameraDevice.close(); in assertCameraAccess()
191 final CameraDevice cameraDevice = captor.getValue(); in testCameraAccessBecomingInactiveUidByCamera() local
192 assertThat(cameraDevice).isNotNull(); in testCameraAccessBecomingInactiveUidByCamera()
193 cameraDevice.close(); in testCameraAccessBecomingInactiveUidByCamera()
DCamera2OfflineTestActivity.java122 public void onOpened(CameraDevice cameraDevice) { in onResume()
129 public void onDisconnected(CameraDevice cameraDevice) { in onResume()
136 public void onError(CameraDevice cameraDevice, int i) { in onResume()
DCameraDeviceSetupTest.java185 CameraDevice cameraDevice = CameraTestUtils.verifyCameraStateOpened( in testOpenSuccessful() local
190 cameraDeviceSetup.getId(), cameraDevice.getId()); in testOpenSuccessful()
192 cameraDevice.close(); in testOpenSuccessful()
DCameraDeviceTest.java563 public CameraDevice cameraDevice; in testChainedOperation() field in CameraDeviceTest.ChainedCameraListener
568 cameraDevice = camera; in testChainedOperation()
633 if (cameraListener.cameraDevice != null) cameraListener.cameraDevice.close(); in testChainedOperation()
644 if (cameraListener.cameraDevice != null) cameraListener.cameraDevice.close(); in testChainedOperation()
655 if (cameraListener.cameraDevice != null) cameraListener.cameraDevice.close(); in testChainedOperation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/RenderUtils/
DCameraStreamManager.java84 public void onOpened(CameraDevice cameraDevice) {
87 mCameraDevice = cameraDevice;
92 public void onDisconnected(CameraDevice cameraDevice) {
94 cameraDevice.close();
99 public void onError(CameraDevice cameraDevice, int error) {
101 cameraDevice.close();
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/
DStreamedAppBehaviorTest.java85 public void onOpened(@NonNull CameraDevice cameraDevice) {} in accessCameraFromActivity()
88 public void onDisconnected(@NonNull CameraDevice cameraDevice) { in accessCameraFromActivity()
94 public void onError(@NonNull CameraDevice cameraDevice, int error) { in accessCameraFromActivity()
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/
DCamera2Activity.java218 public void onOpened(CameraDevice cameraDevice) { in onOpened() argument
225 public void onDisconnected(CameraDevice cameraDevice) { in onDisconnected() argument
232 public void onError(CameraDevice cameraDevice, int i) { in onError() argument
DCameraEvictionTest.java112 public void onOpened(CameraDevice cameraDevice) { in onOpened() argument
114 mCameraDevice = cameraDevice; in onOpened()
129 public void onDisconnected(CameraDevice cameraDevice) { in onDisconnected() argument
138 public void onError(CameraDevice cameraDevice, int i) { in onError() argument
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DCameraTest.java416 public void onOpened(CameraDevice cameraDevice) { in onOpened() argument
419 if (cameraDevice != null) { in onOpened()
420 cameraDevice.close(); in onOpened()
426 public void onDisconnected(CameraDevice cameraDevice) { in onDisconnected() argument
432 public void onError(CameraDevice cameraDevice, int error) { in onError() argument
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/
DVirtualCameraCaptureTest.java308 try (CameraDevice cameraDevice = mCameraDeviceCaptor.getValue()) { in captureImage() argument
309 cameraDevice.createCaptureSession(createSessionConfig(reader)); in captureImage()
322 CaptureRequest.Builder request = cameraDevice.createCaptureRequest( in captureImage()
DVirtualCameraTest.java867 CameraDevice cameraDevice = mCameraDeviceCaptor.getValue(); in verifyConfigureSessionForSupportedFormatSucceeds() local
870 cameraDevice.createCaptureSession(createSessionConfig(reader)); in verifyConfigureSessionForSupportedFormatSucceeds()
886 cameraDevice.close(); in verifyConfigureSessionForSupportedFormatSucceeds()
896 CameraDevice cameraDevice = mCameraDeviceCaptor.getValue(); in verifyConfigureSessionForUnsupportedFormatFails() local
899 cameraDevice.createCaptureSession(createSessionConfig(reader)); in verifyConfigureSessionForUnsupportedFormatFails()
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainVisualQueryDetectionService.java434 private void createCameraPreview(CameraDevice cameraDevice) { in createCameraPreview() argument
437 cameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in createCameraPreview()
440 cameraDevice.createCaptureSession(List.of(imageSurface), in createCameraPreview()
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpsLoggingTest.kt802 override fun onOpened(cameraDevice: CameraDevice) { in nativeNoteOp()
806 val builder = cameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW) in nativeNoteOp()
822 cameraDevice.close() in nativeNoteOp()
823 openedCamera.complete(cameraDevice) in nativeNoteOp()
825 cameraDevice.createCaptureSession(sessionConfiguration) in nativeNoteOp()
829 override fun onError(cameraDevice: CameraDevice, i: Int) {} in nativeNoteOp()