/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/ |
D | CameraBinderTest.java | 86 for (int cameraId = 0; cameraId < mUtils.getGuessedNumCameras(); ++cameraId) { in testCameraInfo() 88 CameraInfo info = mUtils.getCameraService().getCameraInfo(cameraId); in testCameraInfo() 89 assertTrue("Facing was not set for camera " + cameraId, info.info.facing != -1); in testCameraInfo() 90 assertTrue("Orientation was not set for camera " + cameraId, in testCameraInfo() 93 Log.v(TAG, "Camera " + cameraId + " info: facing " + info.info.facing in testCameraInfo() 100 for (int cameraId = 0; cameraId < mUtils.getGuessedNumCameras(); ++cameraId) { in testGetLegacyParameters() 102 String parameters = mUtils.getCameraService().getLegacyParameters(cameraId); in testGetLegacyParameters() 112 Log.v(TAG, "Camera " + cameraId + " parameters: " + parameters.substring(0, end)); in testGetLegacyParameters() 119 for (int cameraId = 0; cameraId < mUtils.getGuessedNumCameras(); ++cameraId) { in testSupportsCamera2Api() 121 String.valueOf(cameraId), API_VERSION_2); in testSupportsCamera2Api() [all …]
|
/frameworks/av/services/camera/libcameraservice/ |
D | CameraFlashlight.cpp | 52 status_t CameraFlashlight::createFlashlightControl(const String8& cameraId) { in createFlashlightControl() argument 54 cameraId.string()); in createFlashlightControl() 59 if (mProviderManager->supportSetTorchMode(cameraId.string())) { in createFlashlightControl() 70 status_t CameraFlashlight::setTorchMode(const String8& cameraId, bool enabled) { in setTorchMode() argument 78 cameraId.string(), enabled); in setTorchMode() 83 if (mOpenedCameraIds.indexOf(cameraId) != NAME_NOT_FOUND) { in setTorchMode() 93 __FUNCTION__, cameraId.string()); in setTorchMode() 98 res = createFlashlightControl(cameraId); in setTorchMode() 102 res = mFlashControl->setTorchMode(cameraId, enabled); in setTorchMode() 108 res = mFlashControl->setTorchMode(cameraId, enabled); in setTorchMode() [all …]
|
D | CameraFlashlight.h | 43 virtual status_t hasFlashUnit(const String8& cameraId, 47 virtual status_t setTorchMode(const String8& cameraId, 67 bool hasFlashUnit(const String8& cameraId); 70 status_t setTorchMode(const String8& cameraId, bool enabled); 76 status_t prepareDeviceOpen(const String8& cameraId); 81 status_t deviceClosed(const String8& cameraId); 86 status_t createFlashlightControl(const String8& cameraId); 89 bool hasFlashUnitLocked(const String8& cameraId); 93 bool isBackwardCompatibleMode(const String8& cameraId); 118 status_t hasFlashUnit(const String8& cameraId, bool *hasFlash); [all …]
|
D | CameraService.cpp | 222 for (auto& cameraId : deviceIds) { in enumerateProviders() local 223 String8 id8 = String8(cameraId.c_str()); in enumerateProviders() 255 void CameraService::broadcastTorchModeStatus(const String8& cameraId, TorchModeStatus status) { in broadcastTorchModeStatus() argument 259 i->getListener()->onTorchStatusChanged(mapToInterface(status), String16{cameraId}); in broadcastTorchModeStatus() 293 status_t CameraService::getSystemCameraKind(const String8& cameraId, SystemCameraKind *kind) const { in getSystemCameraKind() argument 294 auto state = getCameraState(cameraId); in getSystemCameraKind() 300 return mCameraProviderManager->getSystemCameraKind(cameraId.c_str(), kind); in getSystemCameraKind() 316 std::string cameraId(id.c_str()); in addStates() local 318 status_t res = mCameraProviderManager->getResourceCost(cameraId, &cost); in addStates() 324 res = mCameraProviderManager->getSystemCameraKind(cameraId, &deviceKind); in addStates() [all …]
|
D | CameraService.h | 106 virtual void onDeviceStatusChanged(const String8 &cameraId, 108 virtual void onDeviceStatusChanged(const String8 &cameraId, 111 virtual void onTorchStatusChanged(const String8& cameraId, 119 virtual binder::Status getCameraInfo(int cameraId, 121 virtual binder::Status getCameraCharacteristics(const String16& cameraId, 131 int32_t cameraId, const String16& clientPackageName, 137 int32_t cameraId, int32_t halVersion, 143 const sp<hardware::camera2::ICameraDeviceCallbacks>& cameraCb, const String16& cameraId, 164 int32_t cameraId, 168 virtual binder::Status setTorchMode(const String16& cameraId, bool enabled, [all …]
|
/frameworks/av/camera/ndk/ndk_vendor/tests/ |
D | ACameraManagerTest.cpp | 36 static void onAvailable(void* obj, const char* cameraId) { in onAvailable() argument 37 ALOGV("Camera %s onAvailable", cameraId); in onAvailable() 44 thiz->mAvailableMap[cameraId] = true; in onAvailable() 48 static void onUnavailable(void* obj, const char* cameraId) { in onUnavailable() argument 49 ALOGV("Camera %s onUnavailable", cameraId); in onUnavailable() 56 thiz->mAvailableMap[cameraId] = false; in onUnavailable() 64 static void onPhysicalCameraAvailable(void* obj, const char* cameraId, in onPhysicalCameraAvailable() argument 66 ALOGV("Camera %s : %s onAvailable", cameraId, physicalCameraId); in onPhysicalCameraAvailable() 76 static void onPhysicalCameraUnavailable(void* obj, const char* cameraId, in onPhysicalCameraUnavailable() argument 78 ALOGV("Camera %s : %s onUnavailable", cameraId, physicalCameraId); in onPhysicalCameraUnavailable() [all …]
|
/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 | 446 public static CamcorderProfile get(int cameraId, int quality) { in get() argument 456 return native_get_camcorder_profile(cameraId, quality); in get() 518 public static boolean hasProfile(int cameraId, int quality) { in hasProfile() argument 519 return native_has_camcorder_profile(cameraId, quality); in hasProfile() 560 int cameraId, int quality); in native_get_camcorder_profile() argument 562 int cameraId, int quality); in native_has_camcorder_profile() argument
|
/frameworks/av/camera/ndk/impl/ |
D | ACameraManager.cpp | 133 onStatusChangedLocked(c.status, c.cameraId); in getCameraServiceLocked() 137 c.cameraId, unavailablePhysicalId); in getCameraServiceLocked() 198 const String8 &cameraId = pair.first; in binderDied() local 200 CameraServiceListener::STATUS_NOT_PRESENT, cameraId); in binderDied() 264 const String8& cameraId = pair.first; in registerAvailCallback() local 278 msg->setString(kCameraIdKey, AString(cameraId)); in registerAvailCallback() 291 msg->setString(kCameraIdKey, AString(cameraId)); in registerAvailCallback() 300 bool CameraManagerGlobal::supportsCamera2ApiLocked(const String8 &cameraId) { in supportsCamera2ApiLocked() argument 304 cs->supportsCameraApi(String16(cameraId), in supportsCamera2ApiLocked() 308 __FUNCTION__, cameraId.c_str()); in supportsCamera2ApiLocked() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/ |
D | CameraManager.java | 401 public CameraCharacteristics getCameraCharacteristics(@NonNull String cameraId) in getCameraCharacteristics() argument 422 if (!isHiddenPhysicalCamera(cameraId) && !supportsCamera2ApiLocked(cameraId)) { in getCameraCharacteristics() 425 int id = Integer.parseInt(cameraId); in getCameraCharacteristics() 435 CameraMetadataNative info = cameraService.getCameraCharacteristics(cameraId); in getCameraCharacteristics() 437 info.setCameraId(Integer.parseInt(cameraId)); in getCameraCharacteristics() 440 Log.v(TAG, "Failed to parse camera Id " + cameraId + " to integer"); in getCameraCharacteristics() 443 CameraManagerGlobal.get().cameraIdHasConcurrentStreamsLocked(cameraId); in getCameraCharacteristics() 482 private CameraDevice openCameraDeviceUserAsync(String cameraId, in openCameraDeviceUserAsync() argument 485 CameraCharacteristics characteristics = getCameraCharacteristics(cameraId); in openCameraDeviceUserAsync() 494 cameraId, in openCameraDeviceUserAsync() [all …]
|
/frameworks/av/camera/aidl/android/hardware/ |
D | ICameraService.aidl | 68 CameraInfo getCameraInfo(int cameraId); in getCameraInfo() argument 81 int cameraId, in connect() argument 90 String cameraId, in connectDevice() argument 104 int cameraId, in connectLegacy() argument 146 CameraMetadataNative getCameraCharacteristics(String cameraId); in getCameraCharacteristics() argument 166 String getLegacyParameters(int cameraId); in getLegacyParameters() argument 175 boolean supportsCameraApi(String cameraId, int apiVersion); in supportsCameraApi() argument 177 boolean isHiddenPhysicalCamera(String cameraId); in isHiddenPhysicalCamera() argument 179 void setTorchMode(String cameraId, boolean enabled, IBinder clientBinder); in setTorchMode() argument
|
D | ICameraServiceListener.aidl | 54 oneway void onStatusChanged(int status, String cameraId); in onStatusChanged() argument 60 oneway void onPhysicalCameraStatusChanged(int status, String cameraId, String physicalCameraId); in onPhysicalCameraStatusChanged() argument 84 oneway void onTorchStatusChanged(int status, String cameraId); in onTorchStatusChanged() argument 98 oneway void onCameraOpened(String cameraId, String clientPackageId); in onCameraOpened() argument 99 oneway void onCameraClosed(String cameraId); in onCameraClosed() argument
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | CameraTestResultPrinter.java | 60 public void printStatus(int numAttempts, int iteration, String cameraId) throws Exception { in printStatus() argument 62 numAttempts, iteration, cameraId)); in printStatus() 64 sendInstrumentationStatus(numAttempts, iteration, cameraId); in printStatus() 67 writeToFile(numAttempts, iteration, cameraId); in printStatus() 81 private void sendInstrumentationStatus(int numAttempts, int iteration, String cameraId) in sendInstrumentationStatus() argument 86 if (!"".equals(cameraId)) { in sendInstrumentationStatus() 87 output.putString(KEY_CAMERA_ID, cameraId); in sendInstrumentationStatus() 92 private void writeToFile(final int numAttempts, final int iteration, String cameraId) { in writeToFile() argument 97 if (!"".equals(cameraId)) { in writeToFile() 98 results += String.format("|%s=%s", KEY_CAMERA_ID, cameraId); in writeToFile() [all …]
|
/frameworks/av/camera/ndk/ |
D | NdkCameraManager.cpp | 163 ACameraManager* mgr, const char* cameraId, ACameraMetadata** chars){ in ACameraManager_getCameraCharacteristics() argument 165 if (mgr == nullptr || cameraId == nullptr || chars == nullptr) { in ACameraManager_getCameraCharacteristics() 167 __FUNCTION__, mgr, cameraId, chars); in ACameraManager_getCameraCharacteristics() 171 camera_status_t status = mgr->getCameraCharacteristics(cameraId, &spChars); in ACameraManager_getCameraCharacteristics() 182 ACameraManager* mgr, const char* cameraId, in ACameraManager_openCamera() argument 186 if (mgr == nullptr || cameraId == nullptr || callback == nullptr || device == nullptr) { in ACameraManager_openCamera() 188 __FUNCTION__, mgr, cameraId, callback, device); in ACameraManager_openCamera() 191 return mgr->openCamera(cameraId, callback, device); in ACameraManager_openCamera() 196 camera_status_t ACameraManager_getTagFromName(ACameraManager *mgr, const char* cameraId, in ACameraManager_getTagFromName() argument 199 if (mgr == nullptr || cameraId == nullptr || name == nullptr) { in ACameraManager_getTagFromName() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
D | PhysicalCaptureResultInfo.java | 27 private String cameraId; field in PhysicalCaptureResultInfo 47 public PhysicalCaptureResultInfo(String cameraId, CameraMetadataNative cameraMetadata) { in PhysicalCaptureResultInfo() argument 48 this.cameraId = cameraId; in PhysicalCaptureResultInfo() 59 dest.writeString(cameraId); in writeToParcel() 64 cameraId = in.readString(); in readFromParcel() 70 return cameraId; in getCameraId()
|
/frameworks/av/camera/ndk/ndk_vendor/impl/ |
D | ACameraManager.cpp | 286 statusAndId.cameraId = c.v2_0.cameraId; in getCameraService() 304 cameraStatusAndId.cameraId = pair.first; in serviceDied() 366 const hidl_string& cameraId = pair.first; in registerAvailCallback() local 375 msg->setString(kCameraIdKey, AString(cameraId.c_str())); in registerAvailCallback() 387 msg->setString(kCameraIdKey, AString(cameraId.c_str())); in registerAvailCallback() 448 AString cameraId; in onMessageReceivedInternal() local 459 found = msg->findString(kCameraIdKey, &cameraId); in onMessageReceivedInternal() 464 (*cb)(context, cameraId.c_str()); in onMessageReceivedInternal() 471 AString cameraId; in onMessageReceivedInternal() local 483 found = msg->findString(kCameraIdKey, &cameraId); in onMessageReceivedInternal() [all …]
|
/frameworks/av/services/camera/libcameraservice/hidl/ |
D | AidlCameraServiceListener.cpp | 31 int32_t status, const ::android::String16& cameraId) { in onStatusChanged() 35 cameraStatusAndId.cameraId = String8(cameraId).string(); in onStatusChanged() 45 int32_t status, const ::android::String16& cameraId, in onPhysicalCameraStatusChanged() 55 cameraStatusAndId.cameraId = String8(cameraId).string(); in onPhysicalCameraStatusChanged()
|
/frameworks/av/media/libmedia/ |
D | MediaProfiles.cpp | 370 static bool isCameraIdFound(int cameraId, const Vector<int>& cameraIds) { in isCameraIdFound() argument 372 if (cameraId == cameraIds[i]) { in isCameraIdFound() 380 MediaProfiles::createCamcorderProfile(int cameraId, const char **atts, Vector<int>& cameraIds) in createCamcorderProfile() argument 396 profile->mCameraId = cameraId; in createCamcorderProfile() 397 if (!isCameraIdFound(cameraId, cameraIds)) { in createCamcorderProfile() 398 cameraIds.add(cameraId); in createCamcorderProfile() 407 MediaProfiles::findImageEncodingQualityLevels(int cameraId) const in findImageEncodingQualityLevels() 412 if (levels->mCameraId == cameraId) { in findImageEncodingQualityLevels() 419 void MediaProfiles::addImageEncodingQualityLevel(int cameraId, const char** atts) in addImageEncodingQualityLevel() argument 423 ALOGV("%s: cameraId=%d, quality=%d", __func__, cameraId, quality); in addImageEncodingQualityLevel() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
D | Camera2ReprocessCaptureTest.java | 209 private void testBasicReprocessing(String cameraId, int inputFormat, in testBasicReprocessing() argument 212 openDevice(cameraId); in testBasicReprocessing() 214 testReprocessingMaxSizes(cameraId, inputFormat, reprocessOutputFormat, in testBasicReprocessing() 225 private void testReprocessingMaxSizes(String cameraId, int inputFormat, in testReprocessingMaxSizes() argument 234 testReprocess(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize, in testReprocessingMaxSizes() 238 testReprocessAbort(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize, in testReprocessingMaxSizes() 242 testReprocessTimestamps(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize, in testReprocessingMaxSizes() 246 testReprocessJpegExif(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize); in testReprocessingMaxSizes() 249 testReprocessRequestKeys(cameraId, maxInputSize, inputFormat, in testReprocessingMaxSizes() 260 private void testReprocessingAllCombinations(String cameraId, Size previewSize, in testReprocessingAllCombinations() argument [all …]
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
D | ConcurrentCameraIdCombination.java | 61 for (String cameraId : mConcurrentCameraIds) { in writeToParcel() 62 dest.writeString(cameraId); in writeToParcel() 77 String cameraId = in.readString(); in readFromParcel() local 78 if (cameraId == null) { in readFromParcel() 81 mConcurrentCameraIds.add(cameraId); in readFromParcel()
|
/frameworks/av/camera/ndk/include/camera/ |
D | NdkCameraManager.h | 123 const char* cameraId); 138 const char* cameraId, const char* physicalCameraId); 233 ACameraManager* manager, const char* cameraId, 292 ACameraManager* manager, const char* cameraId, 417 camera_status_t ACameraManager_getTagFromName(ACameraManager *manager, const char* cameraId,
|
/frameworks/av/camera/ |
D | CameraBase.cpp | 59 auto res = parcel->writeString16(String16(cameraId)); in writeToParcel() 77 cameraId = String8(tempCameraId); in readFromParcel() 154 sp<TCam> CameraBase<TCam, TCamTraits>::connect(int cameraId, in connect() argument 159 sp<TCam> c = new TCam(cameraId); in connect() 166 ret = (cs.get()->*fnConnectService)(cl, cameraId, clientPackageName, clientUid, in connect() 173 ALOGW("An error occurred while connecting to camera %d: %s", cameraId, in connect() 193 CameraBase<TCam, TCamTraits>::CameraBase(int cameraId) : in CameraBase() argument 195 mCameraId(cameraId) in CameraBase() 267 status_t CameraBase<TCam, TCamTraits>::getCameraInfo(int cameraId, in getCameraInfo() argument 271 binder::Status res = cs->getCameraInfo(cameraId, cameraInfo); in getCameraInfo()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | CameraAvailabilityListener.kt | 48 override fun onCameraClosed(cameraId: String) { in onCameraClosed() 49 if (targetCameraId == cameraId) { in onCameraClosed() 54 override fun onCameraOpened(cameraId: String, packageId: String) { in onCameraOpened() 55 if (targetCameraId == cameraId && !isExcluded(packageId)) { in onCameraOpened() 127 val cameraId = res.getString(R.string.config_protectedCameraId) in onApplyCameraProtection() constant 131 manager, pathFromString(pathString), cameraId, excluded, executor) in onApplyCameraProtection()
|
/frameworks/av/services/camera/libcameraservice/utils/ |
D | TagMonitor.cpp | 139 const std::string& cameraId, uint32_t tag, const CameraMetadata& metadata) { in monitorSingleMetadata() argument 142 (cameraId.empty() ? mLastMonitoredRequestValues : in monitorSingleMetadata() 143 mLastMonitoredPhysicalRequestKeys[cameraId]) : in monitorSingleMetadata() 144 (cameraId.empty() ? mLastMonitoredResultValues : in monitorSingleMetadata() 145 mLastMonitoredPhysicalResultKeys[cameraId]); in monitorSingleMetadata() 186 mMonitoringEvents.emplace(source, frameNumber, timestamp, entry, cameraId); in monitorSingleMetadata() 198 mMonitoringEvents.emplace(source, frameNumber, timestamp, entry, cameraId); in monitorSingleMetadata() 223 2, event.cameraId.c_str(), in dumpMonitoredMetadata() 328 const T &value, const std::string& cameraId) : in MonitorEvent() argument 335 cameraId(cameraId) { in MonitorEvent()
|
/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 = cameraId; in onCreate()
|