Searched refs:facing (Results 1 - 25 of 25) 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.java278 * The facing of the camera is opposite to that of the screen.
283 * The facing of the camera is the same as that of the screen.
291 public int facing; field in class:Camera.CameraInfo
299 * back-facing camera sensor is mounted in landscape. You are looking at
302 * 90. If the top side of a front-facing camera sensor is aligned with
363 * Creates a new Camera object to access the first back-facing camera on the
364 * device. If the device does not have a back-facing camera, this returns
373 if (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) {
1488 * front-facing cameras is flipped horizontally before the rotation, that
1515 * 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.java765 static void setSurfaceOrientation(Surface surface, int facing, int sensorOrientation) argument
768 LegacyExceptionUtils.throwOnError(nativeSetSurfaceOrientation(surface, facing,
814 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/camera/include/camera/
H A DCameraBase.h36 /** The facing of the camera is opposite to that of the screen. */
38 /** The facing of the camera is the same as that of the screen. */
47 int facing; member in struct:android::hardware::CameraInfo
55 * back-facing camera sensor is mounted in landscape. You are looking at
58 * 90. If the top side of a front-facing camera sensor is aligned with the
/frameworks/av/include/camera/
H A DCameraBase.h36 /** The facing of the camera is opposite to that of the screen. */
38 /** The facing of the camera is the same as that of the screen. */
47 int facing; member in struct:android::hardware::CameraInfo
55 * back-facing camera sensor is mounted in landscape. You are looking at
58 * 90. If the top side of a front-facing camera sensor is aligned with the
/frameworks/av/services/camera/libcameraservice/common/
H A DCameraProviderManager.cpp627 info.facing == hardware::CAMERA_FACING_BACK ? "Back" : "Front");
887 switch(cInfo.facing) {
889 info->facing = hardware::CAMERA_FACING_BACK;
894 info->facing = hardware::CAMERA_FACING_FRONT;
897 ALOGW("%s: Device %s: Unknown camera facing: %d",
898 __FUNCTION__, mId.c_str(), cInfo.facing);
899 info->facing = hardware::CAMERA_FACING_BACK;
965 camera_metadata_ro_entry facing =
967 if (facing.count == 1) {
968 switch (facing
[all...]
/frameworks/av/camera/
H A DCameraBase.cpp44 res = parcel->writeInt32(facing);
52 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/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
543 env->SetIntField(info_obj, fields.facing, cameraInfo.facing);
614 if (cameraInfo.facing == CAMERA_FACING_FRONT) {
622 if (cameraInfo.facing != CAMERA_FACING_FRONT) {
1129 { "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/av/services/camera/libcameraservice/
H A DCameraService.cpp559 int CameraService::getDeviceVersion(const String8& cameraId, int* facing) { argument
572 if (facing) {
575 *facing = info.facing;
600 int facing, int clientPid, uid_t clientUid, int servicePid, bool legacyMode,
612 facing, clientPid, clientUid, getpid(), legacyMode);
628 facing, clientPid, clientUid, servicePid, legacyMode);
633 facing, clientPid, clientUid, servicePid);
651 facing, clientPid, clientUid, servicePid, legacyMode);
1350 int facing local
598 makeClient(const sp<CameraService>& cameraService, const sp<IInterface>& cameraCb, const String16& packageName, const String8& cameraId, int facing, int clientPid, uid_t clientUid, int servicePid, bool legacyMode, int halVersion, int deviceVersion, apiLevel effectiveApiLevel, sp<BasicClient>* client) argument
[all...]
H A DCameraService.h190 int getDeviceVersion(const String8& cameraId, int* facing = NULL);
764 int facing, int clientPid, uid_t clientUid, int servicePid, bool legacyMode,
/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.java2115 * Get lens facing and do the sanity check
2116 * @return lens facing, return default value (BACK) if value is unavailable.
2121 Integer facing = getValueFromKeyNonNull(key);
2123 if (facing == null) {
2128 facing >= CameraCharacteristics.LENS_FACING_FRONT &&
2129 facing <= CameraCharacteristics.LENS_FACING_BACK);
2130 return facing;
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
H A DCameraOps.java103 // Find first back-facing camera that has necessary capability
107 int facing = info.get(CameraCharacteristics.LENS_FACING);
166 if (facing == CameraCharacteristics.LENS_FACING_BACK &&
/frameworks/rs/tests/java_api/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 478 milliseconds