Home
last modified time | relevance | path

Searched refs:ANeuralNetworksDevice (Results 1 – 25 of 28) sorted by relevance

12

/packages/modules/NeuralNetworks/shim_and_sl/public/
DNeuralNetworksSupportLibraryImpl.h184 int SL_ANeuralNetworksDevice_getNumberOfCacheFilesNeeded(const ANeuralNetworksDevice* device,
203 int SL_ANeuralNetworksDevice_getPerformanceInfo(const ANeuralNetworksDevice* device,
223 const ANeuralNetworksDevice* device, void* context,
237 int SL_ANeuralNetworksDevice_getVendorExtensionCount(const ANeuralNetworksDevice* device,
251 int SL_ANeuralNetworksDevice_getVendorExtensionName(const ANeuralNetworksDevice* device,
268 const ANeuralNetworksDevice* device, uint32_t vendorExtensionIndex, void* context,
654 const ANeuralNetworksDevice* const* devices,
756 int (*ANeuralNetworksDevice_getExtensionSupport)(const ANeuralNetworksDevice* device,
766 int (*ANeuralNetworksDevice_getFeatureLevel)(const ANeuralNetworksDevice* device,
775 int (*ANeuralNetworksDevice_getName)(const ANeuralNetworksDevice* device, const char** name);
[all …]
/packages/modules/NeuralNetworks/runtime/include/
DNeuralNetworks.h406 int ANeuralNetworks_getDevice(uint32_t devIndex, ANeuralNetworksDevice** device)
429 int ANeuralNetworksDevice_getName(const ANeuralNetworksDevice* device, const char** name)
451 int ANeuralNetworksDevice_getType(const ANeuralNetworksDevice* device, int32_t* type)
484 int ANeuralNetworksDevice_getVersion(const ANeuralNetworksDevice* device, const char** version)
514 int ANeuralNetworksDevice_getFeatureLevel(const ANeuralNetworksDevice* device,
535 int ANeuralNetworksDevice_wait(const ANeuralNetworksDevice* device) __NNAPI_INTRODUCED_IN(30)
559 const ANeuralNetworksModel* model, const ANeuralNetworksDevice* const* devices,
594 const ANeuralNetworksDevice* const* devices,
DNeuralNetworksTypes.h6520 typedef struct ANeuralNetworksDevice ANeuralNetworksDevice; typedef
DNeuralNetworksExtensions.h51 int ANeuralNetworksDevice_getExtensionSupport(const ANeuralNetworksDevice* device,
DNeuralNetworksWrapper.h468 const ANeuralNetworksDevice* device) {
473 const std::vector<const ANeuralNetworksDevice*>& devices) {
/packages/modules/NeuralNetworks/runtime/test/fibonacci_extension/
DFibonacciExtensionTest.cpp61 ANeuralNetworksDevice* device = nullptr; in SetUp()
94 const std::vector<ANeuralNetworksDevice*> devices) { in checkSupportedOperations()
120 ANeuralNetworksDevice* mFibonacciDevice = nullptr;
121 ANeuralNetworksDevice* mCpuDevice = nullptr;
122 std::vector<ANeuralNetworksDevice*> mDevices; // Fibonacci and CPU devices.
123 std::vector<ANeuralNetworksDevice*> mAllDevices;
348 for (ANeuralNetworksDevice* device : mAllDevices) { in TEST_F()
/packages/modules/NeuralNetworks/shim_and_sl/
DShimDeviceManager.cpp83 std::unordered_map<std::string, ANeuralNetworksDevice*> getNamedDevices( in getNamedDevices()
91 std::unordered_map<std::string, ANeuralNetworksDevice*> nameToDevice; in getNamedDevices()
93 ANeuralNetworksDevice* device; in getNamedDevices()
167 ANeuralNetworksDevice* device = iter->second; in registerDevices()
DShimDevice.cpp102 Capabilities getCapabilities(const NnApiSupportLibrary* nnapi, ANeuralNetworksDevice* device) { in getCapabilities()
137 ANeuralNetworksDevice* device) { in getNumberOfCacheFilesNeeded()
149 ANeuralNetworksDevice* device) { in getVendorExtensions()
184 ANeuralNetworksDevice* device, std::string serviceName) in ShimDevice()
/packages/modules/NeuralNetworks/runtime/test/
DTestFree.cpp57 std::vector<ANeuralNetworksDevice*> createDeviceList() { in createDeviceList()
58 std::vector<ANeuralNetworksDevice*> devices; in createDeviceList()
63 ANeuralNetworksDevice* device = nullptr; in createDeviceList()
DTestExtensions.cpp93 ANeuralNetworksDevice* getDeviceByName(const std::string& name) { in getDeviceByName()
94 ANeuralNetworksDevice* result = nullptr; in getDeviceByName()
99 ANeuralNetworksDevice* device = nullptr; in getDeviceByName()
119 ANeuralNetworksDevice* mDevice;
DTestRemoveDefaultArguments.cpp172 ANeuralNetworksDevice* getDeviceByName(const std::string& name) { in getDeviceByName()
173 ANeuralNetworksDevice* result = nullptr; in getDeviceByName()
178 ANeuralNetworksDevice* device = nullptr; in getDeviceByName()
191 ANeuralNetworksDevice* mTestDevice;
DSupportLibraryTestGenerated.cpp83 bool checkSupported(const Model& model, ANeuralNetworksDevice* device);
84 std::optional<Compilation> compileModel(const Model& model, ANeuralNetworksDevice* device);
134 bool GeneratedTests::checkSupported(const Model& model, ANeuralNetworksDevice* device) { in checkSupported()
163 ANeuralNetworksDevice* device) { in compileModel()
411 ANeuralNetworksDevice* device = nullptr; in executeOnce()
458 ANeuralNetworksDevice* device = nullptr; in executeMultithreadedSharedCompilation()
DTestCompilationCaching.cpp296 void getDeviceWithName(std::string_view deviceName, const ANeuralNetworksDevice** outputDevice) { in getDeviceWithName()
303 ANeuralNetworksDevice* device = nullptr; in getDeviceWithName()
344 const ANeuralNetworksDevice* device = nullptr; in TEST_P()
382 const ANeuralNetworksDevice* device = nullptr; in compileModel()
DTestUpdatability.cpp45 ANeuralNetworksDevice* device; in TEST_F()
DTestGpuNnapi.cpp244 using NameAndDevice = std::pair<const char*, const ANeuralNetworksDevice*>;
254 ANeuralNetworksDevice* device; in getNnapiDevices()
812 static std::unique_ptr<NnapiExecutor> create(const ANeuralNetworksDevice* device, in create()
834 void initialize(const ANeuralNetworksDevice* device) { in initialize()
1013 const ANeuralNetworksDevice* kDevice = GetParam().second;
DTestMemoryDomain.cpp203 std::map<std::string, ANeuralNetworksDevice*> deviceMap; in createCompilation()
207 ANeuralNetworksDevice* device = nullptr; in createCompilation()
213 std::vector<const ANeuralNetworksDevice*> devices(deviceNames.size()); in createCompilation()
DTestValidation.cpp896 ANeuralNetworksDevice* device; in TEST_F()
909 ANeuralNetworksDevice* invalidDevices[2] = {device, device}; in TEST_F()
937 ANeuralNetworksDevice* device; in TEST_F()
952 ANeuralNetworksDevice* invalidDevices[2] = {device, device}; in TEST_F()
2782 ANeuralNetworksDevice* device = nullptr; in TEST()
2792 static void deviceStringCheck(std::function<int(const ANeuralNetworksDevice*, const char**)> func) { in deviceStringCheck() argument
2799 ANeuralNetworksDevice* device; in deviceStringCheck()
2818 ANeuralNetworksDevice* device = nullptr; in TEST()
2839 ANeuralNetworksDevice* device; in TEST()
2864 ANeuralNetworksDevice* device; in TEST()
[all …]
DTestNeuralNetworksWrapper.h255 const ANeuralNetworksDevice* device) { in createForDevice()
259 const Model* model, const std::vector<const ANeuralNetworksDevice*>& devices) { in createForDevices()
/packages/modules/NeuralNetworks/runtime/
DNeuralNetworks.cpp671 int ANeuralNetworks_getDevice(uint32_t devIndex, ANeuralNetworksDevice** device) { in ANeuralNetworks_getDevice()
681 *device = reinterpret_cast<ANeuralNetworksDevice*>(devices.at(devIndex).get()); in ANeuralNetworks_getDevice()
685 int ANeuralNetworksDevice_getName(const ANeuralNetworksDevice* device, const char** name) { in ANeuralNetworksDevice_getName()
695 int ANeuralNetworksDevice_getVersion(const ANeuralNetworksDevice* device, const char** version) { in ANeuralNetworksDevice_getVersion()
705 int ANeuralNetworksDevice_getType(const ANeuralNetworksDevice* device, int32_t* type) { in ANeuralNetworksDevice_getType()
742 int ANeuralNetworksDevice_getFeatureLevel(const ANeuralNetworksDevice* device, in ANeuralNetworksDevice_getFeatureLevel()
748 Device* d = reinterpret_cast<Device*>(const_cast<ANeuralNetworksDevice*>(device)); in ANeuralNetworksDevice_getFeatureLevel()
757 int ANeuralNetworksDevice_wait(const ANeuralNetworksDevice* device) { in ANeuralNetworksDevice_wait()
767 const ANeuralNetworksModel* model, const ANeuralNetworksDevice* const* devices, in ANeuralNetworksModel_getSupportedOperationsForDevices()
804 Device* d = reinterpret_cast<Device*>(const_cast<ANeuralNetworksDevice*>(devices[i])); in ANeuralNetworksModel_getSupportedOperationsForDevices()
[all …]
DNeuralNetworksV2.cpp652 int ANeuralNetworks_getDevice(uint32_t devIndex, ANeuralNetworksDevice** device) { in ANeuralNetworks_getDevice()
662 *device = reinterpret_cast<ANeuralNetworksDevice*>(devices.at(devIndex).get()); in ANeuralNetworks_getDevice()
666 int ANeuralNetworksDevice_getName(const ANeuralNetworksDevice* device, const char** name) { in ANeuralNetworksDevice_getName()
676 int ANeuralNetworksDevice_getVersion(const ANeuralNetworksDevice* device, const char** version) { in ANeuralNetworksDevice_getVersion()
686 int ANeuralNetworksDevice_getType(const ANeuralNetworksDevice* device, int32_t* type) { in ANeuralNetworksDevice_getType()
723 int ANeuralNetworksDevice_getFeatureLevel(const ANeuralNetworksDevice* device, in ANeuralNetworksDevice_getFeatureLevel()
729 Device* d = reinterpret_cast<Device*>(const_cast<ANeuralNetworksDevice*>(device)); in ANeuralNetworksDevice_getFeatureLevel()
738 int ANeuralNetworksDevice_wait(const ANeuralNetworksDevice* device) { in ANeuralNetworksDevice_wait()
748 const ANeuralNetworksModel* model, const ANeuralNetworksDevice* const* devices, in ANeuralNetworksModel_getSupportedOperationsForDevices()
785 Device* d = reinterpret_cast<Device*>(const_cast<ANeuralNetworksDevice*>(devices[i])); in ANeuralNetworksModel_getSupportedOperationsForDevices()
[all …]
DManager.h238 bool forTest_isCpuDevice(const ANeuralNetworksDevice* device) const { in forTest_isCpuDevice()
/packages/modules/NeuralNetworks/shim_and_sl/include/
DShimDevice.h40 ShimDevice(std::shared_ptr<const NnApiSupportLibrary>, ANeuralNetworksDevice*,
82 ANeuralNetworksDevice* mDevice;
DSupportLibraryWrapper.h353 const ANeuralNetworksDevice* device) { in createForDevice()
358 const std::vector<const ANeuralNetworksDevice*>& devices) { in createForDevices()
/packages/modules/NeuralNetworks/tools/nnapi_info/
Dnnapi_info.cpp85 ANeuralNetworksDevice* device = nullptr; in main()
/packages/modules/NeuralNetworks/runtime/test/fuzzing/
DTestRandomGraph.cpp164 ANeuralNetworksDevice* device = nullptr; in SetUpTestCase()
434 static std::map<std::string, ANeuralNetworksDevice*> mDevices;
455 std::map<std::string, ANeuralNetworksDevice*> RandomGraphTest::mDevices;

12