/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 | 148 type = CaptureResult.class; in getKeys() 199 } else if (k instanceof CaptureResult.Key<?>) { in getKeys() 200 keyName = ((CaptureResult.Key<?>) k).getName(); in getKeys() 201 vendorId = ((CaptureResult.Key<?>) k).getVendorId(); in getKeys() 233 } else if (key instanceof CaptureResult.Key) { in shouldKeyBeAdded() 234 nativeKey = ((CaptureResult.Key)key).getNativeKey(); in shouldKeyBeAdded()
|
D | CameraCaptureSession.java | 1115 CaptureRequest request, CaptureResult result) { in onCapturePartial() 1159 @NonNull CaptureRequest request, @NonNull CaptureResult partialResult) { in onCaptureProgressed()
|
/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 …]
|
D | Camera2ReprocessCaptureTest.java | 28 import android.hardware.camera2.CaptureResult; 356 result.get(CaptureResult.SENSOR_TIMESTAMP)); in testReprocessMixedBurst() 415 result.get(CaptureResult.SENSOR_TIMESTAMP)); in testReprocessBurst() 476 result.get(CaptureResult.SENSOR_TIMESTAMP)); in testReprocess() 620 expectedTimestamps.add(result.get(CaptureResult.SENSOR_TIMESTAMP)); in testReprocessTimestamps() 640 long timestamp = reprocessResults[i].get(CaptureResult.SENSOR_TIMESTAMP); in testReprocessTimestamps() 788 Integer resultEdgeMode = reprocessResults[i].get(CaptureResult.EDGE_MODE); in testReprocessRequestKeys() 790 reprocessResults[i].get(CaptureResult.NOISE_REDUCTION_MODE); in testReprocessRequestKeys() 802 CaptureResult.REPROCESS_EFFECTIVE_EXPOSURE_FACTOR); in testReprocessRequestKeys() 996 finalResults[j].get(CaptureResult.SENSOR_TIMESTAMP) == in doMixedReprocessBurstCapture()
|
/frameworks/av/camera/include/camera/ |
D | CaptureResult.h | 129 struct CaptureResult : public virtual LightRefBase<CaptureResult> { struct 134 CaptureResult(); argument 136 CaptureResult(const CaptureResult& otherResult);
|
/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; 864 CaptureResult.Key<?> defaultAvailableKeys[] = new CaptureResult.Key<?>[] { in mapRequest() 865 CaptureResult.COLOR_CORRECTION_ABERRATION_MODE , in mapRequest() 866 CaptureResult.CONTROL_AE_ANTIBANDING_MODE , in mapRequest() 867 CaptureResult.CONTROL_AE_EXPOSURE_COMPENSATION , in mapRequest() 868 CaptureResult.CONTROL_AE_LOCK , in mapRequest() 869 CaptureResult.CONTROL_AE_MODE , in mapRequest() 870 CaptureResult.CONTROL_AF_MODE , in mapRequest() 871 CaptureResult.CONTROL_AF_STATE , in mapRequest() 872 CaptureResult.CONTROL_AWB_MODE , in mapRequest() [all …]
|
D | LegacyResultMapper.java | 24 import android.hardware.camera2.CaptureResult; 37 import static android.hardware.camera2.CaptureResult.*; 171 if (controlMode == CaptureResult.CONTROL_MODE_USE_SCENE_MODE) { in convertResultMetadata() 185 result.set(CaptureResult.CONTROL_SCENE_MODE, mode); in convertResultMetadata() 191 result.set(CaptureResult.CONTROL_SCENE_MODE, CONTROL_SCENE_MODE_DISABLED); in convertResultMetadata() 202 result.set(CaptureResult.CONTROL_EFFECT_MODE, mode); in convertResultMetadata() 206 result.set(CaptureResult.CONTROL_EFFECT_MODE, CONTROL_EFFECT_MODE_OFF); in convertResultMetadata() 232 result.set(CaptureResult.LENS_FOCUS_DISTANCE, 0.0f); in convertResultMetadata() 237 result.set(CaptureResult.LENS_FOCAL_LENGTH, params.getFocalLength()); in convertResultMetadata() 353 m.set(CaptureResult.CONTROL_AF_MODE, convertLegacyAfMode(p.getFocusMode())); in mapAf()
|
D | LegacyFaceDetectMapper.java | 26 import android.hardware.camera2.CaptureResult; 255 result.set(CaptureResult.STATISTICS_FACES, convertedFaces.toArray(new Face[0])); in mapResultFaces() 256 result.set(CaptureResult.STATISTICS_FACE_DETECT_MODE, fdMode); in mapResultFaces() 260 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; 217 if (o instanceof CaptureResult.Key) { in equals() 218 lhs = ((CaptureResult.Key)o).getNativeKey(); in equals() 388 public <T> T get(CaptureResult.Key<T> key) { in get() 466 public <T> void set(CaptureResult.Key<T> key, T value) { in set() 514 private <T> T getBase(CaptureResult.Key<T> key) { in getBase() 558 CaptureResult.STATISTICS_FACES.getNativeKey(), new GetCommand() { in GetCommand() 566 CaptureResult.STATISTICS_FACE_RECTANGLES.getNativeKey(), new GetCommand() { in GetCommand() 649 CaptureResult.JPEG_GPS_LOCATION.getNativeKey(), new GetCommand() { in GetCommand() 657 CaptureResult.STATISTICS_LENS_SHADING_CORRECTION_MAP.getNativeKey(), in CaptureResult.STATISTICS_LENS_SHADING_CORRECTION_MAP.getNativeKey() [all …]
|
/frameworks/av/camera/ |
D | CaptureResult.cpp | 116 CaptureResult::CaptureResult() : in CaptureResult() function in android::CaptureResult 120 CaptureResult::CaptureResult(const CaptureResult &otherResult) { in CaptureResult() function in android::CaptureResult 126 status_t CaptureResult::readFromParcel(android::Parcel *parcel) { in readFromParcel() 186 status_t CaptureResult::writeToParcel(android::Parcel *parcel) const { in writeToParcel()
|
/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; 79 virtual bool processSingleFrame(CaptureResult &result, 82 status_t processListeners(const CaptureResult &result,
|
D | FrameProcessorBase.cpp | 138 CaptureResult result; in processNewFrames() 176 bool FrameProcessorBase::processSingleFrame(CaptureResult &result, in processSingleFrame() 183 status_t FrameProcessorBase::processListeners(const CaptureResult &result, in processListeners()
|
/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 | 56 virtual bool processSingleFrame(CaptureResult &frame, 63 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/ex/camera2/public/src/com/android/ex/camera2/blocking/ |
D | BlockingCaptureCallback.java | 21 import android.hardware.camera2.CaptureResult; 133 CaptureResult partialResult) { in onCaptureProgressed()
|