Loading services/camera/libcameraservice/common/CameraProviderManager.cpp +6 −1 Original line number Original line Diff line number Diff line Loading @@ -202,12 +202,17 @@ bool CameraProviderManager::supportSetTorchMode(const std::string &id) { for (auto& provider : mProviders) { for (auto& provider : mProviders) { auto deviceInfo = findDeviceInfoLocked(id); auto deviceInfo = findDeviceInfoLocked(id); if (deviceInfo != nullptr) { if (deviceInfo != nullptr) { provider->mInterface->isSetTorchModeSupported( auto ret = provider->mInterface->isSetTorchModeSupported( [&support](auto status, bool supported) { [&support](auto status, bool supported) { if (status == Status::OK) { if (status == Status::OK) { support = supported; support = supported; } } }); }); if (!ret.isOk()) { ALOGE("%s: Transaction error checking torch mode support '%s': %s", __FUNCTION__, provider->mProviderName.c_str(), ret.description().c_str()); } break; } } } } return support; return support; Loading Loading
services/camera/libcameraservice/common/CameraProviderManager.cpp +6 −1 Original line number Original line Diff line number Diff line Loading @@ -202,12 +202,17 @@ bool CameraProviderManager::supportSetTorchMode(const std::string &id) { for (auto& provider : mProviders) { for (auto& provider : mProviders) { auto deviceInfo = findDeviceInfoLocked(id); auto deviceInfo = findDeviceInfoLocked(id); if (deviceInfo != nullptr) { if (deviceInfo != nullptr) { provider->mInterface->isSetTorchModeSupported( auto ret = provider->mInterface->isSetTorchModeSupported( [&support](auto status, bool supported) { [&support](auto status, bool supported) { if (status == Status::OK) { if (status == Status::OK) { support = supported; support = supported; } } }); }); if (!ret.isOk()) { ALOGE("%s: Transaction error checking torch mode support '%s': %s", __FUNCTION__, provider->mProviderName.c_str(), ret.description().c_str()); } break; } } } } return support; return support; Loading