/frameworks/ex/camera2/public/src/com/android/ex/camera2/pos/ |
D | AutoFocusStateMachine.java | 19 import android.hardware.camera2.CaptureResult.Key; 21 import android.hardware.camera2.CaptureResult; 44 void onAutoFocusSuccess(CaptureResult result, boolean locked); in onAutoFocusSuccess() 51 void onAutoFocusFail(CaptureResult result, boolean locked); in onAutoFocusFail() 59 void onAutoFocusScan(CaptureResult result); in onAutoFocusScan() 67 void onAutoFocusInactive(CaptureResult result); in onAutoFocusInactive() 102 public synchronized void onCaptureCompleted(CaptureResult result) { in onCaptureCompleted() 113 Key<Integer> keyAfState = CaptureResult.CONTROL_AF_STATE; in onCaptureCompleted() 120 Key<Integer> keyAfMode = CaptureResult.CONTROL_AF_MODE; in onCaptureCompleted() 127 Integer afState = result.get(CaptureResult.CONTROL_AF_STATE); in onCaptureCompleted() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/ |
D | TotalCaptureResult.java | 60 public final class TotalCaptureResult extends CaptureResult { 62 private final List<CaptureResult> mPartialResults; 65 private final HashMap<String, CaptureResult> mPhysicalCaptureResults; 74 CaptureResultExtras extras, List<CaptureResult> partials, int sessionId, in TotalCaptureResult() 86 mPhysicalCaptureResults = new HashMap<String, CaptureResult>(); in TotalCaptureResult() 88 CaptureResult physicalResult = new CaptureResult( in TotalCaptureResult() 106 mPhysicalCaptureResults = new HashMap<String, CaptureResult>(); in TotalCaptureResult() 122 public List<CaptureResult> getPartialResults() { in getPartialResults() 150 public Map<String, CaptureResult> getPhysicalCameraResults() { in getPhysicalCameraResults()
|
D | CameraMetadata.java | 165 type = CaptureResult.class; in getKeys() 216 } else if (k instanceof CaptureResult.Key<?>) { in getKeys() 217 keyName = ((CaptureResult.Key<?>) k).getName(); in getKeys() 218 vendorId = ((CaptureResult.Key<?>) k).getVendorId(); in getKeys() 256 } else if (key instanceof CaptureResult.Key) { in shouldKeyBeAdded() 257 nativeKey = ((CaptureResult.Key)key).getNativeKey(); in shouldKeyBeAdded()
|
/frameworks/av/camera/include/camera/ |
D | CaptureResult.h | 160 struct CaptureResult : public virtual LightRefBase<CaptureResult> { struct 165 CaptureResult(); argument 167 CaptureResult(const CaptureResult& otherResult); 169 CaptureResult(CaptureResult &&captureResult);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
D | Camera2CaptureRequestTest.java | 30 import android.hardware.camera2.CaptureResult; 199 CaptureResult[] resultsDuringLock = new CaptureResult[numCapturesDuringLock]; in autoAeMultipleCapturesThenTestLock() 238 resultsDuringLock[i], CaptureResult.CONTROL_AE_LOCK, true); in autoAeMultipleCapturesThenTestLock() 245 getValueNotNull(resultsDuringLock[0], CaptureResult.SENSOR_SENSITIVITY); in autoAeMultipleCapturesThenTestLock() 247 getValueNotNull(resultsDuringLock[0], CaptureResult.SENSOR_EXPOSURE_TIME); in autoAeMultipleCapturesThenTestLock() 250 resultsDuringLock[i], CaptureResult.SENSOR_EXPOSURE_TIME, expTimeLocked); in autoAeMultipleCapturesThenTestLock() 252 resultsDuringLock[i], CaptureResult.SENSOR_SENSITIVITY, sensitivityLocked); in autoAeMultipleCapturesThenTestLock() 288 CaptureResult result = listener.getCaptureResult(timeout); in aeManualControlTest() 289 long resultExpTime = getValueNotNull(result, CaptureResult.SENSOR_EXPOSURE_TIME); in aeManualControlTest() 290 int resultSensitivity = getValueNotNull(result, CaptureResult.SENSOR_SENSITIVITY); in aeManualControlTest() [all …]
|
D | Camera2StillCaptureTest.java | 34 import android.hardware.camera2.CaptureResult; 206 CaptureResult result; in takePictureTestByCamera() 269 waitForResultValue(resultListener, CaptureResult.CONTROL_AWB_STATE, in takePictureTestByCamera() 270 CaptureResult.CONTROL_AWB_STATE_CONVERGED, NUM_RESULTS_WAIT_TIMEOUT); in takePictureTestByCamera() 284 result.get(CaptureResult.CONTROL_AWB_MODE)); in takePictureTestByCamera() 287 getValueNotNull(result, CaptureResult.CONTROL_AWB_REGIONS); in takePictureTestByCamera() 314 waitForResultValue(resultListener, CaptureResult.CONTROL_AE_PRECAPTURE_TRIGGER, in takePictureTestByCamera() 315 CaptureResult.CONTROL_AE_PRECAPTURE_TRIGGER_CANCEL, in takePictureTestByCamera() 328 result.get(CaptureResult.CONTROL_AE_MODE)); in takePictureTestByCamera() 331 getValueNotNull(result, CaptureResult.CONTROL_AE_REGIONS); in takePictureTestByCamera() [all …]
|
/frameworks/av/camera/ |
D | CaptureResult.cpp | 122 CaptureResult::CaptureResult() : in CaptureResult() function in android::CaptureResult 126 CaptureResult::CaptureResult(CaptureResult &&otherResult) { in CaptureResult() function in android::CaptureResult 132 CaptureResult::CaptureResult(const CaptureResult &otherResult) { in CaptureResult() function in android::CaptureResult 138 status_t CaptureResult::readFromParcel(android::Parcel *parcel) { in readFromParcel() 198 status_t CaptureResult::writeToParcel(android::Parcel *parcel) const { in writeToParcel()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | Camera2Focuser.java | 28 import android.hardware.camera2.CaptureResult; 137 public synchronized void onAutoFocusSuccess(CaptureResult result, boolean locked) { in onAutoFocusSuccess() 147 public synchronized void onAutoFocusFail(CaptureResult result, boolean locked) { in onAutoFocusFail() 157 public synchronized void onAutoFocusScan(CaptureResult result) { in onAutoFocusScan() 163 public synchronized void onAutoFocusInactive(CaptureResult result) { in onAutoFocusInactive() 352 CaptureResult result) { in createCaptureListener() 355 if (result.get(CaptureResult.CONTROL_AF_STATE) != null && in createCaptureListener() 356 result.get(CaptureResult.CONTROL_AF_MODE) != null) { in createCaptureListener() 371 private void dispatchToFocuser(CaptureResult result) { in createCaptureListener()
|
D | CameraErrorCollector.java | 27 import android.hardware.camera2.CaptureResult; 694 public <T> T expectKeyValueNotNull(CaptureResult result, CaptureResult.Key<T> key) { in expectKeyValueNotNull() 706 public <T> T expectKeyValueNotNull(String msg, CaptureResult result, CaptureResult.Key<T> key) { in expectKeyValueNotNull() 746 CaptureResult result, CaptureResult.Key<T> key, T expected) { in expectKeyValueNotEquals() 767 public <T> void expectKeyValueEquals(CaptureResult result, CaptureResult.Key<T> key, in expectKeyValueEquals() 815 CaptureResult result, CaptureResult.Key<T> key, T expected) { in expectKeyValueGreaterOrEqual()
|
D | CameraTestUtils.java | 42 import android.hardware.camera2.CaptureResult; 438 public CaptureResult getCaptureResult(long timeout) { in getCaptureResult() 452 currentTs = result.get(CaptureResult.SENSOR_TIMESTAMP); in getCaptureResult() 487 public CaptureResult getCaptureResultForRequest(CaptureRequest myRequest, in getCaptureResultForRequest() 1554 public static <T> T getValueNotNull(CaptureResult result, CaptureResult.Key<T> key) { in getValueNotNull() 1850 public static void verifyJpegKeys(Image image, CaptureResult captureResult, Size expectedSize, in verifyJpegKeys() 1871 Size resultThumbnailSize = captureResult.get(CaptureResult.JPEG_THUMBNAIL_SIZE); in verifyJpegKeys() 1888 if (collector.expectKeyValueNotNull(captureResult, CaptureResult.JPEG_GPS_LOCATION) != in verifyJpegKeys() 1892 captureResult.get(CaptureResult.JPEG_GPS_LOCATION))); in verifyJpegKeys() 1896 captureResult.get(CaptureResult.JPEG_ORIENTATION)); in verifyJpegKeys() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | LegacyMetadataMapper.java | 29 import android.hardware.camera2.CaptureResult; 866 CaptureResult.Key<?> defaultAvailableKeys[] = new CaptureResult.Key<?>[] { in mapRequest() 867 CaptureResult.COLOR_CORRECTION_ABERRATION_MODE , in mapRequest() 868 CaptureResult.CONTROL_AE_ANTIBANDING_MODE , in mapRequest() 869 CaptureResult.CONTROL_AE_EXPOSURE_COMPENSATION , in mapRequest() 870 CaptureResult.CONTROL_AE_LOCK , in mapRequest() 871 CaptureResult.CONTROL_AE_MODE , in mapRequest() 872 CaptureResult.CONTROL_AF_MODE , in mapRequest() 873 CaptureResult.CONTROL_AF_STATE , in mapRequest() 874 CaptureResult.CONTROL_AWB_MODE , in mapRequest() [all …]
|
D | LegacyResultMapper.java | 24 import android.hardware.camera2.CaptureResult; 37 import static android.hardware.camera2.CaptureResult.*; 173 if (controlMode == CaptureResult.CONTROL_MODE_USE_SCENE_MODE) { in convertResultMetadata() 187 result.set(CaptureResult.CONTROL_SCENE_MODE, mode); in convertResultMetadata() 193 result.set(CaptureResult.CONTROL_SCENE_MODE, CONTROL_SCENE_MODE_DISABLED); in convertResultMetadata() 204 result.set(CaptureResult.CONTROL_EFFECT_MODE, mode); in convertResultMetadata() 208 result.set(CaptureResult.CONTROL_EFFECT_MODE, CONTROL_EFFECT_MODE_OFF); in convertResultMetadata() 234 result.set(CaptureResult.LENS_FOCUS_DISTANCE, 0.0f); in convertResultMetadata() 239 result.set(CaptureResult.LENS_FOCAL_LENGTH, params.getFocalLength()); in convertResultMetadata() 355 m.set(CaptureResult.CONTROL_AF_MODE, convertLegacyAfMode(p.getFocusMode())); in mapAf()
|
D | LegacyFaceDetectMapper.java | 26 import android.hardware.camera2.CaptureResult; 257 result.set(CaptureResult.STATISTICS_FACES, convertedFaces.toArray(new Face[0])); in mapResultFaces() 258 result.set(CaptureResult.STATISTICS_FACE_DETECT_MODE, fdMode); in mapResultFaces() 262 result.set(CaptureResult.CONTROL_SCENE_MODE, CONTROL_SCENE_MODE_FACE_PRIORITY); in mapResultFaces()
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
D | CameraMetadataNative.java | 26 import android.hardware.camera2.CaptureResult; 219 if (o instanceof CaptureResult.Key) { in equals() 220 lhs = ((CaptureResult.Key)o).getNativeKey(); in equals() 416 public <T> T get(CaptureResult.Key<T> key) { in get() 494 public <T> void set(CaptureResult.Key<T> key, T value) { in set() 542 private <T> T getBase(CaptureResult.Key<T> key) { in getBase() 592 CaptureResult.STATISTICS_FACES.getNativeKey(), new GetCommand() { in GetCommand() 600 CaptureResult.STATISTICS_FACE_RECTANGLES.getNativeKey(), new GetCommand() { in GetCommand() 693 CaptureResult.JPEG_GPS_LOCATION.getNativeKey(), new GetCommand() { in GetCommand() 701 CaptureResult.STATISTICS_LENS_SHADING_CORRECTION_MAP.getNativeKey(), in CaptureResult.STATISTICS_LENS_SHADING_CORRECTION_MAP.getNativeKey() [all …]
|
D | CaptureCallback.java | 23 import android.hardware.camera2.CaptureResult; 75 CaptureRequest request, CaptureResult result); in onCapturePartial() 83 CaptureRequest request, CaptureResult partialResult); in onCaptureProgressed()
|
D | FrameNumberTracker.java | 21 import android.hardware.camera2.CaptureResult; 51 private final HashMap<Long, List<CaptureResult>> mPartialResults = new HashMap<>(); 127 public void updateTracker(long frameNumber, CaptureResult result, boolean partial, in updateTracker() 143 List<CaptureResult> partials = mPartialResults.get(frameNumber); in updateTracker() 162 public List<CaptureResult> popPartialResults(long frameNumber) { in popPartialResults()
|
D | CameraOfflineSessionImpl.java | 28 import android.hardware.camera2.CaptureResult; 322 CaptureResult finalResult; in onResultReceived() 335 final CaptureResult resultAsCapture = in onResultReceived() 336 new CaptureResult(result, request, resultExtras); in onResultReceived() 350 final CaptureResult resultInBatch = new CaptureResult( in onResultReceived() 366 List<CaptureResult> partialResults = in onResultReceived() 370 result.get(CaptureResult.SENSOR_TIMESTAMP); in onResultReceived() 388 resultCopy.set(CaptureResult.SENSOR_TIMESTAMP, in onResultReceived()
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | AndroidCamera2AgentImpl.java | 33 import android.hardware.camera2.CaptureResult; 215 private int mCurrentAeState = CaptureResult.CONTROL_AE_STATE_INACTIVE; 409 CaptureResult result) { in handleMessage() 420 private void checkAfState(CaptureResult result) { in handleMessage() 421 if (result.get(CaptureResult.CONTROL_AF_STATE) != null && in handleMessage() 552 (mCurrentAeState == CaptureResult.CONTROL_AE_STATE_CONVERGED && in handleMessage() 588 CaptureResult result) { in handleMessage() 599 private void checkAeState(CaptureResult result) { in handleMessage() 600 if (result.get(CaptureResult.CONTROL_AE_STATE) != null && in handleMessage() 769 mCurrentAeState = CaptureResult.CONTROL_AE_STATE_INACTIVE; in changeState() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | CameraMetadataTest.java | 33 import android.hardware.camera2.CaptureResult; 1032 mMetadata.set(CaptureResult.STATISTICS_FACE_DETECT_MODE, in testReadWriteOverride() 1033 CaptureResult.STATISTICS_FACE_DETECT_MODE_FULL); in testReadWriteOverride() 1034 mMetadata.set(CaptureResult.STATISTICS_FACE_IDS, expectedFaceIds); in testReadWriteOverride() 1035 mMetadata.set(CaptureResult.STATISTICS_FACE_SCORES, expectedFaceScores); in testReadWriteOverride() 1036 mMetadata.set(CaptureResult.STATISTICS_FACE_RECTANGLES, expectedRects); in testReadWriteOverride() 1037 mMetadata.set(CaptureResult.STATISTICS_FACE_LANDMARKS, expectedFaceLM); in testReadWriteOverride() 1038 Face[] resultFaces = mMetadata.get(CaptureResult.STATISTICS_FACES); in testReadWriteOverride() 1052 mMetadata.set(CaptureResult.STATISTICS_FACE_DETECT_MODE, in testReadWriteOverride() 1053 CaptureResult.STATISTICS_FACE_DETECT_MODE_SIMPLE); in testReadWriteOverride() [all …]
|
/frameworks/av/services/camera/libcameraservice/common/ |
D | FrameProcessorBase.h | 43 virtual void onResultAvailable(const CaptureResult &result) = 0; 82 virtual bool processSingleFrame(CaptureResult &result, 85 status_t processListeners(const CaptureResult &result,
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
D | Camera2SurfaceViewTestCase.java | 41 import android.hardware.camera2.CaptureResult; 347 CaptureResult.Key<T> resultKey, in waitForResultValue() 371 CaptureResult.Key<T> resultKey, in waitForAnyResultValue() 380 CaptureResult result; in waitForAnyResultValue() 479 protected static CaptureResult waitForNumResults(SimpleCaptureCallback resultListener, in waitForNumResults() 486 CaptureResult result = null; in waitForNumResults() 535 expectedAeStates.add(new Integer(CaptureResult.CONTROL_AE_STATE_CONVERGED)); in waitForAeStable() 536 expectedAeStates.add(new Integer(CaptureResult.CONTROL_AE_STATE_FLASH_REQUIRED)); in waitForAeStable() 537 waitForAnyResultValue(resultListener, CaptureResult.CONTROL_AE_STATE, expectedAeStates, in waitForAeStable() 566 expectedAeStates.add(new Integer(CaptureResult.CONTROL_AE_STATE_LOCKED)); in waitForAeLocked() [all …]
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | FrameProcessor.h | 57 virtual bool processSingleFrame(CaptureResult &frame, 64 status_t process3aState(const CaptureResult &frame,
|
/frameworks/ex/camera2/utils/src/com/android/ex/camera2/utils/ |
D | Camera2CaptureCallbackForwarder.java | 23 import android.hardware.camera2.CaptureResult; 63 final CaptureResult partialResult) { in onCaptureProgressed()
|
D | Camera2CaptureCallbackSplitter.java | 23 import android.hardware.camera2.CaptureResult; 67 CaptureResult partialResult) { in onCaptureProgressed()
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3OfflineSession.h | 167 status_t getNextResult(CaptureResult *frame) override; 185 hardware::camera::device::V3_4::CaptureResult>& results) override; 188 hardware::camera::device::V3_2::CaptureResult>& results) override; 228 std::list<CaptureResult> mResultQueue;
|