Home
last modified time | relevance | path

Searched refs:prepareLaunchStatus (Results 1 – 16 of 16) sorted by relevance

/aosp12/hardware/interfaces/neuralnetworks/aidl/vts/functional/
H A DBasicTests.cpp176 auto prepareLaunchStatus = in TEST_P() local
184 ASSERT_FALSE(prepareLaunchStatus.isOk()); in TEST_P()
185 EXPECT_EQ(prepareLaunchStatus.getExceptionCode(), EX_SERVICE_SPECIFIC); in TEST_P()
186 EXPECT_NE(static_cast<ErrorStatus>(prepareLaunchStatus.getServiceSpecificError()), in TEST_P()
H A DVtsHalNeuralnetworks.cpp59 const auto prepareLaunchStatus = in createPreparedModel() local
62 ASSERT_TRUE(prepareLaunchStatus.isOk()) << prepareLaunchStatus.getDescription(); in createPreparedModel()
H A DCompilationCachingTests.cpp326 const auto prepareLaunchStatus = kDevice->prepareModel( in saveModelToCache() local
329 ASSERT_TRUE(prepareLaunchStatus.isOk()); in saveModelToCache()
377 auto prepareLaunchStatus = kDevice->prepareModelFromCache( in prepareModelFromCache() local
386 if (!prepareLaunchStatus.isOk() && in prepareModelFromCache()
387 prepareLaunchStatus.getExceptionCode() == EX_SERVICE_SPECIFIC && in prepareModelFromCache()
388 static_cast<ErrorStatus>(prepareLaunchStatus.getServiceSpecificError()) == in prepareModelFromCache()
392 prepareLaunchStatus = kDevice->prepareModel( in prepareModelFromCache()
397 ASSERT_TRUE(prepareLaunchStatus.isOk() || in prepareModelFromCache()
398 prepareLaunchStatus.getExceptionCode() == EX_SERVICE_SPECIFIC) in prepareModelFromCache()
399 << "prepareLaunchStatus: " << prepareLaunchStatus.getDescription(); in prepareModelFromCache()
[all …]
H A DQualityOfServiceTests.cpp98 const auto prepareLaunchStatus = in runPrepareModelTest() local
101 ASSERT_TRUE(prepareLaunchStatus.isOk()) in runPrepareModelTest()
102 << "prepareLaunchStatus: " << prepareLaunchStatus.getDescription(); in runPrepareModelTest()
H A DValidateModel.cpp65 const auto prepareLaunchStatus = in validatePrepareModel() local
68 ASSERT_FALSE(prepareLaunchStatus.isOk()); in validatePrepareModel()
69 ASSERT_EQ(prepareLaunchStatus.getExceptionCode(), EX_SERVICE_SPECIFIC); in validatePrepareModel()
70 ASSERT_EQ(static_cast<ErrorStatus>(prepareLaunchStatus.getServiceSpecificError()), in validatePrepareModel()
/aosp12/hardware/interfaces/neuralnetworks/1.0/vts/functional/
H A DVtsHalNeuralnetworks.cpp51 const Return<ErrorStatus> prepareLaunchStatus = in createPreparedModel() local
53 ASSERT_TRUE(prepareLaunchStatus.isOk()); in createPreparedModel()
54 ASSERT_EQ(ErrorStatus::NONE, static_cast<ErrorStatus>(prepareLaunchStatus)); in createPreparedModel()
H A DValidateModel.cpp52 Return<ErrorStatus> prepareLaunchStatus = device->prepareModel(model, preparedModelCallback); in validatePrepareModel() local
53 ASSERT_TRUE(prepareLaunchStatus.isOk()); in validatePrepareModel()
54 ASSERT_EQ(ErrorStatus::INVALID_ARGUMENT, static_cast<ErrorStatus>(prepareLaunchStatus)); in validatePrepareModel()
/aosp12/hardware/interfaces/neuralnetworks/1.1/vts/functional/
H A DVtsHalNeuralnetworks.cpp54 const Return<ErrorStatus> prepareLaunchStatus = device->prepareModel_1_1( in createPreparedModel() local
56 ASSERT_TRUE(prepareLaunchStatus.isOk()); in createPreparedModel()
57 ASSERT_EQ(ErrorStatus::NONE, static_cast<ErrorStatus>(prepareLaunchStatus)); in createPreparedModel()
H A DValidateModel.cpp59 Return<ErrorStatus> prepareLaunchStatus = in validatePrepareModel() local
61 ASSERT_TRUE(prepareLaunchStatus.isOk()); in validatePrepareModel()
62 ASSERT_EQ(ErrorStatus::INVALID_ARGUMENT, static_cast<ErrorStatus>(prepareLaunchStatus)); in validatePrepareModel()
/aosp12/hardware/interfaces/neuralnetworks/1.2/vts/functional/
H A DVtsHalNeuralnetworks.cpp56 const Return<ErrorStatus> prepareLaunchStatus = device->prepareModel_1_2( in createPreparedModel() local
59 ASSERT_TRUE(prepareLaunchStatus.isOk()); in createPreparedModel()
60 ASSERT_EQ(ErrorStatus::NONE, static_cast<ErrorStatus>(prepareLaunchStatus)); in createPreparedModel()
H A DCompilationCachingTests.cpp326 Return<ErrorStatus> prepareLaunchStatus = in saveModelToCache() local
329 ASSERT_TRUE(prepareLaunchStatus.isOk()); in saveModelToCache()
330 ASSERT_EQ(static_cast<ErrorStatus>(prepareLaunchStatus), ErrorStatus::NONE); in saveModelToCache()
371 Return<ErrorStatus> prepareLaunchStatus = kDevice->prepareModelFromCache( in prepareModelFromCache() local
373 ASSERT_TRUE(prepareLaunchStatus.isOk()); in prepareModelFromCache()
374 if (static_cast<ErrorStatus>(prepareLaunchStatus) != ErrorStatus::NONE) { in prepareModelFromCache()
376 *status = static_cast<ErrorStatus>(prepareLaunchStatus); in prepareModelFromCache()
H A DValidateModel.cpp59 Return<ErrorStatus> prepareLaunchStatus = in validatePrepareModel() local
62 ASSERT_TRUE(prepareLaunchStatus.isOk()); in validatePrepareModel()
63 ASSERT_EQ(ErrorStatus::INVALID_ARGUMENT, static_cast<ErrorStatus>(prepareLaunchStatus)); in validatePrepareModel()
/aosp12/hardware/interfaces/neuralnetworks/1.3/vts/functional/
H A DVtsHalNeuralnetworks.cpp57 const Return<ErrorStatus> prepareLaunchStatus = device->prepareModel_1_3( in createPreparedModel() local
60 ASSERT_TRUE(prepareLaunchStatus.isOk()); in createPreparedModel()
61 ASSERT_EQ(ErrorStatus::NONE, static_cast<ErrorStatus>(prepareLaunchStatus)); in createPreparedModel()
H A DQualityOfServiceTests.cpp106 const Return<ErrorStatus> prepareLaunchStatus = device->prepareModel_1_3( in runPrepareModelTest() local
109 ASSERT_TRUE(prepareLaunchStatus.isOk()); in runPrepareModelTest()
110 ASSERT_EQ(ErrorStatus::NONE, static_cast<ErrorStatus>(prepareLaunchStatus)); in runPrepareModelTest()
H A DCompilationCachingTests.cpp329 Return<ErrorStatus> prepareLaunchStatus = kDevice->prepareModel_1_3( in saveModelToCache() local
332 ASSERT_TRUE(prepareLaunchStatus.isOk()); in saveModelToCache()
333 ASSERT_EQ(static_cast<ErrorStatus>(prepareLaunchStatus), ErrorStatus::NONE); in saveModelToCache()
374 Return<ErrorStatus> prepareLaunchStatus = kDevice->prepareModelFromCache_1_3( in prepareModelFromCache() local
376 ASSERT_TRUE(prepareLaunchStatus.isOk()); in prepareModelFromCache()
377 if (static_cast<ErrorStatus>(prepareLaunchStatus) != ErrorStatus::NONE) { in prepareModelFromCache()
379 *status = static_cast<ErrorStatus>(prepareLaunchStatus); in prepareModelFromCache()
H A DValidateModel.cpp61 Return<ErrorStatus> prepareLaunchStatus = in validatePrepareModel() local
64 ASSERT_TRUE(prepareLaunchStatus.isOk()); in validatePrepareModel()
65 ASSERT_EQ(ErrorStatus::INVALID_ARGUMENT, static_cast<ErrorStatus>(prepareLaunchStatus)); in validatePrepareModel()