Home
last modified time | relevance | path

Searched refs:CaptureResult (Results 1 – 25 of 175) sorted by relevance

1234567

/aosp12/packages/apps/Camera2/src/com/android/camera/one/v2/
H A DAutoFocusHelper.java22 import android.hardware.camera2.CaptureResult;
57 case CaptureResult.CONTROL_AF_STATE_ACTIVE_SCAN: in stateFromCamera2State()
59 case CaptureResult.CONTROL_AF_STATE_PASSIVE_SCAN: in stateFromCamera2State()
61 case CaptureResult.CONTROL_AF_STATE_PASSIVE_FOCUSED: in stateFromCamera2State()
63 case CaptureResult.CONTROL_AF_STATE_FOCUSED_LOCKED: in stateFromCamera2State()
110 result.get(CaptureResult.LENS_FOCUS_DISTANCE), in logExtraFocusInfo()
225 case CaptureResult.CONTROL_AF_STATE_INACTIVE: in controlAFStateToString()
227 case CaptureResult.CONTROL_AF_STATE_PASSIVE_SCAN: in controlAFStateToString()
231 case CaptureResult.CONTROL_AF_STATE_ACTIVE_SCAN: in controlAFStateToString()
249 case CaptureResult.LENS_STATE_MOVING: in lensStateToString()
[all …]
H A DOneCameraZslImpl.java27 import android.hardware.camera2.CaptureResult;
28 import android.hardware.camera2.CaptureResult.Key;
337 CaptureResult result) { in OneCameraZslImpl()
371 CaptureResult result) { in setFocusDistanceListener()
442 lensState = CaptureResult.LENS_STATE_STATIONARY; in takePicture()
448 flashMode = CaptureResult.FLASH_MODE_OFF; in takePicture()
451 aeState = CaptureResult.CONTROL_AE_STATE_INACTIVE; in takePicture()
454 afState = CaptureResult.CONTROL_AF_STATE_INACTIVE; in takePicture()
467 if (lensState == CaptureResult.LENS_STATE_MOVING) { in takePicture()
539 CaptureResult result) { in takePicture()
[all …]
/aosp12/packages/apps/Camera2/src/com/android/camera/one/v2/photo/zsl/
H A DAcceptableZslImageFilter.java19 import android.hardware.camera2.CaptureResult;
55 Integer lensState = metadata.get(CaptureResult.LENS_STATE); in isLensStationary()
60 case CaptureResult.LENS_STATE_STATIONARY: in isLensStationary()
69 Integer aeState = metadata.get(CaptureResult.CONTROL_AE_STATE); in isAEAcceptable()
74 case CaptureResult.CONTROL_AE_STATE_INACTIVE: in isAEAcceptable()
75 case CaptureResult.CONTROL_AE_STATE_LOCKED: in isAEAcceptable()
76 case CaptureResult.CONTROL_AE_STATE_CONVERGED: in isAEAcceptable()
90 case CaptureResult.CONTROL_AF_STATE_INACTIVE: in isAFAcceptable()
91 case CaptureResult.CONTROL_AF_STATE_FOCUSED_LOCKED: in isAFAcceptable()
93 case CaptureResult.CONTROL_AF_STATE_PASSIVE_FOCUSED: in isAFAcceptable()
[all …]
H A DAutoFlashZslImageFilter.java19 import android.hardware.camera2.CaptureResult;
90 public <T> T get(CaptureResult.Key<T> key) { in get()
93 if (Objects.equal(aeState, CaptureResult.CONTROL_AE_STATE_SEARCHING)) { in get()
94 return (T) ((Integer) CaptureResult.CONTROL_AE_STATE_CONVERGED); in get()
102 public List<CaptureResult.Key<?>> getKeys() { in getKeys()
149 Integer aeState = captureResult.get(CaptureResult.CONTROL_AE_STATE); in update()
151 if (aeState == CaptureResult.CONTROL_AE_STATE_FLASH_REQUIRED) { in update()
157 } else if (aeState == CaptureResult.CONTROL_AE_STATE_CONVERGED) { in update()
/aosp12/frameworks/ex/camera2/public/src/com/android/ex/camera2/pos/
H A DAutoFocusStateMachine.java19 import android.hardware.camera2.CaptureResult.Key;
21 import android.hardware.camera2.CaptureResult;
51 void onAutoFocusFail(CaptureResult result, boolean locked); in onAutoFocusFail()
59 void onAutoFocusScan(CaptureResult result); in onAutoFocusScan()
67 void onAutoFocusInactive(CaptureResult result); in onAutoFocusInactive()
120 Key<Integer> keyAfMode = CaptureResult.CONTROL_AF_MODE; in onCaptureCompleted()
157 case CaptureResult.CONTROL_AF_STATE_FOCUSED_LOCKED: in onCaptureCompleted()
165 case CaptureResult.CONTROL_AF_STATE_PASSIVE_FOCUSED: in onCaptureCompleted()
171 case CaptureResult.CONTROL_AF_STATE_ACTIVE_SCAN: in onCaptureCompleted()
174 case CaptureResult.CONTROL_AF_STATE_PASSIVE_SCAN: in onCaptureCompleted()
[all …]
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
H A DFakeSessionTest.java55 ScrollCaptureClient.CaptureResult result = getUnchecked(session.requestTile(0)); in testNonEmptyResult_hasImage()
71 ScrollCaptureClient.CaptureResult result = getUnchecked(session.requestTile(-100)); in testEmptyResult_hasNullImage()
87 ScrollCaptureClient.CaptureResult result = getUnchecked(session.requestTile(0)); in testCaptureAtZero()
107 ScrollCaptureClient.CaptureResult result = getUnchecked(session.requestTile(90)); in testCaptureAtPageBottom()
127 ScrollCaptureClient.CaptureResult result = getUnchecked(session.requestTile(-100)); in testCaptureFromPreviousPage()
147 ScrollCaptureClient.CaptureResult result = getUnchecked(session.requestTile(150)); in testCaptureFromNextPage()
167 ScrollCaptureClient.CaptureResult result = getUnchecked(session.requestTile(-125)); in testCaptureTopPartiallyUnavailable()
187 ScrollCaptureClient.CaptureResult result = getUnchecked(session.requestTile(75)); in testCaptureBottomPartiallyUnavailable()
233 ScrollCaptureClient.CaptureResult result = getUnchecked(session.requestTile(50)); in testCaptureBottomPartiallyInvisible()
267 ScrollCaptureClient.CaptureResult result = getUnchecked(session.requestTile(200)); in testEmptyResult_belowAvailableBottom()
[all …]
/aosp12/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
H A DCamera2CaptureRequestTest.java30 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()
288 CaptureResult result = listener.getCaptureResult(timeout); in aeManualControlTest()
414 private void validateFrameDurationForCapture(CaptureResult result) { in validateFrameDurationForCapture()
415 long expTime = getValueNotNull(result, CaptureResult.SENSOR_EXPOSURE_TIME); in validateFrameDurationForCapture()
416 long frameDuration = getValueNotNull(result, CaptureResult.SENSOR_FRAME_DURATION); in validateFrameDurationForCapture()
433 private void validatePipelineDepth(CaptureResult result) { in validatePipelineDepth()
[all …]
H A DCamera2StillCaptureTest.java34 import android.hardware.camera2.CaptureResult;
206 CaptureResult result; in takePictureTestByCamera()
284 result.get(CaptureResult.CONTROL_AWB_MODE)); 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()
350 result.get(CaptureResult.CONTROL_AF_MODE)); in takePictureTestByCamera()
485 rawResult, CaptureResult.SENSOR_NEUTRAL_COLOR_POINT); in verifyRawCaptureResult()
498 rawResult, CaptureResult.SENSOR_NOISE_PROFILE); in verifyRawCaptureResult()
509 CaptureResult.HOT_PIXEL_MODE); in verifyRawCaptureResult()
[all …]
/aosp12/frameworks/av/camera/include/camera/
H A DCaptureResult.h160 struct CaptureResult : public virtual LightRefBase<CaptureResult> { struct
165 CaptureResult(); argument
167 CaptureResult(const CaptureResult& otherResult);
169 CaptureResult(CaptureResult &&captureResult);
/aosp12/packages/apps/Camera2/src/com/android/camera/one/v2/autofocus/
H A DAETriggerResult.java20 import android.hardware.camera2.CaptureResult;
58 CaptureResult.CONTROL_AE_STATE_INACTIVE,
59 CaptureResult.CONTROL_AE_STATE_FLASH_REQUIRED,
60 CaptureResult.CONTROL_AE_STATE_CONVERGED,
61 CaptureResult.CONTROL_AE_STATE_LOCKED);
75 Integer state = result.get(CaptureResult.CONTROL_AE_STATE); in update()
81 boolean flashRequired = Objects.equal(state, CaptureResult in update()
H A DAFTriggerResult.java20 import android.hardware.camera2.CaptureResult;
56 CaptureResult.CONTROL_AF_STATE_INACTIVE,
57 CaptureResult.CONTROL_AF_STATE_FOCUSED_LOCKED,
58 CaptureResult.CONTROL_AF_STATE_NOT_FOCUSED_LOCKED);
72 Integer afState = result.get(CaptureResult.CONTROL_AF_STATE); in update()
78 boolean inFocus = Objects.equal(afState, CaptureResult.CONTROL_AF_STATE_PASSIVE_FOCUSED) in update()
79 || Objects.equal(afState, CaptureResult.CONTROL_AF_STATE_FOCUSED_LOCKED); in update()
/aosp12/packages/apps/Camera2/src/com/android/camera/one/v2/initialization/
H A DMetadataCallback.java19 import android.hardware.camera2.CaptureResult;
55 Integer focusMode = totalCaptureResult.get(CaptureResult.CONTROL_AF_MODE); in updateFocusMode()
62 Integer focusState = totalCaptureResult.get(CaptureResult.CONTROL_AF_STATE); in updateFocusState()
69 Float focusDistance = totalCaptureResult.get(CaptureResult.LENS_FOCUS_DISTANCE); in updateOneCameraFocusState()
70 Integer focusState = totalCaptureResult.get(CaptureResult.CONTROL_AF_STATE); in updateOneCameraFocusState()
73 activeStates.add(CaptureResult.CONTROL_AF_STATE_ACTIVE_SCAN); in updateOneCameraFocusState()
74 activeStates.add(CaptureResult.CONTROL_AF_STATE_PASSIVE_SCAN); in updateOneCameraFocusState()
/aosp12/frameworks/av/camera/
H A DCaptureResult.cpp122 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()
/aosp12/packages/apps/Camera2/src/com/android/camera/one/v2/camera2proxy/
H A DAndroidCaptureResultProxy.java19 import android.hardware.camera2.CaptureResult;
33 final CaptureResult mCaptureResult;
35 public AndroidCaptureResultProxy(CaptureResult captureResult) { in AndroidCaptureResultProxy()
40 public <T> T get(CaptureResult.Key<T> key) { in get()
45 public List<CaptureResult.Key<?>> getKeys() { in getKeys()
H A DCaptureResultProxy.java19 import android.hardware.camera2.CaptureResult;
33 public <T> T get(CaptureResult.Key<T> key); in get()
36 public List<CaptureResult.Key<?>> getKeys(); in getKeys()
/aosp12/packages/apps/DevCamera/src/com/android/devcamera/
H A DDevCameraActivity.java23 import android.hardware.camera2.CaptureResult;
592 case CaptureResult.CONTROL_AWB_STATE_INACTIVE: in awbStateToString()
594 case CaptureResult.CONTROL_AWB_STATE_SEARCHING: in awbStateToString()
596 case CaptureResult.CONTROL_AWB_STATE_CONVERGED: in awbStateToString()
598 case CaptureResult.CONTROL_AWB_STATE_LOCKED: in awbStateToString()
607 case CaptureResult.CONTROL_AE_STATE_INACTIVE: in aeStateToString()
609 case CaptureResult.CONTROL_AE_STATE_SEARCHING: in aeStateToString()
611 case CaptureResult.CONTROL_AE_STATE_PRECAPTURE: in aeStateToString()
613 case CaptureResult.CONTROL_AE_STATE_CONVERGED: in aeStateToString()
617 case CaptureResult.CONTROL_AE_STATE_LOCKED: in aeStateToString()
[all …]
/aosp12/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCamera2Focuser.java28 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()
/aosp12/frameworks/base/core/java/android/hardware/camera2/
H A DTotalCaptureResult.java60 public final class TotalCaptureResult extends CaptureResult {
62 private final List<CaptureResult> mPartialResults;
74 CaptureRequest parent, CaptureResultExtras extras, List<CaptureResult> partials, in TotalCaptureResult()
103 CaptureRequest parent, int requestId, long frameNumber, List<CaptureResult> partials, in TotalCaptureResult()
153 public List<CaptureResult> getPartialResults() { in getPartialResults()
185 public Map<String, CaptureResult> getPhysicalCameraResults() { in getPhysicalCameraResults()
/aosp12/hardware/google/camera/common/hal/tests/
H A Dresult_processor_tests.cc54 ProcessCaptureResultFunc([](std::unique_ptr<CaptureResult> /*result*/) {}); in TEST() argument
79 empty_result.result = std::make_unique<CaptureResult>(); in SendResultsAndMessages()
89 ProcessCaptureResultFunc([](std::unique_ptr<CaptureResult> /*result*/) {}); in TEST() argument
107 ProcessCaptureResultFunc([](std::unique_ptr<CaptureResult> /*result*/) {}); in TEST() argument
130 ProcessCaptureResultFunc([&](std::unique_ptr<CaptureResult> result) { in TEST()
148 std::make_unique<CaptureResult>()}; in TEST()
164 [&](std::unique_ptr<CaptureResult> /*result*/) {}); in TEST() argument
/aosp12/packages/apps/Camera2/src/com/android/camera/util/
H A DExifUtil.java19 import android.hardware.camera2.CaptureResult;
137 Long exposureTimeNs = result.get(CaptureResult.SENSOR_EXPOSURE_TIME);
148 … addExifTag(ExifInterface.TAG_ISO_SPEED_RATINGS, result.get(CaptureResult.SENSOR_SENSITIVITY));
151 Float fNumber = result.get(CaptureResult.LENS_APERTURE);
161 Float focalLength = result.get(CaptureResult.LENS_FOCAL_LENGTH);
165 Integer flashMode = result.get(CaptureResult.FLASH_MODE);
166 if (flashMode == CaptureResult.FLASH_MODE_OFF) {
173 Integer whiteBalanceMode = result.get(CaptureResult.CONTROL_AWB_MODE);
174 if (whiteBalanceMode == CaptureResult.CONTROL_AWB_MODE_OFF) {
H A DCaptureDataSerializer.java21 import android.hardware.camera2.CaptureResult;
73 } else if (metadata instanceof CaptureResult) { in toFile()
74 dumpMetadata(title, (CaptureResult) metadata, writer); in toFile()
113 private static void dumpMetadata(final String title, final CaptureResult metadata, in dumpMetadata()
118 List<CaptureResult.Key<?>> keys = metadata.getKeys(); in dumpMetadata()
122 for (CaptureResult.Key<?> key : keys) { in dumpMetadata()
/aosp12/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DAndroidCamera2AgentImpl.java33 import android.hardware.camera2.CaptureResult;
215 private int mCurrentAeState = CaptureResult.CONTROL_AE_STATE_INACTIVE;
420 private void checkAfState(CaptureResult result) { in handleMessage()
769 mCurrentAeState = CaptureResult.CONTROL_AE_STATE_INACTIVE; in changeState()
845 public abstract void monitorControlStates(CaptureResult result); in monitorControlStates()
859 CaptureResult result) {
870 public void monitorControlStates(CaptureResult result) {
884 case CaptureResult.CONTROL_AF_STATE_PASSIVE_SCAN:
897 case CaptureResult.CONTROL_AF_STATE_FOCUSED_LOCKED:
929 case CaptureResult.CONTROL_AE_STATE_CONVERGED:
[all …]
/aosp12/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DCameraMetadataTest.java33 import android.hardware.camera2.CaptureResult;
1032 mMetadata.set(CaptureResult.STATISTICS_FACE_DETECT_MODE, in testReadWriteOverride()
1033 CaptureResult.STATISTICS_FACE_DETECT_MODE_FULL); in testReadWriteOverride()
1052 mMetadata.set(CaptureResult.STATISTICS_FACE_DETECT_MODE, in testReadWriteOverride()
1053 CaptureResult.STATISTICS_FACE_DETECT_MODE_SIMPLE); in testReadWriteOverride()
1078 mMetadata.set(CaptureResult.TONEMAP_CURVE, tcIn); in testReadWriteOverride()
1087 mMetadata.set(CaptureResult.TONEMAP_CURVE_GREEN, null); in testReadWriteOverride()
1089 assertNull(mMetadata.get(CaptureResult.TONEMAP_CURVE)); in testReadWriteOverride()
1290 CaptureResult captureResult = new CaptureResult(mMetadata, /*sequenceId*/0); in testCaptureResult()
1294 for (CaptureResult.Key<?> key : captureResult.getKeys()) { in testCaptureResult()
[all …]
/aosp12/packages/apps/Camera2/src/com/android/camera/one/v2/common/
H A DMetadataResponseListener.java19 import android.hardware.camera2.CaptureResult;
30 private final CaptureResult.Key<V> mKey;
36 public MetadataResponseListener(CaptureResult.Key<V> key, Updatable<V> updatable) { in MetadataResponseListener()
42 public void onProgressed(CaptureResult partialResult) { in onProgressed()
/aosp12/frameworks/base/core/java/android/hardware/camera2/impl/
H A DCameraMetadataNative.java27 import android.hardware.camera2.CaptureResult;
230 if (o instanceof CaptureResult.Key) { in equals()
231 lhs = ((CaptureResult.Key)o).getNativeKey(); in equals()
446 public <T> T get(CaptureResult.Key<T> key) { in get()
525 public <T> void set(CaptureResult.Key<T> key, T value) { in set()
578 private <T> T getBase(CaptureResult.Key<T> key) { in getBase()
873 set(CaptureResult.STATISTICS_FACE_IDS, faceIds); in setFaces()
875 set(CaptureResult.STATISTICS_FACE_SCORES, faceScores); in setFaces()
884 int[] faceIds = get(CaptureResult.STATISTICS_FACE_IDS); in getFaces()
1021 Long timeStamp = get(CaptureResult.JPEG_GPS_TIMESTAMP); in getGpsLocation()
[all …]

1234567