Home
last modified time | relevance | path

Searched refs:CameraCharacteristics (Results 1 – 25 of 56) sorted by relevance

123

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DStaticMetadata.java23 import android.hardware.camera2.CameraCharacteristics;
24 import android.hardware.camera2.CameraCharacteristics.Key;
75 private final CameraCharacteristics mCharacteristics;
139 public StaticMetadata(CameraCharacteristics characteristics) { in StaticMetadata()
154 public StaticMetadata(CameraCharacteristics characteristics, CameraErrorCollector collector) { in StaticMetadata()
172 public StaticMetadata(CameraCharacteristics characteristics, CheckLevel level, in StaticMetadata()
191 public CameraCharacteristics getCharacteristics() { in getCharacteristics()
217 CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL); in getHardwareLevelChecked()
254 Integer value = getValueFromKeyNonNull(CameraCharacteristics.SYNC_MAX_LATENCY); in getSyncMaxLatency()
287 CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL); in isHardwareLevelLimitedOrBetter()
[all …]
DCameraUtils.java21 import android.hardware.camera2.CameraCharacteristics;
45 CameraCharacteristics characteristics = in isLegacyHAL()
48 return characteristics.get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL) == in isLegacyHAL()
49 CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY; in isLegacyHAL()
DCameraErrorCollector.java24 import android.hardware.camera2.CameraCharacteristics;
640 public <T> T expectKeyValueNotNull(CameraCharacteristics characteristics, in expectKeyValueNotNull()
641 CameraCharacteristics.Key<T> key) { in expectKeyValueNotNull()
832 CameraCharacteristics characteristics, CameraCharacteristics.Key<T> key, T expected) { in expectKeyValueGreaterThan()
850 CameraCharacteristics characteristics, CameraCharacteristics.Key<T> key, T min, T max) { in expectKeyValueInRange()
865 public <T> void expectKeyValueIsIn(CameraCharacteristics characteristics, in expectKeyValueIsIn()
866 CameraCharacteristics.Key<T> key, T... expected) { in expectKeyValueIsIn()
900 public <T> void expectKeyValueContains(CameraCharacteristics characteristics, in expectKeyValueContains()
901 CameraCharacteristics.Key<T[]> key, T expected) { in expectKeyValueContains()
918 public void expectKeyValueContains(CameraCharacteristics characteristics, in expectKeyValueContains()
[all …]
/frameworks/base/core/java/android/hardware/camera2/legacy/
DLegacyMetadataMapper.java25 import android.hardware.camera2.CameraCharacteristics;
48 import static android.hardware.camera2.CameraCharacteristics.*;
121 public static CameraCharacteristics createCharacteristics(Camera.Parameters parameters, in createCharacteristics()
145 public static CameraCharacteristics createCharacteristics(String parameters, in createCharacteristics()
169 return new CameraCharacteristics(m); in createCharacteristics()
759 CameraCharacteristics.COLOR_CORRECTION_AVAILABLE_ABERRATION_MODES , in mapRequest()
760 CameraCharacteristics.CONTROL_AE_AVAILABLE_ANTIBANDING_MODES , in mapRequest()
761 CameraCharacteristics.CONTROL_AE_AVAILABLE_MODES , in mapRequest()
762 CameraCharacteristics.CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES , in mapRequest()
763 CameraCharacteristics.CONTROL_AE_COMPENSATION_RANGE , in mapRequest()
[all …]
DLegacyRequest.java20 import android.hardware.camera2.CameraCharacteristics;
31 public final CameraCharacteristics characteristics;
47 public LegacyRequest(CameraCharacteristics characteristics, CaptureRequest captureRequest, in LegacyRequest()
DLegacyFaceDetectMapper.java24 import android.hardware.camera2.CameraCharacteristics;
71 public LegacyFaceDetectMapper(Camera camera, CameraCharacteristics characteristics) { in LegacyFaceDetectMapper()
77 CameraCharacteristics.STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES), in LegacyFaceDetectMapper()
230 CameraCharacteristics characteristics = legacyRequest.characteristics; in mapResultFaces()
235 Rect activeArray = characteristics.get(CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE); in mapResultFaces()
DLegacyResultMapper.java22 import android.hardware.camera2.CameraCharacteristics;
112 CameraCharacteristics characteristics = legacyRequest.characteristics; in convertResultMetadata()
120 CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE); in convertResultMetadata()
246 characteristics.get(CameraCharacteristics.REQUEST_PIPELINE_MAX_DEPTH)); in convertResultMetadata()
295 CameraCharacteristics characteristics, in mapAe()
410 CameraCharacteristics characteristics, Parameters p) { in mapAeAndFlashMode()
415 Integer flashState = characteristics.get(CameraCharacteristics.FLASH_INFO_AVAILABLE) in mapAeAndFlashMode()
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraMetadataNative.java23 import android.hardware.camera2.CameraCharacteristics;
223 } else if (o instanceof CameraCharacteristics.Key) { in equals()
224 lhs = ((CameraCharacteristics.Key)o).getNativeKey(); in equals()
409 public <T> T get(CameraCharacteristics.Key<T> key) { in get()
498 public <T> void set(CameraCharacteristics.Key<T> key, T value) { in set()
538 private <T> T getBase(CameraCharacteristics.Key<T> key) { in getBase()
584 CameraCharacteristics.SCALER_AVAILABLE_FORMATS.getNativeKey(), new GetCommand() { in GetCommand()
608 CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP.getNativeKey(), in CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP.getNativeKey()
617 CameraCharacteristics.SCALER_MANDATORY_STREAM_COMBINATIONS.getNativeKey(), in CameraCharacteristics.SCALER_MANDATORY_STREAM_COMBINATIONS.getNativeKey()
626CameraCharacteristics.SCALER_MANDATORY_CONCURRENT_STREAM_COMBINATIONS.getNativeKey(), in CameraCharacteristics.SCALER_MANDATORY_CONCURRENT_STREAM_COMBINATIONS.getNativeKey()
[all …]
DCameraConstrainedHighSpeedCaptureSessionImpl.java20 import android.hardware.camera2.CameraCharacteristics;
55 private final CameraCharacteristics mCharacteristics;
70 CameraCharacteristics characteristics) { in CameraConstrainedHighSpeedCaptureSessionImpl()
88 mCharacteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); in createHighSpeedRequestList()
DCameraOfflineSessionImpl.java21 import android.hardware.camera2.CameraCharacteristics;
71 private final CameraCharacteristics mCharacteristics;
96 public CameraOfflineSessionImpl(String cameraId, CameraCharacteristics characteristics, in CameraOfflineSessionImpl()
111 mCharacteristics.get(CameraCharacteristics.REQUEST_PARTIAL_RESULT_COUNT); in CameraOfflineSessionImpl()
294 result.set(CameraCharacteristics.LENS_INFO_SHADING_MAP_SIZE, in onResultReceived()
295 mCharacteristics.get(CameraCharacteristics.LENS_INFO_SHADING_MAP_SIZE)); in onResultReceived()
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
DCameraOps.java23 import android.hardware.camera2.CameraCharacteristics;
96 private CameraCharacteristics mCameraInfo;
111 CameraCharacteristics info = mCameraManager.getCameraCharacteristics(id); in resume()
112 int facing = info.get(CameraCharacteristics.LENS_FACING); in resume()
114 int level = info.get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL); in resume()
116 = (level == CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_FULL); in resume()
118 int[] capabilities = info.get(CameraCharacteristics.REQUEST_AVAILABLE_CAPABILITIES); in resume()
119 int syncLatency = info.get(CameraCharacteristics.SYNC_MAX_LATENCY); in resume()
121 CameraCharacteristics.REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR); in resume()
123 syncLatency == CameraCharacteristics.SYNC_MAX_LATENCY_PER_FRAME_CONTROL; in resume()
[all …]
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DCameraOps.java23 import android.hardware.camera2.CameraCharacteristics;
90 private CameraCharacteristics mCameraInfo;
106 CameraCharacteristics info = mCameraManager.getCameraCharacteristics(id); in resume()
107 int facing = info.get(CameraCharacteristics.LENS_FACING); in resume()
109 int level = info.get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL); in resume()
111 = (level == CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_FULL); in resume()
113 int[] capabilities = info.get(CameraCharacteristics.REQUEST_AVAILABLE_CAPABILITIES); in resume()
114 int syncLatency = info.get(CameraCharacteristics.SYNC_MAX_LATENCY); in resume()
116 CameraCharacteristics.REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR); in resume()
118 syncLatency == CameraCharacteristics.SYNC_MAX_LATENCY_PER_FRAME_CONTROL; in resume()
[all …]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DAndroidCamera2Capabilities.java19 import static android.hardware.camera2.CameraCharacteristics.*;
24 import android.hardware.camera2.CameraCharacteristics;
41 AndroidCamera2Capabilities(CameraCharacteristics p) { in AndroidCamera2Capabilities()
107 private void buildSceneModes(CameraCharacteristics p) { in buildSceneModes()
119 private void buildFlashModes(CameraCharacteristics p) { in buildFlashModes()
133 private void buildFocusModes(CameraCharacteristics p) { in buildFocusModes()
145 private void buildWhiteBalances(CameraCharacteristics p) { in buildWhiteBalances()
DAndroidCamera2AgentImpl.java28 import android.hardware.camera2.CameraCharacteristics;
783 CameraCharacteristics props =
791 props.get(CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE);
793 props.get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL) ==
794 CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY;
989 CameraCharacteristics properties) { in AndroidCamera2ProxyImpl()
1307 .get(CameraCharacteristics.LENS_FACING); in AndroidCamera2DeviceInfo()
1309 lensDirection == CameraCharacteristics.LENS_FACING_BACK) { in AndroidCamera2DeviceInfo()
1313 lensDirection == CameraCharacteristics.LENS_FACING_FRONT) { in AndroidCamera2DeviceInfo()
1328 CameraCharacteristics info = mCameraManager.getCameraCharacteristics(actualId); in getCharacteristics()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2CaptureRequestTest.java19 import static android.hardware.camera2.CameraCharacteristics.CONTROL_AE_MODE_OFF;
20 import static android.hardware.camera2.CameraCharacteristics.CONTROL_AE_MODE_ON;
21 import static android.hardware.camera2.CameraCharacteristics.CONTROL_AE_MODE_ON_ALWAYS_FLASH;
22 import static android.hardware.camera2.CameraCharacteristics.CONTROL_AE_MODE_ON_AUTO_FLASH;
23 import static android.hardware.camera2.CameraCharacteristics.CONTROL_AE_MODE_ON_AUTO_FLASH_REDEYE;
27 import android.hardware.camera2.CameraCharacteristics;
137 CameraCharacteristics.REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR)) { in aeModeAndLockTestByMode()
243 CameraCharacteristics.REQUEST_AVAILABLE_CAPABILITIES_READ_SENSOR_SETTINGS)) { in autoAeMultipleCapturesThenTestLock()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DCameraMetadataTest.java30 import android.hardware.camera2.CameraCharacteristics;
1000 Key<int[]> formatKey = CameraCharacteristics.SCALER_AVAILABLE_FORMATS.getNativeKey(); in testReadWriteOverride()
1129 CameraCharacteristics.SCALER_AVAILABLE_STREAM_CONFIGURATIONS.getNativeKey(); in testOverrideStreamConfigurationMap()
1157 CameraCharacteristics.SCALER_AVAILABLE_MIN_FRAME_DURATIONS.getNativeKey(); in testOverrideStreamConfigurationMap()
1183 CameraCharacteristics.SCALER_AVAILABLE_STALL_DURATIONS.getNativeKey(); in testOverrideStreamConfigurationMap()
1191 CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); in testOverrideStreamConfigurationMap()
1241 private <T> void assertKeyValueEquals(T expected, CameraCharacteristics.Key<T> key) { in assertKeyValueEquals()
1254 assertKeyValueEquals(null, CameraCharacteristics.CONTROL_MAX_REGIONS_AE); in testOverrideMaxRegions()
1255 assertKeyValueEquals(null, CameraCharacteristics.CONTROL_MAX_REGIONS_AWB); in testOverrideMaxRegions()
1256 assertKeyValueEquals(null, CameraCharacteristics.CONTROL_MAX_REGIONS_AF); in testOverrideMaxRegions()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DFlashlightControllerImpl.java23 import android.hardware.camera2.CameraCharacteristics;
155 CameraCharacteristics c = mCameraManager.getCameraCharacteristics(id); in getCameraId()
156 Boolean flashAvailable = c.get(CameraCharacteristics.FLASH_INFO_AVAILABLE); in getCameraId()
157 Integer lensFacing = c.get(CameraCharacteristics.LENS_FACING); in getCameraId()
159 && lensFacing != null && lensFacing == CameraCharacteristics.LENS_FACING_BACK) { in getCameraId()
/frameworks/base/core/java/android/hardware/camera2/
DCameraMetadata.java219 } else if (k instanceof CameraCharacteristics.Key<?>) { in getKeys()
220 keyName = ((CameraCharacteristics.Key<?>) k).getName(); in getKeys()
221 vendorId = ((CameraCharacteristics.Key<?>) k).getVendorId(); in getKeys()
254 if (key instanceof CameraCharacteristics.Key) { in shouldKeyBeAdded()
255 nativeKey = ((CameraCharacteristics.Key)key).getNativeKey(); in shouldKeyBeAdded()
DCameraCharacteristics.java55 public final class CameraCharacteristics extends CameraMetadata<CameraCharacteristics.Key<?>> { class
198 private List<CameraCharacteristics.Key<?>> mKeys;
199 private List<CameraCharacteristics.Key<?>> mKeysNeedingPermission;
210 public CameraCharacteristics(CameraMetadataNative properties) { in CameraCharacteristics() method in CameraCharacteristics
309 Object crKey = CameraCharacteristics.Key.class; in getKeysNeedingPermission()
310 Class<CameraCharacteristics.Key<?>> crKeyTyped = in getKeysNeedingPermission()
311 (Class<CameraCharacteristics.Key<?>>)crKey; in getKeysNeedingPermission()
316 new ArrayList<CameraCharacteristics.Key<?>> ()); in getKeysNeedingPermission()
320 getAvailableKeyList(CameraCharacteristics.class, crKeyTyped, filterTags, in getKeysNeedingPermission()
DDngCreator.java87 public DngCreator(@NonNull CameraCharacteristics characteristics, in DngCreator()
99 CameraCharacteristics.SENSOR_INFO_TIMESTAMP_SOURCE); in DngCreator()
101 if (timestampSource == CameraCharacteristics.SENSOR_INFO_TIMESTAMP_SOURCE_REALTIME) { in DngCreator()
105 } else if (timestampSource == CameraCharacteristics.SENSOR_INFO_TIMESTAMP_SOURCE_UNKNOWN) { in DngCreator()
/frameworks/base/tests/Camera2Tests/CameraToo/src/com/example/android/camera2/cameratoo/
DCameraTooActivity.java22 import android.hardware.camera2.CameraCharacteristics;
238 CameraCharacteristics cameraCharacteristics =
241 CameraCharacteristics.LENS_FACING_BACK) {
244 .get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DCamera2SurfaceViewTestCase.java36 import android.hardware.camera2.CameraCharacteristics;
608 CameraCharacteristics properties = mCameraManager.getCameraCharacteristics(cameraId); in openDevice()
611 properties.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); in openDevice()
746 CameraCharacteristics.REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR)) { in getMaxPreviewSizeForFpsRange()
770 int cap = CameraCharacteristics.REQUEST_AVAILABLE_CAPABILITIES_YUV_REPROCESSING; in isReprocessSupported()
772 cap = CameraCharacteristics.REQUEST_AVAILABLE_CAPABILITIES_PRIVATE_REPROCESSING; in isReprocessSupported()
/frameworks/base/core/java/android/hardware/camera2/params/
DMandatoryStreamCombination.java27 import android.hardware.camera2.CameraCharacteristics;
839 CameraCharacteristics.REQUEST_AVAILABLE_CAPABILITIES_BURST_CAPTURE)) { in getAvailableMandatoryStreamCombinations()
857 CameraCharacteristics.REQUEST_AVAILABLE_CAPABILITIES_RAW)) { in getAvailableMandatoryStreamCombinations()
1119 CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY, in isHardwareLevelAtLeast()
1120 CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_EXTERNAL, in isHardwareLevelAtLeast()
1121 CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED, in isHardwareLevelAtLeast()
1122 CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_FULL, in isHardwareLevelAtLeast()
1123 CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_3 in isHardwareLevelAtLeast()
1146 return mHwLevel == CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_EXTERNAL; in isExternalCamera()
1203 CameraCharacteristics.REQUEST_AVAILABLE_CAPABILITIES_BACKWARD_COMPATIBLE); in isColorOutputSupported()
[all …]
DRecommendedStreamConfiguration.java19 import android.hardware.camera2.CameraCharacteristics;
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DCamera2Source.java23 import android.hardware.camera2.CameraCharacteristics;
64 private CameraCharacteristics mProperties;
244 Integer orientation = mProperties.get(CameraCharacteristics.SENSOR_ORIENTATION); in onProcess()

123