Home
last modified time | relevance | path

Searched refs:cameraId (Results 1 – 25 of 228) sorted by relevance

12345678910

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
DCameraBinderTest.java86 for (int cameraId = 0; cameraId < mUtils.getGuessedNumCameras(); ++cameraId) { in testCameraInfo()
88 CameraInfo info = mUtils.getCameraService().getCameraInfo(cameraId, in testCameraInfo()
90 assertTrue("Facing was not set for camera " + cameraId, info.info.facing != -1); in testCameraInfo()
91 assertTrue("Orientation was not set for camera " + cameraId, in testCameraInfo()
94 Log.v(TAG, "Camera " + cameraId + " info: facing " + info.info.facing in testCameraInfo()
101 for (int cameraId = 0; cameraId < mUtils.getGuessedNumCameras(); ++cameraId) { in testGetLegacyParameters()
103 String parameters = mUtils.getCameraService().getLegacyParameters(cameraId); in testGetLegacyParameters()
113 Log.v(TAG, "Camera " + cameraId + " parameters: " + parameters.substring(0, end)); in testGetLegacyParameters()
120 for (int cameraId = 0; cameraId < mUtils.getGuessedNumCameras(); ++cameraId) { in testSupportsCamera2Api()
122 String.valueOf(cameraId), API_VERSION_2); in testSupportsCamera2Api()
[all …]
/frameworks/av/services/camera/libcameraservice/
DCameraFlashlight.cpp50 status_t CameraFlashlight::createFlashlightControl(const String8& cameraId) { in createFlashlightControl() argument
52 cameraId.string()); in createFlashlightControl()
57 if (mProviderManager->supportSetTorchMode(cameraId.string())) { in createFlashlightControl()
67 status_t CameraFlashlight::setTorchMode(const String8& cameraId, bool enabled) { in setTorchMode() argument
75 cameraId.string(), enabled); in setTorchMode()
80 if (mOpenedCameraIds.indexOf(cameraId) != NAME_NOT_FOUND) { in setTorchMode()
90 __FUNCTION__, cameraId.string()); in setTorchMode()
95 res = createFlashlightControl(cameraId); in setTorchMode()
99 res = mFlashControl->setTorchMode(cameraId, enabled); in setTorchMode()
105 res = mFlashControl->setTorchMode(cameraId, enabled); in setTorchMode()
[all …]
DCameraFlashlight.h41 virtual status_t hasFlashUnit(const String8& cameraId,
45 virtual status_t setTorchMode(const String8& cameraId,
50 virtual status_t turnOnTorchWithStrengthLevel(const String8& cameraId,
54 virtual status_t getTorchStrengthLevel(const String8& cameraId, int32_t* torchStrength) = 0;
73 bool hasFlashUnit(const String8& cameraId);
76 status_t setTorchMode(const String8& cameraId, bool enabled);
79 status_t turnOnTorchWithStrengthLevel(const String8& cameraId, int32_t torchStrength);
82 status_t getTorchStrengthLevel(const String8& cameraId, int32_t* torchStrength);
88 status_t prepareDeviceOpen(const String8& cameraId);
93 status_t deviceClosed(const String8& cameraId);
[all …]
DCameraService.cpp285 for (auto& cameraId : deviceIds) { in enumerateProviders() local
286 String8 id8 = String8(cameraId.c_str()); in enumerateProviders()
290 if (unavailPhysicalIds.count(cameraId) > 0) { in enumerateProviders()
291 for (const auto& physicalId : unavailPhysicalIds[cameraId]) { in enumerateProviders()
313 void CameraService::broadcastTorchModeStatus(const String8& cameraId, TorchModeStatus status, in broadcastTorchModeStatus() argument
320 __FUNCTION__, cameraId.c_str()); in broadcastTorchModeStatus()
324 String16{cameraId}); in broadcastTorchModeStatus()
330 findOriginalIdsForRemappedCameraId(cameraId, i->getListenerUid()); in broadcastTorchModeStatus()
371 status_t CameraService::getSystemCameraKind(const String8& cameraId, SystemCameraKind *kind) const { in getSystemCameraKind() argument
372 auto state = getCameraState(cameraId); in getSystemCameraKind()
[all …]
DCameraService.h124 virtual void onDeviceStatusChanged(const String8 &cameraId,
126 virtual void onDeviceStatusChanged(const String8 &cameraId,
133 virtual void onTorchStatusChanged(const String8& cameraId,
136 virtual void onTorchStatusChanged(const String8& cameraId,
148 virtual binder::Status getCameraInfo(int cameraId, bool overrideToPortrait,
150 virtual binder::Status getCameraCharacteristics(const String16& cameraId,
160 int32_t cameraId, const String16& clientPackageName,
167 const sp<hardware::camera2::ICameraDeviceCallbacks>& cameraCb, const String16& cameraId,
188 int32_t cameraId,
192 virtual binder::Status setTorchMode(const String16& cameraId, bool enabled,
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayRotationCompatPolicy.java113 public void onCameraOpened(@NonNull String cameraId, @NonNull String packageId) {
114 notifyCameraOpened(cameraId, packageId);
118 public void onCameraClosed(@NonNull String cameraId) {
119 notifyCameraClosed(cameraId);
384 @NonNull String cameraId, @NonNull String packageName) { in notifyCameraOpened()
387 mScheduledToBeRemovedCameraIdSet.remove(cameraId); in notifyCameraOpened()
390 mDisplayContent.mDisplayId, cameraId, packageName); in notifyCameraOpened()
393 mScheduledOrientationUpdateCameraIdSet.add(cameraId); in notifyCameraOpened()
395 () -> delayedUpdateOrientationWithWmLock(cameraId, packageName), in notifyCameraOpened()
400 @NonNull String cameraId, @NonNull String packageName) { in delayedUpdateOrientationWithWmLock()
[all …]
/frameworks/av/camera/ndk/ndk_vendor/tests/
DACameraManagerTest.cpp36 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/services/companion/java/com/android/server/companion/virtual/
DCameraAccessController.java152 final String cameraId = mAppsToBlockOnVirtualDevice.keyAt(i); in blockCameraAccessIfNeeded() local
153 final OpenCameraInfo openCameraInfo = mAppsToBlockOnVirtualDevice.get(cameraId); in blockCameraAccessIfNeeded()
163 startBlocking(packageName, cameraId); in blockCameraAccessIfNeeded()
184 public void onCameraOpened(@NonNull String cameraId, @NonNull String packageName) { in onCameraOpened() argument
198 if (data.cameraIdToSession.containsKey(cameraId)) { in onCameraOpened()
201 startBlocking(packageName, cameraId); in onCameraOpened()
212 mAppsToBlockOnVirtualDevice.put(cameraId, openCameraInfo); in onCameraOpened()
214 (data != null) ? data.cameraIdToSession.get(cameraId) : null; in onCameraOpened()
217 data.cameraIdToSession.remove(cameraId); in onCameraOpened()
226 public void onCameraClosed(@NonNull String cameraId) { in onCameraClosed() argument
[all …]
/frameworks/base/media/java/android/media/
DCameraProfile.java77 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
/frameworks/av/camera/ndk/impl/
DACameraManager.cpp127 onStatusChangedLocked(c.status, c.cameraId); in getCameraServiceLocked()
131 c.cameraId, unavailablePhysicalId); in getCameraServiceLocked()
196 for (String8 cameraId : cameraIdList) { in binderDied() local
198 CameraServiceListener::STATUS_NOT_PRESENT, cameraId); in binderDied()
262 const String8& cameraId = pair.first; in registerAvailCallback() local
276 msg->setString(kCameraIdKey, AString(cameraId)); in registerAvailCallback()
289 msg->setString(kCameraIdKey, AString(cameraId)); in registerAvailCallback()
298 bool CameraManagerGlobal::supportsCamera2ApiLocked(const String8 &cameraId) { in supportsCamera2ApiLocked() argument
302 cs->supportsCameraApi(String16(cameraId), in supportsCamera2ApiLocked()
306 __FUNCTION__, cameraId.c_str()); in supportsCamera2ApiLocked()
[all …]
/frameworks/base/core/java/android/hardware/camera2/
DCameraManager.java537 String cameraId, CameraMetadataNative info, ICameraService cameraService) in getPhysicalCameraMultiResolutionConfigs() argument
557 multiResolutionStreamConfigurations.put(cameraId, configs); in getPhysicalCameraMultiResolutionConfigs()
610 public CameraCharacteristics getCameraCharacteristics(@NonNull String cameraId) in getCameraCharacteristics() argument
612 return getCameraCharacteristics(cameraId, shouldOverrideToPortrait(mContext)); in getCameraCharacteristics()
635 public CameraCharacteristics getCameraCharacteristics(@NonNull String cameraId, in getCameraCharacteristics() argument
650 CameraMetadataNative info = cameraService.getCameraCharacteristics(cameraId, in getCameraCharacteristics()
653 info.setCameraId(Integer.parseInt(cameraId)); in getCameraCharacteristics()
655 Log.v(TAG, "Failed to parse camera Id " + cameraId + " to integer"); in getCameraCharacteristics()
659 CameraManagerGlobal.get().cameraIdHasConcurrentStreamsLocked(cameraId); in getCameraCharacteristics()
664 getPhysicalCameraMultiResolutionConfigs(cameraId, info, cameraService); in getCameraCharacteristics()
[all …]
/frameworks/av/camera/aidl/android/hardware/
DICameraServiceListener.aidl54 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
86 oneway void onTorchStrengthLevelChanged(String cameraId, int newTorchStrength); in onTorchStrengthLevelChanged() argument
100 oneway void onCameraOpened(String cameraId, String clientPackageId); in onCameraOpened() argument
101 oneway void onCameraClosed(String cameraId); in onCameraClosed() argument
DICameraService.aidl72 CameraInfo getCameraInfo(int cameraId, boolean overrideToPortrait); in getCameraInfo() argument
85 int cameraId, in connect() argument
97 String cameraId, in connectDevice() argument
159 CameraMetadataNative getCameraCharacteristics(String cameraId, int targetSdkVersion, in getCameraCharacteristics() argument
180 String getLegacyParameters(int cameraId); in getLegacyParameters() argument
189 boolean supportsCameraApi(String cameraId, int apiVersion); in supportsCameraApi() argument
191 boolean isHiddenPhysicalCamera(String cameraId); in isHiddenPhysicalCamera() argument
196 void setTorchMode(String cameraId, boolean enabled, IBinder clientBinder); in setTorchMode() argument
200 void turnOnTorchWithStrengthLevel(String cameraId, int strengthLevel, IBinder clientBinder); in turnOnTorchWithStrengthLevel() argument
203 int getTorchStrengthLevel(String cameraId); in getTorchStrengthLevel() argument
/frameworks/base/core/java/android/hardware/camera2/impl/
DPhysicalCaptureResultInfo.java27 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/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestResultPrinter.java60 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/base/core/java/android/hardware/camera2/extension/
DIAdvancedExtenderImpl.aidl29 boolean isExtensionAvailable(in String cameraId, in Map<String, CameraMetadataNative> charsMap); in isExtensionAvailable() argument
30 void init(in String cameraId, in Map<String, CameraMetadataNative> charsMap); in init() argument
31 LatencyRange getEstimatedCaptureLatencyRange(in String cameraId, in Size outputSize, in getEstimatedCaptureLatencyRange() argument
33 @nullable List<SizeList> getSupportedPreviewOutputResolutions(in String cameraId); in getSupportedPreviewOutputResolutions() argument
34 @nullable List<SizeList> getSupportedCaptureOutputResolutions(in String cameraId); in getSupportedCaptureOutputResolutions() argument
37 CameraMetadataNative getAvailableCaptureRequestKeys(in String cameraId); in getAvailableCaptureRequestKeys() argument
38 CameraMetadataNative getAvailableCaptureResultKeys(in String cameraId); in getAvailableCaptureResultKeys() argument
/frameworks/av/camera/ndk/
DNdkCameraManager.cpp163 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/ex/camera2/extensions/service_based_sample/oem_library/src/java/androidx/camera/extensions/impl/service/
DIAdvancedExtenderImpl.aidl26 boolean isExtensionAvailable(in String cameraId); in isExtensionAvailable() argument
27 void init(in String cameraId); in init() argument
29 in String cameraId, in Size outputSize, int format); in getEstimatedCaptureLatencyRange() argument
30 @nullable List<SizeList> getSupportedPreviewOutputResolutions(in String cameraId); in getSupportedPreviewOutputResolutions() argument
31 @nullable List<SizeList> getSupportedCaptureOutputResolutions(in String cameraId); in getSupportedCaptureOutputResolutions() argument
32 @nullable List<SizeList> getSupportedYuvAnalysisResolutions(in String cameraId); in getSupportedYuvAnalysisResolutions() argument
/frameworks/base/services/core/java/com/android/server/biometrics/
DBiometricCameraManagerImpl.java36 public void onCameraAvailable(@NonNull String cameraId) {
37 mIsCameraAvailable.put(cameraId, true);
41 public void onCameraUnavailable(@NonNull String cameraId) {
42 mIsCameraAvailable.put(cameraId, false);
55 for (String cameraId : mIsCameraAvailable.keySet()) { in isAnyCameraUnavailable()
56 if (!mIsCameraAvailable.get(cameraId)) { in isAnyCameraUnavailable()
/frameworks/ex/camera2/extensions/service_based_sample/oem_library/src/java/androidx/camera/extensions/impl/advanced/
DAdvancedExtenderImpl.java67 boolean isExtensionAvailable(String cameraId, in isExtensionAvailable() argument
83 void init(String cameraId, Map<String, CameraCharacteristics> characteristicsMap); in init() argument
100 Range<Long> getEstimatedCaptureLatencyRange(String cameraId, in getEstimatedCaptureLatencyRange() argument
114 Map<Integer, List<Size>> getSupportedPreviewOutputResolutions(String cameraId); in getSupportedPreviewOutputResolutions() argument
124 Map<Integer, List<Size>> getSupportedCaptureOutputResolutions(String cameraId); in getSupportedCaptureOutputResolutions() argument
133 List<Size> getSupportedYuvAnalysisResolutions(String cameraId); in getSupportedYuvAnalysisResolutions() argument
/frameworks/ex/camera2/extensions/advancedSample/src/java/androidx/camera/extensions/impl/advanced/
DAdvancedExtenderImpl.java67 boolean isExtensionAvailable(String cameraId, in isExtensionAvailable() argument
83 void init(String cameraId, Map<String, CameraCharacteristics> characteristicsMap); in init() argument
100 Range<Long> getEstimatedCaptureLatencyRange(String cameraId, in getEstimatedCaptureLatencyRange() argument
114 Map<Integer, List<Size>> getSupportedPreviewOutputResolutions(String cameraId); in getSupportedPreviewOutputResolutions() argument
124 Map<Integer, List<Size>> getSupportedCaptureOutputResolutions(String cameraId); in getSupportedCaptureOutputResolutions() argument
144 List<Size> getSupportedYuvAnalysisResolutions(String cameraId); in getSupportedYuvAnalysisResolutions() argument
/frameworks/ex/camera2/extensions/stub/src/main/java/androidx/camera/extensions/impl/advanced/
DAdvancedExtenderImpl.java67 boolean isExtensionAvailable(String cameraId, in isExtensionAvailable() argument
83 void init(String cameraId, Map<String, CameraCharacteristics> characteristicsMap); in init() argument
100 Range<Long> getEstimatedCaptureLatencyRange(String cameraId, in getEstimatedCaptureLatencyRange() argument
114 Map<Integer, List<Size>> getSupportedPreviewOutputResolutions(String cameraId); in getSupportedPreviewOutputResolutions() argument
124 Map<Integer, List<Size>> getSupportedCaptureOutputResolutions(String cameraId); in getSupportedCaptureOutputResolutions() argument
144 List<Size> getSupportedYuvAnalysisResolutions(String cameraId); in getSupportedYuvAnalysisResolutions() argument
DBeautyAdvancedExtenderImpl.java42 public boolean isExtensionAvailable(String cameraId, in isExtensionAvailable() argument
48 public void init(String cameraId, in init() argument
55 String cameraId, Size size, int imageFormat) { in getEstimatedCaptureLatencyRange() argument
61 String cameraId) { in getSupportedPreviewOutputResolutions() argument
67 String cameraId) { in getSupportedCaptureOutputResolutions() argument
79 String cameraId) { in getSupportedYuvAnalysisResolutions() argument
DNightAdvancedExtenderImpl.java42 public boolean isExtensionAvailable(String cameraId, in isExtensionAvailable() argument
48 public void init(String cameraId, in init() argument
55 String cameraId, Size size, int imageFormat) { in getEstimatedCaptureLatencyRange() argument
61 String cameraId) { in getSupportedPreviewOutputResolutions() argument
67 String cameraId) { in getSupportedCaptureOutputResolutions() argument
79 String cameraId) { in getSupportedYuvAnalysisResolutions() argument
/frameworks/av/camera/ndk/ndk_vendor/impl/
DACameraManager.cpp322 onStatusChangedLocked(csi.deviceStatus, csi.cameraId); in getCameraService()
326 csi.cameraId, unavailablePhysicalId); in getCameraService()
344 const auto &cameraId = pair.first; in binderDeathCallback() local
346 instance->onStatusChangedLocked(deviceStatus, cameraId); in binderDeathCallback()
408 const std::string& cameraId = pair.first; in registerAvailCallback() local
418 msg->setString(kCameraIdKey, AString(cameraId.c_str())); in registerAvailCallback()
431 msg->setString(kCameraIdKey, AString(cameraId.c_str())); in registerAvailCallback()
491 AString cameraId; in onMessageReceivedInternal() local
502 found = msg->findString(kCameraIdKey, &cameraId); in onMessageReceivedInternal()
507 (*cb)(context, cameraId.c_str()); in onMessageReceivedInternal()
[all …]

12345678910