/hardware/interfaces/neuralnetworks/1.2/vts/functional/ |
D | BasicTests.cpp | 36 Return<DeviceStatus> status = kDevice->getStatus(); in TEST_P() 44 Return<void> ret = kDevice->getCapabilities_1_2([](ErrorStatus status, in TEST_P() 69 kDevice->getVersionString([](ErrorStatus status, const hidl_string& version) { in TEST_P() 78 Return<void> ret = kDevice->getType([](ErrorStatus status, DeviceType type) { in TEST_P() 100 Return<void> ret = kDevice->getSupportedExtensions( in TEST_P() 121 Return<void> ret = kDevice->getNumberOfCacheFilesNeeded( in TEST_P() 238 Return<void> supportedOpsReturn = kDevice->getSupportedOperations_1_2( in TEST_P() 251 Return<ErrorStatus> prepareLaunchReturn = kDevice->prepareModel_1_2( in TEST_P()
|
D | VtsHalNeuralnetworks.cpp | 89 ASSERT_NE(kDevice, nullptr); in SetUp() 90 const bool deviceIsResponsive = kDevice->ping().isOk(); in SetUp() 161 validateFailure(kDevice, model, request); in TEST_P() 163 validateEverything(kDevice, model, request); in TEST_P()
|
/hardware/interfaces/neuralnetworks/utils/adapter/hidl/src/ |
D | Device.cpp | 318 : kDevice(std::move(device)), kExecutor(std::move(executor)) { in Device() 319 CHECK(kDevice != nullptr); in Device() 324 const auto capabilities = V1_0::utils::convert(kDevice->getCapabilities()).value(); in getCapabilities() 330 const auto capabilities = V1_1::utils::convert(kDevice->getCapabilities()).value(); in getCapabilities_1_1() 336 const auto capabilities = V1_2::utils::convert(kDevice->getCapabilities()).value(); in getCapabilities_1_2() 342 const auto capabilities = V1_3::utils::convert(kDevice->getCapabilities()).value(); in getCapabilities_1_3() 348 cb(V1_0::ErrorStatus::NONE, kDevice->getVersionString()); in getVersionString() 353 const auto maybeDeviceType = V1_2::utils::convert(kDevice->getType()); in getType() 365 const auto maybeSupportedExtensions = V1_2::utils::convert(kDevice->getSupportedExtensions()); in getSupportedExtensions() 379 const auto result = adapter::getSupportedOperations(kDevice, model); in getSupportedOperations() [all …]
|
/hardware/interfaces/neuralnetworks/utils/adapter/aidl/src/ |
D | Device.cpp | 224 : kDevice(std::move(device)), kExecutor(std::move(executor)) { in Device() 225 CHECK(kDevice != nullptr); in Device() 234 auto result = adapter::allocate(*kDevice, desc, preparedModels, inputRoles, outputRoles); in allocate() 246 *capabilities = utils::convert(kDevice->getCapabilities()).value(); in getCapabilities() 251 const auto [numModelCache, numDataCache] = kDevice->getNumberOfCacheFilesNeeded(); in getNumberOfCacheFilesNeeded() 258 *extensions = utils::convert(kDevice->getSupportedExtensions()).value(); in getSupportedExtensions() 264 auto result = adapter::getSupportedOperations(*kDevice, model); in getSupportedOperations() 276 *deviceType = utils::convert(kDevice->getType()).value(); in getType() 281 *version = kDevice->getVersionString(); in getVersionString() 292 adapter::prepareModel(kDevice, kExecutor, model, preference, priority, deadlineNs, in prepareModel() [all …]
|
/hardware/interfaces/neuralnetworks/1.0/vts/functional/ |
D | BasicTests.cpp | 32 Return<DeviceStatus> status = kDevice->getStatus(); in TEST_P() 40 kDevice->getCapabilities([](ErrorStatus status, const Capabilities& capabilities) { in TEST_P() 157 Return<void> supportedOpsReturn = kDevice->getSupportedOperations( in TEST_P() 170 Return<ErrorStatus> prepareLaunchReturn = kDevice->prepareModel(model, preparedModelCallback); in TEST_P()
|
D | VtsHalNeuralnetworks.cpp | 83 ASSERT_NE(kDevice, nullptr); in SetUp() 84 const bool deviceIsResponsive = kDevice->ping().isOk(); in SetUp() 137 validateEverything(kDevice, model, request); in TEST_P()
|
D | GeneratedTestHarness.cpp | 156 ASSERT_NE(kDevice, nullptr); in SetUp() 157 const bool deviceIsResponsive = kDevice->ping().isOk(); in SetUp() 178 Execute(kDevice, kTestModel); in TEST_P()
|
D | VtsHalNeuralnetworks.h | 36 const sp<IDevice> kDevice = getData(GetParam()); variable
|
/hardware/interfaces/neuralnetworks/1.1/vts/functional/ |
D | BasicTests.cpp | 37 Return<DeviceStatus> status = kDevice->getStatus(); in TEST_P() 45 kDevice->getCapabilities_1_1([](ErrorStatus status, const Capabilities& capabilities) { in TEST_P() 164 Return<void> supportedOpsReturn = kDevice->getSupportedOperations_1_1( in TEST_P() 177 Return<ErrorStatus> prepareLaunchReturn = kDevice->prepareModel_1_1( in TEST_P()
|
D | VtsHalNeuralnetworks.cpp | 86 ASSERT_NE(kDevice, nullptr); in SetUp() 87 const bool deviceIsResponsive = kDevice->ping().isOk(); in SetUp() 140 validateEverything(kDevice, model, request); in TEST_P()
|
D | GeneratedTestHarness.cpp | 164 ASSERT_NE(kDevice, nullptr); in SetUp() 165 const bool deviceIsResponsive = kDevice->ping().isOk(); in SetUp() 186 Execute(kDevice, kTestModel); in TEST_P()
|
D | VtsHalNeuralnetworks.h | 35 const sp<IDevice> kDevice = getData(GetParam()); variable
|
/hardware/interfaces/neuralnetworks/1.3/vts/functional/ |
D | BasicTests.cpp | 37 Return<DeviceStatus> status = kDevice->getStatus(); in TEST_P() 45 Return<void> ret = kDevice->getCapabilities_1_3([](ErrorStatus status, in TEST_P() 183 Return<void> supportedOpsReturn = kDevice->getSupportedOperations_1_3( in TEST_P() 196 Return<ErrorStatus> prepareLaunchReturn = kDevice->prepareModel_1_3( in TEST_P()
|
D | VtsHalNeuralnetworks.cpp | 94 ASSERT_NE(kDevice, nullptr); in SetUp() 95 const bool deviceIsResponsive = kDevice->ping().isOk(); in SetUp() 185 validateFailure(kDevice, model, request); in TEST_P() 187 validateEverything(kDevice, model, request); in TEST_P()
|
D | CompilationCachingTests.cpp | 226 : kDevice(std::move(device)), kOperandType(type) {} in CompilationCachingTestBase() 230 ASSERT_NE(kDevice.get(), nullptr); in SetUp() 231 const bool deviceIsResponsive = kDevice->ping().isOk(); in SetUp() 242 Return<void> ret = kDevice->getNumberOfCacheFilesNeeded( in SetUp() 309 Return<void> supportedCall = kDevice->getSupportedOperations_1_3( in isModelFullySupported() 329 Return<ErrorStatus> prepareLaunchStatus = kDevice->prepareModel_1_3( in saveModelToCache() 374 Return<ErrorStatus> prepareLaunchStatus = kDevice->prepareModelFromCache_1_3( in prepareModelFromCache() 407 const sp<IDevice> kDevice; member in android::hardware::neuralnetworks::V1_3::vts::functional::CompilationCachingTestBase 461 EvaluatePreparedModel(kDevice, preparedModel, testModel, /*testKind=*/TestKind::GENERAL); in TEST_P() 523 EvaluatePreparedModel(kDevice, preparedModel, testModel, /*testKind=*/TestKind::GENERAL); in TEST_P() [all …]
|
D | GeneratedTestHarness.cpp | 108 : kDevice(device), kPreparedModel(preparedModel), kTestModel(testModel) {} in DeviceMemoryAllocator() 144 const auto ret = kDevice->allocate({}, {kPreparedModel}, inputRoles, outputRoles, cb); in allocateInternal() 183 const sp<IDevice> kDevice; member in android::hardware::neuralnetworks::V1_3::vts::functional::__anon404ff7050111::DeviceMemoryAllocator 340 : kDevice(std::move(device)), kPreparedModel(std::move(preparedModel)) {} in ExecutionContextV1_3() 354 const sp<IDevice> kDevice; member in android::hardware::neuralnetworks::V1_3::vts::functional::ExecutionContextV1_3 367 DeviceMemoryAllocator allocator(kDevice, kPreparedModel, testModel); in createRequest() 928 ASSERT_NE(kDevice, nullptr); in SetUp() 929 const bool deviceIsResponsive = kDevice->ping().isOk(); in SetUp() 965 Execute(kDevice, kTestModel, TestKind::GENERAL); in TEST_P() 969 Execute(kDevice, kTestModel, TestKind::DYNAMIC_SHAPE); in TEST_P() [all …]
|
/hardware/interfaces/neuralnetworks/1.3/utils/src/ |
D | Device.cpp | 134 kDevice(std::move(device)), in Device() 166 const auto ret = kDevice->ping(); in wait() 181 const auto ret = kDevice->getSupportedOperations_1_3(hidlModel, cb); in getSupportedOperations() 210 kDevice->prepareModel_1_3(hidlModel, hidlPreference, hidlPriority, hidlDeadline, in prepareModel() 229 const auto ret = kDevice->prepareModelFromCache_1_3(hidlDeadline, hidlModelCache, hidlDataCache, in prepareModelFromCache() 249 kDevice->allocate(hidlDesc, hidlPreparedModels, hidlInputRoles, hidlOutputRoles, cb); in allocate()
|
/hardware/interfaces/neuralnetworks/1.1/utils/src/ |
D | Device.cpp | 90 kDevice(std::move(device)), in Device() 122 const auto ret = kDevice->ping(); in wait() 137 const auto ret = kDevice->getSupportedOperations_1_1(hidlModel, cb); in getSupportedOperations() 160 const auto ret = kDevice->prepareModel_1_1(hidlModel, hidlPreference, cb); in prepareModel()
|
/hardware/interfaces/neuralnetworks/aidl/vts/functional/ |
D | VtsHalNeuralnetworks.cpp | 115 ASSERT_NE(kDevice, nullptr); in SetUp() 117 ndk::ScopedAStatus::fromStatus(AIBinder_ping(kDevice->asBinder().get())).isOk(); in SetUp() 203 validateFailure(kDevice, model, request); in TEST_P() 205 validateEverything(kDevice, model, request); in TEST_P()
|
D | CompilationCachingTests.cpp | 219 : kDevice(std::move(device)), kOperandType(type) {} in CompilationCachingTestBase() 223 ASSERT_NE(kDevice.get(), nullptr); in SetUp() 225 ndk::ScopedAStatus::fromStatus(AIBinder_ping(kDevice->asBinder().get())).isOk(); in SetUp() 241 const auto ret = kDevice->getNumberOfCacheFilesNeeded(&numCacheFiles); in SetUp() 308 const auto supportedCall = kDevice->getSupportedOperations(model, &supportedOps); in isModelFullySupported() 328 const auto prepareLaunchStatus = kDevice->prepareModel( in saveModelToCache() 379 auto prepareLaunchStatus = kDevice->prepareModelFromCache( in prepareModelFromCache() 394 prepareLaunchStatus = kDevice->prepareModel( in prepareModelFromCache() 444 EvaluatePreparedModel(kDevice, preparedModel, testModel, in verifyModelPreparationBehaviour() 467 const std::shared_ptr<IDevice> kDevice; member in aidl::android::hardware::neuralnetworks::vts::functional::CompilationCachingTestBase [all …]
|
D | BasicTests.cpp | 39 const auto retStatus = kDevice->getCapabilities(&capabilities); in TEST_P() 168 const auto supportedOpsStatus = kDevice->getSupportedOperations(model, &supportedOps); in TEST_P() 177 kDevice->prepareModel(model, ExecutionPreference::FAST_SINGLE_ANSWER, kDefaultPriority, in TEST_P()
|
D | GeneratedTestHarness.cpp | 130 : kDevice(device), kPreparedModel(preparedModel), kTestModel(testModel) {} in DeviceMemoryAllocator() 160 const auto ret = kDevice->allocate({}, {parcel}, inputRoles, outputRoles, &buffer); in allocateInternal() 198 const std::shared_ptr<IDevice> kDevice; member in aidl::android::hardware::neuralnetworks::vts::functional::__anon4cf4456d0111::DeviceMemoryAllocator 368 : kDevice(std::move(device)), kPreparedModel(std::move(preparedModel)) {} in ExecutionContext() 383 const std::shared_ptr<IDevice> kDevice; member in aidl::android::hardware::neuralnetworks::vts::functional::ExecutionContext 402 DeviceMemoryAllocator allocator(kDevice, kPreparedModel, testModel); in createRequest() 1041 ASSERT_NE(kDevice, nullptr); in SetUp() 1043 ndk::ScopedAStatus::fromStatus(AIBinder_ping(kDevice->asBinder().get())).isOk(); in SetUp() 1052 ASSERT_TRUE(kDevice->getInterfaceVersion(&deviceVersion).isOk()); in SkipIfDriverOlderThanTestModel() 1093 Execute(kDevice, kTestModel, TestKind::GENERAL); in TEST_P() [all …]
|
/hardware/interfaces/neuralnetworks/1.0/utils/src/ |
D | Device.cpp | 90 kDevice(std::move(device)), in Device() 122 const auto ret = kDevice->ping(); in wait() 137 const auto ret = kDevice->getSupportedOperations(hidlModel, cb); in getSupportedOperations() 159 const auto ret = kDevice->prepareModel(hidlModel, cb); in prepareModel()
|
/hardware/interfaces/neuralnetworks/aidl/utils/src/ |
D | Device.cpp | 163 kDevice(std::move(device)), in Device() 195 const auto ret = ndk::ScopedAStatus::fromStatus(AIBinder_ping(kDevice->asBinder().get())); in wait() 209 const auto ret = kDevice->getSupportedOperations(aidlModel, &supportedOperations); in getSupportedOperations() 239 const auto ret = kDevice->prepareModelWithConfig( in prepareModel() 249 const auto ret = kDevice->prepareModel(aidlModel, aidlPreference, aidlPriority, aidlDeadline, in prepareModel() 266 const auto ret = kDevice->prepareModelFromCache(aidlDeadline, aidlModelCache, aidlDataCache, in prepareModelFromCache() 289 const auto ret = kDevice->allocate(aidlDesc, aidlPreparedModelParcels, aidlInputRoles, in allocate()
|
/hardware/interfaces/neuralnetworks/1.2/utils/src/ |
D | Device.cpp | 183 kDevice(std::move(device)), in Device() 215 const auto ret = kDevice->ping(); in wait() 230 const auto ret = kDevice->getSupportedOperations_1_2(hidlModel, cb); in getSupportedOperations() 256 const auto ret = kDevice->prepareModel_1_2(hidlModel, hidlPreference, hidlModelCache, in prepareModel() 274 const auto ret = kDevice->prepareModelFromCache(hidlModelCache, hidlDataCache, hidlToken, cb); in prepareModelFromCache()
|