/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/ |
D | CameraManagerTest.java | 20 import android.hardware.Camera.CameraInfo; 48 CameraManager.get().selectCamera(CameraInfo.CAMERA_FACING_BACK); in testNoCameraDeviceGetInfo() 56 MockCameraFactory.createCamera(CameraInfo.CAMERA_FACING_FRONT) in testFrontFacingOnlyGetInfo() 60 CameraManager.get().selectCamera(CameraInfo.CAMERA_FACING_FRONT); in testFrontFacingOnlyGetInfo() 61 assertEquals(CameraInfo.CAMERA_FACING_FRONT, CameraManager.get().getCameraInfo().facing); in testFrontFacingOnlyGetInfo() 62 CameraManager.get().selectCamera(CameraInfo.CAMERA_FACING_BACK); in testFrontFacingOnlyGetInfo() 63 assertEquals(CameraInfo.CAMERA_FACING_FRONT, CameraManager.get().getCameraInfo().facing); in testFrontFacingOnlyGetInfo() 68 MockCameraFactory.createCamera(CameraInfo.CAMERA_FACING_BACK) in testBackFacingOnlyGetInfo() 72 CameraManager.get().selectCamera(CameraInfo.CAMERA_FACING_FRONT); in testBackFacingOnlyGetInfo() 73 assertEquals(CameraInfo.CAMERA_FACING_BACK, CameraManager.get().getCameraInfo().facing); in testBackFacingOnlyGetInfo() [all …]
|
D | MockCameraFactory.java | 20 import android.hardware.Camera.CameraInfo; 31 private static Map<Camera, CameraInfo> sCameraInfos = new HashMap<Camera, CameraInfo>(); 35 CameraInfo cameraInfo = new CameraInfo(); in createCamera() 41 public static void getCameraInfo(Camera camera, CameraInfo outCameraInfo) { in getCameraInfo() 42 CameraInfo cameraInfo = sCameraInfos.get(camera); in getCameraInfo() 62 (CameraInfo) invocation.getArguments()[1] in createCameraWrapper() 66 }).when(wrapper).getCameraInfo(Mockito.anyInt(), Mockito.any(CameraInfo.class)); in createCameraWrapper()
|
/packages/services/Car/cpp/evs/sampleDriver/ |
D | ConfigManager.h | 56 class CameraInfo { 58 CameraInfo() : in CameraInfo() function 63 virtual ~CameraInfo(); 100 class CameraGroupInfo : public CameraInfo { 202 unique_ptr<CameraInfo>& getCameraInfo(const string cameraId) noexcept { in getCameraInfo() 232 unordered_map<string, unique_ptr<CameraInfo>> mCameraInfo; 310 bool readCameraDeviceInfo(CameraInfo *aCamera, 329 CameraInfo *aCamera, 347 CameraInfo *aCamera, 365 bool constructCameraMetadata(CameraInfo *aCamera,
|
D | ConfigManager.cpp | 103 CameraInfo *aCamera = new CameraInfo(); in readCameraInfo() 113 mCameraInfo.insert_or_assign(id, unique_ptr<CameraInfo>(aCamera)); in readCameraInfo() 128 ConfigManager::readCameraDeviceInfo(CameraInfo *aCamera, in readCameraDeviceInfo() 163 CameraInfo *aCamera, in readCameraCapabilities() 247 CameraInfo *aCamera, in readCameraMetadata() 354 ConfigManager::constructCameraMetadata(CameraInfo *aCamera, in constructCameraMetadata() 703 unique_ptr<ConfigManager::CameraInfo> aCamera; in readConfigDataFromBinary() 1061 ConfigManager::CameraInfo::~CameraInfo() { in ~CameraInfo()
|
D | EvsV4lCamera.h | 94 unique_ptr<ConfigManager::CameraInfo> &camInfo, 111 unique_ptr<ConfigManager::CameraInfo> &camInfo); 156 unique_ptr<ConfigManager::CameraInfo> &mCameraInfo;
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/ |
D | CameraManager.java | 21 import android.hardware.Camera.CameraInfo; 99 private final CameraInfo cameraInfo; 149 this.cameraInfo = new CameraInfo(); in CameraManager() 155 final CameraInfo cameraInfo = new CameraInfo(); in CameraManager() 160 if (cameraInfo.facing == CameraInfo.CAMERA_FACING_FRONT) { in CameraManager() 162 } else if (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) { in CameraManager() 229 cameraInfo.facing == CameraInfo.CAMERA_FACING_FRONT in swapCamera() 230 ? CameraInfo.CAMERA_FACING_BACK in swapCamera() 231 : CameraInfo.CAMERA_FACING_FRONT); in swapCamera() 253 final CameraInfo cameraInfo = new CameraInfo(); in selectCamera() [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | CameraHolder.java | 21 import android.hardware.Camera.CameraInfo; 54 private CameraInfo[] mInfo; 99 mInfo = new CameraInfo[mNumberOfCameras]; in CameraHolder() 101 mInfo[i] = new CameraInfo(); in CameraHolder() 103 if (mBackCameraId == -1 && mInfo[i].facing == CameraInfo.CAMERA_FACING_BACK) { in CameraHolder() 106 if (mFrontCameraId == -1 && mInfo[i].facing == CameraInfo.CAMERA_FACING_FRONT) { in CameraHolder() 116 public CameraInfo[] getCameraInfo() { in getCameraInfo()
|
D | Util.java | 33 import android.hardware.Camera.CameraInfo; 341 Camera.CameraInfo info = new Camera.CameraInfo(); in getDisplayOrientation() 344 if (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in getDisplayOrientation() 354 Camera.CameraInfo info = new Camera.CameraInfo(); in getCameraOrientation() 515 return (intentCameraId == android.hardware.Camera.CameraInfo.CAMERA_FACING_FRONT); in isFrontCameraIntent() 519 return (intentCameraId == android.hardware.Camera.CameraInfo.CAMERA_FACING_BACK); in isBackCameraIntent() 623 CameraInfo info = CameraHolder.instance().getCameraInfo()[cameraId]; in setRotationParameter() 624 if (info.facing == CameraInfo.CAMERA_FACING_FRONT) { in setRotationParameter()
|
D | CameraSettings.java | 23 import android.hardware.Camera.CameraInfo; 67 private final CameraInfo[] mCameraInfo; 71 int cameraId, CameraInfo[] cameraInfo) { in CameraSettings()
|
/packages/apps/Camera2/src/com/android/camera/one/v1/ |
D | LegacyOneCameraManagerImpl.java | 45 private final Camera.CameraInfo[] mCameraInfos; 56 Camera.CameraInfo[] cameraInfos; in instance() 59 cameraInfos = new Camera.CameraInfo[numberOfCameras]; in instance() 61 cameraInfos[i] = new Camera.CameraInfo(); in instance() 73 if (cameraInfos[i].facing == Camera.CameraInfo.CAMERA_FACING_BACK) { in instance() 76 if (cameraInfos[i].facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in instance() 97 Camera.CameraInfo[] info) { in LegacyOneCameraManagerImpl()
|
D | OneCameraCharacteristicsImpl.java | 37 private final Camera.CameraInfo mCameraInfo; 47 Camera.CameraInfo cameraInfo, Camera.Parameters cameraParameters) { in OneCameraCharacteristicsImpl() 84 if (direction == Camera.CameraInfo.CAMERA_FACING_BACK) { in getCameraDirection()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | CameraManager.java | 26 import android.hardware.Camera.CameraInfo; 84 void getCameraInfo(int index, CameraInfo cameraInfo); in getCameraInfo() 132 public void getCameraInfo(final int index, final CameraInfo cameraInfo) { 148 private final CameraInfo mCameraInfo; 213 mCameraInfo = new CameraInfo(); in CameraManager() 219 final CameraInfo cameraInfo = new CameraInfo(); in CameraManager() 224 if (cameraInfo.facing == CameraInfo.CAMERA_FACING_FRONT) { in CameraManager() 226 } else if (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) { in CameraManager() 296 selectCamera(mCameraInfo.facing == CameraInfo.CAMERA_FACING_FRONT ? in swapCamera() 297 CameraInfo.CAMERA_FACING_BACK : in swapCamera() [all …]
|
/packages/apps/Gallery2/src/com/android/camera/ |
D | DisableCameraReceiver.java | 24 import android.hardware.Camera.CameraInfo; 63 CameraInfo info = new CameraInfo(); in hasBackCamera() 66 if (info.facing == CameraInfo.CAMERA_FACING_BACK) { in hasBackCamera()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | SetActivitiesCameraReceiver.java | 24 import android.hardware.Camera.CameraInfo; 66 CameraInfo info = new CameraInfo(); in hasBackCamera() 69 if (info.facing == CameraInfo.CAMERA_FACING_BACK) { in hasBackCamera()
|
D | CameraTestDevice.java | 19 import android.hardware.Camera.CameraInfo; 29 public static void injectMockCamera(CameraInfo[] info, CameraProxy[] camera) { in injectMockCamera()
|
/packages/services/Car/cpp/evs/support_library/ |
D | ConfigManager.h | 29 struct CameraInfo { struct 74 const std::vector<CameraInfo>& getCameras() const { return mCameras; }; in getCameras() 78 std::vector<CameraInfo> mCameras;
|
/packages/services/Car/cpp/evs/apps/default/ |
D | RenderTopView.h | 39 const std::vector<ConfigManager::CameraInfo>& camList, 49 const ConfigManager::CameraInfo& info; 52 ActiveCamera(const ConfigManager::CameraInfo& c) : info(c) {}; in ActiveCamera()
|
D | ConfigManager.h | 28 struct CameraInfo { struct 83 const std::vector<CameraInfo>& getCameras() const { return mCameras; }; in getCameras() 122 std::vector<CameraInfo> mCameras;
|
D | RenderPixelCopy.h | 36 RenderPixelCopy(sp<IEvsEnumerator> enumerator, const ConfigManager::CameraInfo& cam); 45 ConfigManager::CameraInfo mCameraInfo;
|
/packages/apps/Settings/src/com/android/settings/wifi/qrcode/ |
D | QrCamera.java | 25 import android.hardware.Camera.CameraInfo; 291 Camera.CameraInfo cameraInfo = new Camera.CameraInfo(); in initCamera() 295 if (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) { in initCamera()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/ |
D | CameraComposerFragment.java | 23 import android.hardware.Camera.CameraInfo; 79 private int cameraDirection = CameraInfo.CAMERA_FACING_BACK; 340 previewImageView.setScaleX(cameraDirection == CameraInfo.CAMERA_FACING_FRONT ? -1 : 1); in updateViewState() 345 if (cameraDirection == CameraInfo.CAMERA_FACING_FRONT) { in updateViewState()
|
/packages/apps/Camera2/tests/src/com/android/camera/stress/ |
D | VideoCapture.java | 92 android.hardware.Camera.CameraInfo.CAMERA_FACING_BACK); in testBackVideoCapture() 106 android.hardware.Camera.CameraInfo.CAMERA_FACING_FRONT); in testFrontVideoCapture()
|
D | ImageCapture.java | 99 android.hardware.Camera.CameraInfo.CAMERA_FACING_BACK); in testBackImageCapture() 113 android.hardware.Camera.CameraInfo.CAMERA_FACING_FRONT); in testFrontImageCapture()
|
/packages/apps/LegacyCamera/tests/src/com/android/camera/stress/ |
D | VideoCapture.java | 96 android.hardware.Camera.CameraInfo.CAMERA_FACING_BACK); in testBackVideoCapture() 111 android.hardware.Camera.CameraInfo.CAMERA_FACING_FRONT); in testFrontVideoCapture()
|
D | ImageCapture.java | 102 android.hardware.Camera.CameraInfo.CAMERA_FACING_BACK); in testBackImageCapture() 117 android.hardware.Camera.CameraInfo.CAMERA_FACING_FRONT); in testFrontImageCapture()
|