Home
last modified time | relevance | path

Searched refs:cameraIds (Results 1 – 22 of 22) sorted by relevance

/frameworks/av/services/camera/virtualcamera/tests/
DVirtualCameraProviderTest.cc127 std::vector<std::string> cameraIds; in TEST_F() local
128 ASSERT_TRUE(mCameraProvider->getCameraIdList(&cameraIds).isOk()); in TEST_F()
129 EXPECT_THAT(cameraIds, ElementsAre(camera->getCameraName())); in TEST_F()
144 std::vector<std::string> cameraIds; in TEST_F() local
145 EXPECT_TRUE(mCameraProvider->getCameraIdList(&cameraIds).isOk()); in TEST_F()
146 EXPECT_THAT(cameraIds, ElementsAre(camera->getCameraName())); in TEST_F()
161 std::vector<std::string> cameraIds; in TEST_F() local
162 ASSERT_TRUE(mCameraProvider->getCameraIdList(&cameraIds).isOk()); in TEST_F()
163 EXPECT_THAT(cameraIds, IsEmpty()); in TEST_F()
176 std::vector<std::string> cameraIds; in TEST_F() local
[all …]
DVirtualCameraServiceTest.cc179 std::vector<std::string> cameraIds; in getCameraIds() local
180 EXPECT_TRUE(mCameraProvider->getCameraIdList(&cameraIds).isOk()); in getCameraIds()
181 return cameraIds; in getCameraIds()
492 std::vector<std::string> cameraIds = getCameraIds(); in TEST_F() local
493 ASSERT_THAT(cameraIds, SizeIs(1)); in TEST_F()
494 EXPECT_THAT(getCameraLensFacing(cameraIds[0]), in TEST_F()
507 std::vector<std::string> cameraIds = getCameraIds(); in TEST_F() local
508 ASSERT_THAT(cameraIds, SizeIs(1)); in TEST_F()
525 std::vector<std::string> cameraIds = getCameraIds(); in TEST_F() local
526 ASSERT_THAT(cameraIds, SizeIs(1)); in TEST_F()
[all …]
/frameworks/av/services/camera/libcameraservice/
DCameraFlashlight.cpp177 std::vector<std::string> cameraIds; in findFlashUnits() local
180 cameraIds.resize(numberOfCameras); in findFlashUnits()
182 for (size_t i = 0; i < cameraIds.size(); i++) { in findFlashUnits()
183 cameraIds[i] = ids[i]; in findFlashUnits()
188 for (auto &id : cameraIds) { in findFlashUnits()
DCameraService.cpp1265 const std::vector<std::string> *cameraIds = &mNormalDeviceIdsWithoutSystemCamera; in cameraIdIntToStrLocked() local
1271 cameraIds = &mNormalDeviceIds; in cameraIdIntToStrLocked()
1273 if (cameraIdInt < 0 || cameraIdInt >= static_cast<int>(cameraIds->size())) { in cameraIdIntToStrLocked()
1275 __FUNCTION__, cameraIdInt, cameraIds->size()); in cameraIdIntToStrLocked()
1279 return (*cameraIds)[cameraIdInt]; in cameraIdIntToStrLocked()
/frameworks/av/camera/ndk/impl/
DACameraManager.cpp416 std::vector<std::string>* cameraIds) { in getCameraIdList() argument
434 cameraIds->push_back(key.cameraId); in getCameraIdList()
764 out->cameraIds = new const char*[numCameras]; in getCameraIdList()
765 if (!out->cameraIds) { in getCameraIdList()
780 out->cameraIds[i] = dst; in getCameraIdList()
789 if (cameraIdList->cameraIds != nullptr) { in deleteCameraIdList()
791 if (cameraIdList->cameraIds[i] != nullptr) { in deleteCameraIdList()
792 delete[] cameraIdList->cameraIds[i]; in deleteCameraIdList()
795 delete[] cameraIdList->cameraIds; in deleteCameraIdList()
DACameraManager.h98 void getCameraIdList(const DeviceContext& deviceContext, std::vector<std::string>* cameraIds);
DACameraDevice.cpp139 if (physicalIdList->cameraIds[i] == nullptr) { in createCaptureRequest()
144 mPhysicalIds.begin(), mPhysicalIds.end(), physicalIdList->cameraIds[i])) { in createCaptureRequest()
145 ALOGE("%s: Invalid physicalId %s!", __FUNCTION__, physicalIdList->cameraIds[i]); in createCaptureRequest()
173 outReq->physicalSettings.emplace(physicalIdList->cameraIds[i], in createCaptureRequest()
/frameworks/av/camera/ndk/ndk_vendor/impl/
DACameraManager.cpp440 void CameraManagerGlobal::getCameraIdList(std::vector<std::string>* cameraIds) { in getCameraIdList() argument
451 cameraIds->push_back(deviceStatus.first); in getCameraIdList()
722 out->cameraIds = new const char*[numCameras]; in getCameraIdList()
723 if (!out->cameraIds) { in getCameraIdList()
738 out->cameraIds[i] = dst; in getCameraIdList()
747 if (cameraIdList->cameraIds != nullptr) { in deleteCameraIdList()
749 if (cameraIdList->cameraIds[i] != nullptr) { in deleteCameraIdList()
750 delete[] cameraIdList->cameraIds[i]; in deleteCameraIdList()
753 delete[] cameraIdList->cameraIds; in deleteCameraIdList()
DACameraManager.h78 void getCameraIdList(std::vector<std::string> *cameraIds);
DACameraDevice.cpp171 outReq->physicalSettings.emplace(physicalCameraIdList->cameraIds[i], in createCaptureRequest()
/frameworks/av/media/libmedia/
DMediaProfiles.cpp624 static bool isCameraIdFound(int cameraId, const Vector<int>& cameraIds) { in isCameraIdFound() argument
625 for (int i = 0, n = cameraIds.size(); i < n; ++i) { in isCameraIdFound()
626 if (cameraId == cameraIds[i]) { in isCameraIdFound()
635 int cameraId, const char **atts, size_t natts, Vector<int>& cameraIds) in createCamcorderProfile() argument
659 if (!isCameraIdFound(cameraId, cameraIds)) { in createCamcorderProfile()
660 cameraIds.add(cameraId); in createCamcorderProfile()
792 void MediaProfiles::initRequiredProfileRefs(const Vector<int>& cameraIds) { in initRequiredProfileRefs() argument
793 ALOGV("Number of camera ids: %zu", cameraIds.size()); in initRequiredProfileRefs()
794 CHECK(cameraIds.size() > 0); in initRequiredProfileRefs()
795 mRequiredProfileRefs = new RequiredProfiles[cameraIds.size()]; in initRequiredProfileRefs()
[all …]
/frameworks/base/core/java/android/hardware/camera2/extension/
DAdvancedExtender.java73 String [] cameraIds = mCameraManager.getCameraIdListNoLazy(); in AdvancedExtender() local
74 if (cameraIds != null) { in AdvancedExtender()
75 for (String cameraId : cameraIds) { in AdvancedExtender()
/frameworks/base/core/java/android/hardware/camera2/
DCameraManager.java2286 List<String> cameraIds = new ArrayList<>(); in extractCameraIdListLocked() local
2295 cameraIds.add(info.mCameraId); in extractCameraIdListLocked()
2297 return cameraIds.toArray(new String[0]); in extractCameraIdListLocked()
2330 private static void sortCameraIds(String[] cameraIds) { in sortCameraIds() argument
2333 Arrays.sort(cameraIds, new Comparator<String>() { in sortCameraIds()
2421 String[] cameraIds; in getCameraIdListNoLazy() local
2465 cameraIds = extractCameraIdListLocked(deviceId, devicePolicy); in getCameraIdListNoLazy()
2467 sortCameraIds(cameraIds); in getCameraIdListNoLazy()
2468 return cameraIds; in getCameraIdListNoLazy()
2476 String[] cameraIds; in getCameraIdList() local
[all …]
/frameworks/av/camera/ndk/include/camera/
DNdkCameraDevice.h62 const char** cameraIds; ///< list of camera device Ids member
/frameworks/av/media/libmedia/include/media/
DMediaProfiles.h497 void initRequiredProfileRefs(const Vector<int>& cameraIds);
524 int cameraId, const char **atts, size_t natts, Vector<int>& cameraIds);
/frameworks/av/camera/ndk/ndk_vendor/tests/
DAImageReaderVendorTest.cpp138 cameraIdList.cameraIds = idPointerList.data(); in initCamera()
821 mCameraManager, mCameraIdList->cameraIds[i], staticMetadata); in findCandidateLogicalCamera()
855 *cameraId = mCameraIdList->cameraIds[i]; in findCandidateLogicalCamera()
950 const char* cameraId = mCameraIdList->cameraIds[0]; in testBasicTakePictures()
DACameraManagerTest.cpp201 const char* cameraId = mCameraIdList->cameraIds[i]; in TEST_F()
/frameworks/av/services/camera/libcameraservice/tests/
DCameraProviderManagerTest.cpp884 auto cameraIds = providerManager->getCameraDeviceIds(&unavailablePhysicalIds); in TEST() local
911 auto cameraIds = providerManager->getCameraDeviceIds(&unavailableDeviceIds); in TEST_WITH_FLAGS() local
913 EXPECT_THAT(cameraIds, ElementsAre("123")); in TEST_WITH_FLAGS()
934 std::vector<std::string> cameraIds = providerManager->getCameraDeviceIds(&unavailableDeviceIds); in TEST_WITH_FLAGS() local
936 EXPECT_THAT(cameraIds, ElementsAre("123")); in TEST_WITH_FLAGS()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DAndroidCamera2AgentImpl.java1297 String[] cameraIds, int numberOfCameras) { in AndroidCamera2DeviceInfo() argument
1299 mCameraIds = cameraIds; in AndroidCamera2DeviceInfo()
1304 for (int id = 0; id < cameraIds.length; ++id) { in AndroidCamera2DeviceInfo()
1306 int lensDirection = cameraManager.getCameraCharacteristics(cameraIds[id]) in AndroidCamera2DeviceInfo()
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
DCameraOps.java109 String[] cameraIds = mCameraManager.getCameraIdList(); in resume() local
110 for (String id : cameraIds) { in resume()
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DCameraOps.java104 String[] cameraIds = mCameraManager.getCameraIdList(); in resume() local
105 for (String id : cameraIds) { in resume()
/frameworks/base/packages/services/CameraExtensionsProxy/src/com/android/cameraextensions/
DCameraExtensionsProxyService.java822 String [] cameraIds = mCameraManager.getCameraIdListNoLazy();
823 if (cameraIds != null) {
824 for (String cameraId : cameraIds) {