|
|
|
@ -1352,7 +1352,7 @@ status_t CameraProviderManager::ProviderInfo::initialize(
|
|
|
|
|
|
|
|
|
|
// Get list of concurrent streaming camera device combinations
|
|
|
|
|
if (mMinorVersion >= 6) {
|
|
|
|
|
res = getConcurrentStreamingCameraIdsInternalLocked(interface2_6);
|
|
|
|
|
res = getConcurrentCameraIdsInternalLocked(interface2_6);
|
|
|
|
|
if (res != OK) {
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
@ -1606,7 +1606,7 @@ status_t CameraProviderManager::ProviderInfo::dump(int fd, const Vector<String16
|
|
|
|
|
return OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
status_t CameraProviderManager::ProviderInfo::getConcurrentStreamingCameraIdsInternalLocked(
|
|
|
|
|
status_t CameraProviderManager::ProviderInfo::getConcurrentCameraIdsInternalLocked(
|
|
|
|
|
sp<provider::V2_6::ICameraProvider> &interface2_6) {
|
|
|
|
|
if (interface2_6 == nullptr) {
|
|
|
|
|
ALOGE("%s: null interface provided", __FUNCTION__);
|
|
|
|
@ -1659,7 +1659,7 @@ status_t CameraProviderManager::ProviderInfo::reCacheConcurrentStreamingCameraId
|
|
|
|
|
if (castResult.isOk()) {
|
|
|
|
|
sp<provider::V2_6::ICameraProvider> interface2_6 = castResult;
|
|
|
|
|
if (interface2_6 != nullptr) {
|
|
|
|
|
return getConcurrentStreamingCameraIdsInternalLocked(interface2_6);
|
|
|
|
|
return getConcurrentCameraIdsInternalLocked(interface2_6);
|
|
|
|
|
} else {
|
|
|
|
|
// This should not happen since mMinorVersion >= 6
|
|
|
|
|
ALOGE("%s: mMinorVersion was >= 6, but interface2_6 was nullptr", __FUNCTION__);
|
|
|
|
@ -2796,7 +2796,7 @@ status_t HidlVendorTagDescriptor::createDescriptorFromHidl(
|
|
|
|
|
|
|
|
|
|
// Expects to have mInterfaceMutex locked
|
|
|
|
|
std::vector<std::unordered_set<std::string>>
|
|
|
|
|
CameraProviderManager::getConcurrentStreamingCameraIds() const {
|
|
|
|
|
CameraProviderManager::getConcurrentCameraIds() const {
|
|
|
|
|
std::vector<std::unordered_set<std::string>> deviceIdCombinations;
|
|
|
|
|
std::lock_guard<std::mutex> lock(mInterfaceMutex);
|
|
|
|
|
for (auto &provider : mProviders) {
|
|
|
|
|