/hardware/interfaces/neuralnetworks/1.2/vts/functional/ |
D | CompilationCachingTests.cpp | 318 void saveModelToCache(const Model& model, const hidl_vec<hidl_handle>& modelCache, in saveModelToCache() argument 328 modelCache, dataCache, cacheToken, preparedModelCallback); in saveModelToCache() 365 void prepareModelFromCache(const hidl_vec<hidl_handle>& modelCache, in prepareModelFromCache() argument 372 modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache() 430 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local 431 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P() 433 saveModelToCache(model, modelCache, dataCache); in TEST_P() 440 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local 441 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P() 443 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P() [all …]
|
/hardware/interfaces/neuralnetworks/1.3/vts/functional/ |
D | CompilationCachingTests.cpp | 321 void saveModelToCache(const Model& model, const hidl_vec<hidl_handle>& modelCache, in saveModelToCache() argument 330 model, ExecutionPreference::FAST_SINGLE_ANSWER, kDefaultPriority, {}, modelCache, in saveModelToCache() 368 void prepareModelFromCache(const hidl_vec<hidl_handle>& modelCache, in prepareModelFromCache() argument 375 {}, modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache() 433 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local 434 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P() 436 saveModelToCache(model, modelCache, dataCache); in TEST_P() 443 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local 444 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P() 446 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P() [all …]
|
/hardware/interfaces/neuralnetworks/aidl/vts/functional/ |
D | CompilationCachingTests.cpp | 319 const std::vector<ndk::ScopedFileDescriptor>& modelCache, in saveModelToCache() argument 330 modelCache, dataCache, cacheToken, preparedModelCallback); in saveModelToCache() 371 void prepareModelFromCache(const std::vector<ndk::ScopedFileDescriptor>& modelCache, in prepareModelFromCache() argument 380 kNoDeadline, modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache() 396 kNoDeadline, modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache() 419 void verifyModelPreparationBehaviour(const std::vector<ndk::ScopedFileDescriptor>& modelCache, in verifyModelPreparationBehaviour() argument 427 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status, in verifyModelPreparationBehaviour() 437 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status, in verifyModelPreparationBehaviour() 493 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local 494 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P() [all …]
|
/hardware/interfaces/neuralnetworks/utils/common/src/ |
D | ResilientDevice.cpp | 181 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, in prepareModel() argument 188 preference, priority, deadline, modelCache, in prepareModel() 190 return device->prepareModelInternal(model, preference, priority, deadline, modelCache, in prepareModel() 195 return prepareModelInternal(model, preference, priority, deadline, modelCache, dataCache, token, in prepareModel() 201 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, in prepareModelFromCache() argument 206 modelCache, dataCache, token] { in prepareModelFromCache() 207 return device->prepareModelFromCacheInternal(deadline, modelCache, dataCache, token); in prepareModelFromCache() 211 return prepareModelFromCacheInternal(deadline, modelCache, dataCache, token); in prepareModelFromCache() 238 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, in prepareModelInternal() argument 245 const auto fn = [&model, preference, priority, &deadline, &modelCache, &dataCache, &token, in prepareModelInternal() [all …]
|
/hardware/interfaces/neuralnetworks/utils/adapter/hidl/include/nnapi/hal/ |
D | Device.h | 69 const hidl_vec<hidl_handle>& modelCache, const hidl_vec<hidl_handle>& dataCache, 73 const V1_3::OptionalTimePoint& deadline, const hidl_vec<hidl_handle>& modelCache, 77 const hidl_vec<hidl_handle>& modelCache, const hidl_vec<hidl_handle>& dataCache, 80 const V1_3::OptionalTimePoint& deadline, const hidl_vec<hidl_handle>& modelCache,
|
/hardware/interfaces/neuralnetworks/utils/adapter/hidl/src/ |
D | Device.cpp | 170 const hidl_vec<hidl_handle>& modelCache, in prepareModel_1_2() argument 180 auto nnModelCache = NN_TRY(convertInput(modelCache)); in prepareModel_1_2() 199 const V1_3::OptionalTimePoint& deadline, const hidl_vec<hidl_handle>& modelCache, in prepareModel_1_3() argument 210 auto nnModelCache = NN_TRY(convertInput(modelCache)); in prepareModel_1_3() 228 const hidl_vec<hidl_handle>& modelCache, in prepareModelFromCache() argument 236 auto nnModelCache = NN_TRY(convertInput(modelCache)); in prepareModelFromCache() 252 const V1_3::OptionalTimePoint& deadline, const hidl_vec<hidl_handle>& modelCache, in prepareModelFromCache_1_3() argument 260 auto nnModelCache = NN_TRY(convertInput(modelCache)); in prepareModelFromCache_1_3() 466 const hidl_vec<hidl_handle>& modelCache, const hidl_vec<hidl_handle>& dataCache, in prepareModel_1_2() argument 468 auto result = adapter::prepareModel_1_2(kDevice, kExecutor, model, preference, modelCache, in prepareModel_1_2() [all …]
|
/hardware/interfaces/neuralnetworks/1.3/utils/test/ |
D | MockDevice.h | 68 const hidl_vec<hidl_handle>& modelCache, const hidl_vec<hidl_handle>& dataCache, 72 (const hidl_vec<hidl_handle>& modelCache, const hidl_vec<hidl_handle>& dataCache, 83 const hidl_vec<hidl_handle>& modelCache, const hidl_vec<hidl_handle>& dataCache, 87 (const V1_3::OptionalTimePoint& deadline, const hidl_vec<hidl_handle>& modelCache,
|
/hardware/interfaces/neuralnetworks/utils/common/include/nnapi/hal/ |
D | ResilientDevice.h | 67 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, 73 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, 86 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, 91 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
|
D | InvalidDevice.h | 54 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, 60 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
|
/hardware/interfaces/neuralnetworks/utils/adapter/aidl/src/ |
D | Device.cpp | 164 const std::vector<ndk::ScopedFileDescriptor>& modelCache, in prepareModel() argument 177 auto nnModelCache = NN_TRY(convertInput(modelCache)); in prepareModel() 199 const std::vector<ndk::ScopedFileDescriptor>& modelCache, in prepareModelFromCache() argument 207 auto nnModelCache = NN_TRY(convertInput(modelCache)); in prepareModelFromCache() 287 const std::vector<ndk::ScopedFileDescriptor>& modelCache, in prepareModel() argument 293 modelCache, dataCache, token, {}, {}, callback); in prepareModel() 305 int64_t deadlineNs, const std::vector<ndk::ScopedFileDescriptor>& modelCache, in prepareModelFromCache() argument 308 const auto result = adapter::prepareModelFromCache(kDevice, kExecutor, deadlineNs, modelCache, in prepareModelFromCache() 325 config.modelCache, config.dataCache, utils::toVec(config.cacheToken), in prepareModelWithConfig()
|
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/2/android/hardware/neuralnetworks/ |
D | IDevice.aidl | 44 …works.Priority priority, in long deadlineNs, in ParcelFileDescriptor[] modelCache, in ParcelFileDe… in prepareModel() argument 45 …void prepareModelFromCache(in long deadlineNs, in ParcelFileDescriptor[] modelCache, in ParcelFile… in prepareModelFromCache() argument
|
/hardware/interfaces/neuralnetworks/utils/common/test/ |
D | MockDevice.h | 41 OptionalTimePoint deadline, const std::vector<SharedHandle>& modelCache, 47 (OptionalTimePoint deadline, const std::vector<SharedHandle>& modelCache,
|
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/3/android/hardware/neuralnetworks/ |
D | IDevice.aidl | 44 …works.Priority priority, in long deadlineNs, in ParcelFileDescriptor[] modelCache, in ParcelFileDe… in prepareModel() argument 45 …void prepareModelFromCache(in long deadlineNs, in ParcelFileDescriptor[] modelCache, in ParcelFile… in prepareModelFromCache() argument
|
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/1/android/hardware/neuralnetworks/ |
D | IDevice.aidl | 44 …works.Priority priority, in long deadlineNs, in ParcelFileDescriptor[] modelCache, in ParcelFileDe… in prepareModel() argument 45 …void prepareModelFromCache(in long deadlineNs, in ParcelFileDescriptor[] modelCache, in ParcelFile… in prepareModelFromCache() argument
|
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/4/android/hardware/neuralnetworks/ |
D | IDevice.aidl | 44 …works.Priority priority, in long deadlineNs, in ParcelFileDescriptor[] modelCache, in ParcelFileDe… in prepareModel() argument 45 …void prepareModelFromCache(in long deadlineNs, in ParcelFileDescriptor[] modelCache, in ParcelFile… in prepareModelFromCache() argument
|
D | PrepareModelConfig.aidl | 40 ParcelFileDescriptor[] modelCache;
|
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/current/android/hardware/neuralnetworks/ |
D | IDevice.aidl | 44 …works.Priority priority, in long deadlineNs, in ParcelFileDescriptor[] modelCache, in ParcelFileDe… in prepareModel() argument 45 …void prepareModelFromCache(in long deadlineNs, in ParcelFileDescriptor[] modelCache, in ParcelFile… in prepareModelFromCache() argument
|
/hardware/interfaces/neuralnetworks/aidl/android/hardware/neuralnetworks/ |
D | IDevice.aidl | 350 in long deadlineNs, in ParcelFileDescriptor[] modelCache, in prepareModel() argument 432 void prepareModelFromCache(in long deadlineNs, in ParcelFileDescriptor[] modelCache, in prepareModelFromCache() argument
|
/hardware/interfaces/neuralnetworks/aidl/utils/test/ |
D | MockDevice.h | 48 int64_t deadline, const std::vector<ndk::ScopedFileDescriptor>& modelCache, 58 (int64_t deadline, const std::vector<ndk::ScopedFileDescriptor>& modelCache,
|
/hardware/interfaces/neuralnetworks/utils/adapter/aidl/include/nnapi/hal/aidl/ |
D | Device.h | 67 int64_t deadlineNs, const std::vector<ndk::ScopedFileDescriptor>& modelCache, 72 int64_t deadlineNs, const std::vector<ndk::ScopedFileDescriptor>& modelCache,
|
/hardware/interfaces/neuralnetworks/aidl/utils/src/ |
D | InvalidDevice.cpp | 126 const std::vector<ndk::ScopedFileDescriptor>& modelCache, in prepareModel() argument 150 if (modelCache.size() != static_cast<size_t>(kNumberOfCacheFiles.numModelCache)) { in prepareModel() 153 "Invalid modelCache, size = " + std::to_string(modelCache.size())); in prepareModel() 192 config.modelCache, config.dataCache, utils::toVec(config.cacheToken), in prepareModelWithConfig()
|
/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/ |
D | InvalidDevice.h | 52 const std::vector<ndk::ScopedFileDescriptor>& modelCache, 60 int64_t deadline, const std::vector<ndk::ScopedFileDescriptor>& modelCache,
|
/hardware/interfaces/neuralnetworks/1.3/utils/src/ |
D | Device.cpp | 189 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, in prepareModel() argument 202 const auto hidlModelCache = NN_TRY(convert(modelCache)); in prepareModel() 219 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, in prepareModelFromCache() argument 222 const auto hidlModelCache = NN_TRY(convert(modelCache)); in prepareModelFromCache()
|
/hardware/interfaces/neuralnetworks/1.1/utils/include/nnapi/hal/1.1/ |
D | Device.h | 66 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, 72 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
|
/hardware/interfaces/neuralnetworks/1.0/utils/include/nnapi/hal/1.0/ |
D | Device.h | 67 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache, 73 nn::OptionalTimePoint deadline, const std::vector<nn::SharedHandle>& modelCache,
|