Home
last modified time | relevance | path

Searched refs:preparedModelCallback (Results 1 – 8 of 8) sorted by relevance

/hardware/interfaces/neuralnetworks/1.1/vts/functional/
DVtsHalNeuralnetworks.cpp50 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in createPreparedModel() local
51 ASSERT_NE(nullptr, preparedModelCallback.get()); in createPreparedModel()
53 model, ExecutionPreference::FAST_SINGLE_ANSWER, preparedModelCallback); in createPreparedModel()
58 preparedModelCallback->wait(); in createPreparedModel()
59 ErrorStatus prepareReturnStatus = preparedModelCallback->getStatus(); in createPreparedModel()
60 *preparedModel = preparedModelCallback->getPreparedModel(); in createPreparedModel()
DValidateModel.cpp56 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in validatePrepareModel() local
57 ASSERT_NE(nullptr, preparedModelCallback.get()); in validatePrepareModel()
59 device->prepareModel_1_1(model, preference, preparedModelCallback); in validatePrepareModel()
63 preparedModelCallback->wait(); in validatePrepareModel()
64 ErrorStatus prepareReturnStatus = preparedModelCallback->getStatus(); in validatePrepareModel()
66 sp<IPreparedModel> preparedModel = preparedModelCallback->getPreparedModel(); in validatePrepareModel()
/hardware/interfaces/neuralnetworks/1.0/vts/functional/
DVtsHalNeuralnetworks.cpp50 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in createPreparedModel() local
51 ASSERT_NE(nullptr, preparedModelCallback.get()); in createPreparedModel()
52 Return<ErrorStatus> prepareLaunchStatus = device->prepareModel(model, preparedModelCallback); in createPreparedModel()
57 preparedModelCallback->wait(); in createPreparedModel()
58 ErrorStatus prepareReturnStatus = preparedModelCallback->getStatus(); in createPreparedModel()
59 *preparedModel = preparedModelCallback->getPreparedModel(); in createPreparedModel()
DGeneratedTestHarness.cpp449 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in Execute() local
450 ASSERT_NE(nullptr, preparedModelCallback.get()); in Execute()
451 Return<ErrorStatus> prepareLaunchStatus = device->prepareModel(model, preparedModelCallback); in Execute()
456 preparedModelCallback->wait(); in Execute()
457 ErrorStatus prepareReturnStatus = preparedModelCallback->getStatus(); in Execute()
459 getPreparedModel(preparedModelCallback, &preparedModel); in Execute()
496 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in Execute() local
497 ASSERT_NE(nullptr, preparedModelCallback.get()); in Execute()
499 model, ExecutionPreference::FAST_SINGLE_ANSWER, preparedModelCallback); in Execute()
504 preparedModelCallback->wait(); in Execute()
[all …]
DValidateModel.cpp50 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in validatePrepareModel() local
51 ASSERT_NE(nullptr, preparedModelCallback.get()); in validatePrepareModel()
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/
DVtsHalNeuralnetworks.cpp53 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in createPreparedModel() local
54 ASSERT_NE(nullptr, preparedModelCallback.get()); in createPreparedModel()
57 hidl_vec<hidl_handle>(), HidlToken(), preparedModelCallback); in createPreparedModel()
62 preparedModelCallback->wait(); in createPreparedModel()
63 ErrorStatus prepareReturnStatus = preparedModelCallback->getStatus(); in createPreparedModel()
64 *preparedModel = getPreparedModel_1_2(preparedModelCallback); in createPreparedModel()
DCompilationCachingTests.cpp373 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in saveModelToCache() local
374 ASSERT_NE(nullptr, preparedModelCallback.get()); in saveModelToCache()
378 dataCache, cacheToken, preparedModelCallback); in saveModelToCache()
383 preparedModelCallback->wait(); in saveModelToCache()
384 ASSERT_EQ(preparedModelCallback->getStatus(), ErrorStatus::NONE); in saveModelToCache()
387 V1_2::IPreparedModel::castFrom(preparedModelCallback->getPreparedModel()) in saveModelToCache()
420 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in prepareModelFromCache() local
421 ASSERT_NE(nullptr, preparedModelCallback.get()); in prepareModelFromCache()
424 modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache()
433 preparedModelCallback->wait(); in prepareModelFromCache()
[all …]
DValidateModel.cpp55 sp<PreparedModelCallback> preparedModelCallback = new PreparedModelCallback(); in validatePrepareModel() local
56 ASSERT_NE(nullptr, preparedModelCallback.get()); in validatePrepareModel()
59 hidl_vec<hidl_handle>(), HidlToken(), preparedModelCallback); in validatePrepareModel()
63 preparedModelCallback->wait(); in validatePrepareModel()
64 ErrorStatus prepareReturnStatus = preparedModelCallback->getStatus(); in validatePrepareModel()
66 sp<IPreparedModel> preparedModel = getPreparedModel_1_2(preparedModelCallback); in validatePrepareModel()