/frameworks/ex/camera2/utils/tests/src/com/android/ex/camera2/utils/ |
D | Camera2UtilsTest.java | 29 import android.hardware.camera2.CaptureRequest; 30 import android.hardware.camera2.CaptureRequest.Key; 107 requestSettingsSetAndForget(setUp, CaptureRequest.CONTROL_AE_LOCK, false); in requestSettingsSet() 108 requestSettingsSetAndForget(setUp, CaptureRequest.CONTROL_AE_LOCK, true); in requestSettingsSet() 110 requestSettingsSetAndForget(setUp, CaptureRequest.CONTROL_AE_MODE, 1); in requestSettingsSet() 111 requestSettingsSetAndForget(setUp, CaptureRequest.CONTROL_AE_MODE, -1); in requestSettingsSet() 112 requestSettingsSetAndForget(setUp, CaptureRequest.CONTROL_AE_MODE, 0); in requestSettingsSet() 114 requestSettingsSetAndForget(setUp, CaptureRequest.SENSOR_TEST_PATTERN_DATA, new int[] {1}); in requestSettingsSet() 115 requestSettingsSetAndForget(setUp, CaptureRequest.SENSOR_TEST_PATTERN_DATA, in requestSettingsSet() 122 requestSettingsSetAndForget(setUp, CaptureRequest.SENSOR_TEST_PATTERN_DATA, new int[] {1}); in requestSettingsSetNullValue() [all …]
|
/frameworks/ex/camera2/public/src/com/android/ex/camera2/pos/ |
D | AutoFocusStateMachine.java | 20 import android.hardware.camera2.CaptureRequest; 217 public synchronized void lockAutoFocus(CaptureRequest.Builder repeatingBuilder, in lockAutoFocus() 218 CaptureRequest.Builder requestBuilder) { in lockAutoFocus() 228 mCurrentAfTrigger = CaptureRequest.CONTROL_AF_TRIGGER_START; in lockAutoFocus() 230 repeatingBuilder.set(CaptureRequest.CONTROL_AF_MODE, mCurrentAfMode); in lockAutoFocus() 231 requestBuilder.set(CaptureRequest.CONTROL_AF_MODE, mCurrentAfMode); in lockAutoFocus() 233 repeatingBuilder.set(CaptureRequest.CONTROL_AF_TRIGGER, in lockAutoFocus() 234 CaptureRequest.CONTROL_AF_TRIGGER_IDLE); in lockAutoFocus() 235 requestBuilder.set(CaptureRequest.CONTROL_AF_TRIGGER, in lockAutoFocus() 236 CaptureRequest.CONTROL_AF_TRIGGER_START); in lockAutoFocus() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
D | CameraConstrainedHighSpeedCaptureSessionImpl.java | 23 import android.hardware.camera2.CaptureRequest; 77 public List<CaptureRequest> createHighSpeedRequestList(CaptureRequest request) in createHighSpeedRequestList() 83 Range<Integer> fpsRange = request.get(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE); in createHighSpeedRequestList() 93 List<CaptureRequest> requestList = new ArrayList<CaptureRequest>(); in createHighSpeedRequestList() 100 CaptureRequest.Builder singleTargetRequestBuilder = new CaptureRequest.Builder( in createHighSpeedRequestList() 111 singleTargetRequestBuilder.set(CaptureRequest.CONTROL_CAPTURE_INTENT, in createHighSpeedRequestList() 112 CaptureRequest.CONTROL_CAPTURE_INTENT_PREVIEW); in createHighSpeedRequestList() 115 singleTargetRequestBuilder.set(CaptureRequest.CONTROL_CAPTURE_INTENT, in createHighSpeedRequestList() 116 CaptureRequest.CONTROL_CAPTURE_INTENT_VIDEO_RECORD); in createHighSpeedRequestList() 121 CaptureRequest.Builder doubleTargetRequestBuilder = null; in createHighSpeedRequestList() [all …]
|
D | CameraCaptureSessionImpl.java | 21 import android.hardware.camera2.CaptureRequest; 159 public int capture(CaptureRequest request, CaptureCallback callback, in capture() 179 public int captureSingleRequest(CaptureRequest request, Executor executor, in captureSingleRequest() 203 private void checkCaptureRequest(CaptureRequest request) { in checkCaptureRequest() 215 public int captureBurst(List<CaptureRequest> requests, CaptureCallback callback, in captureBurst() 225 CaptureRequest[] requestArray = requests.toArray(new CaptureRequest[0]); in captureBurst() 236 public int captureBurstRequests(List<CaptureRequest> requests, Executor executor, in captureBurstRequests() 251 CaptureRequest[] requestArray = requests.toArray(new CaptureRequest[0]); in captureBurstRequests() 261 private void checkCaptureRequests(List<CaptureRequest> requests) { in checkCaptureRequests() 268 for (CaptureRequest request : requests) { in checkCaptureRequests() [all …]
|
D | CameraDeviceImpl.java | 28 import android.hardware.camera2.CaptureRequest; 397 List<OutputConfiguration> outputs, int operatingMode, CaptureRequest sessionParams) in configureStreamsChecked() 637 int operatingMode, CaptureRequest sessionParams) throws CameraAccessException { in createCaptureSessionInternal() 729 Boolean enableZsl = request.get(CaptureRequest.CONTROL_ENABLE_ZSL); in overrideEnableZsl() 735 request.set(CaptureRequest.CONTROL_ENABLE_ZSL, newValue); in overrideEnableZsl() 739 public CaptureRequest.Builder createCaptureRequest(int templateType, in createCaptureRequest() 762 CaptureRequest.Builder builder = new CaptureRequest.Builder( in createCaptureRequest() 771 public CaptureRequest.Builder createCaptureRequest(int templateType) in createCaptureRequest() 787 CaptureRequest.Builder builder = new CaptureRequest.Builder( in createCaptureRequest() 796 public CaptureRequest.Builder createReprocessCaptureRequest(TotalCaptureResult inputResult) in createReprocessCaptureRequest() [all …]
|
/frameworks/av/camera/include/camera/camera2/ |
D | CaptureRequest.h | 32 struct CaptureRequest : public Parcelable { struct 38 CaptureRequest(); 39 CaptureRequest(const CaptureRequest& rhs); 40 CaptureRequest(CaptureRequest&& rhs) noexcept; 41 virtual ~CaptureRequest(); 78 struct CaptureRequest : struct 79 public RefBase, public hardware::camera2::CaptureRequest {
|
/frameworks/base/core/java/android/hardware/camera2/ |
D | CameraCaptureSession.java | 353 public abstract int capture(@NonNull CaptureRequest request, in capture() 395 public int captureSingleRequest(@NonNull CaptureRequest request, in captureSingleRequest() 459 public abstract int captureBurst(@NonNull List<CaptureRequest> requests, in captureBurst() 504 public int captureBurstRequests(@NonNull List<CaptureRequest> requests, in captureBurstRequests() 573 public abstract int setRepeatingRequest(@NonNull CaptureRequest request, in setRepeatingRequest() 610 public int setSingleRepeatingRequest(@NonNull CaptureRequest request, in setSingleRepeatingRequest() 684 public abstract int setRepeatingBurst(@NonNull List<CaptureRequest> requests, in setRepeatingBurst() 723 public int setRepeatingBurstRequests(@NonNull List<CaptureRequest> requests, in setRepeatingBurstRequests() 1085 @NonNull CaptureRequest request, long timestamp, long frameNumber) { in onCaptureStarted() 1115 CaptureRequest request, CaptureResult result) { in onCapturePartial() [all …]
|
D | CaptureRequest.java | 82 public final class CaptureRequest extends CameraMetadata<CaptureRequest.Key<?>> class 279 Boolean enableZsl = mLogicalCameraSettings.get(CaptureRequest.CONTROL_ENABLE_ZSL); in getRequestType() 283 CaptureRequest.CONTROL_CAPTURE_INTENT); in getRequestType() 308 private CaptureRequest() { in CaptureRequest() method in CaptureRequest 319 private CaptureRequest(CaptureRequest source) { in CaptureRequest() method in CaptureRequest 360 private CaptureRequest(CameraMetadataNative settings, boolean isReprocess, in CaptureRequest() method in CaptureRequest 532 return other instanceof CaptureRequest in equals() 533 && equals((CaptureRequest)other); in equals() 536 private boolean equals(CaptureRequest other) { in equals() 552 public static final @android.annotation.NonNull Parcelable.Creator<CaptureRequest> CREATOR = [all …]
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | LegacyMetadataMapper.java | 28 import android.hardware.camera2.CaptureRequest; 815 CaptureRequest.Key<?> defaultAvailableKeys[] = new CaptureRequest.Key<?>[] { in mapRequest() 816 CaptureRequest.COLOR_CORRECTION_ABERRATION_MODE, in mapRequest() 817 CaptureRequest.CONTROL_AE_ANTIBANDING_MODE, in mapRequest() 818 CaptureRequest.CONTROL_AE_EXPOSURE_COMPENSATION, in mapRequest() 819 CaptureRequest.CONTROL_AE_LOCK, in mapRequest() 820 CaptureRequest.CONTROL_AE_MODE, in mapRequest() 821 CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE, in mapRequest() 822 CaptureRequest.CONTROL_AF_MODE, in mapRequest() 823 CaptureRequest.CONTROL_AF_TRIGGER, in mapRequest() [all …]
|
D | RequestHolder.java | 19 import android.hardware.camera2.CaptureRequest; 36 private final CaptureRequest mRequest; 57 private final CaptureRequest mRequest; 72 public Builder(int requestId, int subsequenceId, CaptureRequest request, in Builder() 116 private int numJpegTargets(CaptureRequest request) { in numJpegTargets() 133 private int numPreviewTargets(CaptureRequest request) { in numPreviewTargets() 160 private RequestHolder(int requestId, int subsequenceId, CaptureRequest request, in RequestHolder() 204 public CaptureRequest getRequest() { in getRequest()
|
D | LegacyResultMapper.java | 23 import android.hardware.camera2.CaptureRequest; 113 CaptureRequest request = legacyRequest.captureRequest; in convertResultMetadata() 122 request.get(CaptureRequest.SCALER_CROP_REGION), previewSize, params); in convertResultMetadata() 130 request.get(CaptureRequest.COLOR_CORRECTION_ABERRATION_MODE)); in convertResultMetadata() 157 CaptureRequest.CONTROL_CAPTURE_INTENT, in convertResultMetadata() 158 /*defaultValue*/CaptureRequest.CONTROL_CAPTURE_INTENT_PREVIEW); in convertResultMetadata() 169 int controlMode = ParamsUtils.getOrDefault(request, CaptureRequest.CONTROL_MODE, in convertResultMetadata() 264 result.set(JPEG_GPS_LOCATION, request.get(CaptureRequest.JPEG_GPS_LOCATION)); in convertResultMetadata() 267 result.set(JPEG_ORIENTATION, request.get(CaptureRequest.JPEG_ORIENTATION)); in convertResultMetadata() 287 result.set(NOISE_REDUCTION_MODE, request.get(CaptureRequest.NOISE_REDUCTION_MODE)); in convertResultMetadata() [all …]
|
D | LegacyRequest.java | 21 import android.hardware.camera2.CaptureRequest; 33 public final CaptureRequest captureRequest; 47 public LegacyRequest(CameraCharacteristics characteristics, CaptureRequest captureRequest, in LegacyRequest()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
D | Camera2StillCaptureTest.java | 33 import android.hardware.camera2.CaptureRequest; 209 CaptureRequest.Builder previewRequest = in takePictureTestByCamera() 211 CaptureRequest.Builder stillRequest = in takePictureTestByCamera() 218 previewRequest.set(CaptureRequest.CONTROL_AE_MODE, in takePictureTestByCamera() 219 CaptureRequest.CONTROL_AE_MODE_ON_AUTO_FLASH); in takePictureTestByCamera() 220 stillRequest.set(CaptureRequest.CONTROL_AE_MODE, in takePictureTestByCamera() 221 CaptureRequest.CONTROL_AE_MODE_ON_AUTO_FLASH); in takePictureTestByCamera() 235 stillRequest.set(CaptureRequest.CONTROL_AF_REGIONS, afRegions); in takePictureTestByCamera() 250 int currentAfMode = CaptureRequest.CONTROL_AF_MODE_OFF; in takePictureTestByCamera() 254 previewRequest.set(CaptureRequest.CONTROL_AF_MODE, currentAfMode); in takePictureTestByCamera() [all …]
|
D | Camera2CaptureRequestTest.java | 29 import android.hardware.camera2.CaptureRequest; 165 CaptureRequest.Builder requestBuilder = in aeAutoModeTestLock() 168 requestBuilder.set(CaptureRequest.CONTROL_AE_LOCK, false); in aeAutoModeTestLock() 170 requestBuilder.set(CaptureRequest.CONTROL_AE_MODE, mode); in aeAutoModeTestLock() 186 CaptureRequest.Builder requestBuilder, int aeMode, int numCapturesDuringLock) in autoAeMultipleCapturesThenTestLock() 204 requestBuilder.set(CaptureRequest.CONTROL_AE_LOCK, false); in autoAeMultipleCapturesThenTestLock() 208 CaptureRequest request = requestBuilder.build(); in autoAeMultipleCapturesThenTestLock() 220 requestBuilder.set(CaptureRequest.CONTROL_AE_LOCK, true); in autoAeMultipleCapturesThenTestLock() 266 CaptureRequest.Builder requestBuilder = in aeManualControlTest() 269 requestBuilder.set(CaptureRequest.CONTROL_AE_MODE, CONTROL_AE_MODE_OFF); in aeManualControlTest() [all …]
|
D | Camera2RecordingTest.java | 36 import android.hardware.camera2.CaptureRequest; 326 List<CaptureRequest> slowMoRequests = null; in startSlowMotionRecording() 328 CaptureRequest.Builder requestBuilder = in startSlowMotionRecording() 330 requestBuilder.set(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE, fpsRange); in startSlowMotionRecording() 336 CaptureRequest.Builder recordingRequestBuilder = in startSlowMotionRecording() 338 recordingRequestBuilder.set(CaptureRequest.CONTROL_MODE, in startSlowMotionRecording() 339 CaptureRequest.CONTROL_MODE_USE_SCENE_MODE); in startSlowMotionRecording() 340 recordingRequestBuilder.set(CaptureRequest.CONTROL_SCENE_MODE, in startSlowMotionRecording() 341 CaptureRequest.CONTROL_SCENE_MODE_HIGH_SPEED_VIDEO); in startSlowMotionRecording() 343 CaptureRequest.Builder recordingOnlyBuilder = in startSlowMotionRecording() [all …]
|
D | Camera2ReprocessCaptureTest.java | 27 import android.hardware.camera2.CaptureRequest; 520 ArrayList<CaptureRequest> reprocessRequests = in testReprocessAbort() 529 CaptureRequest.Builder builder = mCamera.createReprocessCaptureRequest(result); in testReprocessAbort() 540 for (CaptureRequest request : reprocessRequests) { in testReprocessAbort() 558 ArrayList<CaptureRequest> failedRequests = new ArrayList<>(); in testReprocessAbort() 565 CaptureRequest request = reprocessRequests.get(i); in testReprocessAbort() 607 ArrayList<CaptureRequest> reprocessRequests = new ArrayList<>(NUM_REPROCESS_CAPTURES); in testReprocessTimestamps() 616 CaptureRequest.Builder builder = mCamera.createReprocessCaptureRequest(result); in testReprocessTimestamps() 687 ArrayList<CaptureRequest> reprocessRequests = new ArrayList<>(EXIF_TEST_DATA.length); in testReprocessJpegExif() 695 CaptureRequest.Builder builder = mCamera.createReprocessCaptureRequest(result); in testReprocessJpegExif() [all …]
|
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/ |
D | CameraOps.java | 26 import android.hardware.camera2.CaptureRequest; 98 CaptureRequest.Builder mHdrBuilder; 100 CaptureRequest mPreviewRequest; 357 public CaptureRequest.Builder createCaptureRequest(int template) throws CameraAccessException { 368 public void setRepeatingRequest(final CaptureRequest request, 386 public void setRepeatingBurst(final List<CaptureRequest> requests, 492 final CaptureRequest.Builder captureBuilder = 498 captureBuilder.set(CaptureRequest.JPEG_ORIENTATION, currentJpegRotation); 504 public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request, 521 private void setRequest(final CaptureRequest request, [all …]
|
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/ |
D | CameraOps.java | 26 import android.hardware.camera2.CaptureRequest; 92 CaptureRequest.Builder mHdrBuilder; 94 CaptureRequest mPreviewRequest; 392 public CaptureRequest.Builder createCaptureRequest(int template) throws CameraAccessException { in createCaptureRequest() 403 public void setRepeatingRequest(final CaptureRequest request, in setRepeatingRequest() 421 public void setRepeatingBurst(final List<CaptureRequest> requests, in setRepeatingBurst() 528 final CaptureRequest.Builder captureBuilder = in captureStillPicture() 534 captureBuilder.set(CaptureRequest.JPEG_ORIENTATION, currentJpegRotation); in captureStillPicture() 540 public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request, in captureStillPicture() 557 private void setRequest(final CaptureRequest request, in setRequest() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | Camera2Focuser.java | 27 import android.hardware.camera2.CaptureRequest; 65 private CaptureRequest.Builder mRepeatingBuilder; 218 CaptureRequest.Builder requestBuilder = createRequestBuilder(); in cancelAutoFocus() 236 return mRepeatingBuilder.get(CaptureRequest.CONTROL_AF_MODE); in getCurrentAfMode() 247 CaptureRequest.Builder requestBuilder = createRequestBuilder(); in startAutoFocusLocked() 270 CaptureRequest.Builder requestBuilder = createRequestBuilder(); in startAutoFocusFullActiveLocked() 272 if (mRepeatingBuilder.get(CaptureRequest.CONTROL_AF_TRIGGER) in startAutoFocusFullActiveLocked() 273 != CaptureRequest.CONTROL_AF_TRIGGER_IDLE) { in startAutoFocusFullActiveLocked() 276 if (requestBuilder.get(CaptureRequest.CONTROL_AF_TRIGGER) in startAutoFocusFullActiveLocked() 277 != CaptureRequest.CONTROL_AF_TRIGGER_START) { in startAutoFocusFullActiveLocked() [all …]
|
/frameworks/av/camera/camera2/ |
D | CaptureRequest.cpp | 34 CaptureRequest::CaptureRequest() = default; 35 CaptureRequest::~CaptureRequest() = default; 36 CaptureRequest::CaptureRequest(const CaptureRequest& rhs) = default; 37 CaptureRequest::CaptureRequest(CaptureRequest&& rhs) noexcept = default; 40 status_t CaptureRequest::readFromParcel(const android::Parcel* parcel) { in readFromParcel() 152 status_t CaptureRequest::writeToParcel(android::Parcel* parcel) const { in writeToParcel()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/ |
D | CameraDeviceBinderTest.java | 33 import android.hardware.camera2.CaptureRequest; 193 private CaptureRequest.Builder createDefaultBuilder(boolean needStream) throws Exception { in createDefaultBuilder() 200 CaptureRequest.Builder request = new CaptureRequest.Builder(metadata, /*reprocess*/false, in createDefaultBuilder() 212 …private SubmitInfo submitCameraRequest(CaptureRequest request, boolean streaming) throws Exception… in submitCameraRequest() 335 CaptureRequest.Builder builder = createDefaultBuilder(/* needStream */false); in testSubmitBadRequest() 336 CaptureRequest request1 = builder.build(); in testSubmitBadRequest() 347 CaptureRequest request2 = builder.build(); in testSubmitBadRequest() 361 CaptureRequest.Builder builder = createDefaultBuilder(/* needStream */true); in testSubmitGoodRequest() 362 CaptureRequest request = builder.build(); in testSubmitGoodRequest() 375 CaptureRequest.Builder builder = createDefaultBuilder(/* needStream */true); in testSubmitStreamingRequest() [all …]
|
/frameworks/ex/camera2/utils/src/com/android/ex/camera2/utils/ |
D | Camera2CaptureCallbackForwarder.java | 22 import android.hardware.camera2.CaptureRequest; 41 public void onCaptureCompleted(final CameraCaptureSession session, final CaptureRequest request, in onCaptureCompleted() 51 public void onCaptureFailed(final CameraCaptureSession session, final CaptureRequest request, in onCaptureFailed() 62 final CaptureRequest request, in onCaptureProgressed() 91 public void onCaptureStarted(final CameraCaptureSession session, final CaptureRequest request, in onCaptureStarted()
|
D | Camera2CaptureCallbackSplitter.java | 22 import android.hardware.camera2.CaptureRequest; 50 public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request, in onCaptureCompleted() 58 public void onCaptureFailed(CameraCaptureSession session, CaptureRequest request, in onCaptureFailed() 66 public void onCaptureProgressed(CameraCaptureSession session, CaptureRequest request, in onCaptureProgressed() 89 public void onCaptureStarted(CameraCaptureSession session, CaptureRequest request, in onCaptureStarted()
|
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/ |
D | BlockingCaptureCallback.java | 20 import android.hardware.camera2.CaptureRequest; 125 public void onCaptureStarted(CameraCaptureSession session, CaptureRequest request, in onCaptureStarted() 132 public void onCaptureProgressed(CameraCaptureSession session, CaptureRequest request, in onCaptureProgressed() 139 public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request, in onCaptureCompleted() 146 public void onCaptureFailed(CameraCaptureSession session, CaptureRequest request, in onCaptureFailed()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
D | Camera2SurfaceViewTestCase.java | 40 import android.hardware.camera2.CaptureRequest; 214 protected void startPreview(CaptureRequest.Builder request, Size previewSz, in startPreview() 232 protected void configurePreviewOutput(CaptureRequest.Builder request) in configurePreviewOutput() 248 protected CaptureRequest.Builder createRequestForPreview() throws CameraAccessException { in createRequestForPreview() 254 CaptureRequest.Builder requestBuilder = in createRequestForPreview() 282 protected void prepareStillCaptureAndStartPreview(CaptureRequest.Builder previewRequest, in prepareStillCaptureAndStartPreview() 283 CaptureRequest.Builder stillRequest, Size previewSz, Size stillSz, in prepareStillCaptureAndStartPreview() 301 protected void prepareStillCaptureAndStartPreview(CaptureRequest.Builder previewRequest, in prepareStillCaptureAndStartPreview() 302 CaptureRequest.Builder stillRequest, Size previewSz, Size stillSz, in prepareStillCaptureAndStartPreview() 323 protected void prepareRawCaptureAndStartPreview(CaptureRequest.Builder previewRequest, in prepareRawCaptureAndStartPreview() [all …]
|