/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/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/impl/ |
D | CameraConstrainedHighSpeedCaptureSessionImpl.java | 25 import android.hardware.camera2.CaptureRequest; 79 public List<CaptureRequest> createHighSpeedRequestList(CaptureRequest request) in createHighSpeedRequestList() 85 Range<Integer> fpsRange = request.get(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE); in createHighSpeedRequestList() 95 List<CaptureRequest> requestList = new ArrayList<CaptureRequest>(); in createHighSpeedRequestList() 102 CaptureRequest.Builder singleTargetRequestBuilder = new CaptureRequest.Builder( in createHighSpeedRequestList() 113 singleTargetRequestBuilder.set(CaptureRequest.CONTROL_CAPTURE_INTENT, in createHighSpeedRequestList() 114 CaptureRequest.CONTROL_CAPTURE_INTENT_PREVIEW); in createHighSpeedRequestList() 117 singleTargetRequestBuilder.set(CaptureRequest.CONTROL_CAPTURE_INTENT, in createHighSpeedRequestList() 118 CaptureRequest.CONTROL_CAPTURE_INTENT_VIDEO_RECORD); in createHighSpeedRequestList() 123 CaptureRequest.Builder doubleTargetRequestBuilder = null; in createHighSpeedRequestList() [all …]
|
D | CaptureCallback.java | 22 import android.hardware.camera2.CaptureRequest; 66 CaptureRequest request, long timestamp, long frameNumber); in onCaptureStarted() 75 CaptureRequest request, CaptureResult result); in onCapturePartial() 83 CaptureRequest request, CaptureResult partialResult); in onCaptureProgressed() 90 CaptureRequest request, TotalCaptureResult result); in onCaptureCompleted() 98 CaptureRequest request, CaptureFailure failure); in onCaptureFailed() 123 CaptureRequest request, Surface target, long frameNumber); in onCaptureBufferLost()
|
D | FrameNumberTracker.java | 20 import android.hardware.camera2.CaptureRequest; 38 private long[] mCompletedFrameNumber = new long[CaptureRequest.REQUEST_TYPE_COUNT]; 42 new LinkedList[CaptureRequest.REQUEST_TYPE_COUNT]; 46 new LinkedList[CaptureRequest.REQUEST_TYPE_COUNT]; 54 for (int i = 0; i < CaptureRequest.REQUEST_TYPE_COUNT; i++) { in FrameNumberTracker() 79 for (int i = 1; i < CaptureRequest.REQUEST_TYPE_COUNT; i++) { in update() 80 int otherType = (requestType + i) % CaptureRequest.REQUEST_TYPE_COUNT; in update() 167 return mCompletedFrameNumber[CaptureRequest.REQUEST_TYPE_REGULAR]; in getCompletedFrameNumber() 171 return mCompletedFrameNumber[CaptureRequest.REQUEST_TYPE_REPROCESS]; in getCompletedReprocessFrameNumber() 175 return mCompletedFrameNumber[CaptureRequest.REQUEST_TYPE_ZSL_STILL]; in getCompletedZslStillFrameNumber() [all …]
|
D | CaptureCallbackHolder.java | 20 import android.hardware.camera2.CaptureRequest; 32 private final List<CaptureRequest> mRequestList; 44 CaptureCallbackHolder(CaptureCallback callback, List<CaptureRequest> requestList, in CaptureCallbackHolder() 52 mRequestList = new ArrayList<CaptureRequest>(requestList); in CaptureCallbackHolder() 60 CaptureRequest request = requestList.get(i); in CaptureCallbackHolder() 84 public CaptureRequest getRequest(int subsequenceId) { in getRequest() 100 public CaptureRequest getRequest() { in getRequest()
|
D | CameraCaptureSessionImpl.java | 23 import android.hardware.camera2.CaptureRequest; 174 public int capture(CaptureRequest request, CaptureCallback callback, in capture() 194 public int captureSingleRequest(CaptureRequest request, Executor executor, in captureSingleRequest() 218 private void checkCaptureRequest(CaptureRequest request) { in checkCaptureRequest() 230 public int captureBurst(List<CaptureRequest> requests, CaptureCallback callback, in captureBurst() 240 CaptureRequest[] requestArray = requests.toArray(new CaptureRequest[0]); in captureBurst() 251 public int captureBurstRequests(List<CaptureRequest> requests, Executor executor, in captureBurstRequests() 266 CaptureRequest[] requestArray = requests.toArray(new CaptureRequest[0]); in captureBurstRequests() 276 private void checkCaptureRequests(List<CaptureRequest> requests) { in checkCaptureRequests() 283 for (CaptureRequest request : requests) { in checkCaptureRequests() [all …]
|
D | RequestLastFrameNumbersHolder.java | 20 import android.hardware.camera2.CaptureRequest; 50 public RequestLastFrameNumbersHolder(List<CaptureRequest> requestList, SubmitInfo requestInfo) { in RequestLastFrameNumbersHolder() 65 CaptureRequest request = requestList.get(i); in RequestLastFrameNumbersHolder() 67 if (requestType == CaptureRequest.REQUEST_TYPE_REPROCESS in RequestLastFrameNumbersHolder() 71 } else if (requestType == CaptureRequest.REQUEST_TYPE_ZSL_STILL in RequestLastFrameNumbersHolder() 75 } else if (requestType == CaptureRequest.REQUEST_TYPE_REGULAR in RequestLastFrameNumbersHolder() 123 if (repeatingRequestTypes[i] == CaptureRequest.REQUEST_TYPE_ZSL_STILL in RequestLastFrameNumbersHolder() 127 } else if (repeatingRequestTypes[i] == CaptureRequest.REQUEST_TYPE_REGULAR in RequestLastFrameNumbersHolder()
|
/frameworks/base/core/java/android/hardware/camera2/ |
D | CameraCaptureSession.java | 356 public abstract int capture(@NonNull CaptureRequest request, in capture() 398 public int captureSingleRequest(@NonNull CaptureRequest request, in captureSingleRequest() 462 public abstract int captureBurst(@NonNull List<CaptureRequest> requests, in captureBurst() 507 public int captureBurstRequests(@NonNull List<CaptureRequest> requests, in captureBurstRequests() 576 public abstract int setRepeatingRequest(@NonNull CaptureRequest request, in setRepeatingRequest() 613 public int setSingleRepeatingRequest(@NonNull CaptureRequest request, in setSingleRepeatingRequest() 687 public abstract int setRepeatingBurst(@NonNull List<CaptureRequest> requests, in setRepeatingBurst() 726 public int setRepeatingBurstRequests(@NonNull List<CaptureRequest> requests, in setRepeatingBurstRequests() 1179 @NonNull CaptureRequest request, long timestamp, long frameNumber) { in onCaptureStarted() 1209 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; 816 CaptureRequest.Key<?> defaultAvailableKeys[] = new CaptureRequest.Key<?>[] { in mapRequest() 817 CaptureRequest.COLOR_CORRECTION_ABERRATION_MODE, in mapRequest() 818 CaptureRequest.CONTROL_AE_ANTIBANDING_MODE, in mapRequest() 819 CaptureRequest.CONTROL_AE_EXPOSURE_COMPENSATION, in mapRequest() 820 CaptureRequest.CONTROL_AE_LOCK, in mapRequest() 821 CaptureRequest.CONTROL_AE_MODE, in mapRequest() 822 CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE, in mapRequest() 823 CaptureRequest.CONTROL_AF_MODE, in mapRequest() 824 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), in convertResultMetadata() 123 request.get(CaptureRequest.CONTROL_ZOOM_RATIO), in convertResultMetadata() 132 request.get(CaptureRequest.COLOR_CORRECTION_ABERRATION_MODE)); in convertResultMetadata() 159 CaptureRequest.CONTROL_CAPTURE_INTENT, in convertResultMetadata() 160 /*defaultValue*/CaptureRequest.CONTROL_CAPTURE_INTENT_PREVIEW); in convertResultMetadata() 171 int controlMode = ParamsUtils.getOrDefault(request, CaptureRequest.CONTROL_MODE, in convertResultMetadata() 266 result.set(JPEG_GPS_LOCATION, request.get(CaptureRequest.JPEG_GPS_LOCATION)); in convertResultMetadata() 269 result.set(JPEG_ORIENTATION, request.get(CaptureRequest.JPEG_ORIENTATION)); in convertResultMetadata() [all …]
|
/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 …]
|
/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() 336 CaptureRequest.Builder builder = createDefaultBuilder(/* needStream */false); in testSubmitBadRequest() 337 CaptureRequest request1 = builder.build(); in testSubmitBadRequest() 348 CaptureRequest request2 = builder.build(); in testSubmitBadRequest() 362 CaptureRequest.Builder builder = createDefaultBuilder(/* needStream */true); in testSubmitGoodRequest() 363 CaptureRequest request = builder.build(); in testSubmitGoodRequest() 376 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()
|