/frameworks/ex/camera2/utils/tests/src/com/android/ex/camera2/utils/ |
D | Camera2DeviceTester.java | 20 import android.hardware.camera2.CameraDevice; 54 private class DeviceCapturer extends CameraDevice.StateCallback { 55 private CameraDevice mCamera; 57 public CameraDevice captureCameraDevice() throws Exception { in captureCameraDevice() 69 public synchronized void onOpened(CameraDevice camera) { in onOpened() 75 public void onDisconnected(CameraDevice camera) {} in onDisconnected() 78 public void onError(CameraDevice camera, int error) {} in onError() 81 protected CameraDevice mCamera;
|
D | Camera2UtilsTest.java | 28 import android.hardware.camera2.CameraDevice; 280 setUp.createRequest(null, CameraDevice.TEMPLATE_PREVIEW); in requestSettingsSetNullArgToCreateRequest0() 286 setUp.createRequest(mCamera, CameraDevice.TEMPLATE_PREVIEW, (Surface) null); in requestSettingsSetNullArgToCreateRequest2() 292 setUp.createRequest(null, CameraDevice.TEMPLATE_PREVIEW, (Surface) null); in requestSettingsSetNullArgToCreateRequest02() 344 CaptureRequest r1 = s.createRequest(mCamera, CameraDevice.TEMPLATE_PREVIEW); in requestSettingsSetNullMeansDefault() 350 CaptureRequest r2 = s.createRequest(mCamera, CameraDevice.TEMPLATE_PREVIEW); in requestSettingsSetNullMeansDefault() 355 CaptureRequest r3 = s.createRequest(mCamera, CameraDevice.TEMPLATE_PREVIEW); in requestSettingsSetNullMeansDefault() 360 CaptureRequest r4 = s.createRequest(mCamera, CameraDevice.TEMPLATE_PREVIEW); in requestSettingsSetNullMeansDefault()
|
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/ |
D | BlockingCameraManager.java | 19 import android.hardware.camera2.CameraDevice; 145 public CameraDevice openCamera(String cameraId, CameraDevice.StateCallback listener, in openCamera() 171 private class OpenListener extends CameraDevice.StateCallback { 176 private final CameraDevice.StateCallback mProxy; 181 private CameraDevice mDevice = null; 190 CameraDevice.StateCallback listener, Handler handler) in OpenListener() 207 public void onOpened(CameraDevice camera) { in onOpened() 229 public void onDisconnected(CameraDevice camera) { in onDisconnected() 252 public void onError(CameraDevice camera, int error) { in onError() 278 public void onClosed(CameraDevice camera) { in onClosed() [all …]
|
D | BlockingStateCallback.java | 18 import android.hardware.camera2.CameraDevice; 42 public class BlockingStateCallback extends CameraDevice.StateCallback { 46 private final CameraDevice.StateCallback mProxy; 106 public BlockingStateCallback(CameraDevice.StateCallback listener) { in BlockingStateCallback() 111 public void onOpened(CameraDevice camera) { in onOpened() 119 public void onDisconnected(CameraDevice camera) { in onDisconnected() 127 public void onError(CameraDevice camera, int error) { in onError() 135 public void onClosed(CameraDevice camera) { in onClosed()
|
/frameworks/av/camera/ndk/impl/ |
D | ACameraCaptureSession.cpp | 26 sp<CameraDevice> dev = getDeviceSp(); in ~ACameraCaptureSession() 51 sp<CameraDevice> dev = getDeviceSp(); in closeByApp() 76 sp<CameraDevice> dev = getDeviceSp(); in stopRepeating() 94 sp<CameraDevice> dev = getDeviceSp(); in abortCaptures() 115 sp<CameraDevice> dev = getDeviceSp(); in setRepeatingRequest() 136 sp<CameraDevice> dev = getDeviceSp(); in capture() 152 sp<CameraDevice> dev = getDeviceSp(); in updateOutputConfiguration() 171 sp<CameraDevice> dev = getDeviceSp(); in getDevice() 185 sp<CameraDevice> 187 sp<CameraDevice> device = mDevice.promote(); in getDeviceSp()
|
D | ACameraDevice.cpp | 34 const char* CameraDevice::kContextKey = "Context"; 35 const char* CameraDevice::kDeviceKey = "Device"; 36 const char* CameraDevice::kErrorCodeKey = "ErrorCode"; 37 const char* CameraDevice::kCallbackFpKey = "Callback"; 38 const char* CameraDevice::kSessionSpKey = "SessionSp"; 39 const char* CameraDevice::kCaptureRequestKey = "CaptureRequest"; 40 const char* CameraDevice::kTimeStampKey = "TimeStamp"; 41 const char* CameraDevice::kCaptureResultKey = "CaptureResult"; 42 const char* CameraDevice::kCaptureFailureKey = "CaptureFailure"; 43 const char* CameraDevice::kSequenceIdKey = "SequenceId"; [all …]
|
D | ACameraCaptureSession.h | 63 CameraDevice* device) : in ACameraCaptureSession() 100 friend class CameraDevice; 106 sp<CameraDevice> getDeviceSp(); 111 const wp<CameraDevice> mDevice;
|
D | ACameraDevice.h | 48 class CameraDevice final : public RefBase { 50 CameraDevice(const char* id, ACameraDevice_StateCallbacks* cb, 53 ~CameraDevice(); 70 explicit ServiceCallback(CameraDevice* device) : mDevice(device) {} in ServiceCallback() 84 const wp<CameraDevice> mDevice; 298 mDevice(new CameraDevice(id, cb, std::move(chars), this)) {} in ACameraDevice() 334 android::sp<android::CameraDevice> mDevice;
|
/frameworks/base/core/java/android/hardware/camera2/ |
D | CameraDevice.java | 61 public abstract class CameraDevice implements AutoCloseable { class 1061 public abstract void onOpened(@NonNull CameraDevice camera); // Must implement in onOpened() 1074 public void onClosed(@NonNull CameraDevice camera) { in onClosed() 1106 public abstract void onDisconnected(@NonNull CameraDevice camera); // Must implement in onDisconnected() 1135 public abstract void onError(@NonNull CameraDevice camera, in onError() 1143 public CameraDevice() {} in CameraDevice() method in CameraDevice
|
D | CameraManager.java | 315 private CameraDevice openCameraDeviceUserAsync(String cameraId, in openCameraDeviceUserAsync() 316 CameraDevice.StateCallback callback, Executor executor, final int uid) in openCameraDeviceUserAsync() 319 CameraDevice device = null; in openCameraDeviceUserAsync() 467 @NonNull final CameraDevice.StateCallback callback, @Nullable Handler handler) in openCamera() 505 @NonNull final CameraDevice.StateCallback callback) in openCamera() 529 @NonNull final CameraDevice.StateCallback callback, @NonNull Executor executor, in openCameraForUid()
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
D | CameraCaptureSessionImpl.java | 20 import android.hardware.camera2.CameraDevice; 133 public CameraDevice getDevice() { in getDevice() 592 public void onCaptureStarted(CameraDevice camera, in createCaptureCallbackProxyWithExecutor() 607 public void onCapturePartial(CameraDevice camera, in createCaptureCallbackProxyWithExecutor() 621 public void onCaptureProgressed(CameraDevice camera, in createCaptureCallbackProxyWithExecutor() 635 public void onCaptureCompleted(CameraDevice camera, in createCaptureCallbackProxyWithExecutor() 649 public void onCaptureFailed(CameraDevice camera, in createCaptureCallbackProxyWithExecutor() 663 public void onCaptureSequenceCompleted(CameraDevice camera, in createCaptureCallbackProxyWithExecutor() 678 public void onCaptureSequenceAborted(CameraDevice camera, in createCaptureCallbackProxyWithExecutor() 693 public void onCaptureBufferLost(CameraDevice camera, in createCaptureCallbackProxyWithExecutor() [all …]
|
D | CameraDeviceImpl.java | 26 import android.hardware.camera2.CameraDevice; 71 public class CameraDeviceImpl extends CameraDevice 1251 public void onCaptureStarted(CameraDevice camera, in onCaptureStarted() 1260 public void onCapturePartial(CameraDevice camera, in onCapturePartial() 1268 public void onCaptureProgressed(CameraDevice camera, in onCaptureProgressed() 1275 public void onCaptureCompleted(CameraDevice camera, in onCaptureCompleted() 1283 public void onCaptureFailed(CameraDevice camera, in onCaptureFailed() 1291 public void onCaptureSequenceCompleted(CameraDevice camera, in onCaptureSequenceCompleted() 1299 public void onCaptureSequenceAborted(CameraDevice camera, in onCaptureSequenceAborted() 1308 public void onCaptureBufferLost(CameraDevice camera, in onCaptureBufferLost() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | SessionConfiguration.java | 26 import android.hardware.camera2.CameraDevice; 52 public static final int SESSION_REGULAR = CameraDevice.SESSION_OPERATION_MODE_NORMAL; 62 CameraDevice.SESSION_OPERATION_MODE_CONSTRAINED_HIGH_SPEED; 69 CameraDevice.SESSION_OPERATION_MODE_VENDOR_START;
|
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/ |
D | CameraOps.java | 24 import android.hardware.camera2.CameraDevice; 67 private CameraDevice mCameraDevice; 358 CameraDevice device = mCameraDevice; 456 private CameraDevice.StateCallback mCameraDeviceListener = new CameraDevice.StateCallback() { 459 public void onOpened(CameraDevice camera) { 465 public void onClosed(CameraDevice camera) { 470 public void onDisconnected(CameraDevice camera) { 477 public void onError(CameraDevice camera, int error) { 493 createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); 542 createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); [all …]
|
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/ |
D | CameraOps.java | 24 import android.hardware.camera2.CameraDevice; 61 private CameraDevice mCameraDevice; 393 CameraDevice device = mCameraDevice; in createCaptureRequest() 491 private CameraDevice.StateCallback mCameraDeviceListener = new CameraDevice.StateCallback() { 494 public void onOpened(CameraDevice camera) { 500 public void onClosed(CameraDevice camera) { 505 public void onDisconnected(CameraDevice camera) { 512 public void onError(CameraDevice camera, int error) { 529 createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in captureStillPicture() 578 createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in setUpCamera() [all …]
|
/frameworks/base/tests/Camera2Tests/CameraToo/src/com/example/android/camera2/cameratoo/ |
D | CameraTooActivity.java | 24 import android.hardware.camera2.CameraDevice; 78 CameraDevice mCamera; 308 final CameraDevice.StateCallback mCameraStateCallback = 309 new CameraDevice.StateCallback() { 311 public void onOpened(CameraDevice camera) { 327 public void onDisconnected(CameraDevice camera) { 332 public void onError(CameraDevice camera, int error) {
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | AndroidCamera2AgentImpl.java | 29 import android.hardware.camera2.CameraDevice; 186 private CameraDevice mCamera; 314 CameraDevice.TEMPLATE_PREVIEW, mPreviewSurface), in handleMessage() 449 trigger.createRequest(mCamera, CameraDevice.TEMPLATE_PREVIEW, in handleMessage() 478 cancel.createRequest(mCamera, CameraDevice.TEMPLATE_PREVIEW, in handleMessage() 570 CameraDevice.TEMPLATE_STILL_CAPTURE, in handleMessage() 628 expose.createRequest(mCamera, CameraDevice.TEMPLATE_PREVIEW, in handleMessage() 672 return new AndroidCamera2Settings(mCamera, CameraDevice.TEMPLATE_PREVIEW, in buildSettings() 701 CameraDevice.TEMPLATE_PREVIEW, mPreviewSurface), in applyToRequest() 776 private CameraDevice.StateCallback mCameraDeviceStateCallback = [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | Camera2Focuser.java | 26 import android.hardware.camera2.CameraDevice; 56 private final CameraDevice mCamera; 96 public Camera2Focuser(CameraDevice camera, CameraCaptureSession session, Surface requestSurface, in Camera2Focuser() 302 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in createRequestBuilder()
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | LegacyMetadataMapper.java | 26 import android.hardware.camera2.CameraDevice; 1218 CameraDevice.TEMPLATE_PREVIEW, 1219 CameraDevice.TEMPLATE_STILL_CAPTURE, 1220 CameraDevice.TEMPLATE_RECORD, 1297 case CameraDevice.TEMPLATE_PREVIEW: in createRequestTemplate() 1300 case CameraDevice.TEMPLATE_STILL_CAPTURE: in createRequestTemplate() 1303 case CameraDevice.TEMPLATE_RECORD: in createRequestTemplate() 1333 if (templateId == CameraDevice.TEMPLATE_RECORD || in createRequestTemplate() 1334 templateId == CameraDevice.TEMPLATE_VIDEO_SNAPSHOT) { in createRequestTemplate() 1339 } else if (templateId == CameraDevice.TEMPLATE_PREVIEW || in createRequestTemplate() [all …]
|
/frameworks/ex/camera2/utils/src/com/android/ex/camera2/utils/ |
D | Camera2RequestSettingsSet.java | 20 import android.hardware.camera2.CameraDevice; 228 public CaptureRequest createRequest(CameraDevice camera, int template, Surface... targets) in createRequest()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | Camera2Source.java | 24 import android.hardware.camera2.CameraDevice; 60 private CameraDevice mCamera; 195 mCaptureRequest = mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in onOpen()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
D | Camera2SwitchPreviewTest.java | 31 import android.hardware.camera2.CameraDevice; 300 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in stillCapturePreviewPreparer() 302 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in stillCapturePreviewPreparer() 386 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in basicRecordingPreviewTestByCamera() 388 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_RECORD); in basicRecordingPreviewTestByCamera()
|
D | Camera2StillCaptureTest.java | 29 import android.hardware.camera2.CameraDevice; 210 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in takePictureTestByCamera() 212 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in takePictureTestByCamera() 393 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in fullRawCaptureTestByCamera() 395 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in fullRawCaptureTestByCamera()
|
D | Camera2CaptureRequestTest.java | 23 import android.hardware.camera2.CameraDevice; 165 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in aeAutoModeTestLock() 266 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in aeManualControlTest()
|
D | Camera2RecordingTest.java | 29 import android.hardware.camera2.CameraDevice; 325 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_RECORD); in startSlowMotionRecording() 333 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_RECORD); in startSlowMotionRecording() 340 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_RECORD); in startSlowMotionRecording() 655 CameraDevice.TEMPLATE_RECORD : in videoSnapshotTestByCamera() 656 CameraDevice.TEMPLATE_VIDEO_SNAPSHOT); in videoSnapshotTestByCamera() 878 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_RECORD); in startRecording()
|