/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/ |
D | CameraUtils.java | 66 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/ |
D | Utils.kt | 81 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/ |
D | IdleUidTest.java | 150 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()
|
D | Camera2OfflineTestActivity.java | 122 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()
|
D | CameraDeviceSetupTest.java | 185 CameraDevice cameraDevice = CameraTestUtils.verifyCameraStateOpened( in testOpenSuccessful() local 190 cameraDeviceSetup.getId(), cameraDevice.getId()); in testOpenSuccessful() 192 cameraDevice.close(); in testOpenSuccessful()
|
D | CameraDeviceTest.java | 563 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/ |
D | CameraStreamManager.java | 84 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/ |
D | StreamedAppBehaviorTest.java | 85 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/ |
D | Camera2Activity.java | 218 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
|
D | CameraEvictionTest.java | 112 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/ |
D | CameraTest.java | 416 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/ |
D | VirtualCameraCaptureTest.java | 308 try (CameraDevice cameraDevice = mCameraDeviceCaptor.getValue()) { in captureImage() argument 309 cameraDevice.createCaptureSession(createSessionConfig(reader)); in captureImage() 322 CaptureRequest.Builder request = cameraDevice.createCaptureRequest( in captureImage()
|
D | VirtualCameraTest.java | 867 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/ |
D | MainVisualQueryDetectionService.java | 434 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/ |
D | AppOpsLoggingTest.kt | 802 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()
|