Searched refs:facing (Results 1 - 22 of 22) sorted by relevance

/frameworks/base/core/java/android/hardware/
H A DCameraInfo.java39 out.writeInt(info.facing);
44 info.facing = in.readInt();
H A DCamera.java264 * The facing of the camera is opposite to that of the screen.
269 * The facing of the camera is the same as that of the screen.
277 public int facing; field in class:Camera.CameraInfo
285 * back-facing camera sensor is mounted in landscape. You are looking at
288 * 90. If the top side of a front-facing camera sensor is aligned with
349 * Creates a new Camera object to access the first back-facing camera on the
350 * device. If the device does not have a back-facing camera, this returns
359 if (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) {
1474 * front-facing cameras is flipped horizontally before the rotation, that
1501 * if (info.facing
[all...]
/frameworks/base/media/java/android/media/
H A DCamcorderProfile.java319 * Returns the camcorder profile for the first back-facing camera on the
320 * device at the given quality level. If the device has no back-facing
330 if (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) {
402 * Returns true if camcorder profile exists for the first back-facing
429 if (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) {
H A DCameraProfile.java52 * the first back-facing camera on the device. If the device has no
53 * back-facing camera, this returns 0.
62 if (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) {
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DGLThreadManager.java137 * @param facing direction the camera is facing.
140 public GLThreadManager(int cameraId, int facing, CameraDeviceState state) { argument
141 mTextureRenderer = new SurfaceTextureRenderer(facing);
H A DLegacyCameraDevice.java758 static void setSurfaceOrientation(Surface surface, int facing, int sensorOrientation) argument
761 LegacyExceptionUtils.throwOnError(nativeSetSurfaceOrientation(surface, facing,
807 private static native int nativeSetSurfaceOrientation(Surface surface, int facing, argument
H A DRequestThreadManager.java384 int facing = mCharacteristics.get(CameraCharacteristics.LENS_FACING);
392 LegacyCameraDevice.setSurfaceOrientation(s, facing, orientation);
497 mGLThreadManager = new GLThreadManager(mCameraId, facing, mDeviceState);
H A DSurfaceTextureRenderer.java177 public SurfaceTextureRenderer(int facing) { argument
178 mFacing = facing;
H A DLegacyMetadataMapper.java113 * @param info Camera info with camera facing direction and angle of orientation
136 * @param info Camera info with camera facing direction and angle of orientation
166 m.set(LENS_FACING, i.facing == CameraInfo.CAMERA_FACING_BACK ?
/frameworks/av/include/camera/
H A DCameraBase.h37 int facing; member in struct:android::hardware::CameraInfo
45 * back-facing camera sensor is mounted in landscape. You are looking at
48 * 90. If the top side of a front-facing camera sensor is aligned with the
/frameworks/av/camera/
H A DCameraBase.cpp43 res = parcel->writeInt32(facing);
51 res = parcel->readInt32(&facing);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
H A DCameraBinderTest.java88 assertTrue("Facing was not set for camera " + cameraId, info.info.facing != -1);
92 Log.v(TAG, "Camera " + cameraId + " info: facing " + info.info.facing
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DCameraStreamer.java60 /** Camera Facing: Front: Use the front facing camera. */
62 /** Camera Facing: Back: Use the rear facing camera. */
791 /** The requested facing */
794 /** The actual facing */
797 /** Whether to horizontally flip the front facing camera */
1038 public synchronized void setFacing(int facing) { argument
1039 if (facing != mRequestedFacing) {
1040 switch (facing) {
1044 mRequestedFacing = facing;
1047 throw new IllegalArgumentException("Unknown facing valu
1609 setFacing(int facing) argument
[all...]
/frameworks/av/services/camera/libcameraservice/
H A DCameraService.cpp465 cameraInfo->facing = info.facing;
468 // support external camera facing. The closest approximation would be
505 uint8_t facing = (info.facing == CAMERA_FACING_FRONT) ? local
507 if ((rc = shimInfo.update(ANDROID_LENS_FACING, &facing, 1)) != OK) {
600 int facing; local
603 getDeviceVersion(cameraId, &facing) < CAMERA_DEVICE_API_VERSION_3_0) {
675 int CameraService::getDeviceVersion(int cameraId, int* facing) { argument
689 if (facing) {
750 makeClient(const sp<CameraService>& cameraService, const sp<IInterface>& cameraCb, const String16& packageName, int cameraId, int facing, int clientPid, uid_t clientUid, int servicePid, bool legacyMode, int halVersion, int deviceVersion, apiLevel effectiveApiLevel, sp<BasicClient>* client) argument
1604 int facing = -1; local
[all...]
H A DCameraService.h184 int getDeviceVersion(int cameraId, int* facing = NULL);
754 int facing, int clientPid, uid_t clientUid, int servicePid, bool legacyMode,
905 int facing = -1; local
906 int deviceVersion = getDeviceVersion(id, /*out*/&facing);
908 if(!(ret = makeClient(this, cameraCb, clientPackageName, id, facing, clientPid,
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGetBitmapSurfaceViewActivity.java118 if (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) {
121 } else { // back-facing
H A DTextureViewActivity.java122 if (info.facing == Camera.CameraInfo.CAMERA_FACING_BACK) break;
/frameworks/base/core/jni/
H A Dandroid_hardware_Camera.cpp46 jfieldID facing; member in struct:fields_t
524 env->SetIntField(info_obj, fields.facing, cameraInfo.facing);
595 if (cameraInfo.facing == CAMERA_FACING_FRONT) {
603 if (cameraInfo.facing != CAMERA_FACING_FRONT) {
1110 { "android/hardware/Camera$CameraInfo", "facing", "I", &fields.facing },
H A Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp662 jobject surface, jint facing, jint orientation) {
674 uint8_t facingVal = static_cast<uint8_t>(facing);
661 LegacyCameraDevice_nativeSetSurfaceOrientation(JNIEnv* env, jobject thiz, jobject surface, jint facing, jint orientation) argument
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DAndroidCameraAgentImpl.java162 if (cameraInfos[i].facing == Camera.CameraInfo.CAMERA_FACING_BACK) {
165 if (cameraInfos[i].facing == Camera.CameraInfo.CAMERA_FACING_FRONT) {
208 return mCameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_BACK;
213 return mCameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_FRONT;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DStaticMetadata.java2086 * Get lens facing and do the sanity check
2087 * @return lens facing, return default value (BACK) if value is unavailable.
2092 Integer facing = getValueFromKeyNonNull(key);
2094 if (facing == null) {
2099 facing >= CameraCharacteristics.LENS_FACING_FRONT &&
2100 facing <= CameraCharacteristics.LENS_FACING_BACK);
2101 return facing;
/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/
H A DCameraOps.java108 // Find first back-facing camera that has necessary capability
112 int facing = info.get(CameraCharacteristics.LENS_FACING);
152 if (facing == CameraCharacteristics.LENS_FACING_BACK &&

Completed in 453 milliseconds