Lines Matching refs:ErrorStatus
45 ::std::ostream& operator<<(::std::ostream& os, V1_3::ErrorStatus errorStatus) { in operator <<()
71 bool canDeviceBeRegistered(V1_3::ErrorStatus error, uint32_t numModelCache, uint32_t numDataCache) { in canDeviceBeRegistered()
74 return error == V1_3::ErrorStatus::NONE && numModelCache <= maxNumCacheFiles && in canDeviceBeRegistered()
103 hardware::Return<V1_0::ErrorStatus> execute(const V1_0::Request&, in execute()
105 return V1_0::ErrorStatus::DEVICE_UNAVAILABLE; in execute()
107 hardware::Return<V1_0::ErrorStatus> execute_1_2( in execute_1_2()
110 return V1_0::ErrorStatus::DEVICE_UNAVAILABLE; in execute_1_2()
112 hardware::Return<V1_3::ErrorStatus> execute_1_3( in execute_1_3()
116 return V1_3::ErrorStatus::DEVICE_UNAVAILABLE; in execute_1_3()
120 cb(V1_0::ErrorStatus::DEVICE_UNAVAILABLE, {}, kBadTiming); in executeSynchronously()
127 cb(V1_3::ErrorStatus::DEVICE_UNAVAILABLE, {}, kBadTiming); in executeSynchronously_1_3()
134 cb(V1_0::ErrorStatus::DEVICE_UNAVAILABLE, nullptr); in configureExecutionBurst()
143 cb(V1_3::ErrorStatus::DEVICE_UNAVAILABLE, hardware::hidl_handle(nullptr), nullptr); in executeFenced()
149 CachingDriver(std::string_view name, V1_3::ErrorStatus errorStatusGetNumCacheFiles, in CachingDriver()
151 V1_3::ErrorStatus errorStatusPrepareFromCache) in CachingDriver()
174 cb(V1_3::ErrorStatus::NONE, capabilities); in getCapabilities_1_3()
182 cb(V1_3::ErrorStatus::NONE, supported); in getSupportedOperations_1_3()
194 hardware::Return<V1_3::ErrorStatus> prepareModel_1_3( in prepareModel_1_3()
208 cb->notify_1_3(V1_3::ErrorStatus::NONE, new CachingPreparedModel()); in prepareModel_1_3()
209 return V1_3::ErrorStatus::NONE; in prepareModel_1_3()
214 hardware::Return<V1_3::ErrorStatus> prepareModelFromCache_1_3( in prepareModelFromCache_1_3()
222 if (mErrorStatusPrepareFromCache == V1_3::ErrorStatus::NONE) { in prepareModelFromCache_1_3()
227 return V1_3::ErrorStatus::NONE; in prepareModelFromCache_1_3()
270 const V1_3::ErrorStatus mErrorStatusGetNumCacheFiles;
273 const V1_3::ErrorStatus mErrorStatusPrepareFromCache;
320 using DeviceRegistrationTestParam = std::tuple<V1_3::ErrorStatus, uint32_t, uint32_t>;
325 const V1_3::ErrorStatus kErrorStatusGetNumCacheFiles = std::get<0>(GetParam());
330 kNumDataCache, V1_3::ErrorStatus::NONE);
357 using CompilationCachingTestParam = std::tuple<uint32_t, uint32_t, V1_3::ErrorStatus>;
404 new CachingDriver(kDeviceName, V1_3::ErrorStatus::NONE, kNumModelCache, in createCache()
405 kNumDataCache, V1_3::ErrorStatus::NONE); in createCache()
412 const V1_3::ErrorStatus kErrorStatusPrepareFromCache = std::get<2>(GetParam());
424 new CachingDriver(kDeviceName, V1_3::ErrorStatus::NONE, kNumModelCache, kNumDataCache, in TEST_P()
443 new CachingDriver(kDeviceName, V1_3::ErrorStatus::NONE, kNumModelCache, kNumDataCache, in TEST_P()
453 if (kErrorStatusPrepareFromCache == V1_3::ErrorStatus::NONE) { in TEST_P()
474 new CachingDriver(kDeviceName, V1_3::ErrorStatus::NONE, kNumModelCache, kNumDataCache, in TEST_P()
485 testing::Values(V1_3::ErrorStatus::NONE, V1_3::ErrorStatus::DEVICE_UNAVAILABLE);
492 testing::Values(V1_3::ErrorStatus::NONE, V1_3::ErrorStatus::GENERAL_FAILURE,
493 V1_3::ErrorStatus::DEVICE_UNAVAILABLE, V1_3::ErrorStatus::INVALID_ARGUMENT);