Lines Matching refs:deviceInfo

127         for (auto& deviceInfo : provider->mDevices) {  in isValidDeviceLocked()  local
128 if (deviceInfo->mId == id && deviceInfo->mVersion.get_major() == majorVersion) { in isValidDeviceLocked()
139 auto deviceInfo = findDeviceInfoLocked(id); in hasFlashUnit() local
140 if (deviceInfo == nullptr) return false; in hasFlashUnit()
142 return deviceInfo->hasFlashUnit(); in hasFlashUnit()
149 auto deviceInfo = findDeviceInfoLocked(id); in getResourceCost() local
150 if (deviceInfo == nullptr) return NAME_NOT_FOUND; in getResourceCost()
152 *cost = deviceInfo->mResourceCost; in getResourceCost()
160 auto deviceInfo = findDeviceInfoLocked(id); in getCameraInfo() local
161 if (deviceInfo == nullptr) return NAME_NOT_FOUND; in getCameraInfo()
163 return deviceInfo->getCameraInfo(info); in getCameraInfo()
170 auto deviceInfo = findDeviceInfoLocked(id, /*minVersion*/ {3,0}, /*maxVersion*/ {4,0}); in getCameraCharacteristics() local
171 if (deviceInfo == nullptr) return NAME_NOT_FOUND; in getCameraCharacteristics()
173 return deviceInfo->getCameraCharacteristics(characteristics); in getCameraCharacteristics()
183 for (auto& deviceInfo : provider->mDevices) { in getHighestSupportedVersion() local
184 if (deviceInfo->mId == id) { in getHighestSupportedVersion()
185 if (deviceInfo->mVersion > maxVersion) { in getHighestSupportedVersion()
186 maxVersion = deviceInfo->mVersion; in getHighestSupportedVersion()
203 auto deviceInfo = findDeviceInfoLocked(id); in supportSetTorchMode() local
204 if (deviceInfo != nullptr) { in supportSetTorchMode()
219 auto deviceInfo = findDeviceInfoLocked(id); in setTorchMode() local
220 if (deviceInfo == nullptr) return NAME_NOT_FOUND; in setTorchMode()
222 return deviceInfo->setTorchMode(enabled); in setTorchMode()
274 auto deviceInfo = findDeviceInfoLocked(id, in openSession() local
276 if (deviceInfo == nullptr) return NAME_NOT_FOUND; in openSession()
278 auto *deviceInfo3 = static_cast<ProviderInfo::DeviceInfo3*>(deviceInfo); in openSession()
304 auto deviceInfo = findDeviceInfoLocked(id, in openSession() local
306 if (deviceInfo == nullptr) return NAME_NOT_FOUND; in openSession()
308 auto *deviceInfo1 = static_cast<ProviderInfo::DeviceInfo1*>(deviceInfo); in openSession()
354 for (auto& deviceInfo : provider->mDevices) { in findDeviceInfoLocked() local
355 if (deviceInfo->mId == id && in findDeviceInfoLocked()
356 minVersion <= deviceInfo->mVersion && maxVersion >= deviceInfo->mVersion) { in findDeviceInfoLocked()
357 return deviceInfo.get(); in findDeviceInfoLocked()
371 for (auto& deviceInfo : provider->mDevices) { in getProviderTagIdLocked() local
372 if (deviceInfo->mId == id && in getProviderTagIdLocked()
373 minVersion <= deviceInfo->mVersion && in getProviderTagIdLocked()
374 maxVersion >= deviceInfo->mVersion) { in getProviderTagIdLocked()
424 for (auto& deviceInfo : (*it)->mDevices) { in removeProvider()
425 removedDeviceIds.push_back(String8(deviceInfo->mId.c_str())); in removeProvider()
573 std::unique_ptr<DeviceInfo> deviceInfo; in addDevice() local
576 deviceInfo = initializeDeviceInfo<DeviceInfo1>(name, mProviderTagid, in addDevice()
580 deviceInfo = initializeDeviceInfo<DeviceInfo3>(name, mProviderTagid, in addDevice()
588 if (deviceInfo == nullptr) return BAD_VALUE; in addDevice()
589 deviceInfo->mStatus = initialStatus; in addDevice()
591 mDevices.push_back(std::move(deviceInfo)); in addDevice()
653 for (auto& deviceInfo : mDevices) { in cameraDeviceStatusChange() local
654 if (deviceInfo->mName == cameraDeviceName) { in cameraDeviceStatusChange()
656 deviceStatusToString(newStatus), deviceStatusToString(deviceInfo->mStatus)); in cameraDeviceStatusChange()
657 deviceInfo->mStatus = newStatus; in cameraDeviceStatusChange()
659 id = deviceInfo->mId; in cameraDeviceStatusChange()
690 for (auto& deviceInfo : mDevices) { in torchModeStatusChange() local
691 if (deviceInfo->mName == cameraDeviceName) { in torchModeStatusChange()
694 id = deviceInfo->mId; in torchModeStatusChange()