Home
last modified time | relevance | path

Searched refs:cameraDevice (Results 1 – 10 of 10) 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/permission4/AppThatAccessesCameraAndMic/src/android/permission4/cts/appthataccessescameraandmic/
DAccessCameraOrMicActivity.kt55 private var cameraDevice: CameraDevice? = null variable in android.permission4.cts.appthataccessescameraandmic.AccessCameraOrMicActivity
86 cameraDevice?.close() in finish()
87 cameraDevice = null in finish()
108 cameraDevice = camDevice in onOpened()
118 val builder = cameraDevice!!.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW) in onOpened()
146 cameraDevice!!.createCaptureSession(sessionConfiguration) in onOpened()
175 if (camDevice == cameraDevice) { in startBackupCamera()
176 cameraDevice = null in startBackupCamera()
/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()
DCameraDeviceTest.java555 public CameraDevice cameraDevice; in testChainedOperation() field in CameraDeviceTest.ChainedCameraListener
560 cameraDevice = camera; in testChainedOperation()
625 if (cameraListener.cameraDevice != null) cameraListener.cameraDevice.close(); in testChainedOperation()
636 if (cameraListener.cameraDevice != null) cameraListener.cameraDevice.close(); in testChainedOperation()
647 if (cameraListener.cameraDevice != null) cameraListener.cameraDevice.close(); in testChainedOperation()
/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/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/camera/src/android/hardware/multiprocess/camera/cts/
DCamera2Activity.java113 public void onOpened(CameraDevice cameraDevice) { in onResume()
120 public void onDisconnected(CameraDevice cameraDevice) { in onResume()
127 public void onError(CameraDevice cameraDevice, int i) { in onResume()
DCameraEvictionTest.java92 public void onOpened(CameraDevice cameraDevice) { in onOpened() argument
94 mCameraDevice = cameraDevice; in onOpened()
109 public void onDisconnected(CameraDevice cameraDevice) { in onDisconnected() argument
118 public void onError(CameraDevice cameraDevice, int i) { in onError() argument
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DCameraPolicyTest.java233 public void onOpened(CameraDevice cameraDevice) { in onOpened() argument
236 if (cameraDevice != null) { in onOpened()
237 cameraDevice.close(); in onOpened()
243 public void onDisconnected(CameraDevice cameraDevice) { in onDisconnected() argument
249 public void onError(CameraDevice cameraDevice, int error) { in onError() argument