Home
last modified time | relevance | path

Searched refs:libHandle (Results 1 – 3 of 3) sorted by relevance

/packages/modules/NeuralNetworks/shim_and_sl/include/
DSupportLibrary.h49 NnApiSupportLibrary(const NnApiSLDriverImplFL5& impl, void* libHandle) in NnApiSupportLibrary()
50 : libHandle(libHandle), impl(impl) {} in NnApiSupportLibrary()
55 NnApiSupportLibrary(const NnApiSLDriverImplFL8& impl, void* libHandle) in NnApiSupportLibrary()
56 : libHandle(libHandle), impl(impl) {} in NnApiSupportLibrary()
58 if (libHandle != nullptr) { in ~NnApiSupportLibrary()
59 dlclose(libHandle); in ~NnApiSupportLibrary()
60 libHandle = nullptr; in ~NnApiSupportLibrary()
89 void* libHandle = nullptr; member
102 std::unique_ptr<const NnApiSupportLibrary> loadNnApiSupportLibrary(void* libHandle);
/packages/modules/NeuralNetworks/shim_and_sl/
DSupportLibrary.cpp28 void* libHandle = dlopen(libName.c_str(), RTLD_LAZY | RTLD_LOCAL | RTLD_NODELETE); in loadNnApiSupportLibrary() local
29 if (libHandle == nullptr) { in loadNnApiSupportLibrary()
34 auto result = loadNnApiSupportLibrary(libHandle); in loadNnApiSupportLibrary()
36 dlclose(libHandle); in loadNnApiSupportLibrary()
41 std::unique_ptr<const NnApiSupportLibrary> loadNnApiSupportLibrary(void* libHandle) { in loadNnApiSupportLibrary() argument
44 dlsym(libHandle, "ANeuralNetworks_getSLDriverImpl")); in loadNnApiSupportLibrary()
63 libHandle); in loadNnApiSupportLibrary()
67 libHandle); in loadNnApiSupportLibrary()
71 libHandle); in loadNnApiSupportLibrary()
75 libHandle); in loadNnApiSupportLibrary()
/packages/modules/NeuralNetworks/driver/sample_shim/
DShellServiceSample.cpp66 void* libHandle = dlopen(driverPath.c_str(), RTLD_LAZY | RTLD_LOCAL | RTLD_NODELETE); in registerDevices() local
67 if (libHandle == nullptr) { in registerDevices()
76 dlsym(libHandle, "ANeuralNetworks_getSLDriverImpl")); in registerDevices()