Home
last modified time | relevance | path

Searched refs:facing (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/camera/
DCameraServiceProxy.java138 public CameraUsageEvent(int facing, String clientName, int apiLevel) { in CameraUsageEvent() argument
139 mCameraFacing = facing; in CameraUsageEvent()
204 public void notifyCameraState(String cameraId, int newCameraState, int facing,
212 String facingStr = cameraFacingToString(facing);
216 updateActivityCount(cameraId, newCameraState, facing, clientName, apiLevel);
423 private void updateActivityCount(String cameraId, int newCameraState, int facing, in updateActivityCount() argument
438 String facingStr = (facing == ICameraServiceProxy.CAMERA_FACING_BACK) ? in updateActivityCount()
463 CameraUsageEvent newEvent = new CameraUsageEvent(facing, clientName, apiLevel); in updateActivityCount()
/frameworks/base/core/java/android/hardware/
DCameraInfo.java39 out.writeInt(info.facing); in writeToParcel()
44 info.facing = in.readInt(); in readFromParcel()
DCamera.java334 public int facing; field in Camera.CameraInfo
419 if (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) { in open()
/frameworks/base/media/java/android/media/
DCamcorderProfile.java399 if (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) { in get()
498 if (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) { in hasProfile()
DCameraProfile.java62 if (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) { in getJpegEncodingQualityParameter()
/frameworks/av/camera/aidl/android/hardware/
DICameraServiceProxy.aidl57 oneway void notifyCameraState(String cameraId, int facing, int newCameraState, in notifyCameraState() argument
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DCameraStreamer.java1038 public synchronized void setFacing(int facing) { in setFacing() argument
1039 if (facing != mRequestedFacing) { in setFacing()
1040 switch (facing) { in setFacing()
1044 mRequestedFacing = facing; in setFacing()
1047 throw new IllegalArgumentException("Unknown facing value '" + facing in setFacing()
1262 mActualFacing = (cameraInfo.facing == CameraInfo.CAMERA_FACING_FRONT) in updateCameraOrientation()
1281 if ((cameraInfo.facing == CameraInfo.CAMERA_FACING_FRONT) == useFrontCam) { in getCameraId()
1609 public void setFacing(int facing) { in setFacing() argument
1610 mCameraRunner.setFacing(facing); in setFacing()
1682 return (cameraInfo.facing == CameraInfo.CAMERA_FACING_FRONT) in getDefaultFacing()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DGLThreadManager.java140 public GLThreadManager(int cameraId, int facing, CameraDeviceState state) { in GLThreadManager() argument
141 mTextureRenderer = new SurfaceTextureRenderer(facing); in GLThreadManager()
DRequestThreadManager.java393 int facing = mCharacteristics.get(CameraCharacteristics.LENS_FACING); in configureOutputs() local
401 LegacyCameraDevice.setSurfaceOrientation(s, facing, orientation); in configureOutputs()
506 mGLThreadManager = new GLThreadManager(mCameraId, facing, mDeviceState); in configureOutputs()
519 LegacyCameraDevice.setSurfaceOrientation(p, facing, orientation); in configureOutputs()
DLegacyCameraDevice.java813 static void setSurfaceOrientation(Surface surface, int facing, int sensorOrientation) in setSurfaceOrientation() argument
816 LegacyExceptionUtils.throwOnError(nativeSetSurfaceOrientation(surface, facing, in setSurfaceOrientation()
862 private static native int nativeSetSurfaceOrientation(Surface surface, int facing, in nativeSetSurfaceOrientation() argument
DSurfaceTextureRenderer.java177 public SurfaceTextureRenderer(int facing) { in SurfaceTextureRenderer() argument
178 mFacing = facing; in SurfaceTextureRenderer()
/frameworks/av/camera/
DCameraBase.cpp44 res = parcel->writeInt32(facing); in writeToParcel()
52 res = parcel->readInt32(&facing); in readFromParcel()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
DCameraBinderTest.java89 assertTrue("Facing was not set for camera " + cameraId, info.info.facing != -1); in testCameraInfo()
93 Log.v(TAG, "Camera " + cameraId + " info: facing " + info.info.facing in testCameraInfo()
/frameworks/av/camera/include/camera/
DCameraBase.h47 int facing; member
/frameworks/base/core/jni/
Dandroid_hardware_Camera.cpp46 jfieldID facing; member
547 env->SetIntField(info_obj, fields.facing, cameraInfo.facing); in android_hardware_Camera_getCameraInfo()
619 if (cameraInfo.facing == CAMERA_FACING_FRONT) { in android_hardware_Camera_native_setup()
627 if (cameraInfo.facing != CAMERA_FACING_FRONT) { in android_hardware_Camera_native_setup()
1134 { "android/hardware/Camera$CameraInfo", "facing", "I", &fields.facing }, in register_android_hardware_Camera()
Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp699 jobject surface, jint facing, jint orientation) { in LegacyCameraDevice_nativeSetSurfaceOrientation() argument
711 uint8_t facingVal = static_cast<uint8_t>(facing); in LegacyCameraDevice_nativeSetSurfaceOrientation()
/frameworks/av/services/camera/libcameraservice/
DCameraService.cpp618 int CameraService::getDeviceVersion(const String8& cameraId, int* facing) { in getDeviceVersion() argument
631 if (facing) { in getDeviceVersion()
634 *facing = info.facing; in getDeviceVersion()
659 int api1CameraId, int facing, int clientPid, uid_t clientUid, int servicePid, in makeClient() argument
671 api1CameraId, facing, clientPid, clientUid, in makeClient()
690 facing, clientPid, clientUid, in makeClient()
696 facing, clientPid, clientUid, servicePid); in makeClient()
714 api1CameraId, facing, clientPid, clientUid, in makeClient()
1480 int facing = -1; in connectHelper() local
1481 int deviceVersion = getDeviceVersion(cameraId, /*out*/&facing); in connectHelper()
[all …]
DCameraService.h209 int facing,
215 int getDeviceVersion(const String8& cameraId, int* facing = NULL);
956 int api1CameraId, int facing, int clientPid, uid_t clientUid, int servicePid,
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGetBitmapSurfaceViewActivity.java118 if (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in setCameraDisplayOrientation()
DTextureViewActivity.java122 if (info.facing == Camera.CameraInfo.CAMERA_FACING_BACK) break; in getCameraOrientation()
/frameworks/av/services/camera/libcameraservice/common/
DCameraProviderManager.cpp1489 info.facing == hardware::CAMERA_FACING_BACK ? "Back" : "Front"); in dump()
1894 switch(cInfo.facing) { in cacheCameraInfo()
1896 mInfo.facing = hardware::CAMERA_FACING_BACK; in cacheCameraInfo()
1901 mInfo.facing = hardware::CAMERA_FACING_FRONT; in cacheCameraInfo()
1905 __FUNCTION__, mId.c_str(), cInfo.facing); in cacheCameraInfo()
1906 mInfo.facing = hardware::CAMERA_FACING_BACK; in cacheCameraInfo()
2067 camera_metadata_ro_entry facing = in getCameraInfo() local
2069 if (facing.count == 1) { in getCameraInfo()
2070 switch (facing.data.u8[0]) { in getCameraInfo()
2072 info->facing = hardware::CAMERA_FACING_BACK; in getCameraInfo()
[all …]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DAndroidCameraAgentImpl.java162 if (cameraInfos[i].facing == Camera.CameraInfo.CAMERA_FACING_BACK) { in create()
165 if (cameraInfos[i].facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in create()
208 return mCameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_BACK; in isFacingBack()
213 return mCameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_FRONT; in isFacingFront()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DStaticMetadata.java2118 Integer facing = getValueFromKeyNonNull(key); in getLensFacingChecked() local
2120 if (facing == null) { in getLensFacingChecked()
2125 facing >= CameraCharacteristics.LENS_FACING_FRONT && in getLensFacingChecked()
2126 facing <= CameraCharacteristics.LENS_FACING_BACK); in getLensFacingChecked()
2127 return facing; in getLensFacingChecked()
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
DCameraOps.java112 int facing = info.get(CameraCharacteristics.LENS_FACING); in resume() local
152 if (facing == CameraCharacteristics.LENS_FACING_BACK && in resume()
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DCameraOps.java107 int facing = info.get(CameraCharacteristics.LENS_FACING); in resume() local
166 if (facing == CameraCharacteristics.LENS_FACING_BACK && in resume()

12