Home
last modified time | relevance | path

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

123456

/frameworks/ex/camera2/public/src/com/android/ex/camera2/pos/
DAutoFocusStateMachine.java19 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/ex/camera2/extensions/sample/src/java/androidx/camera/extensions/impl/
DHdrPreviewExtenderImpl.java22 import android.hardware.camera2.CaptureResult;
162 ArrayList<Pair<CaptureResult.Key, Object>> captureResults = new ArrayList<>(); in process()
163 Long shutterTimestamp = result.get(CaptureResult.SENSOR_TIMESTAMP); in process()
165 Float zoomRatio = result.get(CaptureResult.CONTROL_ZOOM_RATIO); in process()
167 captureResults.add(new Pair<>(CaptureResult.CONTROL_ZOOM_RATIO, zoomRatio)); in process()
169 Integer afMode = result.get(CaptureResult.CONTROL_AF_MODE); in process()
171 captureResults.add(new Pair<>(CaptureResult.CONTROL_AF_MODE, afMode)); in process()
173 Integer afTrigger = result.get(CaptureResult.CONTROL_AF_TRIGGER); in process()
175 captureResults.add(new Pair<>(CaptureResult.CONTROL_AF_TRIGGER, afTrigger)); in process()
177 Integer afState = result.get(CaptureResult.CONTROL_AF_STATE); in process()
[all …]
DHdrImageCaptureExtenderImpl.java22 import android.hardware.camera2.CaptureResult;
160 ArrayList<Pair<CaptureResult.Key, Object>> captureResults = in getCaptureProcessor()
163 CaptureResult.SENSOR_TIMESTAMP); in getCaptureProcessor()
166 CaptureResult.CONTROL_ZOOM_RATIO); in getCaptureProcessor()
168 captureResults.add(new Pair<>(CaptureResult.CONTROL_ZOOM_RATIO, in getCaptureProcessor()
172 CaptureResult.CONTROL_AF_MODE); in getCaptureProcessor()
174 captureResults.add(new Pair<>(CaptureResult.CONTROL_AF_MODE, in getCaptureProcessor()
178 CaptureResult.CONTROL_AF_TRIGGER); in getCaptureProcessor()
180 captureResults.add(new Pair<>(CaptureResult.CONTROL_AF_TRIGGER, in getCaptureProcessor()
184 CaptureResult.CONTROL_AF_STATE); in getCaptureProcessor()
[all …]
DBokehImageCaptureExtenderImpl.java22 import android.hardware.camera2.CaptureResult;
158 result.second.get(CaptureResult.SENSOR_TIMESTAMP); in getCaptureProcessor()
183 ArrayList<Pair<CaptureResult.Key, Object>> captureResults = in getCaptureProcessor()
186 result.second.get(CaptureResult.SENSOR_TIMESTAMP); in getCaptureProcessor()
189 CaptureResult.CONTROL_AE_MODE); in getCaptureProcessor()
191 captureResults.add(new Pair<>(CaptureResult.CONTROL_AE_MODE, in getCaptureProcessor()
196 CaptureResult.CONTROL_AE_PRECAPTURE_TRIGGER); in getCaptureProcessor()
199 CaptureResult.CONTROL_AE_PRECAPTURE_TRIGGER, in getCaptureProcessor()
203 Boolean aeLock = result.second.get(CaptureResult.CONTROL_AE_LOCK); in getCaptureProcessor()
205 captureResults.add(new Pair<>(CaptureResult.CONTROL_AE_LOCK, in getCaptureProcessor()
[all …]
DProcessResultImpl.java19 import android.hardware.camera2.CaptureResult;
42 void onCaptureCompleted(long shutterTimestamp, List<Pair<CaptureResult.Key, Object>> result); in onCaptureCompleted()
/frameworks/ex/camera2/extensions/advancedSample/src/java/androidx/camera/extensions/impl/advanced/
DBokehAdvancedExtenderImpl.java27 import android.hardware.camera2.CaptureResult;
108 public List<CaptureResult.Key> getAvailableCaptureResultKeys() { in getAvailableCaptureResultKeys()
109 final CaptureResult.Key [] CAPTURE_RESULT_SET = {CaptureResult.CONTROL_AE_MODE, in getAvailableCaptureResultKeys()
110 CaptureResult.CONTROL_AE_PRECAPTURE_TRIGGER, CaptureResult.CONTROL_AE_LOCK, in getAvailableCaptureResultKeys()
111 CaptureResult.CONTROL_AE_STATE, CaptureResult.FLASH_MODE, in getAvailableCaptureResultKeys()
112 CaptureResult.FLASH_STATE, CaptureResult.JPEG_QUALITY, CaptureResult.JPEG_ORIENTATION}; in getAvailableCaptureResultKeys()
DHdrAdvancedExtenderImpl.java32 import android.hardware.camera2.CaptureResult;
149 CaptureResult partialResult) { in startCapture()
314 public List<CaptureResult.Key> getAvailableCaptureResultKeys() { in getAvailableCaptureResultKeys()
315 final CaptureResult.Key [] CAPTURE_RESULT_SET = {CaptureResult.CONTROL_ZOOM_RATIO, in getAvailableCaptureResultKeys()
316 CaptureResult.CONTROL_AF_MODE, CaptureResult.CONTROL_AF_REGIONS, in getAvailableCaptureResultKeys()
317 CaptureResult.CONTROL_AF_TRIGGER, CaptureResult.CONTROL_AF_STATE, in getAvailableCaptureResultKeys()
318 CaptureResult.JPEG_QUALITY, CaptureResult.JPEG_ORIENTATION}; in getAvailableCaptureResultKeys()
/frameworks/ex/camera2/extensions/service_based_sample/extensions_service/src/com/android/oemextensions/
DAdvancedExtenderImplStub.java26 import android.hardware.camera2.CaptureResult;
191 private Map<CaptureResult.Key, Object> getSupportedCaptureResultKeys() { in getSupportedCaptureResultKeys()
192 Map<CaptureResult.Key, Object> map = new HashMap<>(); in getSupportedCaptureResultKeys()
193 map.put(CaptureResult.CONTROL_ZOOM_RATIO, in getSupportedCaptureResultKeys()
195 map.put(CaptureResult.SCALER_CROP_REGION, in getSupportedCaptureResultKeys()
197 map.put(CaptureResult.CONTROL_AE_REGIONS, in getSupportedCaptureResultKeys()
199 map.put(CaptureResult.CONTROL_AWB_REGIONS, in getSupportedCaptureResultKeys()
201 map.put(CaptureResult.JPEG_QUALITY, in getSupportedCaptureResultKeys()
203 map.put(CaptureResult.JPEG_ORIENTATION, in getSupportedCaptureResultKeys()
206 map.put(CaptureResult.CONTROL_AF_REGIONS, in getSupportedCaptureResultKeys()
[all …]
DImageCaptureExtenderImplStub.java24 import android.hardware.camera2.CaptureResult;
56 private final List<CaptureResult.Key> mResultKeyList = Arrays.asList(
57 CaptureResult.CONTROL_AE_MODE,
58 CaptureResult.CONTROL_AE_PRECAPTURE_TRIGGER,
59 CaptureResult.CONTROL_AE_LOCK,
60 CaptureResult.CONTROL_AE_STATE,
61 CaptureResult.FLASH_MODE,
62 CaptureResult.FLASH_STATE,
63 CaptureResult.JPEG_QUALITY,
64 CaptureResult.JPEG_ORIENTATION
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
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()
210 ScrollCaptureClient.CaptureResult result = getUnchecked(session.requestTile(-150)); in testCaptureTopPartiallyInvisible()
233 ScrollCaptureClient.CaptureResult result = getUnchecked(session.requestTile(50)); in testCaptureBottomPartiallyInvisible()
[all …]
/frameworks/av/camera/include/camera/
DCaptureResult.h173 struct CaptureResult : public virtual LightRefBase<CaptureResult> { struct
178 CaptureResult(); argument
180 CaptureResult(const CaptureResult& otherResult);
182 CaptureResult(CaptureResult &&captureResult);
/frameworks/av/camera/tests/fuzzer/
Dcamera_captureResult_fuzzer.cpp43 CaptureResult* captureResult = new CaptureResult(); in LLVMFuzzerTestOneInput()
63 invokeReadWriteNullParcel<CaptureResult>(captureResult); in LLVMFuzzerTestOneInput()
64 invokeReadWriteParcel<CaptureResult>(captureResult); in LLVMFuzzerTestOneInput()
65 CaptureResult captureResult2(*captureResult); in LLVMFuzzerTestOneInput()
66 CaptureResult captureResult3(std::move(captureResult2)); in LLVMFuzzerTestOneInput()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
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()
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 …]
DCamera2StillCaptureTest.java34 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/
DCaptureResult.cpp129 CaptureResult::CaptureResult() : in CaptureResult() function in android::CaptureResult
133 CaptureResult::CaptureResult(CaptureResult &&otherResult) { in CaptureResult() function in android::CaptureResult
139 CaptureResult::CaptureResult(const CaptureResult &otherResult) { in CaptureResult() function in android::CaptureResult
145 status_t CaptureResult::readFromParcel(android::Parcel *parcel) { in readFromParcel()
205 status_t CaptureResult::writeToParcel(android::Parcel *parcel) const { in writeToParcel()
/frameworks/base/core/java/android/hardware/camera2/
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()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
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()
/frameworks/ex/camera2/extensions/service_based_sample/oem_library/src/java/androidx/camera/extensions/impl/service/
DCaptureResultWrapper.java29 import android.hardware.camera2.CaptureResult;
43 public CaptureResultWrapper(CaptureResult captureResult) { in CaptureResultWrapper()
86 public CaptureResult toCaptureResult() { in toCaptureResult()
87 return new CaptureResult(mCameraId, mResults, mRequest, mSequenceId, mFrameNumber); in toCaptureResult()
/frameworks/base/core/tests/coretests/src/android/hardware/camera2/impl/
DCaptureMetadataNativeTest.java21 import android.hardware.camera2.CaptureResult;
48 captureResults.set(CaptureResult.STATISTICS_LENS_SHADING_CORRECTION_MAP, lensShadingMap); in setLensShadingMap()
51 captureResults.get(CaptureResult.STATISTICS_LENS_SHADING_CORRECTION_MAP); in setLensShadingMap()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DAndroidCamera2AgentImpl.java33 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/
DCameraMetadataTest.java33 import android.hardware.camera2.CaptureResult;
1038 mMetadata.set(CaptureResult.STATISTICS_FACE_DETECT_MODE, in testReadWriteOverride()
1039 CaptureResult.STATISTICS_FACE_DETECT_MODE_FULL); in testReadWriteOverride()
1040 mMetadata.set(CaptureResult.STATISTICS_FACE_IDS, expectedFaceIds); in testReadWriteOverride()
1041 mMetadata.set(CaptureResult.STATISTICS_FACE_SCORES, expectedFaceScores); in testReadWriteOverride()
1042 mMetadata.set(CaptureResult.STATISTICS_FACE_RECTANGLES, expectedRects); in testReadWriteOverride()
1043 mMetadata.set(CaptureResult.STATISTICS_FACE_LANDMARKS, expectedFaceLM); in testReadWriteOverride()
1044 Face[] resultFaces = mMetadata.get(CaptureResult.STATISTICS_FACES); in testReadWriteOverride()
1058 mMetadata.set(CaptureResult.STATISTICS_FACE_DETECT_MODE, in testReadWriteOverride()
1059 CaptureResult.STATISTICS_FACE_DETECT_MODE_SIMPLE); in testReadWriteOverride()
[all …]
/frameworks/av/services/camera/libcameraservice/common/
DFrameProcessorBase.h43 virtual void onResultAvailable(const CaptureResult &result) = 0;
82 virtual bool processSingleFrame(CaptureResult &result,
85 status_t processListeners(const CaptureResult &result,
/frameworks/base/core/java/android/hardware/camera2/impl/
DCaptureCallback.java23 import android.hardware.camera2.CaptureResult;
82 CaptureRequest request, CaptureResult result); in onCapturePartial()
90 CaptureRequest request, CaptureResult partialResult); in onCaptureProgressed()
DCameraMetadataNative.java27 import android.hardware.camera2.CaptureResult;
232 if (o instanceof CaptureResult.Key) { in equals()
233 lhs = ((CaptureResult.Key)o).getNativeKey(); in equals()
451 public <T> T get(CaptureResult.Key<T> key) { in get()
530 public <T> void set(CaptureResult.Key<T> key, T value) { in set()
583 private <T> T getBase(CaptureResult.Key<T> key) { in getBase()
633 CaptureResult.STATISTICS_FACES.getNativeKey(), new GetCommand() { in GetCommand()
641 CaptureResult.STATISTICS_FACE_RECTANGLES.getNativeKey(), new GetCommand() { in GetCommand()
782 CaptureResult.JPEG_GPS_LOCATION.getNativeKey(), new GetCommand() { in GetCommand()
790 CaptureResult.STATISTICS_LENS_SHADING_CORRECTION_MAP.getNativeKey(), in CaptureResult.STATISTICS_LENS_SHADING_CORRECTION_MAP.getNativeKey()
[all …]
/frameworks/ex/camera2/extensions/service_based_sample/oem_library/src/java/androidx/camera/extensions/impl/
DProcessResultImpl.java20 import android.hardware.camera2.CaptureResult;
44 void onCaptureCompleted(long shutterTimestamp, List<Pair<CaptureResult.Key, Object>> result); in onCaptureCompleted()

123456