/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 | 182 for (auto& cameraId : deviceIds) { in enumerateProviders() local 183 String8 id8 = String8(cameraId.c_str()); in enumerateProviders() 228 std::string cameraId(id.c_str()); in addStates() local 230 status_t res = mCameraProviderManager->getResourceCost(cameraId, &cost); in addStates() 344 void CameraService::onTorchStatusChanged(const String8& cameraId, in onTorchStatusChanged() argument 347 onTorchStatusChangedLocked(cameraId, newStatus); in onTorchStatusChanged() 350 void CameraService::onTorchStatusChangedLocked(const String8& cameraId, in onTorchStatusChangedLocked() argument 353 __FUNCTION__, cameraId.string(), newStatus); in onTorchStatusChangedLocked() 356 status_t res = getTorchStatusLocked(cameraId, &status); in onTorchStatusChangedLocked() 359 __FUNCTION__, cameraId.string(), strerror(-res), res); in onTorchStatusChangedLocked() [all …]
|
D | CameraService.h | 100 virtual void onDeviceStatusChanged(const String8 &cameraId, 102 virtual void onTorchStatusChanged(const String8& cameraId, 110 virtual binder::Status getCameraInfo(int cameraId, 112 virtual binder::Status getCameraCharacteristics(const String16& cameraId, 122 int32_t cameraId, const String16& clientPackageName, 128 int32_t cameraId, int32_t halVersion, 134 const sp<hardware::camera2::ICameraDeviceCallbacks>& cameraCb, const String16& cameraId, 146 int32_t cameraId, 150 virtual binder::Status setTorchMode(const String16& cameraId, bool enabled, 158 const String16& cameraId, int32_t apiVersion, [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 | 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 | 248 public CameraCharacteristics getCameraCharacteristics(@NonNull String cameraId) in getCameraCharacteristics() argument 265 if (!supportsCamera2ApiLocked(cameraId)) { in getCameraCharacteristics() 268 int id = Integer.parseInt(cameraId); in getCameraCharacteristics() 277 CameraMetadataNative info = cameraService.getCameraCharacteristics(cameraId); in getCameraCharacteristics() 315 private CameraDevice openCameraDeviceUserAsync(String cameraId, in openCameraDeviceUserAsync() argument 318 CameraCharacteristics characteristics = getCameraCharacteristics(cameraId); in openCameraDeviceUserAsync() 327 cameraId, in openCameraDeviceUserAsync() 336 if (supportsCamera2ApiLocked(cameraId)) { in openCameraDeviceUserAsync() 344 cameraUser = cameraService.connectDevice(callbacks, cameraId, in openCameraDeviceUserAsync() 350 id = Integer.parseInt(cameraId); in openCameraDeviceUserAsync() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | CameraTestResultPrinter.java | 58 public void printStatus(int numAttempts, int iteration, String cameraId) throws Exception { in printStatus() argument 60 numAttempts, iteration, cameraId)); in printStatus() 62 sendInstrumentationStatus(numAttempts, iteration, cameraId); in printStatus() 65 writeToFile(numAttempts, iteration, cameraId); in printStatus() 79 private void sendInstrumentationStatus(int numAttempts, int iteration, String cameraId) in sendInstrumentationStatus() argument 84 if (!"".equals(cameraId)) { in sendInstrumentationStatus() 85 output.putString(KEY_CAMERA_ID, cameraId); in sendInstrumentationStatus() 90 private void writeToFile(final int numAttempts, final int iteration, String cameraId) { in writeToFile() argument 95 if (!"".equals(cameraId)) { in writeToFile() 96 results += String.format("|%s=%s", KEY_CAMERA_ID, cameraId); in writeToFile() [all …]
|
/frameworks/av/camera/aidl/android/hardware/ |
D | ICameraService.aidl | 66 CameraInfo getCameraInfo(int cameraId); in getCameraInfo() argument 79 int cameraId, in connect() argument 88 String cameraId, in connectDevice() argument 101 int cameraId, in connectLegacy() argument 124 CameraMetadataNative getCameraCharacteristics(String cameraId); in getCameraCharacteristics() argument 144 String getLegacyParameters(int cameraId); in getLegacyParameters() argument 153 boolean supportsCameraApi(String cameraId, int apiVersion); in supportsCameraApi() argument 155 void setTorchMode(String cameraId, boolean enabled, IBinder clientBinder); in setTorchMode() argument
|
/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/ |
D | NdkCameraManager.cpp | 103 ACameraManager* mgr, const char* cameraId, ACameraMetadata** chars){ in ACameraManager_getCameraCharacteristics() argument 105 if (mgr == nullptr || cameraId == nullptr || chars == nullptr) { in ACameraManager_getCameraCharacteristics() 107 __FUNCTION__, mgr, cameraId, chars); in ACameraManager_getCameraCharacteristics() 110 return mgr->getCameraCharacteristics(cameraId, chars); in ACameraManager_getCameraCharacteristics() 115 ACameraManager* mgr, const char* cameraId, in ACameraManager_openCamera() argument 119 if (mgr == nullptr || cameraId == nullptr || callback == nullptr || device == nullptr) { in ACameraManager_openCamera() 121 __FUNCTION__, mgr, cameraId, callback, device); in ACameraManager_openCamera() 124 return mgr->openCamera(cameraId, callback, device); in ACameraManager_openCamera()
|
/frameworks/av/camera/ndk/impl/ |
D | ACameraManager.cpp | 126 onStatusChangedLocked(c.status, c.cameraId); in getCameraService() 186 const String8 &cameraId = pair.first; in binderDied() local 188 CameraServiceListener::STATUS_NOT_PRESENT, cameraId); in binderDied() 203 const String8& cameraId = pair.first; in registerAvailabilityCallback() local 211 msg->setString(kCameraIdKey, AString(cameraId)); in registerAvailabilityCallback() 272 AString cameraId; in onMessageReceived() local 283 found = msg->findString(kCameraIdKey, &cameraId); in onMessageReceived() 288 (*cb)(context, cameraId.c_str()); in onMessageReceived() 298 int32_t status, const String16& cameraId) { in onStatusChanged() argument 301 cm->onStatusChanged(status, String8(cameraId)); in onStatusChanged() [all …]
|
/frameworks/av/media/libmedia/ |
D | MediaProfiles.cpp | 310 static bool isCameraIdFound(int cameraId, const Vector<int>& cameraIds) { in isCameraIdFound() argument 312 if (cameraId == cameraIds[i]) { in isCameraIdFound() 320 MediaProfiles::createCamcorderProfile(int cameraId, const char **atts, Vector<int>& cameraIds) in createCamcorderProfile() argument 336 profile->mCameraId = cameraId; in createCamcorderProfile() 337 if (!isCameraIdFound(cameraId, cameraIds)) { in createCamcorderProfile() 338 cameraIds.add(cameraId); in createCamcorderProfile() 347 MediaProfiles::findImageEncodingQualityLevels(int cameraId) const in findImageEncodingQualityLevels() 352 if (levels->mCameraId == cameraId) { in findImageEncodingQualityLevels() 359 void MediaProfiles::addImageEncodingQualityLevel(int cameraId, const char** atts) in addImageEncodingQualityLevel() argument 363 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/av/camera/ |
D | CameraBase.cpp | 59 auto res = parcel->writeString16(String16(cameraId)); in writeToParcel() 70 cameraId = String8(tempCameraId); in readFromParcel() 139 sp<TCam> CameraBase<TCam, TCamTraits>::connect(int cameraId, in connect() argument 144 sp<TCam> c = new TCam(cameraId); in connect() 151 ret = (cs.get()->*fnConnectService)(cl, cameraId, clientPackageName, clientUid, in connect() 158 ALOGW("An error occurred while connecting to camera %d: %s", cameraId, in connect() 178 CameraBase<TCam, TCamTraits>::CameraBase(int cameraId) : in CameraBase() argument 180 mCameraId(cameraId) in CameraBase() 252 status_t CameraBase<TCam, TCamTraits>::getCameraInfo(int cameraId, in getCameraInfo() argument 256 binder::Status res = cs->getCameraInfo(cameraId, cameraInfo); in getCameraInfo()
|
/frameworks/av/camera/tests/ |
D | CameraBinderTests.cpp | 75 virtual binder::Status onStatusChanged(int32_t status, const String16& cameraId) { in onStatusChanged() argument 77 mCameraStatuses[cameraId] = status; in onStatusChanged() 82 virtual binder::Status onTorchStatusChanged(int32_t status, const String16& cameraId) { in onTorchStatusChanged() argument 84 mCameraTorchStatuses[cameraId] = status; in onTorchStatusChanged() 104 bool waitForTorchState(int32_t status, int32_t cameraId) const { in waitForTorchState() 107 const auto& iter = mCameraTorchStatuses.find(String16(String8::format("%d", cameraId))); in waitForTorchState() 118 mCameraTorchStatuses.find(String16(String8::format("%d", cameraId))); in waitForTorchState() 124 int32_t getTorchStatus(int32_t cameraId) const { in getTorchStatus() 126 const auto& iter = mCameraTorchStatuses.find(String16(String8::format("%d", cameraId))); in getTorchStatus() 133 int32_t getStatus(const String16& cameraId) const { in getStatus() [all …]
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | FrameProcessor.cpp | 239 int cameraId = client->getCameraId(); in process3aState() local 266 &pendingState.afMode, frameNumber, cameraId); in process3aState() 269 &pendingState.awbMode, frameNumber, cameraId); in process3aState() 272 &pendingState.aeState, frameNumber, cameraId); in process3aState() 275 &pendingState.afState, frameNumber, cameraId); in process3aState() 278 &pendingState.awbState, frameNumber, cameraId); in process3aState() 297 __FUNCTION__, cameraId, in process3aState() 306 __FUNCTION__, cameraId, in process3aState() 315 __FUNCTION__, cameraId, in process3aState() 334 T* value, int32_t frameNumber, int cameraId) { in updatePendingState() argument [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 = cameraId; in onCreate()
|
/frameworks/av/include/media/ |
D | MediaProfiles.h | 123 int getCamcorderProfileParamByName(const char *name, int cameraId, 130 bool hasCamcorderProfile(int cameraId, camcorder_quality quality) const; 190 Vector<int> getImageEncodingQualityLevels(int cameraId) const; 196 int getStartTimeOffsetMs(int cameraId) const; 352 int getCamcorderProfileIndex(int cameraId, camcorder_quality quality) const; 354 int getRequiredProfileRefIndex(int cameraId); 380 int cameraId, const char **atts, Vector<int>& cameraIds); 384 void addStartTimeOffset(int cameraId, const char **atts); 386 ImageEncodingQualityLevels* findImageEncodingQualityLevels(int cameraId) const; 387 void addImageEncodingQualityLevel(int cameraId, const char** atts);
|
/frameworks/av/media/libmedia/include/media/ |
D | MediaProfiles.h | 123 int getCamcorderProfileParamByName(const char *name, int cameraId, 130 bool hasCamcorderProfile(int cameraId, camcorder_quality quality) const; 190 Vector<int> getImageEncodingQualityLevels(int cameraId) const; 196 int getStartTimeOffsetMs(int cameraId) const; 352 int getCamcorderProfileIndex(int cameraId, camcorder_quality quality) const; 354 int getRequiredProfileRefIndex(int cameraId); 380 int cameraId, const char **atts, Vector<int>& cameraIds); 384 void addStartTimeOffset(int cameraId, const char **atts); 386 ImageEncodingQualityLevels* findImageEncodingQualityLevels(int cameraId) const; 387 void addImageEncodingQualityLevel(int cameraId, const char** atts);
|
/frameworks/av/camera/include/camera/ |
D | CameraBase.h | 76 String8 cameraId; member 86 CameraStatus(String8 id, int32_t s) : cameraId(id), status(s) {} in CameraStatus() 108 static sp<TCam> connect(int cameraId, 117 static status_t getCameraInfo(int cameraId, 127 CameraBase(int cameraId);
|
/frameworks/av/camera/ndk/include/camera/ |
D | NdkCameraManager.h | 123 typedef void (*ACameraManager_AvailabilityCallback)(void* context, const char* cameraId); 213 ACameraManager* manager, const char* cameraId, 272 ACameraManager* manager, const char* cameraId,
|
/frameworks/base/core/java/android/hardware/ |
D | CameraStatus.java | 31 public String cameraId; field in CameraStatus 41 out.writeString(cameraId); in writeToParcel() 46 cameraId = in.readString(); in readFromParcel()
|
/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 …]
|