Home
last modified time | relevance | path

Searched refs:cameraId (Results 1 – 25 of 53) sorted by relevance

123

/packages/apps/Camera2/src/com/android/camera/settings/
DSettingsUtil.java160 public static Size getPhotoSize(String sizeSetting, List<Size> supported, int cameraId) { in getPhotoSize() argument
164 Size selectedSize = getCameraPictureSize(sizeSetting, supported, cameraId); in getPhotoSize()
181 int cameraId) { in getCameraPictureSize() argument
182 return getSelectedCameraPictureSizes(supported, cameraId).getFromSetting(sizeSetting, in getCameraPictureSize()
194 static SelectedPictureSizes getSelectedCameraPictureSizes(List<Size> supported, int cameraId) { in getSelectedCameraPictureSizes() argument
196 if (sCachedSelectedPictureSizes.get(cameraId) != null) { in getSelectedCameraPictureSizes()
197 return sCachedSelectedPictureSizes.get(cameraId); in getSelectedCameraPictureSizes()
290 sCachedSelectedPictureSizes.put(cameraId, selectedSizes); in getSelectedCameraPictureSizes()
304 public static int getVideoQuality(String qualitySetting, int cameraId) { in getVideoQuality() argument
305 return getSelectedVideoQualities(cameraId).getFromSetting(qualitySetting); in getVideoQuality()
[all …]
DCameraPictureSizesCacher.java44 public static void updateSizesForCamera(Context context, int cameraId, List<Size> sizes) { in updateSizesForCamera() argument
45 String key_build = PICTURE_SIZES_BUILD_KEY + cameraId; in updateSizesForCamera()
50 String key_sizes = PICTURE_SIZES_SIZES_KEY + cameraId; in updateSizesForCamera()
69 public static List<Size> getSizesForCamera(int cameraId, Context context) { in getSizesForCamera() argument
70 Optional<List<Size>> cachedSizes = getCachedSizesForCamera(cameraId, context); in getSizesForCamera()
78 thisCamera = Camera.open(cameraId); in getSizesForCamera()
84 String key_build = PICTURE_SIZES_BUILD_KEY + cameraId; in getSizesForCamera()
85 String key_sizes = PICTURE_SIZES_SIZES_KEY + cameraId; in getSizesForCamera()
109 public static Optional<List<Size>> getCachedSizesForCamera(int cameraId, Context context) { in getCachedSizesForCamera() argument
110 String key_build = PICTURE_SIZES_BUILD_KEY + cameraId; in getCachedSizesForCamera()
[all …]
DPictureSizeLoader.java123 int cameraId = SettingsUtil.getCameraId(mCameraDeviceInfo, facingSelector); in computeSizesForCamera() local
124 if (cameraId >= 0) { in computeSizesForCamera()
126 sizes = CameraPictureSizesCacher.getCachedSizesForCamera(cameraId, mContext) in computeSizesForCamera()
129 sizes = CameraPictureSizesCacher.getSizesForCamera(cameraId, mContext); in computeSizesForCamera()
147 int cameraId = SettingsUtil.getCameraId(mCameraDeviceInfo, facingSelector); in computeQualitiesForCamera() local
148 if (cameraId >= 0) { in computeQualitiesForCamera()
150 return Optional.of(SettingsUtil.getSelectedVideoQualities(cameraId)); in computeQualitiesForCamera()
DResolutionSetting.java66 public void setPictureAspectRatio(CameraId cameraId, Rational aspectRatio) in setPictureAspectRatio() argument
69 mOneCameraManager.getOneCameraCharacteristics(cameraId); in setPictureAspectRatio()
107 public Size getPictureSize(CameraId cameraId, Facing cameraFacing) in getPictureSize() argument
149 mOneCameraManager.getOneCameraCharacteristics(cameraId); in getPictureSize()
179 public Rational getPictureAspectRatio(CameraId cameraId, Facing facing) in getPictureAspectRatio() argument
181 Size pictureSize = getPictureSize(cameraId, facing); in getPictureAspectRatio()
DCameraFacingSetting.java96 final int cameraId = mSettingsManager.getInteger(mSettingScope, mCameraFacingSettingKey); in getCameraFacing() local
97 if (cameraId == mCameraFacingBackValue) { in getCameraFacing()
99 } else if (cameraId == mCameraFacingFrontValue) { in getCameraFacing()
112 final int cameraId = (cameraFacing == OneCamera.Facing.BACK) ? in setCameraFacing() local
114 mSettingsManager.set(mSettingScope, mCameraFacingSettingKey, cameraId); in setCameraFacing()
/packages/apps/Camera2/src/com/android/camera/one/v2/
DCamera2OneCameraManagerImpl.java102 String cameraId = findCameraId(facing); in findFirstCameraFacing() local
103 return (cameraId != null) ? CameraId.from(cameraId) : null; in findFirstCameraFacing()
135 String cameraId = findFirstCameraIdFacing(CameraCharacteristics.LENS_FACING_BACK); in findFirstBackCameraId() local
136 if (cameraId == null) { in findFirstBackCameraId()
139 return cameraId; in findFirstBackCameraId()
145 String cameraId = findFirstCameraIdFacing(CameraCharacteristics.LENS_FACING_FRONT); in findFirstFrontCameraId() local
146 if (cameraId == null) { in findFirstFrontCameraId()
149 return cameraId; in findFirstFrontCameraId()
157 for (String cameraId : cameraIds) { in findFirstCameraIdFacing()
159 .getCameraCharacteristics(cameraId); in findFirstCameraIdFacing()
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v1/
DLegacyOneCameraManagerImpl.java130 public OneCameraCharacteristics getOneCameraCharacteristics(@Nonnull CameraId cameraId) in getOneCameraCharacteristics() argument
133 if (cameraId.equals(mFirstBackCameraId)) { in getOneCameraCharacteristics()
136 + cameraId); in getOneCameraCharacteristics()
137 mBackCameraCharacteristics = computeCameraCharacteristics(cameraId); in getOneCameraCharacteristics()
141 + cameraId); in getOneCameraCharacteristics()
144 } else if (cameraId.equals(mFirstFrontCameraId)) { in getOneCameraCharacteristics()
147 + cameraId); in getOneCameraCharacteristics()
148 mFrontCameraCharacteristics = computeCameraCharacteristics(cameraId); in getOneCameraCharacteristics()
152 + cameraId); in getOneCameraCharacteristics()
157 == cameraId)); in getOneCameraCharacteristics()
[all …]
/packages/apps/Camera2/src/com/android/camera/app/
DCameraController.java108 public CameraDeviceInfo.Characteristics getCharacteristics(int cameraId) { in getCharacteristics() argument
112 return mInfo.getCharacteristics(cameraId); in getCharacteristics()
183 public void onCameraDisabled(int cameraId) { in onCameraDisabled() argument
185 mCallbackReceiver.onCameraDisabled(cameraId); in onCameraDisabled()
190 public void onDeviceOpenFailure(int cameraId, String info) { in onDeviceOpenFailure() argument
192 mCallbackReceiver.onDeviceOpenFailure(cameraId, info); in onDeviceOpenFailure()
197 public void onDeviceOpenedAlready(int cameraId, String info) { in onDeviceOpenedAlready() argument
199 mCallbackReceiver.onDeviceOpenedAlready(cameraId, info); in onDeviceOpenedAlready()
318 final int cameraId, Handler handler, final CameraAgent.CameraOpenCallback cb) { in checkAndOpenCamera() argument
322 cameraManager.openCamera(handler, cameraId, cb); in checkAndOpenCamera()
[all …]
/packages/apps/Camera2/src/com/android/camera/device/
DMultiCameraDeviceLifecycle.java136 Lifetime requestLifetime, CameraId cameraId) { in openCamera2Device() argument
137 CameraDeviceKey key = new CameraDeviceKey(ApiType.CAMERA_API2, cameraId); in openCamera2Device()
162 Lifetime requestLifetime, CameraId cameraId) { in openPortabilityDevice() argument
164 cameraId); in openPortabilityDevice()
189 Lifetime requestLifetime, CameraId cameraId) { in openCamera2PortabilityDevice() argument
191 cameraId); in openCamera2PortabilityDevice()
215 Lifetime requestLifetime, CameraId cameraId) { in openLegacyPortabilityDevice() argument
216 CameraDeviceKey key = new CameraDeviceKey(ApiType.CAMERA_API_PORTABILITY_API1, cameraId); in openLegacyPortabilityDevice()
239 CameraId cameraId) { in openLegacyCameraDevice() argument
240 CameraDeviceKey key = new CameraDeviceKey(ApiType.CAMERA_API1, cameraId); in openLegacyCameraDevice()
DPortabilityCameraActions.java127 public OpenCameraRunnable(CameraAgent cameraAgent, int cameraId, in OpenCameraRunnable() argument
131 mCameraId = cameraId; in OpenCameraRunnable()
201 public void onCameraDisabled(int cameraId) { in onCameraDisabled() argument
203 mLogger.w("onCameraDisabled(id: " + cameraId + ")"); in onCameraDisabled()
209 public void onDeviceOpenFailure(int cameraId, String info) { in onDeviceOpenFailure() argument
211 mLogger.e("onDeviceOpenFailure(id: " + cameraId in onDeviceOpenFailure()
218 public void onDeviceOpenedAlready(int cameraId, String info) { in onDeviceOpenedAlready() argument
220 mLogger.w("onDeviceOpenedAlready(id: " + cameraId in onDeviceOpenedAlready()
DLegacyCameraActions.java90 int cameraId, in OpenCameraRunnable() argument
92 mCameraId = cameraId; in OpenCameraRunnable()
121 int cameraId, in CloseCameraRunnable() argument
125 mCameraId = cameraId; in CloseCameraRunnable()
/packages/apps/Camera/src/com/android/camera/
DCameraHolder.java191 public synchronized CameraProxy open(int cameraId) in open() argument
194 collectState(cameraId, mCameraDevice); in open()
201 if (mCameraDevice != null && mCameraId != cameraId) { in open()
208 Log.v(TAG, "open camera " + cameraId); in open()
210 mCameraDevice = CameraManager.instance().cameraOpen(cameraId); in open()
214 mCameraDevice = mMockCamera[cameraId]; in open()
216 mCameraId = cameraId; in open()
241 public synchronized CameraProxy tryOpen(int cameraId) { in tryOpen() argument
243 return !mCameraOpened ? open(cameraId) : null; in tryOpen()
DUtil.java309 public static CameraManager.CameraProxy openCamera(Activity activity, int cameraId) in openCamera() argument
314 return CameraHolder.instance().open(cameraId); in openCamera()
388 public static int getDisplayOrientation(int degrees, int cameraId) { in getDisplayOrientation() argument
392 Camera.getCameraInfo(cameraId, info); in getDisplayOrientation()
403 public static int getCameraOrientation(int cameraId) { in getCameraOrientation() argument
405 Camera.getCameraInfo(cameraId, info); in getCameraOrientation()
547 int cameraId = -1; in getCameraFacingIntentExtras() local
556 cameraId = frontCameraId; in getCameraFacingIntentExtras()
562 cameraId = backCameraId; in getCameraFacingIntentExtras()
565 return cameraId; in getCameraFacingIntentExtras()
[all …]
DCameraSettings.java78 int cameraId, CameraInfo[] cameraInfo) { in CameraSettings() argument
81 mCameraId = cameraId; in CameraSettings()
94 public static String getDefaultVideoQuality(int cameraId, in getDefaultVideoQuality() argument
98 cameraId, Integer.valueOf(defaultQuality))) { in getDefaultVideoQuality()
417 int cameraId = readPreferredCameraId(pref); in upgradeCameraId() local
418 if (cameraId == 0) return; // fast path in upgradeCameraId()
421 if (cameraId < 0 || cameraId >= n) { in upgradeCameraId()
431 int cameraId) { in writePreferredCameraId() argument
433 editor.putString(KEY_CAMERA_ID, Integer.toString(cameraId)); in writePreferredCameraId()
DPanoramaModule.java355 int cameraId = CameraHolder.instance().getBackCameraId(); in openCamera() local
360 if (cameraId == -1) cameraId = 0; in openCamera()
361 mCameraDevice = Util.openCamera(mActivity, cameraId); in openCamera()
362 mCameraOrientation = Util.getCameraOrientation(cameraId); in openCamera()
363 if (cameraId == CameraHolder.instance().getFrontCameraId()) mUsingFrontCamera = true; in openCamera()
574 int cameraId = CameraHolder.instance().getBackCameraId(); in setupProgressDirectionMatrix() local
575 int orientation = Util.getDisplayOrientation(degrees, cameraId); in setupProgressDirectionMatrix()
DComboPreferences.java69 Context context, int cameraId) { in getLocalSharedPreferencesName() argument
70 return context.getPackageName() + "_preferences_" + cameraId; in getLocalSharedPreferencesName()
119 public void setLocalId(Context context, int cameraId) { in setLocalId() argument
120 String prefName = getLocalSharedPreferencesName(context, cameraId); in setLocalId()
/packages/apps/LegacyCamera/src/com/android/camera/
DUtil.java257 public static android.hardware.Camera openCamera(Activity activity, int cameraId) in openCamera() argument
267 return CameraHolder.instance().open(cameraId); in openCamera()
338 public static int getDisplayOrientation(int degrees, int cameraId) { in getDisplayOrientation() argument
342 Camera.getCameraInfo(cameraId, info); in getDisplayOrientation()
353 public static int getCameraOrientation(int cameraId) { in getCameraOrientation() argument
355 Camera.getCameraInfo(cameraId, info); in getCameraOrientation()
493 int cameraId = -1; in getCameraFacingIntentExtras() local
502 cameraId = frontCameraId; in getCameraFacingIntentExtras()
508 cameraId = backCameraId; in getCameraFacingIntentExtras()
511 return cameraId; in getCameraFacingIntentExtras()
[all …]
DCameraHolder.java120 public synchronized android.hardware.Camera open(int cameraId) in open() argument
123 if (mCameraDevice != null && mCameraId != cameraId) { in open()
130 Log.v(TAG, "open camera " + cameraId); in open()
131 mCameraDevice = android.hardware.Camera.open(cameraId); in open()
132 mCameraId = cameraId; in open()
157 public synchronized android.hardware.Camera tryOpen(int cameraId) { in tryOpen() argument
159 return mUsers == 0 ? open(cameraId) : null; in tryOpen()
DCameraSettings.java71 int cameraId, CameraInfo[] cameraInfo) { in CameraSettings() argument
74 mCameraId = cameraId; in CameraSettings()
86 public static String getDefaultVideoQuality(int cameraId, in getDefaultVideoQuality() argument
89 if (CamcorderProfile.hasProfile(cameraId, quality)) { in getDefaultVideoQuality()
357 int cameraId) { in writePreferredCameraId() argument
359 editor.putString(KEY_CAMERA_ID, Integer.toString(cameraId)); in writePreferredCameraId()
/packages/apps/Camera2/src/com/android/camera/
DCaptureModule.java390 CameraId cameraId = mOneCameraManager.findFirstCameraFacing(mCameraFacing); in updateCameraCharacteristics() local
391 if (cameraId != null && cameraId.getValue() != null) { in updateCameraCharacteristics()
392 mCameraCharacteristics = mOneCameraManager.getOneCameraCharacteristics(cameraId); in updateCameraCharacteristics()
449 CameraId cameraId = mOneCameraManager.findFirstCameraFacing(mCameraFacing); in onShutterButtonLongPressed() local
450 cameraCharacteristics = mOneCameraManager.getOneCameraCharacteristics(cameraId); in onShutterButtonLongPressed()
1140 public void onStateChanged(int cameraId) {
1151 cameraId);
1153 Log.d(TAG, "Start to switch camera. cameraId=" + cameraId);
1154 mCameraFacing = getFacingFromCameraId(cameraId);
1357 CameraId cameraId = mOneCameraManager.findFirstCameraFacing(mCameraFacing);
[all …]
DTextureViewHelper.java339 int cameraId = -1;
342 cameraId = cameraKey.getLegacyValue();
362 } else if (cameraId >= 0) {
364 CameraDeviceInfo.Characteristics info = mCameraProvider.getCharacteristics(cameraId);
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestVideoProvider.java85 public void onSetCamera(String cameraId) { in onSetCamera() argument
86 log("Set camera to " + cameraId); in onSetCamera()
87 mCameraId = cameraId; in onSetCamera()
235 private void startCamera(String cameraId) { in startCamera() argument
255 mCameraDevice = blockingCameraManager.openCamera(cameraId, null /* listener */, in startCamera()
328 private void setCameraCapabilities(String cameraId) { in setCameraCapabilities() argument
334 c = cameraManager.getCameraCharacteristics(cameraId); in setCameraCapabilities()
/packages/apps/Camera2/src/com/android/camera/captureintent/state/
DStateOpeningCamera.java96 CameraId cameraId, in from() argument
99 resourceSurfaceTexture, cameraFacing, cameraId, cameraCharacteristics); in from()
106 CameraId cameraId, in StateOpeningCamera() argument
114 mCameraId = cameraId; in StateOpeningCamera()
260 public void onStateChanged(int cameraId) {
DStateStartingPreview.java60 CameraId cameraId, in from() argument
70 cameraId, in from()
82 CameraId cameraId, in StateStartingPreview() argument
93 camera, cameraId, cameraFacing, cameraCharacteristics, pictureSize, captureSetting); in StateStartingPreview()
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/
DResourceOpenedCameraImpl.java58 CameraId cameraId, in create() argument
64 camera, cameraId, cameraFacing, cameraCharacteristics, pictureSize, captureSetting); in create()
70 CameraId cameraId, in ResourceOpenedCameraImpl() argument
76 mCameraId = cameraId; in ResourceOpenedCameraImpl()

123