Searched refs:maybeDevice (Results 1 – 2 of 2) sorted by relevance
62 auto maybeDevice = getDevice(name); in getHidlDevicesForVersion() local63 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() local104 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()
53 auto maybeDevice = resilientDevice.recover(device.get(), blocking); in protect() local54 if (!maybeDevice.has_value()) { in protect()56 const auto& [recoveryErrorMessage, recoveryErrorCode] = maybeDevice.error(); in protect()61 device = std::move(maybeDevice).value(); in protect()