Home | History | Annotate | Download | only in v2

Lines Matching refs:facing

31 import com.android.camera.one.OneCamera.Facing;
65 public void open(Facing facing, final boolean useHdr, final Size pictureSize,
68 final String cameraId = getCameraId(facing);
145 public boolean hasCameraFacing(Facing facing) {
146 return getFirstCameraFacing(facing == Facing.FRONT ? CameraCharacteristics.LENS_FACING_FRONT
150 /** Returns the ID of the first camera facing the given direction. */
151 private String getCameraId(Facing facing) {
152 if (facing == Facing.FRONT) {
159 /** Returns the ID of the first back-facing camera. */
164 throw new RuntimeException("No back-facing camera found.");
169 /** Returns the ID of the first front-facing camera. */
174 throw new RuntimeException("No front-facing camera found.");
179 /** Returns the ID of the first camera facing the given direction. */
180 private String getFirstCameraFacing(int facing) {
186 if (characteristics.get(CameraCharacteristics.LENS_FACING) == facing) {