/packages/apps/Camera2/src/com/android/camera/one/v2/ |
D | OneCameraCharacteristicsImpl.java | 24 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 …]
|
D | Camera2OneCameraManagerImpl.java | 22 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()
|
D | OneCameraImpl.java | 26 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()
|
D | OneCameraZslImpl.java | 23 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()
|
D | AutoFocusHelper.java | 21 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()
|
D | Camera2OneCameraOpenerImpl.java | 22 import android.hardware.camera2.CameraCharacteristics; 163 CameraCharacteristics characteristics = mCameraManager in open()
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | CameraDeviceReport.java | 23 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 …]
|
D | CameraInfoCache.java | 20 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 …]
|
D | Api2Camera.java | 23 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()
|
D | PreviewOverlay.java | 24 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()
|
D | DevCameraActivity.java | 22 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/ |
D | OneCameraFeatureConfigCreator.java | 20 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 …]
|
D | OneCameraFeatureConfig.java | 20 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/Settings/tests/robotests/src/com/android/settings/flashlight/ |
D | FlashlightSliceTest.java | 23 import android.hardware.camera2.CameraCharacteristics; 84 final CameraCharacteristics characteristics = in isFlashlightAvailable_nullSecureAttr_hasFlashUnit_returnTrue() 87 shadowCharacteristics.set(CameraCharacteristics.FLASH_INFO_AVAILABLE, true); in isFlashlightAvailable_nullSecureAttr_hasFlashUnit_returnTrue() 89 .set(CameraCharacteristics.LENS_FACING, CameraCharacteristics.LENS_FACING_BACK); in isFlashlightAvailable_nullSecureAttr_hasFlashUnit_returnTrue()
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | InCallCameraManager.java | 21 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/ |
D | CameraDirectionProvider.java | 19 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/ |
D | LensRangeCalculator.java | 20 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/ |
D | FlashlightSlice.java | 29 import android.hardware.camera2.CameraCharacteristics; 124 CameraCharacteristics c = cameraManager.getCameraCharacteristics(id); in getCameraId() 125 Boolean flashAvailable = c.get(CameraCharacteristics.FLASH_INFO_AVAILABLE); in getCameraId() 126 Integer lensFacing = c.get(CameraCharacteristics.LENS_FACING); in getCameraId() 128 && lensFacing != null && lensFacing == CameraCharacteristics.LENS_FACING_BACK) { in getCameraId()
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/ |
D | SelfManagedAnswerVideoCallScreen.java | 22 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/ |
D | FaceEnrollPreviewFragment.java | 25 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/apps/Dialer/java/com/android/dialer/simulator/impl/ |
D | SimulatorPreviewCamera.java | 23 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/ |
D | TestVideoProvider.java | 29 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/ |
D | OneCameraCreator.java | 21 import android.hardware.camera2.CameraCharacteristics; 50 CameraCharacteristics characteristics, in create()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastAlertAudio.java | 32 import android.hardware.camera2.CameraCharacteristics; 603 CameraCharacteristics c = cameraManager.getCameraCharacteristics(id); in enableLedFlash() 604 Boolean flashAvailable = c.get(CameraCharacteristics.FLASH_INFO_AVAILABLE); in enableLedFlash()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | CameraUtil.java | 36 import android.hardware.camera2.CameraCharacteristics; 1291 CameraCharacteristics characteristics) { in getJpegRotation() 1295 boolean isFrontCamera = characteristics.get(CameraCharacteristics.LENS_FACING) == in getJpegRotation() 1297 int sensorOrientation = characteristics.get(CameraCharacteristics.SENSOR_ORIENTATION); in getJpegRotation()
|