Home
last modified time | relevance | path

Searched refs:OneCamera (Results 1 – 25 of 62) sorted by relevance

123

/packages/apps/Camera2/src/com/android/camera/settings/
DCameraFacingSetting.java21 import com.android.camera.one.OneCamera;
85 return getCameraFacing() == OneCamera.Facing.BACK; in isFacingBack()
94 return getCameraFacing() == OneCamera.Facing.FRONT; in isFacingFront()
102 public OneCamera.Facing getCameraFacing() { in getCameraFacing()
105 return OneCamera.Facing.BACK; in getCameraFacing()
107 return OneCamera.Facing.FRONT; in getCameraFacing()
118 public void setCameraFacing(OneCamera.Facing cameraFacing) { in setCameraFacing()
119 final int cameraId = (cameraFacing == OneCamera.Facing.BACK) ? in setCameraFacing()
129 public OneCamera.Facing switchCameraFacing() { in switchCameraFacing()
130 final OneCamera.Facing originalFacing = getCameraFacing(); in switchCameraFacing()
[all …]
DResolutionSetting.java25 import com.android.camera.one.OneCamera;
26 import com.android.camera.one.OneCamera.Facing;
75 final String pictureSizeSettingKey = cameraFacing == OneCamera.Facing.FRONT ? in setPictureAspectRatio()
77 final String blacklist = cameraFacing == OneCamera.Facing.FRONT ? mResolutionBlackListFront in setPictureAspectRatio()
88 supportedPictureSizes, cameraFacing == OneCamera.Facing.BACK); in setPictureAspectRatio()
109 final String pictureSizeSettingKey = cameraFacing == OneCamera.Facing.FRONT ? in getPictureSize()
115 if (cameraFacing == OneCamera.Facing.BACK) { in getPictureSize()
117 } else if (cameraFacing == OneCamera.Facing.FRONT) { in getPictureSize()
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/
DResourceOpenedCameraImpl.java25 import com.android.camera.one.OneCamera;
34 private final OneCamera mCamera;
40 private final OneCamera.Facing mCameraFacing;
57 OneCamera camera, in create()
59 OneCamera.Facing cameraFacing, in create()
69 OneCamera camera, in ResourceOpenedCameraImpl()
71 OneCamera.Facing cameraFacing, in ResourceOpenedCameraImpl()
92 public OneCamera getCamera() { in getCamera()
102 public OneCamera.Facing getCameraFacing() { in getCameraFacing()
134 Surface previewSurface, OneCamera.CaptureReadyCallback captureReadyCallback) { in startPreview()
DResourceCaptureToolsImpl.java28 import com.android.camera.one.OneCamera;
151 OneCamera.PictureCallback pictureCallback, in takePictureNow()
182 (openedCamera.getCameraFacing() == OneCamera.Facing.FRONT), in takePictureNow()
193 OneCamera.PhotoCaptureParameters params = new OneCamera.PhotoCaptureParameters( in takePictureNow()
226 public OneCamera getCamera() { in getCamera()
230 private final OneCamera.PictureSaverCallback mPictureSaverCallback =
231 new OneCamera.PictureSaverCallback() {
DResourceOpenedCamera.java24 import com.android.camera.one.OneCamera;
39 public OneCamera getCamera(); in getCamera()
53 public OneCamera.Facing getCameraFacing(); in getCameraFacing()
99 Surface previewSurface, OneCamera.CaptureReadyCallback captureReadyCallback); in startPreview()
DResourceCaptureTools.java23 import com.android.camera.one.OneCamera;
50 OneCamera.PictureCallback pictureCallback, in takePictureNow()
122 OneCamera getCamera(); in getCamera()
/packages/apps/Camera2/src/com/android/camera/one/v2/
DAutoFocusHelper.java26 import com.android.camera.one.OneCamera;
55 public static OneCamera.AutoFocusState stateFromCamera2State(int state) { in stateFromCamera2State()
58 return OneCamera.AutoFocusState.ACTIVE_SCAN; in stateFromCamera2State()
60 return OneCamera.AutoFocusState.PASSIVE_SCAN; in stateFromCamera2State()
62 return OneCamera.AutoFocusState.PASSIVE_FOCUSED; in stateFromCamera2State()
64 return OneCamera.AutoFocusState.ACTIVE_FOCUSED; in stateFromCamera2State()
66 return OneCamera.AutoFocusState.PASSIVE_UNFOCUSED; in stateFromCamera2State()
68 return OneCamera.AutoFocusState.ACTIVE_UNFOCUSED; in stateFromCamera2State()
70 return OneCamera.AutoFocusState.INACTIVE; in stateFromCamera2State()
DOneCameraFactory.java23 import com.android.camera.one.OneCamera;
31 OneCamera createOneCamera(CameraDeviceProxy cameraDevice, in createOneCamera()
37 Observable<OneCamera.PhotoCaptureParameters.Flash> flashSetting, in createOneCamera()
/packages/apps/Camera2/src/com/android/camera/captureintent/state/
DStateOpeningCamera.java39 import com.android.camera.one.OneCamera;
61 private final OneCamera.Facing mCameraFacing;
74 private OneCamera.OpenCallback mCameraOpenCallback = new OneCamera.OpenCallback() {
86 public void onCameraOpened(@Nonnull final OneCamera camera) {
95 OneCamera.Facing cameraFacing, in from()
105 OneCamera.Facing cameraFacing, in StateOpeningCamera()
137 final OneCamera camera = event.getCamera(); in registerEventHandlers()
234 .getOneCameraManager().hasCameraFacing(OneCamera.Facing.FRONT); in getHardwareSpec()
DStateReadyForCapture.java57 import com.android.camera.one.OneCamera;
58 import com.android.camera.one.OneCamera.Facing;
322 OneCamera.Facing cameraFacing = in registerEventHandlers()
513 final OneCamera camera = in onEnter()
536 final OneCamera camera = in onLeave()
547 private void onFocusStateUpdated(OneCamera.AutoFocusState focusState) { in onFocusStateUpdated()
566 private final OneCamera.FocusStateListener mFocusStateListener =
567 new OneCamera.FocusStateListener() {
569 public void onFocusStatusUpdate(final OneCamera.AutoFocusState focusState,
604 private final OneCamera.ReadyStateChangedListener mReadyStateChangedListener =
[all …]
DStateStartingPreview.java35 import com.android.camera.one.OneCamera;
59 OneCamera camera, in from()
61 OneCamera.Facing cameraFacing, in from()
81 OneCamera camera, in StateStartingPreview()
83 OneCamera.Facing cameraFacing, in StateStartingPreview()
188 OneCamera.CaptureReadyCallback captureReadyCallback = in onEnter()
189 new OneCamera.CaptureReadyCallback() { in onEnter()
/packages/apps/Camera2/src/com/android/camera/one/v2/photo/
DFlashBasedPhotoCommand.java24 import com.android.camera.one.OneCamera;
35 private final Supplier<OneCamera.PhotoCaptureParameters.Flash> mFlashMode;
41 Supplier<OneCamera.PhotoCaptureParameters.Flash> flashMode, in FlashBasedPhotoCommand()
57 OneCamera.PhotoCaptureParameters.Flash flashMode = mFlashMode.get(); in run()
58 if (flashMode == OneCamera.PhotoCaptureParameters.Flash.ON) { in run()
61 } else if (flashMode == OneCamera.PhotoCaptureParameters.Flash.AUTO) { in run()
DImageRotationCalculatorImpl.java26 import com.android.camera.one.OneCamera;
61 OneCamera.Facing lensDirection = characteristics.getCameraDirection(); in from()
63 lensDirection == OneCamera.Facing.FRONT); in from()
/packages/apps/Camera2/src/com/android/camera/one/v2/initialization/
DInitializedOneCameraFactory.java31 import com.android.camera.one.OneCamera;
75 LinearScale lensRange, OneCamera.Facing direction) { in InitializedOneCameraFactory()
98 final ConcurrentState<OneCamera.FocusState> focusState = new ConcurrentState<>(new in InitializedOneCameraFactory()
99 OneCamera.FocusState(0.0f, false)); in InitializedOneCameraFactory()
108 Listenable<OneCamera.FocusState> focusStateListenable = new Listenable<>( in InitializedOneCameraFactory()
157 public OneCamera provideOneCamera() { in provideOneCamera()
DMetadataCallback.java22 import com.android.camera.one.OneCamera;
35 private final Updatable<OneCamera.FocusState> mOneCameraFocusState;
40 Updatable<OneCamera.FocusState> oneCameraFocusState, in MetadataCallback()
76 mOneCameraFocusState.update(new OneCamera.FocusState(focusDistance, active)); in updateOneCameraFocusState()
/packages/apps/Camera2/src/com/android/camera/one/
DOneCameraCaptureSetting.java23 import com.android.camera.one.OneCamera.Facing;
37 private final Observable<OneCamera.PhotoCaptureParameters.Flash> mFlashSetting;
48 Observable<OneCamera.PhotoCaptureParameters.Flash> flashSetting; in create()
74 Observable<OneCamera.PhotoCaptureParameters.Flash> flashSetting, in OneCameraCaptureSetting()
89 public Observable<OneCamera.PhotoCaptureParameters.Flash> getFlashSetting() { in getFlashSetting()
DCameraDirectionProvider.java32 public OneCamera.Facing getDirection() { in getDirection()
35 return OneCamera.Facing.BACK; in getDirection()
37 return OneCamera.Facing.FRONT; in getDirection()
39 return OneCamera.Facing.BACK; in getDirection()
DFlashSetting.java28 public class FlashSetting extends ForwardingObservable<OneCamera.PhotoCaptureParameters.Flash> {
30 Function<String, OneCamera.PhotoCaptureParameters.Flash> {
32 public OneCamera.PhotoCaptureParameters.Flash apply(String settingString) { in apply()
33 return OneCamera.PhotoCaptureParameters.Flash.decodeSettingsString(settingString); in apply()
/packages/apps/Camera2/src/com/android/camera/captureintent/event/
DEventOnOpenCameraSucceeded.java20 import com.android.camera.one.OneCamera;
25 private final OneCamera mCamera;
27 public EventOnOpenCameraSucceeded(@Nonnull OneCamera camera) { in EventOnOpenCameraSucceeded()
31 public OneCamera getCamera() { in getCamera()
/packages/apps/Camera2/src/com/android/camera/one/v1/
DOneCameraCharacteristicsImpl.java22 import com.android.camera.one.OneCamera;
23 import com.android.camera.one.OneCamera.Facing;
82 public OneCamera.Facing getCameraDirection() { in getCameraDirection()
85 return OneCamera.Facing.BACK; in getCameraDirection()
87 return OneCamera.Facing.FRONT; in getCameraDirection()
/packages/apps/Camera2/src/com/android/camera/hardware/
DHardwareSpecImpl.java20 import com.android.camera.one.OneCamera;
51 OneCamera.Facing cameraFacing = in HardwareSpecImpl()
52 isFrontCamera ? OneCamera.Facing.FRONT : OneCamera.Facing.BACK; in HardwareSpecImpl()
/packages/apps/Camera2/src/com/android/camera/
DCaptureModule.java55 import com.android.camera.one.OneCamera;
56 import com.android.camera.one.OneCamera.AutoFocusState;
57 import com.android.camera.one.OneCamera.CaptureReadyCallback;
58 import com.android.camera.one.OneCamera.Facing;
59 import com.android.camera.one.OneCamera.OpenCallback;
60 import com.android.camera.one.OneCamera.PhotoCaptureParameters;
110 OneCamera.PictureCallback,
111 OneCamera.FocusStateListener,
112 OneCamera.ReadyStateChangedListener,
149 private OneCamera mCamera;
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/common/
DFlashBasedAEMode.java21 import com.android.camera.one.OneCamera;
28 private final Supplier<OneCamera.PhotoCaptureParameters.Flash> mFlash;
32 Supplier<OneCamera.PhotoCaptureParameters.Flash> flash, in FlashBasedAEMode()
/packages/apps/Camera2/src/com/android/camera/one/config/
DOneCameraFeatureConfig.java26 import com.android.camera.one.OneCamera;
127 public HdrPlusSupportLevel getHdrPlusSupportLevel(OneCamera.Facing cameraFacing) { in getHdrPlusSupportLevel()
128 if (cameraFacing == OneCamera.Facing.FRONT) { in getHdrPlusSupportLevel()
/packages/apps/Camera2/src/com/android/camera/one/v2/imagesaver/
DJpegImageBackendImageSaver.java27 import com.android.camera.one.OneCamera;
102 private final OneCamera.PictureSaverCallback mPictureSaverCallback;
107 OneCamera.PictureSaverCallback pictureSaverCallback) { in JpegImageProcessorListener()
203 @Nonnull OneCamera.PictureSaverCallback pictureSaverCallback, in build()

123