Searched defs:cameraId (Results 1 - 24 of 24) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/settings/
H A DCameraPictureSizesCacher.java40 * @param cameraId cameraID we have sizes for.
43 public static void updateSizesForCamera(Context context, int cameraId, List<Size> sizes) { argument
44 String key_build = PICTURE_SIZES_BUILD_KEY + cameraId;
49 String key_sizes = PICTURE_SIZES_SIZES_KEY + cameraId;
58 * Return list of Sizes for provided cameraId. Check first to see if we
64 * @param cameraId cameraID we would like sizes for.
67 public static List<Size> getSizesForCamera(int cameraId, Context context) { argument
68 String key_build = PICTURE_SIZES_BUILD_KEY + cameraId;
69 String key_sizes = PICTURE_SIZES_SIZES_KEY + cameraId;
71 // Return cached value for cameraId an
[all...]
H A DSettingsUtil.java159 * @param cameraId This is used for caching the results for finding the
163 CameraSettings settings, int cameraId) {
164 Size selectedSize = getCameraPictureSize(sizeSetting, supported, cameraId);
177 * @param cameraId This is used for caching the results for finding the
180 public static Size getPhotoSize(String sizeSetting, List<Size> supported, int cameraId) { argument
184 Size selectedSize = getCameraPictureSize(sizeSetting, supported, cameraId);
196 * @param cameraId This is used for caching the results for finding the
201 int cameraId) {
202 return getSelectedCameraPictureSizes(supported, cameraId).getFromSetting(sizeSetting,
214 static SelectedPictureSizes getSelectedCameraPictureSizes(List<Size> supported, int cameraId) { argument
162 setCameraPictureSize(String sizeSetting, List<Size> supported, CameraSettings settings, int cameraId) argument
200 getCameraPictureSize(String sizeSetting, List<Size> supported, int cameraId) argument
324 getVideoQuality(String qualitySetting, int cameraId) argument
328 getSelectedVideoQualities(int cameraId) argument
355 getNextSupportedVideoQualityIndex(int cameraId, int start) argument
[all...]
/packages/apps/Camera/src/com/android/camera/
H A DCameraPreference.java38 public void onCameraPickerClicked(int cameraId); argument
H A DPhotoController.java122 protected void setCameraId(int cameraId) { argument
124 pref.setValue("" + cameraId);
H A DPieController.java71 protected void setCameraId(int cameraId) { argument
73 pref.setValue("" + cameraId);
H A DVideoController.java100 protected void setCameraId(int cameraId) { argument
102 pref.setValue("" + cameraId);
H A DCameraHolder.java191 public synchronized CameraProxy open(int cameraId) argument
194 collectState(cameraId, mCameraDevice);
201 if (mCameraDevice != null && mCameraId != cameraId) {
208 Log.v(TAG, "open camera " + cameraId);
210 mCameraDevice = CameraManager.instance().cameraOpen(cameraId);
214 mCameraDevice = mMockCamera[cameraId];
216 mCameraId = cameraId;
241 public synchronized CameraProxy tryOpen(int cameraId) { argument
243 return !mCameraOpened ? open(cameraId) : null;
H A DComboPreferences.java69 Context context, int cameraId) {
70 return context.getPackageName() + "_preferences_" + cameraId;
119 public void setLocalId(Context context, int cameraId) { argument
120 String prefName = getLocalSharedPreferencesName(context, cameraId);
68 getLocalSharedPreferencesName( Context context, int cameraId) argument
H A DCameraSettings.java79 int cameraId, CameraInfo[] cameraInfo) {
82 mCameraId = cameraId;
95 public static String getDefaultVideoQuality(int cameraId, argument
99 cameraId, Integer.valueOf(defaultQuality))) {
418 int cameraId = readPreferredCameraId(pref);
419 if (cameraId == 0) return; // fast path
422 if (cameraId < 0 || cameraId >= n) {
432 int cameraId) {
434 editor.putString(KEY_CAMERA_ID, Integer.toString(cameraId));
78 CameraSettings(Activity activity, Parameters parameters, int cameraId, CameraInfo[] cameraInfo) argument
431 writePreferredCameraId(SharedPreferences pref, int cameraId) argument
[all...]
H A DCameraManager.java276 CameraProxy cameraOpen(int cameraId) { argument
283 mCamera = android.hardware.Camera.open(cameraId);
H A DUtil.java310 public static CameraManager.CameraProxy openCamera(Activity activity, int cameraId) argument
315 return CameraHolder.instance().open(cameraId);
389 public static int getDisplayOrientation(int degrees, int cameraId) { argument
393 Camera.getCameraInfo(cameraId, info);
404 public static int getCameraOrientation(int cameraId) { argument
406 Camera.getCameraInfo(cameraId, info);
548 int cameraId = -1;
557 cameraId = frontCameraId;
563 cameraId = backCameraId;
566 return cameraId;
693 getJpegRotation(int cameraId, int orientation) argument
[all...]
H A DPhotoModule.java2280 public void onCameraPickerClicked(int cameraId) { argument
2283 mPendingSwitchCameraId = cameraId;
2285 Log.v(TAG, "Start to copy texture. cameraId=" + cameraId);
H A DVideoModule.java2749 public void onCameraPickerClicked(int cameraId) { argument
2752 mPendingSwitchCameraId = cameraId;
/packages/apps/Camera2/src/com/android/camera/app/
H A DCameraProvider.java65 * @param cameraId Which camera.
68 public Characteristics getCharacteristics(int cameraId); argument
H A DCameraController.java94 public CameraDeviceInfo.Characteristics getCharacteristics(int cameraId) { argument
98 return mInfo.getCharacteristics(cameraId);
173 public void onCameraDisabled(int cameraId) { argument
175 mCallbackReceiver.onCameraDisabled(cameraId);
180 public void onDeviceOpenFailure(int cameraId, String info) { argument
182 mCallbackReceiver.onDeviceOpenFailure(cameraId, info);
187 public void onDeviceOpenedAlready(int cameraId, String info) { argument
189 mCallbackReceiver.onDeviceOpenedAlready(cameraId, info);
296 final int cameraId, Handler handler, final CameraAgent.CameraOpenCallback cb) {
300 cameraManager.openCamera(handler, cameraId, c
295 checkAndOpenCamera(Context context, CameraAgent cameraManager, final int cameraId, Handler handler, final CameraAgent.CameraOpenCallback cb) argument
[all...]
/packages/services/Telecomm/tests/src/com/android/server/telecom/testapps/
H A DTestManagedVideoProvider.java74 public void onSetCamera(String cameraId) { argument
75 mRemoteVideoProvider.setCamera(cameraId);
H A DTestVideoProvider.java79 public void onSetCamera(String cameraId) { argument
80 log("Set camera to " + cameraId);
81 mCameraId = cameraId;
219 * @param cameraId
221 private void startCamera(String cameraId) { argument
241 mCameraDevice = blockingCameraManager.openCamera(cameraId, null /* listener */,
312 * @param cameraId The camera ID to get the capabilities for.
314 private void setCameraCapabilities(String cameraId) { argument
320 c = cameraManager.getCameraCharacteristics(cameraId);
/packages/apps/LegacyCamera/src/com/android/camera/
H A DCameraHolder.java120 public synchronized android.hardware.Camera open(int cameraId) argument
123 if (mCameraDevice != null && mCameraId != cameraId) {
130 Log.v(TAG, "open camera " + cameraId);
131 mCameraDevice = android.hardware.Camera.open(cameraId);
132 mCameraId = cameraId;
157 public synchronized android.hardware.Camera tryOpen(int cameraId) { argument
159 return mUsers == 0 ? open(cameraId) : null;
H A DComboPreferences.java53 public void setLocalId(Context context, int cameraId) { argument
54 String prefName = context.getPackageName() + "_preferences_" + cameraId;
H A DCameraSettings.java71 int cameraId, CameraInfo[] cameraInfo) {
74 mCameraId = cameraId;
86 public static String getDefaultVideoQuality(int cameraId, argument
89 if (CamcorderProfile.hasProfile(cameraId, quality)) {
357 int cameraId) {
359 editor.putString(KEY_CAMERA_ID, Integer.toString(cameraId));
70 CameraSettings(Activity activity, Parameters parameters, int cameraId, CameraInfo[] cameraInfo) argument
356 writePreferredCameraId(SharedPreferences pref, int cameraId) argument
H A DUtil.java257 public static android.hardware.Camera openCamera(Activity activity, int cameraId) argument
267 return CameraHolder.instance().open(cameraId);
338 public static int getDisplayOrientation(int degrees, int cameraId) { argument
342 Camera.getCameraInfo(cameraId, info);
353 public static int getCameraOrientation(int cameraId) { argument
355 Camera.getCameraInfo(cameraId, info);
493 int cameraId = -1;
502 cameraId = frontCameraId;
508 cameraId = backCameraId;
511 return cameraId;
618 setRotationParameter(Parameters parameters, int cameraId, int orientation) argument
[all...]
/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/
H A DVideoChatTestActivity.java283 int cameraId, android.hardware.Camera camera) {
286 android.hardware.Camera.getCameraInfo(cameraId, info);
282 getAutoDisplayOrientation(int displayOrientationDegrees, int cameraId, android.hardware.Camera camera) argument
/packages/apps/Camera2/src/com/android/camera/
H A DCaptureModule.java988 public void onStateChanged(int cameraId) {
996 cameraId);
998 Log.d(TAG, "Start to switch camera. cameraId=" + cameraId);
999 mCameraFacing = getFacingFromCameraId(cameraId);
1369 private static Facing getFacingFromCameraId(int cameraId) { argument
1370 return cameraId == 1 ? Facing.FRONT : Facing.BACK;
H A DCameraActivity.java534 public void onCameraDisabled(int cameraId) { argument
538 Log.w(TAG, "Camera disabled: " + cameraId);
543 public void onDeviceOpenFailure(int cameraId, String info) { argument
552 public void onDeviceOpenedAlready(int cameraId, String info) { argument
553 Log.w(TAG, "Camera open already: " + cameraId + "," + info);

Completed in 362 milliseconds