/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | CaptureResultTest.java | 26 import android.hardware.camera2.CaptureResult; 200 Pair<TotalCaptureResult, List<CaptureResult>> resultPair = in testPartialResult() 203 List<CaptureResult> partialResults = resultPair.second; in testPartialResult() 214 Set<CaptureResult.Key<?>> appearedPartialKeys = in testPartialResult() 215 new HashSet<CaptureResult.Key<?>>(); in testPartialResult() 216 for (CaptureResult partialResult : partialResults) { in testPartialResult() 219 List<CaptureResult.Key<?>> partialKeys = partialResult.getKeys(); in testPartialResult() 221 for (CaptureResult.Key<?> key : partialKeys) { in testPartialResult() 233 List<CaptureResult.Key<?>> totalResultKeys = totalResult.getKeys(); in testPartialResult() 238 List<CaptureResult> totalResultPartials = totalResult.getPartialResults(); in testPartialResult() [all …]
|
D | BurstCaptureTest.java | 24 import android.hardware.camera2.CaptureResult; 215 CaptureResult result = resultListener.getCaptureResult(MAX_PREVIEW_RESULT_TIMEOUT_MS); in burstTestByCamera() 216 int aeState = result.get(CaptureResult.CONTROL_AE_STATE); in burstTestByCamera() 217 int awbState = result.get(CaptureResult.CONTROL_AWB_STATE); in burstTestByCamera() 223 if ((aeState == CaptureResult.CONTROL_AE_STATE_CONVERGED || in burstTestByCamera() 224 aeState == CaptureResult.CONTROL_AE_STATE_FLASH_REQUIRED) && in burstTestByCamera() 225 awbState == CaptureResult.CONTROL_AWB_STATE_CONVERGED) { in burstTestByCamera() 245 … CaptureResult result = resultListener.getCaptureResult(MAX_PREVIEW_RESULT_TIMEOUT_MS); in burstTestByCamera() 246 int afState = result.get(CaptureResult.CONTROL_AF_STATE); in burstTestByCamera() 252 if (afState == CaptureResult.CONTROL_AF_STATE_FOCUSED_LOCKED || in burstTestByCamera() [all …]
|
D | CaptureRequestTest.java | 30 import android.hardware.camera2.CaptureResult; 1101 CaptureResult result = null; in dynamicBlackWhiteLevelTestByCamera() 1161 CaptureResult.SENSOR_DYNAMIC_BLACK_LEVEL); in dynamicBlackWhiteLevelTestByCamera() 1163 CaptureResult.SENSOR_DYNAMIC_WHITE_LEVEL); in dynamicBlackWhiteLevelTestByCamera() 1248 verifyCaptureResultForKey(CaptureResult.NOISE_REDUCTION_MODE, mode, in noiseReductionModeTestByCamera() 1279 private void verifyFocusRange(CaptureResult result, float focusDistance) { in verifyFocusRange() 1288 Pair<Float, Float> focusRange = result.get(CaptureResult.LENS_FOCUS_RANGE); in verifyFocusRange() 1322 waitForResultValue(resultListener, CaptureResult.LENS_STATE, in focusDistanceTestRepeating() 1323 CaptureResult.LENS_STATE_STATIONARY, NUM_RESULTS_WAIT_TIMEOUT); in focusDistanceTestRepeating() 1324 CaptureResult result = resultListener.getCaptureResultForRequest(request, in focusDistanceTestRepeating() [all …]
|
D | RobustnessTest.java | 71 import android.hardware.camera2.CaptureResult; 488 Rect rawCropRegion = result.get(CaptureResult.SCALER_RAW_CROP_REGION); in validateResultMandatoryConditions() 1167 CaptureResult triggerResult = captureListener.getCaptureResultForRequest( in testBasicTriggerSequence() 1169 int afState = triggerResult.get(CaptureResult.CONTROL_AF_STATE); in testBasicTriggerSequence() 1178 CaptureResult focusResult = captureListener.getCaptureResult( in testBasicTriggerSequence() 1180 afState = focusResult.get(CaptureResult.CONTROL_AF_STATE); in testBasicTriggerSequence() 1202 int aeState = triggerResult.get(CaptureResult.CONTROL_AE_STATE); in testBasicTriggerSequence() 1212 CaptureResult precaptureResult = captureListener.getCaptureResult( in testBasicTriggerSequence() 1214 aeState = precaptureResult.get(CaptureResult.CONTROL_AE_STATE); in testBasicTriggerSequence() 1220 CaptureResult postPrecaptureResult = captureListener.getCaptureResult( in testBasicTriggerSequence() [all …]
|
D | FastBasicsTest.java | 32 import android.hardware.camera2.CaptureResult; 102 CaptureResult result = resultListener.getCaptureResult(WAIT_FOR_FRAMES_TIMEOUT_MS); in camera2TestByCamera() 104 Long timestamp = result.get(CaptureResult.SENSOR_TIMESTAMP); in camera2TestByCamera() 107 CaptureResult result2 = resultListener.getCaptureResult(WAIT_FOR_FRAMES_TIMEOUT_MS); in camera2TestByCamera() 109 Long timestamp2 = result2.get(CaptureResult.SENSOR_TIMESTAMP); in camera2TestByCamera() 122 CaptureResult stillResult = in camera2TestByCamera() 125 Long timestamp3 = stillResult.get(CaptureResult.SENSOR_TIMESTAMP); in camera2TestByCamera()
|
D | CameraExtensionCharacteristicsTest.java | 25 import android.hardware.camera2.CaptureResult; 74 private CaptureResult.Key[] EYES_FREE_AUTO_ZOOM_RESULT_SET = new CaptureResult.Key[0]; 76 private CaptureResult.Key[] EYES_FREE_RESULT_SET = new CaptureResult.Key[0]; 96 EYES_FREE_AUTO_ZOOM_RESULT_SET = new CaptureResult.Key[] { in setUp() 105 EYES_FREE_RESULT_SET = new CaptureResult.Key[] { in setUp() 351 ArraySet<CaptureResult.Key> extensionResultKeys = new ArraySet<>(); in testExtensionResultKeys() 352 extensionResultKeys.add(CaptureResult.EXTENSION_STRENGTH); in testExtensionResultKeys() 353 extensionResultKeys.add(CaptureResult.EXTENSION_CURRENT_TYPE); in testExtensionResultKeys() 368 Set<CaptureResult.Key> resultKeySet = in testExtensionResultKeys() 375 ArraySet<CaptureResult.Key> resultKeys = new ArraySet<>(resultKeySet); in testExtensionResultKeys() [all …]
|
D | StillCaptureTest.java | 29 import android.hardware.camera2.CaptureResult; 756 CaptureResult result; in focalLengthTestByCamera() 767 waitForResultValue(resultListener, CaptureResult.LENS_STATE, in focalLengthTestByCamera() 768 CaptureResult.LENS_STATE_STATIONARY, NUM_RESULTS_WAIT_TIMEOUT); in focalLengthTestByCamera() 770 Float focalLengthInResult = result.get(CaptureResult.LENS_FOCAL_LENGTH); in focalLengthTestByCamera() 789 focalLengthInResult = result.get(CaptureResult.LENS_FOCAL_LENGTH); in focalLengthTestByCamera() 794 result.get(CaptureResult.LENS_FOCAL_LENGTH)); in focalLengthTestByCamera() 901 CaptureResult result; in takePictureTestByCamera() 967 waitForResultValue(resultListener, CaptureResult.CONTROL_AWB_STATE, in takePictureTestByCamera() 968 CaptureResult.CONTROL_AWB_STATE_CONVERGED, NUM_RESULTS_WAIT_TIMEOUT); in takePictureTestByCamera() [all …]
|
D | BurstCaptureRawTest.java | 27 import android.hardware.camera2.CaptureResult; 241 CaptureResult result = rawCaptureCallback.getCaptureResult( in execute() 244 long resultExposure = result.get(CaptureResult.SENSOR_EXPOSURE_TIME); in execute() 245 int resultSensitivity = result.get(CaptureResult.SENSOR_SENSITIVITY); in execute() 316 CaptureResult result = rawCaptureCallback.getCaptureResult( in execute() 319 long resultExposure = result.get(CaptureResult.SENSOR_EXPOSURE_TIME); in execute() 320 int resultSensitivity = result.get(CaptureResult.SENSOR_SENSITIVITY); in execute() 321 int resultEdgeMode = result.get(CaptureResult.EDGE_MODE); in execute() 323 CaptureResult.NOISE_REDUCTION_MODE); in execute() 387 CaptureResult result = rawCaptureCallback.getCaptureResult( in execute() [all …]
|
D | StaticMetadataTest.java | 29 import android.hardware.camera2.CaptureResult; 243 Collection<CaptureResult.Key<?>> resultKeys, boolean expectedPresence) { in validateResultKeysPresence() 247 for (CaptureResult.Key<?> key : resultKeys) { in validateResultKeysPresence() 300 Set<CaptureResult.Key<?>> resultKeys = new HashSet<>(); in validateCapability() 424 resultKeys.add(CaptureResult.SENSOR_FRAME_DURATION); in validateCapability() 425 resultKeys.add(CaptureResult.SENSOR_EXPOSURE_TIME); in validateCapability() 426 resultKeys.add(CaptureResult.SENSOR_SENSITIVITY); in validateCapability() 428 resultKeys.add(CaptureResult.LENS_APERTURE); in validateCapability() 429 resultKeys.add(CaptureResult.LENS_FOCUS_DISTANCE); in validateCapability() 430 resultKeys.add(CaptureResult.LENS_FILTER_DENSITY); in validateCapability() [all …]
|
D | DngCreatorTest.java | 35 import android.hardware.camera2.CaptureResult; 112 public Pair<List<Image>, CaptureResult> imagePair; 120 public Pair<Image, CaptureResult> raw; 121 public Pair<Image, CaptureResult> jpeg; 129 CaptureResult captureResult; 175 Pair<Image, CaptureResult> resultPair = captureSingleRawShot(activeArraySize, in testSingleImageBasic() 259 Pair<Image, CaptureResult> resultPair = null; in testSingleImageBasicMaximumResolution() 363 Pair<List<Image>, CaptureResult> resultPair = captureSingleRawShot(activeArraySize, in testSingleImageThumbnail() 370 resultPair.second.get(CaptureResult.SENSOR_TIMESTAMP) / 1000000); in testSingleImageThumbnail() 818 Pair<Image, CaptureResult> jpegResultPair = in captureRawJpegImagePairMaximumResolution() [all …]
|
D | SimpleObjectsTest.java | 25 import android.hardware.camera2.CaptureResult; 62 CaptureResult.Key<Integer> testResultKey = in cameraKeysTest() 63 new CaptureResult.Key<>(keyName, Integer.class); in cameraKeysTest() 89 CaptureResult.Key<Integer> testResultKey2 = in cameraKeysTest() 90 new CaptureResult.Key<>(keyName, Integer.class); in cameraKeysTest() 93 CaptureResult.Key<Byte> testResultKey3 = in cameraKeysTest() 94 new CaptureResult.Key<>(keyName, Byte.class); in cameraKeysTest() 97 CaptureResult.Key<Integer> testResultKey4 = in cameraKeysTest() 98 new CaptureResult.Key<>(keyName2, Integer.class); in cameraKeysTest() 101 CaptureResult.Key<Byte> testResultKey5 = in cameraKeysTest() [all …]
|
D | CameraExtensionSessionTest.java | 56 import android.hardware.camera2.CaptureResult; 116 private static final CaptureResult.Key[] FOCUS_CAPTURE_RESULT_SET = { 117 CaptureResult.CONTROL_AF_MODE, 118 CaptureResult.CONTROL_AF_REGIONS, 119 CaptureResult.CONTROL_AF_TRIGGER, 120 CaptureResult.CONTROL_AF_STATE}; 123 private static final CaptureResult.Key[] ZOOM_CAPTURE_RESULT_SET = { 124 CaptureResult.CONTROL_ZOOM_RATIO}; 126 private CaptureResult.Key[] EYES_FREE_AUTO_ZOOM_RESULT_SET = new CaptureResult.Key[0]; 128 private CaptureResult.Key[] EYES_FREE_RESULT_SET = new CaptureResult.Key[0]; [all …]
|
D | ZoomCaptureTest.java | 30 import android.hardware.camera2.CaptureResult; 52 import static android.hardware.camera2.CaptureResult.LOGICAL_MULTI_CAMERA_ACTIVE_PHYSICAL_SENSOR_CR… 234 CaptureResult.LOGICAL_MULTI_CAMERA_ACTIVE_PHYSICAL_ID); in bufferFormatZoomTestByCamera() 247 … float[] lensIntrinsicCalibration = result.get(CaptureResult.LENS_INTRINSIC_CALIBRATION); in bufferFormatZoomTestByCamera() 268 CaptureResult.CONTROL_ZOOM_RATIO); in bufferFormatZoomTestByCamera() 299 CaptureResult.STATISTICS_LENS_INTRINSICS_SAMPLES); in bufferFormatZoomTestByCamera()
|
D | ReadoutTimestampTest.java | 32 import android.hardware.camera2.CaptureResult; 147 ArrayList<CaptureResult> results = new ArrayList<>(); in testReadoutTimestamp() 149 CaptureResult result = resultListener.getCaptureResult(WAIT_FOR_RESULT_TIMEOUT_MS); in testReadoutTimestamp() 188 Long exposureTime = results.get(i).get(CaptureResult.SENSOR_EXPOSURE_TIME); in testReadoutTimestamp() 264 public CaptureResult getCaptureResult(long timeout) { in getCaptureResult()
|
D | LogicalCameraDeviceTest.java | 54 import android.hardware.camera2.CaptureResult; 713 Float resultFocalLength = result.get(CaptureResult.LENS_FOCAL_LENGTH); in testLogicalCameraZoomSwitch() 714 Rect resultCropRegion = result.get(CaptureResult.SCALER_CROP_REGION); in testLogicalCameraZoomSwitch() 729 CaptureResult.LENS_INTRINSIC_CALIBRATION); in testLogicalCameraZoomSwitch() 731 CaptureResult.LENS_INTRINSIC_CALIBRATION); in testLogicalCameraZoomSwitch() 749 CaptureResult.LOGICAL_MULTI_CAMERA_ACTIVE_PHYSICAL_ID); in testLogicalCameraZoomSwitch() 819 … CaptureResult result = listener.getCaptureResult(WAIT_FOR_RESULT_TIMEOUT_MS); in testActivePhysicalId() 821 CaptureResult.LOGICAL_MULTI_CAMERA_ACTIVE_PHYSICAL_ID); in testActivePhysicalId() 1038 Rect cropRegion = totalCaptureResult.get(CaptureResult.SCALER_CROP_REGION); in validatePhysicalCamerasFov() 1039 Float focalLength = totalCaptureResult.get(CaptureResult.LENS_FOCAL_LENGTH); in validatePhysicalCamerasFov() [all …]
|
D | PerformanceTest.java | 36 import android.hardware.camera2.CaptureResult; 451 Pair<CaptureResult, Long> partialResultNTime = null; in testSingleCaptureForFormat() 461 Pair<CaptureResult, Long> captureResultNTime = in testSingleCaptureForFormat() 672 CaptureResult.CONTROL_AE_STATE, in testMultipleCapture() 673 CaptureResult.CONTROL_AE_STATE_LOCKED, in testMultipleCapture() 695 Pair<CaptureResult, Long> captureResultNTime = in testMultipleCapture() 704 CaptureResult.SENSOR_TIMESTAMP); in testMultipleCapture() 1109 CaptureResult result = CameraTestUtils.waitForNumResults( in testZoomSettingsOverrideLatency() 1134 float resultZoomFactor = zoomResult.get(CaptureResult.CONTROL_ZOOM_RATIO); in testZoomSettingsOverrideLatency() 1479 CaptureResult[] results = new CaptureResult[timestampGap.length]; [all …]
|
D | HeifWriterTest.java | 34 import android.hardware.camera2.CaptureResult; 202 CaptureResult result = validateCaptureResult( in testHeif() 382 private CaptureResult validateCaptureResult( in validateCaptureResult() 384 CaptureResult result = null; in validateCaptureResult() 389 Long exposureTime = getValueNotNull(result, CaptureResult.SENSOR_EXPOSURE_TIME); in validateCaptureResult() 390 Integer sensitivity = getValueNotNull(result, CaptureResult.SENSOR_SENSITIVITY); in validateCaptureResult()
|
D | SurfaceViewPreviewTest.java | 30 import android.hardware.camera2.CaptureResult; 260 waitForResultValue(resultListener, CaptureResult.CONTROL_AE_STATE, in preparePerformanceTestByCamera() 261 CaptureResult.CONTROL_AE_STATE_LOCKED, MAX_RESULTS_TO_WAIT); in preparePerformanceTestByCamera() 284 CaptureResult result = resultListener.getCaptureResult(WAIT_FOR_RESULT_TIMEOUT_MS); in preparePerformanceTestByCamera() 285 long prevTimestamp = result.get(CaptureResult.SENSOR_TIMESTAMP); in preparePerformanceTestByCamera() 639 CaptureResult result = resultListener.getCaptureResult(WAIT_FOR_RESULT_TIMEOUT_MS); in measureMeanFrameInterval() 640 long timestamp = result.get(CaptureResult.SENSOR_TIMESTAMP); in measureMeanFrameInterval() 704 CaptureResult result = resultListener.getCaptureResult(WAIT_FOR_RESULT_TIMEOUT_MS); in verifyPreviewTargetFpsRange() 708 long frameDuration = getValueNotNull(result, CaptureResult.SENSOR_FRAME_DURATION); in verifyPreviewTargetFpsRange() 715 long expTime = getValueNotNull(result, CaptureResult.SENSOR_EXPOSURE_TIME); in verifyPreviewTargetFpsRange() [all …]
|
D | OfflineSessionTest.java | 38 import android.hardware.camera2.CaptureResult; 137 CaptureResult result = resultListener.getCaptureResult(WAIT_FOR_FRAMES_TIMEOUT_MS); in testInvalidOutput() 139 Long timestamp = result.get(CaptureResult.SENSOR_TIMESTAMP); in testInvalidOutput() 142 CaptureResult result2 = resultListener.getCaptureResult(WAIT_FOR_FRAMES_TIMEOUT_MS); in testInvalidOutput() 144 Long timestamp2 = result2.get(CaptureResult.SENSOR_TIMESTAMP); in testInvalidOutput() 520 long resultTimestamp = result.get(CaptureResult.SENSOR_TIMESTAMP); in verifyCaptureResults() 789 CaptureResult result = resultListener.getCaptureResult(WAIT_FOR_FRAMES_TIMEOUT_MS); in checkInitialResults() 791 Long timestamp = result.get(CaptureResult.SENSOR_TIMESTAMP); in checkInitialResults() 794 CaptureResult result2 = resultListener.getCaptureResult(WAIT_FOR_FRAMES_TIMEOUT_MS); in checkInitialResults() 796 Long timestamp2 = result2.get(CaptureResult.SENSOR_TIMESTAMP); in checkInitialResults()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | RecordingResult.java | 19 import android.hardware.camera2.CaptureResult; 28 public static final List<CaptureResult.Key<?>> PREVIEW_RESULT_TRACKED_KEYS = List.of( 29 CaptureResult.CONTROL_ZOOM_RATIO, 30 CaptureResult.LENS_FOCAL_LENGTH, 31 CaptureResult.LENS_FOCUS_DISTANCE, 32 CaptureResult.SCALER_CROP_REGION, 33 CaptureResult.LOGICAL_MULTI_CAMERA_ACTIVE_PHYSICAL_ID, 34 CaptureResult.LENS_INTRINSIC_CALIBRATION, 36 CaptureResult.STATISTICS_LENS_INTRINSICS_SAMPLES, 37 CaptureResult.SENSOR_TIMESTAMP [all …]
|
D | ItsService.java | 58 import android.hardware.camera2.CaptureResult; 321 private CaptureResult[] mCaptureResults = null; 744 } else if (obj instanceof CaptureResult) { in run() 746 (CaptureResult)obj)); in run() 1346 Map<String, CaptureResult> physicalMetadata = in sendResponseCaptureResult() 1349 for (Map.Entry<String, CaptureResult> pair : physicalMetadata.entrySet()) { in sendResponseCaptureResult() 3751 mCaptureResults = new CaptureResult[2]; 3796 "AE state is " + CaptureResult.CONTROL_AE_STATE_PRECAPTURE + 3861 mCaptureResults = new CaptureResult[requests.size()]; 3966 mCaptureResults = new CaptureResult[requests.size()]; [all …]
|
D | ItsSerializer.java | 25 import android.hardware.camera2.CaptureResult; 298 if (keyObj.getClass() == CaptureResult.Key.class in getKeyName() 300 return ((CaptureResult.Key)keyObj).getName(); in getKeyName() 310 if (md.getClass() == CaptureResult.class || md.getClass() == TotalCaptureResult.class) { in getKeyValue() 311 return ((CaptureResult)md).get((CaptureResult.Key)keyObj); in getKeyValue() 505 for (CaptureResult.Key<?> key : recordingResult.getKeys()) { in serialize() 537 allFields = CaptureResult.class.getDeclaredFields(); in serialize() 544 List<CaptureResult.Key<?>> resultKeys = chars.getAvailableCaptureResultKeys(); in serialize() 557 for (CaptureResult.Key<?> k : resultKeys) { in serialize() 580 || field.getType() == CaptureResult.Key.class in serialize()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/ |
D | Camera2Focuser.java | 27 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()
|
D | CameraErrorCollector.java | 23 import android.hardware.camera2.CaptureResult; 747 public <T> T expectKeyValueNotNull(CaptureResult result, CaptureResult.Key<T> key) { in expectKeyValueNotNull() 759 public <T> T expectKeyValueNotNull(String msg, CaptureResult result, CaptureResult.Key<T> key) { in expectKeyValueNotNull() 799 CaptureResult result, CaptureResult.Key<T> key, T expected) { in expectKeyValueNotEquals() 820 public <T> void expectKeyValueEquals(CaptureResult result, CaptureResult.Key<T> key, in expectKeyValueEquals() 868 CaptureResult result, CaptureResult.Key<T> key, T expected) { in expectKeyValueGreaterOrEqual() 970 public <T> void expectKeyValueIsIn(CaptureResult result, in expectKeyValueIsIn() 971 CaptureResult.Key<T> key, T... expected) { in expectKeyValueIsIn()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/ |
D | CameraTestUtils.java | 41 import android.hardware.camera2.CaptureResult; 924 public CaptureResult getCaptureResult(long timeout) { in getCaptureResult() 938 currentTs = result.get(CaptureResult.SENSOR_TIMESTAMP); in getCaptureResult() 973 public CaptureResult getCaptureResultForRequest(CaptureRequest myRequest, in getCaptureResultForRequest() 2533 CaptureResult result, List<CaptureResult> partialResults, int algoIdx, in validate3aRegion() 2549 CaptureResult.Key<MeteringRectangle[]> key; in validate3aRegion() 2555 key = CaptureResult.CONTROL_AE_REGIONS; in validate3aRegion() 2559 key = CaptureResult.CONTROL_AWB_REGIONS; in validate3aRegion() 2563 key = CaptureResult.CONTROL_AF_REGIONS; in validate3aRegion() 2571 Float zoomRatio = result.get(CaptureResult.CONTROL_ZOOM_RATIO); in validate3aRegion() [all …]
|