Searched refs:ResilientDevice (Results 1 – 7 of 7) sorted by relevance
/hardware/interfaces/neuralnetworks/utils/common/src/ |
D | ResilientDevice.cpp | 42 auto protect(const ResilientDevice& resilientDevice, const FnType& fn, bool blocking) in protect() 68 nn::GeneralResult<std::shared_ptr<const ResilientDevice>> ResilientDevice::create( in create() 82 return std::make_shared<ResilientDevice>(PrivateConstructorTag{}, std::move(makeDevice), in create() 88 ResilientDevice::ResilientDevice(PrivateConstructorTag /*tag*/, Factory makeDevice, in ResilientDevice() function in android::hardware::neuralnetworks::utils::ResilientDevice 102 nn::SharedDevice ResilientDevice::getDevice() const { in getDevice() 107 nn::GeneralResult<nn::SharedDevice> ResilientDevice::recover(const nn::IDevice* failingDevice, in recover() 138 const std::string& ResilientDevice::getName() const { in getName() 142 const std::string& ResilientDevice::getVersionString() const { in getVersionString() 146 nn::Version ResilientDevice::getFeatureLevel() const { in getFeatureLevel() 150 nn::DeviceType ResilientDevice::getType() const { in getType() [all …]
|
/hardware/interfaces/neuralnetworks/1.2/utils/src/ |
D | Service.cpp | 29 hal::utils::ResilientDevice::Factory makeDevice = in getDevice() 38 return hal::utils::ResilientDevice::create(std::move(makeDevice)); in getDevice()
|
/hardware/interfaces/neuralnetworks/1.0/utils/src/ |
D | Service.cpp | 29 hal::utils::ResilientDevice::Factory makeDevice = in getDevice() 38 return hal::utils::ResilientDevice::create(std::move(makeDevice)); in getDevice()
|
/hardware/interfaces/neuralnetworks/1.1/utils/src/ |
D | Service.cpp | 29 hal::utils::ResilientDevice::Factory makeDevice = in getDevice() 38 return hal::utils::ResilientDevice::create(std::move(makeDevice)); in getDevice()
|
/hardware/interfaces/neuralnetworks/aidl/utils/src/ |
D | Service.cpp | 36 hal::utils::ResilientDevice::Factory makeDevice = in getDevice() 61 return hal::utils::ResilientDevice::create(std::move(makeDevice)); in getDevice()
|
/hardware/interfaces/neuralnetworks/utils/common/include/nnapi/hal/ |
D | ResilientDevice.h | 35 class ResilientDevice final : public nn::IDevice, 36 public std::enable_shared_from_this<ResilientDevice> { 42 static nn::GeneralResult<std::shared_ptr<const ResilientDevice>> create(Factory makeDevice); 44 explicit ResilientDevice(PrivateConstructorTag tag, Factory makeDevice, std::string name,
|
/hardware/interfaces/neuralnetworks/utils/common/test/ |
D | ResilientDeviceTest.cpp | 88 std::shared_ptr<const ResilientDevice>> 95 auto device = ResilientDevice::create(mockDeviceFactory->AsStdFunction()).value(); in setup() 109 const auto invalidDeviceFactory = ResilientDevice::Factory{}; in TEST() 112 const auto result = ResilientDevice::create(invalidDeviceFactory); in TEST() 124 const auto result = ResilientDevice::create(invalidDeviceFactory); in TEST()
|