Home
last modified time | relevance | path

Searched refs:maybeDevice (Results 1 – 2 of 2) sorted by relevance

/hardware/interfaces/neuralnetworks/utils/service/src/
DService.cpp62 auto maybeDevice = getDevice(name); in getHidlDevicesForVersion() local
63 if (maybeDevice.has_value()) { in getHidlDevicesForVersion()
64 auto device = std::move(maybeDevice).value(); in getHidlDevicesForVersion()
68 LOG(ERROR) << "getDevice(" << name << ") failed with " << maybeDevice.error().code in getHidlDevicesForVersion()
69 << ": " << maybeDevice.error().message; in getHidlDevicesForVersion()
103 auto maybeDevice = aidl_hal::utils::getDevice(name); in getAidlDevices() local
104 if (maybeDevice.has_value()) { in getAidlDevices()
105 auto device = std::move(maybeDevice).value(); in getAidlDevices()
110 LOG(ERROR) << "getDevice(" << name << ") failed with " << maybeDevice.error().code in getAidlDevices()
111 << ": " << maybeDevice.error().message; in getAidlDevices()
/hardware/interfaces/neuralnetworks/utils/common/src/
DResilientDevice.cpp53 auto maybeDevice = resilientDevice.recover(device.get(), blocking); in protect() local
54 if (!maybeDevice.has_value()) { in protect()
56 const auto& [recoveryErrorMessage, recoveryErrorCode] = maybeDevice.error(); in protect()
61 device = std::move(maybeDevice).value(); in protect()