Home
last modified time | relevance | path

Searched refs:cameraId (Results 1 – 25 of 64) 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.java127 int cameraId = SettingsUtil.getCameraId(mCameraDeviceInfo, facingSelector); in computeSizesForCamera() local
128 if (cameraId >= 0) { in computeSizesForCamera()
130 sizes = CameraPictureSizesCacher.getCachedSizesForCamera(cameraId, mContext) in computeSizesForCamera()
133 sizes = CameraPictureSizesCacher.getSizesForCamera(cameraId, mContext); in computeSizesForCamera()
151 int cameraId = SettingsUtil.getCameraId(mCameraDeviceInfo, facingSelector); in computeQualitiesForCamera() local
152 if (cameraId >= 0) { in computeQualitiesForCamera()
154 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.java103 final int cameraId = mSettingsManager.getInteger(mSettingScope, mCameraFacingSettingKey); in getCameraFacing() local
104 if (cameraId == mCameraFacingBackValue) { in getCameraFacing()
106 } else if (cameraId == mCameraFacingFrontValue) { in getCameraFacing()
119 final int cameraId = (cameraFacing == OneCamera.Facing.BACK) ? in setCameraFacing() local
121 mSettingsManager.set(mSettingScope, mCameraFacingSettingKey, cameraId); in setCameraFacing()
/packages/apps/Camera2/src/com/android/camera/one/v2/
DCamera2OneCameraManagerImpl.java114 String cameraId = findCameraId(facing); in findFirstCameraFacing() local
115 return (cameraId != null) ? CameraId.from(cameraId) : null; in findFirstCameraFacing()
155 String cameraId = findFirstCameraIdFacing(CameraCharacteristics.LENS_FACING_BACK); in findFirstBackCameraId() local
156 if (cameraId == null) { in findFirstBackCameraId()
159 return cameraId; in findFirstBackCameraId()
165 String cameraId = findFirstCameraIdFacing(CameraCharacteristics.LENS_FACING_FRONT); in findFirstFrontCameraId() local
166 if (cameraId == null) { in findFirstFrontCameraId()
169 return cameraId; in findFirstFrontCameraId()
177 for (String cameraId : cameraIds) { in findFirstCameraIdFacing()
179 .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/services/Car/evs/sampleDriver/
DEvsEnumerator.cpp210 Return<sp<IEvsCamera>> EvsEnumerator::openCamera(const hidl_string& cameraId) { in openCamera() argument
217 CameraRecord *pRecord = findCameraById(cameraId); in openCamera()
227 pActiveCamera = new EvsV4lCamera(cameraId.c_str()); in openCamera()
230 ALOGE("Failed to allocate new EvsV4lCamera object for %s\n", cameraId.c_str()); in openCamera()
246 std::string cameraId; in closeCamera() local
247 pCamera->getCameraInfo([&cameraId](CameraDesc desc) { in closeCamera()
248 cameraId = desc.cameraId; in closeCamera()
253 CameraRecord *pRecord = findCameraById(cameraId); in closeCamera()
396 EvsEnumerator::CameraRecord* EvsEnumerator::findCameraById(const std::string& cameraId) { in findCameraById() argument
398 auto found = sCameraList.find(cameraId); in findCameraById()
DEvsEnumerator.h42 Return<sp<IEvsCamera>> openCamera(const hidl_string& cameraId) override;
59 CameraRecord(const char *cameraId) : desc() { desc.cameraId = cameraId; } in CameraRecord()
65 static CameraRecord* findCameraById(const std::string& cameraId);
/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/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorPreviewCamera.java45 @NonNull private final String cameraId; field in SimulatorPreviewCamera
51 @NonNull Context context, @NonNull String cameraId, @NonNull Surface surface) { in SimulatorPreviewCamera() argument
53 this.cameraId = Assert.isNotNull(cameraId); in SimulatorPreviewCamera()
63 .openCamera(cameraId, new CameraListener(), null /* handler */); in startCamera()
80 @NonNull Context context, @Nullable String cameraId) { in getCameraCapabilities() argument
81 if (cameraId == null) { in getCameraCapabilities()
89 characteristics = cameraManager.getCameraCharacteristics(cameraId); in getCameraCapabilities()
/packages/services/Car/evs/manager/
DEnumerator.cpp64 Return<sp<IEvsCamera>> Enumerator::openCamera(const hidl_string& cameraId) { in openCamera() argument
74 cam->getHwCamera()->getCameraInfo([cameraId, &match](CameraDesc desc) { in openCamera()
75 if (desc.cameraId == cameraId) { in openCamera()
89 sp<IEvsCamera> device = mHwEnumerator->openCamera(cameraId); in openCamera()
91 ALOGE("Failed to open hardware camera %s", cameraId.c_str()); in openCamera()
111 ALOGE("Requested camera %s not found or not available", cameraId.c_str()); in openCamera()
/packages/apps/LegacyCamera/src/com/android/camera/
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()
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 …]
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/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/services/Telecomm/tests/src/com/android/server/telecom/tests/
DMockVideoProvider.java58 public void onSetCamera(String cameraId) { in onSetCamera() argument
59 handleCameraChange(cameraId); in onSetCamera()
161 private void handleCameraChange(String cameraId) { in handleCameraChange() argument
162 if (CAMERA_FRONT.equals(cameraId)) { in handleCameraChange()
165 } else if (CAMERA_BACK.equals(cameraId)) { in handleCameraChange()
/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 …]
/packages/apps/Dialer/java/com/android/incallui/answer/impl/
DSelfManagedAnswerVideoCallScreen.java58 private String cameraId; field in SelfManagedAnswerVideoCallScreen
135 manager.openCamera(cameraId, this, null); in openCamera()
154 for (String cameraId : cameraIds) { in getFrontFacingCameraSizes()
157 characteristics = manager.getCameraCharacteristics(cameraId); in getFrontFacingCameraSizes()
177 this.cameraId = cameraId; in getFrontFacingCameraSizes()
/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()
/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) {
/packages/services/Telecomm/src/com/android/server/telecom/
DVideoProviderProxy.java306 public void onSetCamera(String cameraId) { in onSetCamera() argument
323 public void onSetCamera(String cameraId, String callingPackage, int callingUid, in onSetCamera() argument
326 logFromInCall("setCamera: " + cameraId + " callingPackage=" + callingPackage + in onSetCamera()
329 if (!TextUtils.isEmpty(cameraId)) { in onSetCamera()
350 mConectionServiceVideoProvider.setCamera(cameraId, callingPackage, in onSetCamera()

123