Home
last modified time | relevance | path

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

12

/packages/apps/Camera2/src/com/android/camera/one/v2/
DOneCameraCharacteristicsImpl.java24 import android.hardware.camera2.CameraCharacteristics;
53 private final CameraCharacteristics mCameraCharacteristics;
55 public OneCameraCharacteristicsImpl(CameraCharacteristics cameraCharacteristics) { in OneCameraCharacteristicsImpl()
64 CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); in getSupportedPictureSizes()
83 CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); in getSupportedPreviewSizes()
98 return mCameraCharacteristics.get(CameraCharacteristics.SENSOR_ORIENTATION); in getSensorOrientation()
103 int direction = mCameraCharacteristics.get(CameraCharacteristics.LENS_FACING); in getCameraDirection()
104 if (direction == CameraCharacteristics.LENS_FACING_BACK) { in getCameraDirection()
113 return mCameraCharacteristics.get(CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE); in getSensorInfoActiveArraySize()
118 return mCameraCharacteristics.get(CameraCharacteristics.SCALER_AVAILABLE_MAX_DIGITAL_ZOOM); in getAvailableMaxDigitalZoom()
[all …]
DCamera2OneCameraManagerImpl.java22 import android.hardware.camera2.CameraCharacteristics;
125 public CameraCharacteristics getCameraCharacteristics( in getCameraCharacteristics()
157 String cameraId = findFirstCameraIdFacing(CameraCharacteristics.LENS_FACING_BACK); in findFirstBackCameraId()
160 cameraId = findFirstCameraIdFacing(CameraCharacteristics.LENS_FACING_EXTERNAL); in findFirstBackCameraId()
171 String cameraId = findFirstCameraIdFacing(CameraCharacteristics.LENS_FACING_FRONT); in findFirstFrontCameraId()
174 cameraId = findFirstCameraIdFacing(CameraCharacteristics.LENS_FACING_EXTERNAL); in findFirstFrontCameraId()
188 CameraCharacteristics characteristics = mCameraManager in findFirstCameraIdFacing()
190 if (characteristics.get(CameraCharacteristics.LENS_FACING) == facing) { in findFirstCameraIdFacing()
DOneCameraImpl.java26 import android.hardware.camera2.CameraCharacteristics;
266 private final CameraCharacteristics mCharacteristics;
319 OneCameraImpl(CameraDevice device, CameraCharacteristics characteristics, Size pictureSize) { in OneCameraImpl()
455 .get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); in getSupportedPreviewSizes()
700 CameraCharacteristics.SENSOR_ORIENTATION); in triggerFocusAndMeterAtPoint()
711 return mCharacteristics.get(CameraCharacteristics.SCALER_AVAILABLE_MAX_DIGITAL_ZOOM); in getMaxZoom()
751 private static float calculateFullSizeAspectRatio(CameraCharacteristics characteristics) { in calculateFullSizeAspectRatio()
753 characteristics.get(CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE); in calculateFullSizeAspectRatio()
801 CameraCharacteristics characteristics, File dngFile) { in writeDngBytesAndClose()
856 mCharacteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); in getDefaultPictureSize()
DOneCameraZslImpl.java23 import android.hardware.camera2.CameraCharacteristics;
155 private final CameraCharacteristics mCharacteristics;
294 OneCameraZslImpl(CameraDevice device, CameraCharacteristics characteristics, Size pictureSize) { in OneCameraZslImpl()
392 mCharacteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); in getDefaultPictureSize()
597 mCharacteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); in getSupportedPreviewSizes()
979 private static float calculateFullSizeAspectRatio(CameraCharacteristics characteristics) { in calculateFullSizeAspectRatio()
981 characteristics.get(CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE); in calculateFullSizeAspectRatio()
1085 CameraCharacteristics.SENSOR_ORIENTATION); in triggerFocusAndMeterAtPoint()
1106 return mCharacteristics.get(CameraCharacteristics.SCALER_AVAILABLE_MAX_DIGITAL_ZOOM); in getMaxZoom()
DAutoFocusHelper.java21 import android.hardware.camera2.CameraCharacteristics;
211 public static Rect cropRegionForZoom(CameraCharacteristics characteristics, float zoom) { in cropRegionForZoom()
212 Rect sensor = characteristics.get(CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE); in cropRegionForZoom()
DCamera2OneCameraOpenerImpl.java22 import android.hardware.camera2.CameraCharacteristics;
163 CameraCharacteristics characteristics = mCameraManager in open()
/packages/apps/DevCamera/src/com/android/devcamera/
DCameraDeviceReport.java23 import android.hardware.camera2.CameraCharacteristics;
74 CameraCharacteristics p; in printCameraInfo()
84 Rect size = p.get(CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE); in printCameraInfo()
92 Size size2 = p.get(CameraCharacteristics.SENSOR_INFO_PIXEL_ARRAY_SIZE); in printCameraInfo()
95 SizeF size3 = p.get(CameraCharacteristics.SENSOR_INFO_PHYSICAL_SIZE); in printCameraInfo()
99 int sensorOrientation = p.get(CameraCharacteristics.SENSOR_ORIENTATION); in printCameraInfo()
103 getTimestampSourceName(p.get(CameraCharacteristics.SENSOR_INFO_TIMESTAMP_SOURCE))); in printCameraInfo()
106 …getFocusDistanceCalibrationName(p.get(CameraCharacteristics.LENS_INFO_FOCUS_DISTANCE_CALIBRATION))… in printCameraInfo()
108 int[] faceModes = p.get(CameraCharacteristics.STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES); in printCameraInfo()
112 case CameraCharacteristics.STATISTICS_FACE_DETECT_MODE_OFF: in printCameraInfo()
[all …]
DCameraInfoCache.java20 import android.hardware.camera2.CameraCharacteristics;
42 private CameraCharacteristics mCameraCharacteristics;
63 Integer facing = mCameraCharacteristics.get(CameraCharacteristics.LENS_FACING); in CameraInfoCache()
80 …StreamConfigurationMap map = mCameraCharacteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIG… in CameraInfoCache()
105 … mActiveArea = mCameraCharacteristics.get(CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE); in CameraInfoCache()
108 …int[] faceModes = mCameraCharacteristics.get(CameraCharacteristics.STATISTICS_INFO_AVAILABLE_FACE_… in CameraInfoCache()
114 edgeModes = mCameraCharacteristics.get(CameraCharacteristics.EDGE_AVAILABLE_EDGE_MODES); in CameraInfoCache()
115 …noiseModes = mCameraCharacteristics.get(CameraCharacteristics.NOISE_REDUCTION_AVAILABLE_NOISE_REDU… in CameraInfoCache()
118 … mHardwareLevel = mCameraCharacteristics.get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL); in CameraInfoCache()
120 mSensorOrientation = mCameraCharacteristics.get(CameraCharacteristics.SENSOR_ORIENTATION); in CameraInfoCache()
[all …]
DApi2Camera.java23 import android.hardware.camera2.CameraCharacteristics;
167 …if (mCameraInfoCache.isHardwareLevelAtLeast(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_3)… in Api2Camera()
170 CameraCharacteristics.NOISE_REDUCTION_MODE_ZERO_SHUTTER_LAG)) { in Api2Camera()
171 mCaptureNoiseMode = CameraCharacteristics.NOISE_REDUCTION_MODE_ZERO_SHUTTER_LAG; in Api2Camera()
173 mCaptureNoiseMode = CameraCharacteristics.NOISE_REDUCTION_MODE_FAST; in Api2Camera()
176 CameraCharacteristics.EDGE_MODE_ZERO_SHUTTER_LAG)) { in Api2Camera()
177 mCaptureEdgeMode = CameraCharacteristics.EDGE_MODE_ZERO_SHUTTER_LAG; in Api2Camera()
179 mCaptureEdgeMode = CameraCharacteristics.EDGE_MODE_FAST; in Api2Camera()
183 mReprocessingNoiseMode = CameraCharacteristics.NOISE_REDUCTION_MODE_HIGH_QUALITY; in Api2Camera()
184 mReprocessingEdgeMode = CameraCharacteristics.EDGE_MODE_HIGH_QUALITY; in Api2Camera()
DPreviewOverlay.java24 import android.hardware.camera2.CameraCharacteristics;
45 private int mFacing = CameraCharacteristics.LENS_FACING_BACK;
93 boolean front = (mFacing == CameraCharacteristics.LENS_FACING_BACK); in setGyroAngles()
122 if (mFacing != CameraCharacteristics.LENS_FACING_BACK) { in setGyroAngles()
DDevCameraActivity.java22 import android.hardware.camera2.CameraCharacteristics;
546 CameraCharacteristics.LENS_FACING_FRONT : CameraCharacteristics.LENS_FACING_BACK, in startGyroDisplay()
/packages/apps/Camera2/src/com/android/camera/one/config/
DOneCameraFeatureConfigCreator.java20 import android.hardware.camera2.CameraCharacteristics;
57 private static Function<CameraCharacteristics, CaptureSupportLevel> buildCaptureModuleDetector( in buildCaptureModuleDetector()
59 return new Function<CameraCharacteristics, CaptureSupportLevel>() { in buildCaptureModuleDetector()
61 public CaptureSupportLevel apply(CameraCharacteristics characteristics) { in buildCaptureModuleDetector()
72 .get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL); in buildCaptureModuleDetector()
84 if (supportedLevel == CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY) { in buildCaptureModuleDetector()
110 if (supportedLevel == CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_FULL || in buildCaptureModuleDetector()
111 supportedLevel == CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_3) { in buildCaptureModuleDetector()
121 if (supportedLevel == CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED) { in buildCaptureModuleDetector()
133 private static boolean supportsReprocessing(CameraCharacteristics characteristics) {
[all …]
DOneCameraFeatureConfig.java20 import android.hardware.camera2.CameraCharacteristics;
82 private final Function<CameraCharacteristics, CaptureSupportLevel> mCaptureModeDetector;
97 Function<CameraCharacteristics, CaptureSupportLevel> captureModeDetector, in OneCameraFeatureConfig() argument
120 public CaptureSupportLevel getCaptureSupportLevel(CameraCharacteristics characteristics) { in getCaptureSupportLevel()
/packages/apps/Dialer/java/com/android/incallui/
DInCallCameraManager.java21 import android.hardware.camera2.CameraCharacteristics;
133 CameraCharacteristics c = null; in maybeInitializeCameraList()
142 int facingCharacteristic = c.get(CameraCharacteristics.LENS_FACING); in maybeInitializeCameraList()
143 if (facingCharacteristic == CameraCharacteristics.LENS_FACING_FRONT) { in maybeInitializeCameraList()
145 } else if (facingCharacteristic == CameraCharacteristics.LENS_FACING_BACK) { in maybeInitializeCameraList()
/packages/apps/Camera2/src/com/android/camera/one/
DCameraDirectionProvider.java19 import android.hardware.camera2.CameraCharacteristics;
26 private final CameraCharacteristics mCharacteristics;
28 public CameraDirectionProvider(CameraCharacteristics characteristics) { in CameraDirectionProvider()
33 switch (mCharacteristics.get(CameraCharacteristics.LENS_FACING)) { in getDirection()
/packages/apps/Camera2/src/com/android/camera/ui/focus/
DLensRangeCalculator.java20 import android.hardware.camera2.CameraCharacteristics;
44 public static LinearScale getDiopterToRatioCalculator(CameraCharacteristics characteristics) { in getDiopterToRatioCalculator()
55 Float nearest = characteristics.get(CameraCharacteristics.LENS_INFO_MINIMUM_FOCUS_DISTANCE); in getDiopterToRatioCalculator()
56 Float hyperfocal = characteristics.get(CameraCharacteristics.LENS_INFO_HYPERFOCAL_DISTANCE); in getDiopterToRatioCalculator()
/packages/apps/Settings/src/com/android/settings/flashlight/
DFlashlightSlice.java29 import android.hardware.camera2.CameraCharacteristics;
123 CameraCharacteristics c = cameraManager.getCameraCharacteristics(id); in getCameraId()
124 Boolean flashAvailable = c.get(CameraCharacteristics.FLASH_INFO_AVAILABLE); in getCameraId()
125 Integer lensFacing = c.get(CameraCharacteristics.LENS_FACING); in getCameraId()
127 && lensFacing != null && lensFacing == CameraCharacteristics.LENS_FACING_BACK) { in getCameraId()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/flashlight/
DFlashlightSlice.java29 import android.hardware.camera2.CameraCharacteristics;
123 CameraCharacteristics c = cameraManager.getCameraCharacteristics(id); in getCameraId()
124 Boolean flashAvailable = c.get(CameraCharacteristics.FLASH_INFO_AVAILABLE); in getCameraId()
125 Integer lensFacing = c.get(CameraCharacteristics.LENS_FACING); in getCameraId()
127 && lensFacing != null && lensFacing == CameraCharacteristics.LENS_FACING_BACK) { in getCameraId()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/
DSelfManagedAnswerVideoCallScreen.java22 import android.hardware.camera2.CameraCharacteristics;
155 CameraCharacteristics characteristics; in getFrontFacingCameraSizes()
166 if (characteristics.get(CameraCharacteristics.LENS_FACING) in getFrontFacingCameraSizes()
167 != CameraCharacteristics.LENS_FACING_FRONT) { in getFrontFacingCameraSizes()
172 characteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); in getFrontFacingCameraSizes()
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DFaceEnrollPreviewFragment.java25 import android.hardware.camera2.CameraCharacteristics;
248 CameraCharacteristics characteristics = in setUpCameraOutputs()
252 Integer facing = characteristics.get(CameraCharacteristics.LENS_FACING); in setUpCameraOutputs()
253 if (facing == null || facing != CameraCharacteristics.LENS_FACING_FRONT) { in setUpCameraOutputs()
260 CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); in setUpCameraOutputs()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/face/
DFaceEnrollPreviewFragment.java24 import android.hardware.camera2.CameraCharacteristics;
247 CameraCharacteristics characteristics = in setUpCameraOutputs()
251 Integer facing = characteristics.get(CameraCharacteristics.LENS_FACING); in setUpCameraOutputs()
252 if (facing == null || facing != CameraCharacteristics.LENS_FACING_FRONT) { in setUpCameraOutputs()
259 CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); in setUpCameraOutputs()
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorPreviewCamera.java23 import android.hardware.camera2.CameraCharacteristics;
87 CameraCharacteristics characteristics; in getCameraCapabilities()
95 characteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); in getCameraCapabilities()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestVideoProvider.java29 import android.hardware.camera2.CameraCharacteristics;
332 CameraCharacteristics c = null; in setCameraCapabilities()
341 CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); in setCameraCapabilities()
/packages/apps/Camera2/src_pd/com/android/camera/one/v2/
DOneCameraCreator.java21 import android.hardware.camera2.CameraCharacteristics;
50 CameraCharacteristics characteristics, in create()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java30 import android.hardware.camera2.CameraCharacteristics;
563 CameraCharacteristics c = cameraManager.getCameraCharacteristics(id); in enableLedFlash()
564 Boolean flashAvailable = c.get(CameraCharacteristics.FLASH_INFO_AVAILABLE); in enableLedFlash()

12