/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/ |
D | CameraBinderTest.java | 85 for (int cameraId = 0; cameraId < mUtils.getGuessedNumCameras(); ++cameraId) { in testCameraInfo() 92 "Camera service returned info for camera " + cameraId, in testCameraInfo() 93 mUtils.getCameraService().getCameraInfo(cameraId, info) == in testCameraInfo() 95 assertTrue("Facing was not set for camera " + cameraId, info.info.facing != -1); in testCameraInfo() 96 assertTrue("Orientation was not set for camera " + cameraId, in testCameraInfo() 99 Log.v(TAG, "Camera " + cameraId + " info: facing " + info.info.facing in testCameraInfo() 106 for (int cameraId = 0; cameraId < mUtils.getGuessedNumCameras(); ++cameraId) { in testGetLegacyParameters() 109 assertEquals("Camera service returned parameters for camera " + cameraId, in testGetLegacyParameters() 111 mUtils.getCameraService().getLegacyParameters(cameraId, /*out*/parameters)); in testGetLegacyParameters() 121 Log.v(TAG, "Camera " + cameraId + " parameters: " + parameters[0].substring(0, end)); in testGetLegacyParameters() [all …]
|
/frameworks/av/services/camera/libcameraservice/ |
D | CameraFlashlight.cpp | 49 status_t CameraFlashlight::createFlashlightControl(const String8& cameraId) { in createFlashlightControl() argument 51 cameraId.string()); in createFlashlightControl() 72 atoi(String8(cameraId).string()), &info); in createFlashlightControl() 75 __FUNCTION__, cameraId.string()); in createFlashlightControl() 100 status_t CameraFlashlight::setTorchMode(const String8& cameraId, bool enabled) { in setTorchMode() argument 108 cameraId.string(), enabled); in setTorchMode() 113 if (mOpenedCameraIds.indexOf(cameraId) != NAME_NOT_FOUND) { in setTorchMode() 123 __FUNCTION__, cameraId.string()); in setTorchMode() 132 res = createFlashlightControl(cameraId); in setTorchMode() 136 res = mFlashControl->setTorchMode(cameraId, enabled); in setTorchMode() [all …]
|
D | CameraFlashlight.h | 42 virtual status_t hasFlashUnit(const String8& cameraId, 46 virtual status_t setTorchMode(const String8& cameraId, 66 bool hasFlashUnit(const String8& cameraId); 69 status_t setTorchMode(const String8& cameraId, bool enabled); 75 status_t prepareDeviceOpen(const String8& cameraId); 80 status_t deviceClosed(const String8& cameraId); 85 status_t createFlashlightControl(const String8& cameraId); 88 bool hasFlashUnitLocked(const String8& cameraId); 112 status_t hasFlashUnit(const String8& cameraId, bool *hasFlash); 113 status_t setTorchMode(const String8& cameraId, bool enabled); [all …]
|
D | CameraService.h | 101 virtual void onDeviceStatusChanged(camera_device_status_t cameraId, 103 virtual void onTorchStatusChanged(const String8& cameraId, 112 virtual status_t getCameraInfo(int cameraId, 114 virtual status_t getCameraCharacteristics(int cameraId, 118 virtual status_t connect(const sp<ICameraClient>& cameraClient, int cameraId, 123 virtual status_t connectLegacy(const sp<ICameraClient>& cameraClient, int cameraId, 130 int cameraId, 141 int cameraId, 145 virtual status_t setTorchMode(const String16& cameraId, bool enabled, 152 int cameraId, int apiVersion); [all …]
|
D | CameraService.cpp | 192 String8 cameraId = String8::format("%d", i); in onFirstRef() local 235 mCameraStates.emplace(cameraId, std::make_shared<CameraState>(cameraId, cost, in onFirstRef() 239 if (mFlashlight->hasFlashUnit(cameraId)) { in onFirstRef() 240 mTorchStatusMap.add(cameraId, in onFirstRef() 279 void CameraService::onDeviceStatusChanged(camera_device_status_t cameraId, in onDeviceStatusChanged() argument 282 cameraId, newStatus); in onDeviceStatusChanged() 284 String8 id = String8::format("%d", cameraId); in onDeviceStatusChanged() 288 ALOGE("%s: Bad camera ID %d", __FUNCTION__, cameraId); in onDeviceStatusChanged() 345 void CameraService::onTorchStatusChanged(const String8& cameraId, in onTorchStatusChanged() argument 348 onTorchStatusChangedLocked(cameraId, newStatus); in onTorchStatusChanged() [all …]
|
D | CameraDeviceFactory.cpp | 31 sp<CameraDeviceBase> CameraDeviceFactory::createDevice(int cameraId) { in createDevice() argument 39 int deviceVersion = svc->getDeviceVersion(cameraId, /*facing*/NULL); in createDevice() 46 device = new Camera2Device(cameraId); in createDevice() 52 device = new Camera3Device(cameraId); in createDevice() 56 __FUNCTION__, cameraId, deviceVersion); in createDevice()
|
/frameworks/base/media/java/android/media/ |
D | CameraProfile.java | 77 public static int getJpegEncodingQualityParameter(int cameraId, int quality) { in getJpegEncodingQualityParameter() argument 82 int[] levels = sCache.get(cameraId); in getJpegEncodingQualityParameter() 84 levels = getImageEncodingQualityLevels(cameraId); in getJpegEncodingQualityParameter() 85 sCache.put(cameraId, levels); in getJpegEncodingQualityParameter() 96 private static int[] getImageEncodingQualityLevels(int cameraId) { in getImageEncodingQualityLevels() argument 97 int nLevels = native_get_num_image_encoding_quality_levels(cameraId); in getImageEncodingQualityLevels() 104 levels[i] = native_get_image_encoding_quality_level(cameraId, i); in getImageEncodingQualityLevels() 112 private static native final int native_get_num_image_encoding_quality_levels(int cameraId); in native_get_num_image_encoding_quality_levels() argument 113 … private static native final int native_get_image_encoding_quality_level(int cameraId, int index); in native_get_image_encoding_quality_level() argument
|
D | CamcorderProfile.java | 388 public static CamcorderProfile get(int cameraId, int quality) { in get() argument 398 return native_get_camcorder_profile(cameraId, quality); in get() 460 public static boolean hasProfile(int cameraId, int quality) { in hasProfile() argument 461 return native_has_camcorder_profile(cameraId, quality); in hasProfile() 500 int cameraId, int quality); in native_get_camcorder_profile() argument 502 int cameraId, int quality); in native_has_camcorder_profile() argument
|
/frameworks/base/core/java/android/hardware/camera2/ |
D | CameraManager.java | 217 public CameraCharacteristics getCameraCharacteristics(@NonNull String cameraId) in getCameraCharacteristics() argument 222 if (!getOrCreateDeviceIdListLocked().contains(cameraId)) { in getCameraCharacteristics() 224 " currently connected camera device", cameraId)); in getCameraCharacteristics() 227 int id = Integer.valueOf(cameraId); in getCameraCharacteristics() 240 if (!supportsCamera2ApiLocked(cameraId)) { in getCameraCharacteristics() 290 private CameraDevice openCameraDeviceUserAsync(String cameraId, in openCameraDeviceUserAsync() argument 293 CameraCharacteristics characteristics = getCameraCharacteristics(cameraId); in openCameraDeviceUserAsync() 303 cameraId, in openCameraDeviceUserAsync() 311 int id = Integer.parseInt(cameraId); in openCameraDeviceUserAsync() 313 if (supportsCamera2ApiLocked(cameraId)) { in openCameraDeviceUserAsync() [all …]
|
/frameworks/av/camera/ |
D | ICameraServiceListener.cpp | 45 virtual void onStatusChanged(Status status, int32_t cameraId) in onStatusChanged() argument 51 data.writeInt32(cameraId); in onStatusChanged() 59 virtual void onTorchStatusChanged(TorchStatus status, const String16 &cameraId) in onTorchStatusChanged() argument 65 data.writeString16(cameraId); in onTorchStatusChanged() 85 int32_t cameraId = data.readInt32(); in onTransact() local 87 onStatusChanged(status, cameraId); in onTransact() 95 String16 cameraId = data.readString16(); in onTransact() local 97 onTorchStatusChanged(status, cameraId); in onTransact()
|
D | ICameraService.cpp | 116 virtual status_t getCameraInfo(int cameraId, in getCameraInfo() argument 120 data.writeInt32(cameraId); in getCameraInfo() 133 virtual status_t getCameraCharacteristics(int cameraId, in getCameraCharacteristics() argument 137 data.writeInt32(cameraId); in getCameraCharacteristics() 174 virtual status_t connect(const sp<ICameraClient>& cameraClient, int cameraId, in connect() argument 182 data.writeInt32(cameraId); in connect() 199 virtual status_t connectLegacy(const sp<ICameraClient>& cameraClient, int cameraId, in connectLegacy() argument 207 data.writeInt32(cameraId); in connectLegacy() 224 virtual status_t setTorchMode(const String16& cameraId, bool enabled, in setTorchMode() argument 229 data.writeString16(cameraId); in setTorchMode() [all …]
|
D | CameraBase.cpp | 93 sp<TCam> CameraBase<TCam, TCamTraits>::connect(int cameraId, in connect() argument 98 sp<TCam> c = new TCam(cameraId); in connect() 105 status = (cs.get()->*fnConnectService)(cl, cameraId, clientPackageName, clientUid, in connect() 112 ALOGW("An error occurred while connecting to camera: %d", cameraId); in connect() 131 CameraBase<TCam, TCamTraits>::CameraBase(int cameraId) : in CameraBase() argument 133 mCameraId(cameraId) in CameraBase() 196 status_t CameraBase<TCam, TCamTraits>::getCameraInfo(int cameraId, in getCameraInfo() argument 200 return cs->getCameraInfo(cameraId, cameraInfo); in getCameraInfo()
|
D | ICameraServiceProxy.cpp | 38 virtual void notifyCameraState(String16 cameraId, CameraState newCameraState) { in notifyCameraState() argument 41 data.writeString16(cameraId); in notifyCameraState() 62 String16 cameraId = data.readString16(); in onTransact() local 65 notifyCameraState(cameraId, newCameraState); in onTransact()
|
D | Camera.cpp | 37 Camera::Camera(int cameraId) in Camera() argument 38 : CameraBase(cameraId) in Camera() 74 sp<Camera> Camera::connect(int cameraId, const String16& clientPackageName, in connect() argument 77 return CameraBaseT::connect(cameraId, clientPackageName, clientUid); in connect() 80 status_t Camera::connectLegacy(int cameraId, int halVersion, in connectLegacy() argument 86 sp<Camera> c = new Camera(cameraId); in connectLegacy() 92 status = cs.get()->connectLegacy(cl, cameraId, halVersion, clientPackageName, in connectLegacy() 101 cameraId, status, strerror(-status)); in connectLegacy()
|
/frameworks/base/core/java/android/hardware/ |
D | ICameraService.aidl | 42 int getCameraInfo(int cameraId, out CameraInfo info); in getCameraInfo() argument 44 int connect(ICameraClient client, int cameraId, in connect() argument 50 int connectDevice(ICameraDeviceCallbacks callbacks, int cameraId, in connectDevice() argument 59 int getCameraCharacteristics(int cameraId, out CameraMetadataNative info); in getCameraCharacteristics() argument 70 int getLegacyParameters(int cameraId, out String[] parameters); in getLegacyParameters() argument 72 int supportsCameraApi(int cameraId, int apiVersion); in supportsCameraApi() argument 74 int connectLegacy(ICameraClient client, int cameraId, in connectLegacy() argument
|
/frameworks/av/include/camera/ |
D | ICameraService.h | 95 virtual status_t getCameraInfo(int cameraId, 99 virtual status_t getCameraCharacteristics(int cameraId, 121 int cameraId, 129 int cameraId, 136 int cameraId, 145 int cameraId, int apiVersion) = 0; 153 int cameraId, int halVersion, 171 virtual status_t setTorchMode(const String16& cameraId, bool enabled,
|
D | CameraBase.h | 62 static sp<TCam> connect(int cameraId, 71 static status_t getCameraInfo(int cameraId, 87 CameraBase(int cameraId);
|
/frameworks/av/media/libmedia/ |
D | MediaProfiles.cpp | 307 static bool isCameraIdFound(int cameraId, const Vector<int>& cameraIds) { in isCameraIdFound() argument 309 if (cameraId == cameraIds[i]) { in isCameraIdFound() 317 MediaProfiles::createCamcorderProfile(int cameraId, const char **atts, Vector<int>& cameraIds) in createCamcorderProfile() argument 333 profile->mCameraId = cameraId; in createCamcorderProfile() 334 if (!isCameraIdFound(cameraId, cameraIds)) { in createCamcorderProfile() 335 cameraIds.add(cameraId); in createCamcorderProfile() 344 MediaProfiles::findImageEncodingQualityLevels(int cameraId) const in findImageEncodingQualityLevels() 349 if (levels->mCameraId == cameraId) { in findImageEncodingQualityLevels() 356 void MediaProfiles::addImageEncodingQualityLevel(int cameraId, const char** atts) in addImageEncodingQualityLevel() argument 360 ALOGV("%s: cameraId=%d, quality=%d", __func__, cameraId, quality); in addImageEncodingQualityLevel() [all …]
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | FrameProcessor.cpp | 247 int cameraId = client->getCameraId(); in process3aState() local 269 &new3aState.afMode, frameNumber, cameraId); in process3aState() 272 &new3aState.awbMode, frameNumber, cameraId); in process3aState() 275 &new3aState.aeState, frameNumber, cameraId); in process3aState() 278 &new3aState.afState, frameNumber, cameraId); in process3aState() 281 &new3aState.awbState, frameNumber, cameraId); in process3aState() 288 &new3aState.afTriggerId, frameNumber, cameraId); in process3aState() 291 &new3aState.aeTriggerId, frameNumber, cameraId); in process3aState() 298 __FUNCTION__, cameraId, in process3aState() 307 __FUNCTION__, cameraId, in process3aState() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
D | MediaFrameworkIntegrationTestRunner.java | 60 String cameraId = (String) icicle.get("camera_id"); in onCreate() local 61 if (cameraId != null) { in onCreate() 64 String.format("Reading camera_id from icicle: '%s'", cameraId)); in onCreate() 65 mCameraId = Integer.parseInt(cameraId); in onCreate()
|
/frameworks/av/include/media/ |
D | MediaProfiles.h | 97 int getCamcorderProfileParamByName(const char *name, int cameraId, 104 bool hasCamcorderProfile(int cameraId, camcorder_quality quality) const; 164 Vector<int> getImageEncodingQualityLevels(int cameraId) const; 170 int getStartTimeOffsetMs(int cameraId) const; 326 int getCamcorderProfileIndex(int cameraId, camcorder_quality quality) const; 328 int getRequiredProfileRefIndex(int cameraId); 350 int cameraId, const char **atts, Vector<int>& cameraIds); 354 void addStartTimeOffset(int cameraId, const char **atts); 356 ImageEncodingQualityLevels* findImageEncodingQualityLevels(int cameraId) const; 357 void addImageEncodingQualityLevel(int cameraId, const char** atts);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | FlashlightController.java | 60 String cameraId = null; in FlashlightController() local 62 cameraId = getCameraId(); in FlashlightController() 67 mCameraId = cameraId; in FlashlightController() 188 public void onTorchModeUnavailable(String cameraId) { 189 if (TextUtils.equals(cameraId, mCameraId)) { 195 public void onTorchModeChanged(String cameraId, boolean enabled) { 196 if (TextUtils.equals(cameraId, mCameraId)) {
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | CameraAgent.java | 121 public void onCameraDisabled(final int cameraId) { in onCameraDisabled() argument 125 mCallback.onCameraDisabled(cameraId); in onCameraDisabled() 130 public void onDeviceOpenFailure(final int cameraId, final String info) { in onDeviceOpenFailure() argument 134 mCallback.onDeviceOpenFailure(cameraId, info); in onDeviceOpenFailure() 139 public void onDeviceOpenedAlready(final int cameraId, final String info) { in onDeviceOpenedAlready() argument 143 mCallback.onDeviceOpenedAlready(cameraId, info); in onDeviceOpenedAlready() 247 public void onCameraDisabled(int cameraId); in onCameraDisabled() argument 256 public void onDeviceOpenFailure(int cameraId, String info); in onDeviceOpenFailure() argument 263 public void onDeviceOpenedAlready(int cameraId, String info); in onDeviceOpenedAlready() argument 286 public void openCamera(final Handler handler, final int cameraId, in openCamera() argument [all …]
|
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/ |
D | BlockingCameraManager.java | 145 public CameraDevice openCamera(String cameraId, CameraDevice.StateCallback listener, in openCamera() argument 154 return (new OpenListener(mManager, cameraId, listener, handler)).blockUntilOpen(); in openCamera() 189 OpenListener(CameraManager manager, String cameraId, in OpenListener() argument 192 mCameraId = cameraId; in OpenListener() 194 manager.openCamera(cameraId, this, handler); in OpenListener()
|
/frameworks/av/camera/tests/ |
D | CameraBinderTests.cpp | 72 virtual void onStatusChanged(Status status, int32_t cameraId) { in onStatusChanged() argument 74 mCameraStatuses[cameraId] = status; in onStatusChanged() 78 virtual void onTorchStatusChanged(TorchStatus status, const String16& cameraId) { in onTorchStatusChanged() argument 80 mCameraTorchStatuses[cameraId] = status; in onTorchStatusChanged() 99 bool waitForTorchState(TorchStatus status, int32_t cameraId) const { in waitForTorchState() 102 const auto& iter = mCameraTorchStatuses.find(String16(String8::format("%d", cameraId))); in waitForTorchState() 113 mCameraTorchStatuses.find(String16(String8::format("%d", cameraId))); in waitForTorchState() 119 TorchStatus getTorchStatus(int32_t cameraId) const { in getTorchStatus() 121 const auto& iter = mCameraTorchStatuses.find(String16(String8::format("%d", cameraId))); in getTorchStatus() 128 Status getStatus(int32_t cameraId) const { in getStatus() [all …]
|