/packages/apps/Camera2/src/com/android/camera/one/v2/ |
D | Camera2OneCameraManagerImpl.java | 117 String cameraId = findCameraId(facing); in findFirstCameraFacing() local 118 return (cameraId != null) ? CameraId.from(cameraId) : null; in findFirstCameraFacing() 173 String cameraId = findFirstCameraIdFacing(CameraCharacteristics.LENS_FACING_BACK); in findFirstBackCameraId() local 174 if (cameraId == null) { in findFirstBackCameraId() 176 cameraId = findFirstCameraIdFacing(CameraCharacteristics.LENS_FACING_EXTERNAL); in findFirstBackCameraId() 177 if (cameraId == null) { in findFirstBackCameraId() 181 return cameraId; in findFirstBackCameraId() 187 String cameraId = findFirstCameraIdFacing(CameraCharacteristics.LENS_FACING_FRONT); in findFirstFrontCameraId() local 188 if (cameraId == null) { in findFirstFrontCameraId() 190 cameraId = findFirstCameraIdFacing(CameraCharacteristics.LENS_FACING_EXTERNAL); in findFirstFrontCameraId() [all …]
|
/packages/services/Car/cpp/evs/support_library/ |
D | AnalyzeUseCase.cpp | 32 AnalyzeUseCase::AnalyzeUseCase(string cameraId, BaseAnalyzeCallback* callback) : in AnalyzeUseCase() argument 33 BaseUseCase(vector<string>(1, cameraId)), mAnalyzeCallback(callback) {} in AnalyzeUseCase() 59 string cameraId = mCameraIds[0]; in initialize() local 60 if (cameraId == info.cameraId) { in initialize() 61 mStreamHandler = mResourceManager->obtainStreamHandler(cameraId); in initialize() 63 ALOGE("Failed to get a valid StreamHandler for %s", cameraId.c_str()); in initialize() 129 AnalyzeUseCase AnalyzeUseCase::createDefaultUseCase(string cameraId, in createDefaultUseCase() argument 131 return AnalyzeUseCase(cameraId, callback); in createDefaultUseCase()
|
D | DisplayUseCase.cpp | 38 DisplayUseCase::DisplayUseCase(string cameraId, BaseRenderCallback* callback) : in DisplayUseCase() argument 39 BaseUseCase(vector<string>(1, cameraId)) { in DisplayUseCase() 88 string cameraId = mCameraIds[0]; in initialize() local 89 if (cameraId == info.cameraId) { in initialize() 90 mStreamHandler = mResourceManager->obtainStreamHandler(cameraId); in initialize() 92 ALOGE("Failed to get a valid StreamHandler for %s", cameraId.c_str()); in initialize() 249 DisplayUseCase DisplayUseCase::createDefaultUseCase(string cameraId, BaseRenderCallback* callback) { in createDefaultUseCase() argument 250 return DisplayUseCase(cameraId, callback); in createDefaultUseCase()
|
D | Utils.cpp | 64 ALOGD("Found camera %s", cam.cameraId.c_str()); in getRearViewCameraIds() 69 if (cam.cameraId == info.cameraId) { in getRearViewCameraIds() 72 ALOGD("Camera %s is matched with reverse state", cam.cameraId.c_str()); in getRearViewCameraIds() 73 cameraIds.emplace_back(cam.cameraId); in getRearViewCameraIds()
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
D | CameraPictureSizesCacher.java | 44 public static void updateSizesForCamera(Context context, int cameraId, List<Size> sizes) { in updateSizesForCamera() argument 45 String key_build = PICTURE_SIZES_BUILD_KEY + cameraId; in updateSizesForCamera() 50 String key_sizes = PICTURE_SIZES_SIZES_KEY + cameraId; in updateSizesForCamera() 69 public static List<Size> getSizesForCamera(int cameraId, Context context) { in getSizesForCamera() argument 70 Optional<List<Size>> cachedSizes = getCachedSizesForCamera(cameraId, context); in getSizesForCamera() 78 thisCamera = Camera.open(cameraId); in getSizesForCamera() 84 String key_build = PICTURE_SIZES_BUILD_KEY + cameraId; in getSizesForCamera() 85 String key_sizes = PICTURE_SIZES_SIZES_KEY + cameraId; in getSizesForCamera() 109 public static Optional<List<Size>> getCachedSizesForCamera(int cameraId, Context context) { in getCachedSizesForCamera() argument 110 String key_build = PICTURE_SIZES_BUILD_KEY + cameraId; in getCachedSizesForCamera() [all …]
|
D | SettingsUtil.java | 160 public static Size getPhotoSize(String sizeSetting, List<Size> supported, int cameraId) { in getPhotoSize() argument 164 Size selectedSize = getCameraPictureSize(sizeSetting, supported, cameraId); in getPhotoSize() 181 int cameraId) { in getCameraPictureSize() argument 182 return getSelectedCameraPictureSizes(supported, cameraId).getFromSetting(sizeSetting, in getCameraPictureSize() 194 static SelectedPictureSizes getSelectedCameraPictureSizes(List<Size> supported, int cameraId) { in getSelectedCameraPictureSizes() argument 196 if (sCachedSelectedPictureSizes.get(cameraId) != null) { in getSelectedCameraPictureSizes() 197 return sCachedSelectedPictureSizes.get(cameraId); in getSelectedCameraPictureSizes() 290 sCachedSelectedPictureSizes.put(cameraId, selectedSizes); in getSelectedCameraPictureSizes() 304 public static int getVideoQuality(String qualitySetting, int cameraId) { in getVideoQuality() argument 305 return getSelectedVideoQualities(cameraId).getFromSetting(qualitySetting); in getVideoQuality() [all …]
|
D | PictureSizeLoader.java | 127 int cameraId = SettingsUtil.getCameraId(mCameraDeviceInfo, facingSelector); in computeSizesForCamera() local 128 if (cameraId >= 0) { in computeSizesForCamera() 130 sizes = CameraPictureSizesCacher.getCachedSizesForCamera(cameraId, mContext) in computeSizesForCamera() 133 sizes = CameraPictureSizesCacher.getSizesForCamera(cameraId, mContext); in computeSizesForCamera() 151 int cameraId = SettingsUtil.getCameraId(mCameraDeviceInfo, facingSelector); in computeQualitiesForCamera() local 152 if (cameraId >= 0) { in computeQualitiesForCamera() 154 return Optional.of(SettingsUtil.getSelectedVideoQualities(cameraId)); in computeQualitiesForCamera()
|
D | CameraFacingSetting.java | 103 final int cameraId = mSettingsManager.getInteger(mSettingScope, mCameraFacingSettingKey); in getCameraFacing() local 104 if (cameraId == mCameraFacingBackValue) { in getCameraFacing() 106 } else if (cameraId == mCameraFacingFrontValue) { in getCameraFacing() 119 final int cameraId = (cameraFacing == OneCamera.Facing.BACK) ? in setCameraFacing() local 121 mSettingsManager.set(mSettingScope, mCameraFacingSettingKey, cameraId); in setCameraFacing()
|
/packages/services/DeviceAsWebcam/src/com/android/DeviceAsWebcam/utils/ |
D | UserPrefs.java | 44 public synchronized float fetchZoomRatio(String cameraId, float defaultZoom) { in fetchZoomRatio() argument 45 return mPrefs.getFloat(mContext.getString(R.string.prefs_zoom_ratio_key, cameraId), in fetchZoomRatio() 52 public synchronized void storeZoomRatio(String cameraId, float zoom) { in storeZoomRatio() argument 53 mPrefsEditor.putFloat(mContext.getString(R.string.prefs_zoom_ratio_key, cameraId), zoom); in storeZoomRatio() 69 public synchronized void storeCameraId(String cameraId) { in storeCameraId() argument 70 mPrefsEditor.putString(mContext.getString(R.string.prefs_camera_id_key), cameraId); in storeCameraId() local 87 public synchronized void storeBackCameraId(String cameraId) { in storeBackCameraId() argument 88 mPrefsEditor.putString(mContext.getString(R.string.prefs_back_camera_id_key), cameraId); in storeBackCameraId() local 105 public synchronized void storeFrontCameraId(String cameraId) { in storeFrontCameraId() argument 106 mPrefsEditor.putString(mContext.getString(R.string.prefs_front_camera_id_key), cameraId); in storeFrontCameraId() local
|
/packages/services/DeviceAsWebcam/src/com/android/DeviceAsWebcam/ |
D | CameraController.java | 258 public void onCameraAvailable(String cameraId) { 259 mCameraAvailabilityState.put(cameraId, CameraAvailabilityState.AVAILABLE); 261 Log.v(TAG, "onCameraAvailable: " + cameraId); 282 public void onCameraUnavailable(String cameraId) { 286 Log.v(TAG, "Camera id " + cameraId + " unavailable"); 288 mCameraAvailabilityState.put(cameraId, CameraAvailabilityState.UNAVAILABLE); 390 CameraId cameraId = convertAndValidateCameraIdString(cameraIdString); in fetchCameraIdFromUserPrefs() local 391 return cameraId != null ? cameraId : defaultCameraId; in fetchCameraIdFromUserPrefs() 397 CameraId cameraId = convertAndValidateCameraIdString(cameraIdString); in fetchBackCameraIdFromUserPrefs() local 398 return cameraId != null ? cameraId : defaultCameraId; in fetchBackCameraIdFromUserPrefs() [all …]
|
D | VendorCameraPrefs.java | 69 public List<PhysicalCameraInfo> getPhysicalCameraInfos(String cameraId) { in getPhysicalCameraInfos() argument 70 return mLogicalToPhysicalMap.get(cameraId); in getPhysicalCameraInfos() 81 public Range<Float> getPhysicalCameraZoomRatioRange(CameraId cameraId) { in getPhysicalCameraZoomRatioRange() argument 82 PhysicalCameraInfo physicalCameraInfo = getPhysicalCameraInfo(cameraId); in getPhysicalCameraZoomRatioRange() 89 public CameraCategory getCameraCategory(CameraId cameraId) { in getCameraCategory() argument 90 PhysicalCameraInfo physicalCameraInfo = getPhysicalCameraInfo(cameraId); in getCameraCategory() 99 private PhysicalCameraInfo getPhysicalCameraInfo(CameraId cameraId) { in getPhysicalCameraInfo() argument 101 cameraId.mainCameraId); in getPhysicalCameraInfo() 106 cameraId.physicalCameraId)) { in getPhysicalCameraInfo()
|
/packages/apps/Camera2/src/com/android/camera/one/v1/ |
D | LegacyOneCameraManagerImpl.java | 131 public OneCameraCharacteristics getOneCameraCharacteristics(@Nonnull CameraId cameraId) in getOneCameraCharacteristics() argument 134 if (cameraId.equals(mFirstBackCameraId)) { in getOneCameraCharacteristics() 137 + cameraId); in getOneCameraCharacteristics() 138 mBackCameraCharacteristics = computeCameraCharacteristics(cameraId); in getOneCameraCharacteristics() 142 + cameraId); in getOneCameraCharacteristics() 145 } else if (cameraId.equals(mFirstFrontCameraId)) { in getOneCameraCharacteristics() 148 + cameraId); in getOneCameraCharacteristics() 149 mFrontCameraCharacteristics = computeCameraCharacteristics(cameraId); in getOneCameraCharacteristics() 153 + cameraId); in getOneCameraCharacteristics() 158 == cameraId)); in getOneCameraCharacteristics() [all …]
|
/packages/services/Car/cpp/evs/sampleDriver/hidl/ |
D | EvsEnumerator.cpp | 256 Return<sp<IEvsCamera_1_0>> EvsEnumerator::openCamera(const hidl_string& cameraId) { in openCamera() argument 263 CameraRecord* pRecord = findCameraById(cameraId); in openCamera() 265 LOG(ERROR) << cameraId << " does not exist!"; in openCamera() 278 pActiveCamera = EvsV4lCamera::Create(cameraId.c_str()); in openCamera() 281 EvsV4lCamera::Create(cameraId.c_str(), sConfigManager->getCameraInfo(cameraId)); in openCamera() 286 LOG(ERROR) << "Failed to create new EvsV4lCamera object for " << cameraId; in openCamera() 301 std::string cameraId; in closeCamera() local 302 pCamera->getCameraInfo([&cameraId](CameraDesc_1_0 desc) { cameraId = desc.cameraId; }); in closeCamera() 304 closeCamera_impl(pCamera, cameraId); in closeCamera() 436 Return<sp<IEvsCamera_1_1>> EvsEnumerator::openCamera_1_1(const hidl_string& cameraId, in openCamera_1_1() argument [all …]
|
D | EvsEnumerator.h | 54 Return<sp<IEvsCamera_1_0>> openCamera(const hidl_string& cameraId) override; 62 Return<sp<IEvsCamera_1_1>> openCamera_1_1(const hidl_string& cameraId, 87 CameraRecord(const char* cameraId) : desc() { desc.v1.cameraId = cameraId; } in CameraRecord() 93 static CameraRecord* findCameraById(const std::string& cameraId); 97 void closeCamera_impl(const sp<IEvsCamera_1_0>& pCamera, const std::string& cameraId);
|
/packages/services/Car/service/src/com/android/car/evs/ |
D | CarEvsServiceUtils.java | 95 private Parameters(int type, String cameraId, String activityName) { in Parameters() argument 97 mCameraId = cameraId; in Parameters() 105 static Parameters create(int type, String cameraId, String activityName) { in create() argument 106 return new Parameters(type, cameraId, activityName); in create() 111 void setCameraId(String cameraId) { mCameraId = cameraId; } in setCameraId() argument 124 String cameraId = INVALID_CAMERA_ID; in parse() local 145 cameraId = keyValuePair[1]; in parse() 158 return Parameters.create(serviceType, cameraId, activityName); in parse()
|
/packages/apps/Camera2/src/com/android/camera/app/ |
D | CameraController.java | 108 public CameraDeviceInfo.Characteristics getCharacteristics(int cameraId) { in getCharacteristics() argument 112 return mInfo.getCharacteristics(cameraId); in getCharacteristics() 183 public void onCameraDisabled(int cameraId) { in onCameraDisabled() argument 185 mCallbackReceiver.onCameraDisabled(cameraId); in onCameraDisabled() 190 public void onDeviceOpenFailure(int cameraId, String info) { in onDeviceOpenFailure() argument 192 mCallbackReceiver.onDeviceOpenFailure(cameraId, info); in onDeviceOpenFailure() 197 public void onDeviceOpenedAlready(int cameraId, String info) { in onDeviceOpenedAlready() argument 199 mCallbackReceiver.onDeviceOpenedAlready(cameraId, info); in onDeviceOpenedAlready() 318 final int cameraId, Handler handler, final CameraAgent.CameraOpenCallback cb) { in checkAndOpenCamera() argument 322 cameraManager.openCamera(handler, cameraId, cb); in checkAndOpenCamera() [all …]
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/config/src/ |
D | VideoConfig.cpp | 42 cameraId = 0; in VideoConfig() 66 cameraId = config->cameraId; in VideoConfig() 88 cameraId = config.cameraId; in VideoConfig() 114 cameraId = config.cameraId; in operator =() 134 this->cameraId == config.cameraId && this->cameraZoom == config.cameraZoom && in operator ==() 150 this->cameraId != config.cameraId || this->cameraZoom != config.cameraZoom || in operator !=() 225 err = out->writeInt32(cameraId); in writeToParcel() 345 err = in->readInt32(&cameraId); in readFromParcel() 491 cameraId = id; in setCameraId() 496 return cameraId; in getCameraId()
|
/packages/services/Car/cpp/evs/manager/1.1/ |
D | Enumerator.cpp | 256 auto it = mCameraDevices.find(desc.cameraId); in getCameraList() 261 mCameraDevices.emplace(desc.cameraId, desc_1_1); in getCameraList() 269 Return<sp<IEvsCamera_1_0>> Enumerator::openCamera(const hidl_string& cameraId) { in openCamera() argument 277 if (mActiveCameras.find(cameraId) != mActiveCameras.end()) { in openCamera() 278 hwCamera = mActiveCameras[cameraId]; in openCamera() 282 if (std::regex_match(cameraId.c_str(), kEmulatedCameraNamePattern)) { in openCamera() 283 if (mEmulatedCameraDevices.find(cameraId) == mEmulatedCameraDevices.end()) { in openCamera() 284 LOG(ERROR) << cameraId << " is not available"; in openCamera() 286 device = EvsEmulatedCamera::Create(cameraId.c_str(), in openCamera() 287 mEmulatedCameraDevices[cameraId]); in openCamera() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/ |
D | SimulatorPreviewCamera.java | 45 @NonNull private final String cameraId; field in SimulatorPreviewCamera 51 @NonNull Context context, @NonNull String cameraId, @NonNull Surface surface) { in SimulatorPreviewCamera() argument 53 this.cameraId = Assert.isNotNull(cameraId); in SimulatorPreviewCamera() 63 .openCamera(cameraId, new CameraListener(), null /* handler */); in startCamera() 80 @NonNull Context context, @Nullable String cameraId) { in getCameraCapabilities() argument 81 if (cameraId == null) { in getCameraCapabilities() 89 characteristics = cameraManager.getCameraCharacteristics(cameraId); in getCameraCapabilities()
|
/packages/services/Car/cpp/evs/manager/1.0/ |
D | Enumerator.cpp | 61 Return<sp<IEvsCamera>> Enumerator::openCamera(const hidl_string& cameraId) { in openCamera() argument 71 cam->getHwCamera()->getCameraInfo([cameraId, &match](CameraDesc desc) { in openCamera() 72 if (desc.cameraId == cameraId) { in openCamera() 85 sp<IEvsCamera> device = mHwEnumerator->openCamera(cameraId); in openCamera() 87 ALOGE("Failed to open hardware camera %s", cameraId.c_str()); in openCamera() 107 ALOGE("Requested camera %s not found or not available", cameraId.c_str()); in openCamera()
|
/packages/apps/Camera2/src/com/android/camera/device/ |
D | MultiCameraDeviceLifecycle.java | 136 Lifetime requestLifetime, CameraId cameraId) { in openCamera2Device() argument 137 CameraDeviceKey key = new CameraDeviceKey(ApiType.CAMERA_API2, cameraId); in openCamera2Device() 162 Lifetime requestLifetime, CameraId cameraId) { in openPortabilityDevice() argument 164 cameraId); in openPortabilityDevice() 189 Lifetime requestLifetime, CameraId cameraId) { in openCamera2PortabilityDevice() argument 191 cameraId); in openCamera2PortabilityDevice() 215 Lifetime requestLifetime, CameraId cameraId) { in openLegacyPortabilityDevice() argument 216 CameraDeviceKey key = new CameraDeviceKey(ApiType.CAMERA_API_PORTABILITY_API1, cameraId); in openLegacyPortabilityDevice() 239 CameraId cameraId) { in openLegacyCameraDevice() argument 240 CameraDeviceKey key = new CameraDeviceKey(ApiType.CAMERA_API1, cameraId); in openLegacyCameraDevice()
|
D | PortabilityCameraActions.java | 127 public OpenCameraRunnable(CameraAgent cameraAgent, int cameraId, in OpenCameraRunnable() argument 131 mCameraId = cameraId; in OpenCameraRunnable() 201 public void onCameraDisabled(int cameraId) { in onCameraDisabled() argument 203 mLogger.w("onCameraDisabled(id: " + cameraId + ")"); in onCameraDisabled() 209 public void onDeviceOpenFailure(int cameraId, String info) { in onDeviceOpenFailure() argument 211 mLogger.e("onDeviceOpenFailure(id: " + cameraId in onDeviceOpenFailure() 218 public void onDeviceOpenedAlready(int cameraId, String info) { in onDeviceOpenedAlready() argument 220 mLogger.w("onDeviceOpenedAlready(id: " + cameraId in onDeviceOpenedAlready()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | CameraHolder.java | 120 public synchronized android.hardware.Camera open(int cameraId) in open() argument 123 if (mCameraDevice != null && mCameraId != cameraId) { in open() 130 Log.v(TAG, "open camera " + cameraId); in open() 131 mCameraDevice = android.hardware.Camera.open(cameraId); in open() 132 mCameraId = cameraId; in open() 157 public synchronized android.hardware.Camera tryOpen(int cameraId) { in tryOpen() argument 159 return mUsers == 0 ? open(cameraId) : null; in tryOpen()
|
/packages/services/DeviceAsWebcam/src/com/android/DeviceAsWebcam/view/ |
D | CameraPickerDialog.kt | 84 entry.value.find { it.cameraId == selectedCameraId }?.isSelected = true in <lambda>() 127 cameraId = null, in <lambda>() 175 cameraId = listItem.cameraId, in <lambda>() 207 mOnItemSelectedListener.accept(item.cameraId!!) in <lambda>() 329 val cameraId: CameraId?, in <lambda>() constant in com.android.DeviceAsWebcam.view.CameraPickerDialog.CameraPickerListAdapter.ViewListItem 344 && o1.cameraId == o2.cameraId in <lambda>() 358 val cameraId: CameraId, in <lambda>() constant in com.android.DeviceAsWebcam.view.CameraPickerDialog.ListItem 364 cameraInfo.cameraId, in <lambda>()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | MockVideoProvider.java | 58 public void onSetCamera(String cameraId) { in onSetCamera() argument 59 handleCameraChange(cameraId); in onSetCamera() 161 private void handleCameraChange(String cameraId) { in handleCameraChange() argument 162 if (CAMERA_FRONT.equals(cameraId)) { in handleCameraChange() 165 } else if (CAMERA_BACK.equals(cameraId)) { in handleCameraChange()
|