Home
last modified time | relevance | path

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

12

/cts/tests/camera/src/android/hardware/camera2/cts/
DCaptureResultTest.java25 import android.hardware.camera2.CaptureResult;
199 Pair<TotalCaptureResult, List<CaptureResult>> resultPair = in testPartialResult()
202 List<CaptureResult> partialResults = resultPair.second; in testPartialResult()
213 Set<CaptureResult.Key<?>> appearedPartialKeys = in testPartialResult()
214 new HashSet<CaptureResult.Key<?>>(); in testPartialResult()
215 for (CaptureResult partialResult : partialResults) { in testPartialResult()
216 List<CaptureResult.Key<?>> partialKeys = partialResult.getKeys(); in testPartialResult()
218 for (CaptureResult.Key<?> key : partialKeys) { in testPartialResult()
228 List<CaptureResult.Key<?>> totalResultKeys = totalResult.getKeys(); in testPartialResult()
233 List<CaptureResult> totalResultPartials = totalResult.getPartialResults(); in testPartialResult()
[all …]
DBurstCaptureTest.java24 import android.hardware.camera2.CaptureResult;
174 CaptureResult result = resultListener.getCaptureResult(MAX_PREVIEW_RESULT_TIMEOUT_MS); in burstTestByCamera()
175 int aeState = result.get(CaptureResult.CONTROL_AE_STATE); in burstTestByCamera()
176 int awbState = result.get(CaptureResult.CONTROL_AWB_STATE); in burstTestByCamera()
182 if ((aeState == CaptureResult.CONTROL_AE_STATE_CONVERGED || in burstTestByCamera()
183 aeState == CaptureResult.CONTROL_AE_STATE_FLASH_REQUIRED) && in burstTestByCamera()
184 awbState == CaptureResult.CONTROL_AWB_STATE_CONVERGED) { in burstTestByCamera()
204CaptureResult result = resultListener.getCaptureResult(MAX_PREVIEW_RESULT_TIMEOUT_MS); in burstTestByCamera()
205 int afState = result.get(CaptureResult.CONTROL_AF_STATE); in burstTestByCamera()
211 if (afState == CaptureResult.CONTROL_AF_STATE_FOCUSED_LOCKED || in burstTestByCamera()
[all …]
DSimpleObjectsTest.java21 import android.hardware.camera2.CaptureResult;
46 CaptureResult.Key<Integer> testResultKey = in CameraKeysTest()
47 new CaptureResult.Key<>(keyName, Integer.class); in CameraKeysTest()
73 CaptureResult.Key<Integer> testResultKey2 = in CameraKeysTest()
74 new CaptureResult.Key<>(keyName, Integer.class); in CameraKeysTest()
77 CaptureResult.Key<Byte> testResultKey3 = in CameraKeysTest()
78 new CaptureResult.Key<>(keyName, Byte.class); in CameraKeysTest()
81 CaptureResult.Key<Integer> testResultKey4 = in CameraKeysTest()
82 new CaptureResult.Key<>(keyName2, Integer.class); in CameraKeysTest()
85 CaptureResult.Key<Byte> testResultKey5 = in CameraKeysTest()
[all …]
DRobustnessTest.java29 import android.hardware.camera2.CaptureResult;
784 CaptureResult triggerResult = captureListener.getCaptureResultForRequest( in testBasicTriggerSequence()
786 int afState = triggerResult.get(CaptureResult.CONTROL_AF_STATE); in testBasicTriggerSequence()
795 CaptureResult focusResult = captureListener.getCaptureResult( in testBasicTriggerSequence()
797 afState = focusResult.get(CaptureResult.CONTROL_AF_STATE); in testBasicTriggerSequence()
819 int aeState = triggerResult.get(CaptureResult.CONTROL_AE_STATE); in testBasicTriggerSequence()
829 CaptureResult precaptureResult = captureListener.getCaptureResult( in testBasicTriggerSequence()
831 aeState = precaptureResult.get(CaptureResult.CONTROL_AE_STATE); in testBasicTriggerSequence()
837 CaptureResult postPrecaptureResult = captureListener.getCaptureResult( in testBasicTriggerSequence()
839 aeState = postPrecaptureResult.get(CaptureResult.CONTROL_AE_STATE); in testBasicTriggerSequence()
[all …]
DCaptureRequestTest.java30 import android.hardware.camera2.CaptureResult;
907 CaptureResult result = null; in dynamicBlackWhiteLevelTestByCamera()
967 CaptureResult.SENSOR_DYNAMIC_BLACK_LEVEL); in dynamicBlackWhiteLevelTestByCamera()
969 CaptureResult.SENSOR_DYNAMIC_WHITE_LEVEL); in dynamicBlackWhiteLevelTestByCamera()
1054 verifyCaptureResultForKey(CaptureResult.NOISE_REDUCTION_MODE, mode, in noiseReductionModeTestByCamera()
1103 waitForResultValue(resultListener, CaptureResult.LENS_STATE, in focusDistanceTestRepeating()
1104 CaptureResult.LENS_STATE_STATIONARY, NUM_RESULTS_WAIT_TIMEOUT); in focusDistanceTestRepeating()
1105 CaptureResult result = resultListener.getCaptureResultForRequest(request, in focusDistanceTestRepeating()
1108 resultDistances[i] = getValueNotNull(result, CaptureResult.LENS_FOCUS_DISTANCE); in focusDistanceTestRepeating()
1109 resultLensStates[i] = getValueNotNull(result, CaptureResult.LENS_STATE); in focusDistanceTestRepeating()
[all …]
DStillCaptureTest.java30 import android.hardware.camera2.CaptureResult;
623 CaptureResult result; in focalLengthTestByCamera()
634 waitForResultValue(resultListener, CaptureResult.LENS_STATE, in focalLengthTestByCamera()
635 CaptureResult.LENS_STATE_STATIONARY, NUM_RESULTS_WAIT_TIMEOUT); in focalLengthTestByCamera()
639 result.get(CaptureResult.LENS_FOCAL_LENGTH)); in focalLengthTestByCamera()
649 result.get(CaptureResult.LENS_FOCAL_LENGTH)); in focalLengthTestByCamera()
751 CaptureResult result; in takePictureTestByCamera()
817 waitForResultValue(resultListener, CaptureResult.CONTROL_AWB_STATE, in takePictureTestByCamera()
818 CaptureResult.CONTROL_AWB_STATE_CONVERGED, NUM_RESULTS_WAIT_TIMEOUT); in takePictureTestByCamera()
832 result.get(CaptureResult.CONTROL_AWB_MODE)); in takePictureTestByCamera()
[all …]
DFastBasicsTest.java31 import android.hardware.camera2.CaptureResult;
96 CaptureResult result = resultListener.getCaptureResult(WAIT_FOR_FRAMES_TIMEOUT_MS); in camera2TestByCamera()
98 Long timestamp = result.get(CaptureResult.SENSOR_TIMESTAMP); in camera2TestByCamera()
101 CaptureResult result2 = resultListener.getCaptureResult(WAIT_FOR_FRAMES_TIMEOUT_MS); in camera2TestByCamera()
103 Long timestamp2 = result2.get(CaptureResult.SENSOR_TIMESTAMP); in camera2TestByCamera()
116 CaptureResult stillResult = in camera2TestByCamera()
119 Long timestamp3 = stillResult.get(CaptureResult.SENSOR_TIMESTAMP); in camera2TestByCamera()
DBurstCaptureRawTest.java27 import android.hardware.camera2.CaptureResult;
238 CaptureResult result = rawCaptureCallback.getCaptureResult( in execute()
241 long resultExposure = result.get(CaptureResult.SENSOR_EXPOSURE_TIME); in execute()
242 int resultSensitivity = result.get(CaptureResult.SENSOR_SENSITIVITY); in execute()
313 CaptureResult result = rawCaptureCallback.getCaptureResult( in execute()
316 long resultExposure = result.get(CaptureResult.SENSOR_EXPOSURE_TIME); in execute()
317 int resultSensitivity = result.get(CaptureResult.SENSOR_SENSITIVITY); in execute()
318 int resultEdgeMode = result.get(CaptureResult.EDGE_MODE); in execute()
320 CaptureResult.NOISE_REDUCTION_MODE); in execute()
384 CaptureResult result = rawCaptureCallback.getCaptureResult( in execute()
[all …]
DStaticMetadataTest.java26 import android.hardware.camera2.CaptureResult;
221 Collection<CaptureResult.Key<?>> resultKeys, boolean expectedPresence) { in validateResultKeysPresence()
225 for (CaptureResult.Key<?> key : resultKeys) { in validateResultKeysPresence()
278 Set<CaptureResult.Key<?>> resultKeys = new HashSet<>(); in validateCapability()
401 resultKeys.add(CaptureResult.SENSOR_FRAME_DURATION); in validateCapability()
402 resultKeys.add(CaptureResult.SENSOR_EXPOSURE_TIME); in validateCapability()
403 resultKeys.add(CaptureResult.SENSOR_SENSITIVITY); in validateCapability()
405 resultKeys.add(CaptureResult.LENS_APERTURE); in validateCapability()
406 resultKeys.add(CaptureResult.LENS_FOCUS_DISTANCE); in validateCapability()
407 resultKeys.add(CaptureResult.LENS_FILTER_DENSITY); in validateCapability()
[all …]
DPerformanceTest.java33 import android.hardware.camera2.CaptureResult;
384 Pair<CaptureResult, Long> partialResultNTime = null; in testSingleCaptureForFormat()
394 Pair<CaptureResult, Long> captureResultNTime = in testSingleCaptureForFormat()
587 CaptureResult.CONTROL_AE_STATE, in testMultipleCapture()
588 CaptureResult.CONTROL_AE_STATE_LOCKED, in testMultipleCapture()
609 Pair<CaptureResult, Long> captureResultNTime = in testMultipleCapture()
617 … long timestamp = captureResultNTime.first.get(CaptureResult.SENSOR_TIMESTAMP); in testMultipleCapture()
866 CaptureResult[] results = new CaptureResult[timestampGap.length]; in reprocessingCaptureStallTestByCamera()
872 timestampGap[j] = results[j].get(CaptureResult.SENSOR_TIMESTAMP) - in reprocessingCaptureStallTestByCamera()
873 results[j - 1].get(CaptureResult.SENSOR_TIMESTAMP); in reprocessingCaptureStallTestByCamera()
[all …]
DDngCreatorTest.java30 import android.hardware.camera2.CaptureResult;
97 public Pair<List<Image>, CaptureResult> imagePair;
156 Pair<Image, CaptureResult> resultPair = captureSingleRawShot(activeArraySize, in testSingleImageBasic()
248 Pair<List<Image>, CaptureResult> resultPair = captureSingleRawShot(activeArraySize, in testSingleImageThumbnail()
255 resultPair.second.get(CaptureResult.SENSOR_TIMESTAMP) / 1000000); in testSingleImageThumbnail()
639 private Pair<Image, CaptureResult> captureSingleRawShot(Size s, boolean waitForAe, in captureSingleRawShot()
647 Pair<List<Image>, CaptureResult> res = captureSingleRawShot(s, readers, waitForAe, in captureSingleRawShot()
649 return new Pair<Image, CaptureResult>(res.first.get(0), res.second); in captureSingleRawShot()
652 private Pair<List<Image>, CaptureResult> captureSingleRawShot(Size s, in captureSingleRawShot()
668 private List<Pair<List<Image>, CaptureResult>> captureRawShots(Size s, in captureRawShots()
[all …]
DLogicalCameraDeviceTest.java34 import android.hardware.camera2.CaptureResult;
664 Float resultFocalLength = result.get(CaptureResult.LENS_FOCAL_LENGTH); in testLogicalCameraZoomSwitch()
665 Rect resultCropRegion = result.get(CaptureResult.SCALER_CROP_REGION); in testLogicalCameraZoomSwitch()
679 CaptureResult.LOGICAL_MULTI_CAMERA_ACTIVE_PHYSICAL_ID); in testLogicalCameraZoomSwitch()
745CaptureResult result = listener.getCaptureResult(WAIT_FOR_RESULT_TIMEOUT_MS); in testActivePhysicalId()
747 CaptureResult.LOGICAL_MULTI_CAMERA_ACTIVE_PHYSICAL_ID); in testActivePhysicalId()
935 Rect cropRegion = totalCaptureResult.get(CaptureResult.SCALER_CROP_REGION); in validatePhysicalCamerasFov()
936 Float focalLength = totalCaptureResult.get(CaptureResult.LENS_FOCAL_LENGTH); in validatePhysicalCamerasFov()
941 Map<String, CaptureResult> physicalResultsDual = in validatePhysicalCamerasFov()
944 CaptureResult physicalResult = physicalResultsDual.get(physicalId); in validatePhysicalCamerasFov()
[all …]
DHeifWriterTest.java34 import android.hardware.camera2.CaptureResult;
195 CaptureResult result = validateCaptureResult( in testHeif()
371 private CaptureResult validateCaptureResult( in validateCaptureResult()
373 CaptureResult result = null; in validateCaptureResult()
378 Long exposureTime = getValueNotNull(result, CaptureResult.SENSOR_EXPOSURE_TIME); in validateCaptureResult()
379 Integer sensitivity = getValueNotNull(result, CaptureResult.SENSOR_SENSITIVITY); in validateCaptureResult()
DSurfaceViewPreviewTest.java32 import android.hardware.camera2.CaptureResult;
252 waitForResultValue(resultListener, CaptureResult.CONTROL_AE_STATE, in preparePerformanceTestByCamera()
253 CaptureResult.CONTROL_AE_STATE_LOCKED, MAX_RESULTS_TO_WAIT); in preparePerformanceTestByCamera()
308 CaptureResult result = resultListener.getCaptureResult(WAIT_FOR_RESULT_TIMEOUT_MS); in preparePerformanceTestByCamera()
309 long prevTimestamp = result.get(CaptureResult.SENSOR_TIMESTAMP); in preparePerformanceTestByCamera()
673 CaptureResult result = resultListener.getCaptureResult(WAIT_FOR_RESULT_TIMEOUT_MS); in measureMeanFrameInterval()
674 long timestamp = result.get(CaptureResult.SENSOR_TIMESTAMP); in measureMeanFrameInterval()
738 CaptureResult result = resultListener.getCaptureResult(WAIT_FOR_RESULT_TIMEOUT_MS); in verifyPreviewTargetFpsRange()
742 long frameDuration = getValueNotNull(result, CaptureResult.SENSOR_FRAME_DURATION); in verifyPreviewTargetFpsRange()
749 long expTime = getValueNotNull(result, CaptureResult.SENSOR_EXPOSURE_TIME); in verifyPreviewTargetFpsRange()
[all …]
DImageWriterTest.java26 import android.hardware.camera2.CaptureResult;
349 CaptureResult result = captureListener.getCaptureResult(CAPTURE_IMAGE_TIMEOUT_MS); in validateOpaqueImages()
365 CaptureResult result) { in validateOpaqueImage()
368 imageSize, result.get(CaptureResult.SENSOR_TIMESTAMP)); in validateOpaqueImage()
DReprocessCaptureTest.java29 import android.hardware.camera2.CaptureResult;
678 result.get(CaptureResult.SENSOR_TIMESTAMP)); in testReprocessMixedBurst()
737 result.get(CaptureResult.SENSOR_TIMESTAMP)); in testReprocessBurst()
798 result.get(CaptureResult.SENSOR_TIMESTAMP)); in testReprocess()
942 expectedTimestamps.add(result.get(CaptureResult.SENSOR_TIMESTAMP)); in testReprocessTimestamps()
962 long timestamp = reprocessResults[i].get(CaptureResult.SENSOR_TIMESTAMP); in testReprocessTimestamps()
1111 Integer resultEdgeMode = reprocessResults[i].get(CaptureResult.EDGE_MODE); in testReprocessRequestKeys()
1113 reprocessResults[i].get(CaptureResult.NOISE_REDUCTION_MODE); in testReprocessRequestKeys()
1125 CaptureResult.REPROCESS_EFFECTIVE_EXPOSURE_FACTOR); in testReprocessRequestKeys()
1319 finalResults[j].get(CaptureResult.SENSOR_TIMESTAMP) == in doMixedReprocessBurstCapture()
DImageReaderTest.java34 import android.hardware.camera2.CaptureResult;
1109 CaptureResult result = listener.getCaptureResult(CAPTURE_RESULT_TIMEOUT_MS); in bufferFormatLongProcessingTimeTestByCamera()
1112 getValueNotNull(result, CaptureResult.SENSOR_EXPOSURE_TIME); in bufferFormatLongProcessingTimeTestByCamera()
1114 getValueNotNull(result, CaptureResult.SENSOR_SENSITIVITY); in bufferFormatLongProcessingTimeTestByCamera()
1119 getValueNotNull(result, CaptureResult.SENSOR_EXPOSURE_TIME), in bufferFormatLongProcessingTimeTestByCamera()
1127 getValueNotNull(result, CaptureResult.SENSOR_SENSITIVITY), in bufferFormatLongProcessingTimeTestByCamera()
1162 CaptureResult result = listener.getCaptureResult(CAPTURE_RESULT_TIMEOUT_MS); in validateCaptureResult()
1167 Long exposureTime = getValueNotNull(result, CaptureResult.SENSOR_EXPOSURE_TIME); in validateCaptureResult()
1168 Integer sensitivity = getValueNotNull(result, CaptureResult.SENSOR_SENSITIVITY); in validateCaptureResult()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsService.java34 import android.hardware.camera2.CaptureResult;
199 private CaptureResult mCaptureResults[] = null;
447 } else if (obj instanceof CaptureResult) { in run()
449 (CaptureResult)obj)); in run()
840 Map<String, CaptureResult> physicalMetadata = in sendResponseCaptureResult()
843 for (Map.Entry<String, CaptureResult> pair : physicalMetadata.entrySet()) { in sendResponseCaptureResult()
1486 mCaptureResults = new CaptureResult[requests.size()];
1701 mCaptureResults = new CaptureResult[inputRequests.size()];
1920 private String buildLogString(CaptureResult result) throws ItsException {
1924 result.get(CaptureResult.CONTROL_AE_STATE),
[all …]
DItsSerializer.java24 import android.hardware.camera2.CaptureResult;
282 if (keyObj.getClass() == CaptureResult.Key.class in getKeyName()
284 return ((CaptureResult.Key)keyObj).getName(); in getKeyName()
294 if (md.getClass() == CaptureResult.class || md.getClass() == TotalCaptureResult.class) { in getKeyValue()
295 return ((CaptureResult)md).get((CaptureResult.Key)keyObj); in getKeyValue()
479 allFields = CaptureResult.class.getDeclaredFields(); in serialize()
516 || field.getType() == CaptureResult.Key.class in serialize()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCamera2Focuser.java27 import android.hardware.camera2.CaptureResult;
134 public synchronized void onAutoFocusSuccess(CaptureResult result, boolean locked) { in onAutoFocusSuccess()
144 public synchronized void onAutoFocusFail(CaptureResult result, boolean locked) { in onAutoFocusFail()
154 public synchronized void onAutoFocusScan(CaptureResult result) { in onAutoFocusScan()
160 public synchronized void onAutoFocusInactive(CaptureResult result) { in onAutoFocusInactive()
349 CaptureResult result) { in createCaptureListener()
352 if (result.get(CaptureResult.CONTROL_AF_STATE) != null && in createCaptureListener()
353 result.get(CaptureResult.CONTROL_AF_MODE) != null) { in createCaptureListener()
368 private void dispatchToFocuser(CaptureResult result) { in createCaptureListener()
DCameraErrorCollector.java23 import android.hardware.camera2.CaptureResult;
680 public <T> T expectKeyValueNotNull(CaptureResult result, CaptureResult.Key<T> key) { in expectKeyValueNotNull()
692 public <T> T expectKeyValueNotNull(String msg, CaptureResult result, CaptureResult.Key<T> key) { in expectKeyValueNotNull()
732 CaptureResult result, CaptureResult.Key<T> key, T expected) { in expectKeyValueNotEquals()
753 public <T> void expectKeyValueEquals(CaptureResult result, CaptureResult.Key<T> key, in expectKeyValueEquals()
801 CaptureResult result, CaptureResult.Key<T> key, T expected) { in expectKeyValueGreaterOrEqual()
903 public <T> void expectKeyValueIsIn(CaptureResult result, in expectKeyValueIsIn()
904 CaptureResult.Key<T> key, T... expected) { in expectKeyValueIsIn()
DCameraMetadataGetter.java28 import android.hardware.camera2.CaptureResult;
435 if (keyObj.getClass() == CaptureResult.Key.class in getKeyName()
437 return ((CaptureResult.Key) keyObj).getName(); in getKeyName()
448 if (md.getClass() == CaptureResult.class || md.getClass() == TotalCaptureResult.class) { in getKeyValue()
449 return ((CaptureResult) md).get((CaptureResult.Key) keyObj); in getKeyValue()
633 allFields = CaptureResult.class.getDeclaredFields(); in serialize()
639 || field.getType() == CaptureResult.Key.class in serialize()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java33 import android.hardware.camera2.CaptureResult;
471 public CaptureResult getCaptureResult(long timeout) { in getCaptureResult()
485 currentTs = result.get(CaptureResult.SENSOR_TIMESTAMP); in getCaptureResult()
520 public CaptureResult getCaptureResultForRequest(CaptureRequest myRequest, in getCaptureResultForRequest()
1798 public static <T> T getValueNotNull(CaptureResult result, CaptureResult.Key<T> key) { in getValueNotNull()
2273 public static void verifyJpegKeys(Image image, CaptureResult captureResult, Size expectedSize, in verifyJpegKeys()
2295 Size resultThumbnailSize = captureResult.get(CaptureResult.JPEG_THUMBNAIL_SIZE); in verifyJpegKeys()
2312 if (collector.expectKeyValueNotNull(captureResult, CaptureResult.JPEG_GPS_LOCATION) != in verifyJpegKeys()
2316 captureResult.get(CaptureResult.JPEG_GPS_LOCATION))); in verifyJpegKeys()
2320 captureResult.get(CaptureResult.JPEG_ORIENTATION)); in verifyJpegKeys()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2SurfaceViewTestCase.java33 import android.hardware.camera2.CaptureResult;
358 CaptureResult.Key<T> resultKey, in waitForResultValue()
381 CaptureResult.Key<T> resultKey, in waitForAnyResultValue()
466 protected static CaptureResult waitForNumResults(SimpleCaptureCallback resultListener, in waitForNumResults()
534 expectedAeStates.add(new Integer(CaptureResult.CONTROL_AE_STATE_LOCKED)); in waitForAeLocked()
535 CameraTestUtils.waitForAnyResultValue(resultListener, CaptureResult.CONTROL_AE_STATE, in waitForAeLocked()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/RenderUtils/
DCameraStreamManager.java31 import android.hardware.camera2.CaptureResult;
145 CaptureResult partialResult) {

12