Home
last modified time | relevance | path

Searched refs:kDevice (Results 1 – 25 of 42) sorted by relevance

12

/hardware/interfaces/neuralnetworks/1.2/vts/functional/
DBasicTests.cpp36 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()
DVtsHalNeuralnetworks.cpp89 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()
DVtsHalNeuralnetworks.h36 const sp<IDevice> kDevice = getData(GetParam()); variable
/hardware/interfaces/neuralnetworks/utils/adapter/src/
DDevice.cpp328 : kDevice(std::move(device)), kExecutor(std::move(executor)) { in Device()
329 CHECK(kDevice != nullptr); in Device()
334 const auto capabilities = V1_0::utils::convert(kDevice->getCapabilities()).value(); in getCapabilities()
340 const auto capabilities = V1_1::utils::convert(kDevice->getCapabilities()).value(); in getCapabilities_1_1()
346 const auto capabilities = V1_2::utils::convert(kDevice->getCapabilities()).value(); in getCapabilities_1_2()
352 const auto capabilities = V1_3::utils::convert(kDevice->getCapabilities()).value(); in getCapabilities_1_3()
358 cb(V1_0::ErrorStatus::NONE, kDevice->getVersionString()); in getVersionString()
363 const auto maybeDeviceType = V1_2::utils::convert(kDevice->getType()); in getType()
375 const auto maybeSupportedExtensions = V1_2::utils::convert(kDevice->getSupportedExtensions()); in getSupportedExtensions()
389 const auto result = adapter::getSupportedOperations(kDevice, model); in getSupportedOperations()
[all …]
/hardware/interfaces/neuralnetworks/1.0/vts/functional/
DBasicTests.cpp32 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()
DVtsHalNeuralnetworks.cpp83 ASSERT_NE(kDevice, nullptr); in SetUp()
84 const bool deviceIsResponsive = kDevice->ping().isOk(); in SetUp()
137 validateEverything(kDevice, model, request); in TEST_P()
DGeneratedTestHarness.cpp156 ASSERT_NE(kDevice, nullptr); in SetUp()
157 const bool deviceIsResponsive = kDevice->ping().isOk(); in SetUp()
178 Execute(kDevice, kTestModel); in TEST_P()
DVtsHalNeuralnetworks.h36 const sp<IDevice> kDevice = getData(GetParam()); variable
/hardware/interfaces/neuralnetworks/1.1/vts/functional/
DBasicTests.cpp37 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()
DVtsHalNeuralnetworks.cpp86 ASSERT_NE(kDevice, nullptr); in SetUp()
87 const bool deviceIsResponsive = kDevice->ping().isOk(); in SetUp()
140 validateEverything(kDevice, model, request); in TEST_P()
DGeneratedTestHarness.cpp164 ASSERT_NE(kDevice, nullptr); in SetUp()
165 const bool deviceIsResponsive = kDevice->ping().isOk(); in SetUp()
186 Execute(kDevice, kTestModel); in TEST_P()
DVtsHalNeuralnetworks.h35 const sp<IDevice> kDevice = getData(GetParam()); variable
/hardware/interfaces/neuralnetworks/1.3/vts/functional/
DBasicTests.cpp37 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()
DVtsHalNeuralnetworks.cpp94 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()
DGeneratedTestHarness.cpp108 : 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/aidl/vts/functional/
DVtsHalNeuralnetworks.cpp93 ASSERT_NE(kDevice, nullptr); in SetUp()
95 ndk::ScopedAStatus::fromStatus(AIBinder_ping(kDevice->asBinder().get())).isOk(); in SetUp()
172 validateFailure(kDevice, model, request); in TEST_P()
174 validateEverything(kDevice, model, request); in TEST_P()
DCompilationCachingTests.cpp221 : kDevice(std::move(device)), kOperandType(type) {} in CompilationCachingTestBase()
225 ASSERT_NE(kDevice.get(), nullptr); in SetUp()
227 ndk::ScopedAStatus::fromStatus(AIBinder_ping(kDevice->asBinder().get())).isOk(); in SetUp()
239 const auto ret = kDevice->getNumberOfCacheFilesNeeded(&numCacheFiles); in SetUp()
306 const auto supportedCall = kDevice->getSupportedOperations(model, &supportedOps); in isModelFullySupported()
326 const auto prepareLaunchStatus = kDevice->prepareModel( in saveModelToCache()
377 auto prepareLaunchStatus = kDevice->prepareModelFromCache( in prepareModelFromCache()
392 prepareLaunchStatus = kDevice->prepareModel( in prepareModelFromCache()
442 EvaluatePreparedModel(kDevice, preparedModel, testModel, in verifyModelPreparationBehaviour()
465 const std::shared_ptr<IDevice> kDevice; member in aidl::android::hardware::neuralnetworks::vts::functional::CompilationCachingTestBase
[all …]
DBasicTests.cpp39 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()
DGeneratedTestHarness.cpp87 : kDevice(device), kPreparedModel(preparedModel), kTestModel(testModel) {} in DeviceMemoryAllocator()
117 const auto ret = kDevice->allocate({}, {parcel}, inputRoles, outputRoles, &buffer); in allocateInternal()
155 const std::shared_ptr<IDevice> kDevice; member in aidl::android::hardware::neuralnetworks::vts::functional::__anon4cf4456d0111::DeviceMemoryAllocator
321 : kDevice(std::move(device)), kPreparedModel(std::move(preparedModel)) {} in ExecutionContext()
336 const std::shared_ptr<IDevice> kDevice; member in aidl::android::hardware::neuralnetworks::vts::functional::ExecutionContext
355 DeviceMemoryAllocator allocator(kDevice, kPreparedModel, testModel); in createRequest()
906 ASSERT_NE(kDevice, nullptr); in SetUp()
908 ndk::ScopedAStatus::fromStatus(AIBinder_ping(kDevice->asBinder().get())).isOk(); in SetUp()
944 Execute(kDevice, kTestModel, TestKind::GENERAL); in TEST_P()
948 Execute(kDevice, kTestModel, TestKind::DYNAMIC_SHAPE); in TEST_P()
[all …]
DVtsHalNeuralnetworks.h36 const std::shared_ptr<IDevice> kDevice = getData(GetParam()); variable
/hardware/interfaces/neuralnetworks/1.0/utils/src/
DDevice.cpp90 kDevice(std::move(device)), in Device()
122 const auto ret = kDevice->ping(); in wait()
137 const auto ret = kDevice->getSupportedOperations(hidlModel, cb); in getSupportedOperations()
157 const auto ret = kDevice->prepareModel(hidlModel, cb); in prepareModel()
/hardware/interfaces/neuralnetworks/1.3/utils/src/
DDevice.cpp134 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()
208 kDevice->prepareModel_1_3(hidlModel, hidlPreference, hidlPriority, hidlDeadline, in prepareModel()
227 const auto ret = kDevice->prepareModelFromCache_1_3(hidlDeadline, hidlModelCache, hidlDataCache, in prepareModelFromCache()
247 kDevice->allocate(hidlDesc, hidlPreparedModels, hidlInputRoles, hidlOutputRoles, cb); in allocate()
/hardware/interfaces/neuralnetworks/1.1/utils/src/
DDevice.cpp90 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()
158 const auto ret = kDevice->prepareModel_1_1(hidlModel, hidlPreference, cb); in prepareModel()
/hardware/interfaces/neuralnetworks/aidl/utils/src/
DDevice.cpp162 kDevice(std::move(device)), in Device()
194 const auto ret = ndk::ScopedAStatus::fromStatus(AIBinder_ping(kDevice->asBinder().get())); in wait()
208 const auto ret = kDevice->getSupportedOperations(aidlModel, &supportedOperations); in getSupportedOperations()
234 const auto ret = kDevice->prepareModel(aidlModel, aidlPreference, aidlPriority, aidlDeadline, in prepareModel()
252 const auto ret = kDevice->prepareModelFromCache(aidlDeadline, aidlModelCache, aidlDataCache, in prepareModelFromCache()
275 const auto ret = kDevice->allocate(aidlDesc, aidlPreparedModelParcels, aidlInputRoles, in allocate()
/hardware/interfaces/neuralnetworks/1.2/utils/src/
DDevice.cpp183 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()
254 const auto ret = kDevice->prepareModel_1_2(hidlModel, hidlPreference, hidlModelCache, in prepareModel()
272 const auto ret = kDevice->prepareModelFromCache(hidlModelCache, hidlDataCache, hidlToken, cb); in prepareModelFromCache()

12