/hardware/interfaces/neuralnetworks/1.0/vts/functional/ |
D | VtsHalNeuralnetworks.cpp | 50 const sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in createPreparedModel() local 52 device->prepareModel(model, preparedModelCallback); in createPreparedModel() 57 preparedModelCallback->wait(); in createPreparedModel() 58 const ErrorStatus prepareReturnStatus = preparedModelCallback->getStatus(); in createPreparedModel() 59 *preparedModel = preparedModelCallback->getPreparedModel(); in createPreparedModel()
|
D | BasicTests.cpp | 169 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback; in TEST_P() local 170 Return<ErrorStatus> prepareLaunchReturn = kDevice->prepareModel(model, preparedModelCallback); in TEST_P() 178 EXPECT_NE(preparedModelCallback->getStatus(), ErrorStatus::NONE); in TEST_P() 179 EXPECT_EQ(preparedModelCallback->getPreparedModel(), nullptr); in TEST_P()
|
D | ValidateModel.cpp | 51 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in validatePrepareModel() local 52 Return<ErrorStatus> prepareLaunchStatus = device->prepareModel(model, preparedModelCallback); in validatePrepareModel() 56 preparedModelCallback->wait(); in validatePrepareModel() 57 ErrorStatus prepareReturnStatus = preparedModelCallback->getStatus(); in validatePrepareModel() 59 sp<IPreparedModel> preparedModel = preparedModelCallback->getPreparedModel(); in validatePrepareModel()
|
/hardware/interfaces/neuralnetworks/1.1/vts/functional/ |
D | VtsHalNeuralnetworks.cpp | 53 const sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in createPreparedModel() local 55 model, ExecutionPreference::FAST_SINGLE_ANSWER, preparedModelCallback); in createPreparedModel() 60 preparedModelCallback->wait(); in createPreparedModel() 61 const ErrorStatus prepareReturnStatus = preparedModelCallback->getStatus(); in createPreparedModel() 62 *preparedModel = preparedModelCallback->getPreparedModel(); in createPreparedModel()
|
D | BasicTests.cpp | 176 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback; in TEST_P() local 178 model, ExecutionPreference::FAST_SINGLE_ANSWER, preparedModelCallback); in TEST_P() 186 EXPECT_NE(preparedModelCallback->getStatus(), ErrorStatus::NONE); in TEST_P() 187 EXPECT_EQ(preparedModelCallback->getPreparedModel(), nullptr); in TEST_P()
|
D | ValidateModel.cpp | 58 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in validatePrepareModel() local 60 device->prepareModel_1_1(model, preference, preparedModelCallback); in validatePrepareModel() 64 preparedModelCallback->wait(); in validatePrepareModel() 65 ErrorStatus prepareReturnStatus = preparedModelCallback->getStatus(); in validatePrepareModel() 67 sp<IPreparedModel> preparedModel = preparedModelCallback->getPreparedModel(); in validatePrepareModel()
|
/hardware/interfaces/neuralnetworks/aidl/vts/functional/ |
D | VtsHalNeuralnetworks.cpp | 65 const std::shared_ptr<PreparedModelCallback> preparedModelCallback = in createPreparedModel() local 78 preparedModelCallback); in createPreparedModel() 83 {}, kEmptyCacheToken, preparedModelCallback); in createPreparedModel() 87 preparedModelCallback->wait(); in createPreparedModel() 88 const ErrorStatus prepareReturnStatus = preparedModelCallback->getStatus(); in createPreparedModel() 89 *preparedModel = preparedModelCallback->getPreparedModel(); in createPreparedModel()
|
D | BasicTests.cpp | 175 auto preparedModelCallback = ndk::SharedRefBase::make<PreparedModelCallback>(); in TEST_P() local 178 kNoDeadline, {}, {}, kEmptyCacheToken, preparedModelCallback); in TEST_P() 189 EXPECT_NE(preparedModelCallback->getStatus(), ErrorStatus::NONE); in TEST_P() 190 EXPECT_EQ(preparedModelCallback->getPreparedModel(), nullptr); in TEST_P()
|
D | QualityOfServiceTests.cpp | 96 const std::shared_ptr<PreparedModelCallback> preparedModelCallback = in runPrepareModelTest() local 100 deadlineNs, {}, {}, kEmptyCacheToken, preparedModelCallback); in runPrepareModelTest() 105 preparedModelCallback->wait(); in runPrepareModelTest() 106 const ErrorStatus prepareReturnStatus = preparedModelCallback->getStatus(); in runPrepareModelTest() 107 const std::shared_ptr<IPreparedModel> preparedModel = preparedModelCallback->getPreparedModel(); in runPrepareModelTest()
|
D | CompilationCachingTests.cpp | 325 std::shared_ptr<PreparedModelCallback> preparedModelCallback = in saveModelToCache() local 330 modelCache, dataCache, cacheToken, preparedModelCallback); in saveModelToCache() 334 preparedModelCallback->wait(); in saveModelToCache() 335 ASSERT_EQ(preparedModelCallback->getStatus(), ErrorStatus::NONE); in saveModelToCache() 337 *preparedModel = preparedModelCallback->getPreparedModel(); in saveModelToCache() 376 std::shared_ptr<PreparedModelCallback> preparedModelCallback = in prepareModelFromCache() local 380 kNoDeadline, modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache() 393 preparedModelCallback = ndk::SharedRefBase::make<PreparedModelCallback>(); in prepareModelFromCache() 396 kNoDeadline, modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache() 409 preparedModelCallback->wait(); in prepareModelFromCache() [all …]
|
D | ValidateModel.cpp | 63 std::shared_ptr<PreparedModelCallback> preparedModelCallback = in validatePrepareModel() local 67 preparedModelCallback); in validatePrepareModel() 73 preparedModelCallback->wait(); in validatePrepareModel() 74 ErrorStatus prepareReturnStatus = preparedModelCallback->getStatus(); in validatePrepareModel() 76 std::shared_ptr<IPreparedModel> preparedModel = preparedModelCallback->getPreparedModel(); in validatePrepareModel() 85 std::shared_ptr<PreparedModelCallback> preparedModelCallback = in validatePrepareModelWithConfig() local 89 preparedModelCallback); in validatePrepareModelWithConfig() 95 preparedModelCallback->wait(); in validatePrepareModelWithConfig() 96 ErrorStatus prepareReturnStatus = preparedModelCallback->getStatus(); in validatePrepareModelWithConfig() 98 std::shared_ptr<IPreparedModel> preparedModel = preparedModelCallback->getPreparedModel(); in validatePrepareModelWithConfig()
|
/hardware/interfaces/neuralnetworks/1.2/vts/functional/ |
D | VtsHalNeuralnetworks.cpp | 55 const sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in createPreparedModel() local 58 hidl_vec<hidl_handle>(), HidlToken(), preparedModelCallback); in createPreparedModel() 63 preparedModelCallback->wait(); in createPreparedModel() 64 const ErrorStatus prepareReturnStatus = preparedModelCallback->getStatus(); in createPreparedModel() 65 *preparedModel = getPreparedModel_1_2(preparedModelCallback); in createPreparedModel()
|
D | BasicTests.cpp | 250 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback; in TEST_P() local 253 hidl_vec<hidl_handle>(), HidlToken(), preparedModelCallback); in TEST_P() 261 EXPECT_NE(preparedModelCallback->getStatus(), ErrorStatus::NONE); in TEST_P() 262 EXPECT_EQ(preparedModelCallback->getPreparedModel(), nullptr); in TEST_P()
|
D | CompilationCachingTests.cpp | 324 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in saveModelToCache() local 328 modelCache, dataCache, cacheToken, preparedModelCallback); in saveModelToCache() 333 preparedModelCallback->wait(); in saveModelToCache() 334 ASSERT_EQ(preparedModelCallback->getStatus(), ErrorStatus::NONE); in saveModelToCache() 336 *preparedModel = IPreparedModel::castFrom(preparedModelCallback->getPreparedModel()) in saveModelToCache() 369 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in prepareModelFromCache() local 372 modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache() 381 preparedModelCallback->wait(); in prepareModelFromCache() 382 *status = preparedModelCallback->getStatus(); in prepareModelFromCache() 383 *preparedModel = IPreparedModel::castFrom(preparedModelCallback->getPreparedModel()) in prepareModelFromCache()
|
D | ValidateModel.cpp | 58 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in validatePrepareModel() local 61 hidl_vec<hidl_handle>(), HidlToken(), preparedModelCallback); in validatePrepareModel() 65 preparedModelCallback->wait(); in validatePrepareModel() 66 ErrorStatus prepareReturnStatus = preparedModelCallback->getStatus(); in validatePrepareModel() 68 sp<IPreparedModel> preparedModel = getPreparedModel_1_2(preparedModelCallback); in validatePrepareModel()
|
/hardware/interfaces/neuralnetworks/1.3/vts/functional/ |
D | VtsHalNeuralnetworks.cpp | 56 const sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in createPreparedModel() local 59 hidl_vec<hidl_handle>(), hidl_vec<hidl_handle>(), HidlToken(), preparedModelCallback); in createPreparedModel() 64 preparedModelCallback->wait(); in createPreparedModel() 65 const ErrorStatus prepareReturnStatus = preparedModelCallback->getStatus(); in createPreparedModel() 66 *preparedModel = getPreparedModel_1_3(preparedModelCallback); in createPreparedModel()
|
D | BasicTests.cpp | 195 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback; in TEST_P() local 198 hidl_vec<hidl_handle>(), hidl_vec<hidl_handle>(), HidlToken(), preparedModelCallback); in TEST_P() 206 EXPECT_NE(preparedModelCallback->getStatus(), ErrorStatus::NONE); in TEST_P() 207 EXPECT_EQ(preparedModelCallback->getPreparedModel(), nullptr); in TEST_P()
|
D | QualityOfServiceTests.cpp | 105 const sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in runPrepareModelTest() local 108 hidl_vec<hidl_handle>(), hidl_vec<hidl_handle>(), HidlToken(), preparedModelCallback); in runPrepareModelTest() 113 preparedModelCallback->wait(); in runPrepareModelTest() 114 const ErrorStatus prepareReturnStatus = preparedModelCallback->getStatus(); in runPrepareModelTest() 115 const sp<V1_0::IPreparedModel> preparedModelV1_0 = preparedModelCallback->getPreparedModel(); in runPrepareModelTest()
|
D | CompilationCachingTests.cpp | 327 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in saveModelToCache() local 331 dataCache, cacheToken, preparedModelCallback); in saveModelToCache() 336 preparedModelCallback->wait(); in saveModelToCache() 337 ASSERT_EQ(preparedModelCallback->getStatus(), ErrorStatus::NONE); in saveModelToCache() 339 *preparedModel = IPreparedModel::castFrom(preparedModelCallback->getPreparedModel()) in saveModelToCache() 372 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in prepareModelFromCache() local 375 {}, modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache() 384 preparedModelCallback->wait(); in prepareModelFromCache() 385 *status = preparedModelCallback->getStatus(); in prepareModelFromCache() 386 *preparedModel = IPreparedModel::castFrom(preparedModelCallback->getPreparedModel()) in prepareModelFromCache()
|
D | ValidateModel.cpp | 60 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in validatePrepareModel() local 63 hidl_vec<hidl_handle>(), HidlToken(), preparedModelCallback); in validatePrepareModel() 67 preparedModelCallback->wait(); in validatePrepareModel() 68 ErrorStatus prepareReturnStatus = preparedModelCallback->getStatus(); in validatePrepareModel() 70 sp<IPreparedModel> preparedModel = getPreparedModel_1_3(preparedModelCallback); in validatePrepareModel()
|