/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/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.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 | 322 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in saveModelToCache() local 326 modelCache, dataCache, cacheToken, preparedModelCallback); in saveModelToCache() 331 preparedModelCallback->wait(); in saveModelToCache() 332 ASSERT_EQ(preparedModelCallback->getStatus(), ErrorStatus::NONE); in saveModelToCache() 334 *preparedModel = IPreparedModel::castFrom(preparedModelCallback->getPreparedModel()) in saveModelToCache() 367 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in prepareModelFromCache() local 370 modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache() 379 preparedModelCallback->wait(); in prepareModelFromCache() 380 *status = preparedModelCallback->getStatus(); in prepareModelFromCache() 381 *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 | 325 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in saveModelToCache() local 329 dataCache, cacheToken, preparedModelCallback); in saveModelToCache() 334 preparedModelCallback->wait(); in saveModelToCache() 335 ASSERT_EQ(preparedModelCallback->getStatus(), ErrorStatus::NONE); in saveModelToCache() 337 *preparedModel = IPreparedModel::castFrom(preparedModelCallback->getPreparedModel()) in saveModelToCache() 370 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in prepareModelFromCache() local 373 {}, modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache() 382 preparedModelCallback->wait(); in prepareModelFromCache() 383 *status = preparedModelCallback->getStatus(); in prepareModelFromCache() 384 *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()
|