Loading renderscript/1.0/default/Android.bp +1 −1 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ cc_library_shared { ], shared_libs: [ "libdl", "liblog", "libbase", "libhidlbase", "libhidltransport", "libutils", Loading renderscript/1.0/default/Context.cpp +0 −2 Original line number Diff line number Diff line #define LOG_TAG "android.hardware.renderscript@1.0-impl" #include "Context.h" #include "Device.h" Loading renderscript/1.0/default/Device.cpp +7 −0 Original line number Diff line number Diff line #include "Context.h" #include "Device.h" #include <android-base/logging.h> #include <android/dlext.h> #include <dlfcn.h> Loading Loading @@ -54,12 +55,18 @@ dispatchTable loadHAL() { .flags = ANDROID_DLEXT_USE_NAMESPACE, .library_namespace = rsNamespace, }; handle = android_dlopen_ext(filename, RTLD_LAZY | RTLD_LOCAL, &dlextinfo); if (handle == nullptr) { LOG(WARNING) << "android_dlopen_ext(" << filename << ") failed: " << dlerror(); } } } if (handle == nullptr) { // if there is no "rs" namespace (in case when this HAL impl is loaded // into a vendor process), then use the plain dlopen. handle = dlopen(filename, RTLD_LAZY | RTLD_LOCAL); if (handle == nullptr) { LOG(FATAL) << "dlopen(" << filename << ") failed: " << dlerror(); } } dispatchTable dispatchHal = { Loading Loading
renderscript/1.0/default/Android.bp +1 −1 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ cc_library_shared { ], shared_libs: [ "libdl", "liblog", "libbase", "libhidlbase", "libhidltransport", "libutils", Loading
renderscript/1.0/default/Context.cpp +0 −2 Original line number Diff line number Diff line #define LOG_TAG "android.hardware.renderscript@1.0-impl" #include "Context.h" #include "Device.h" Loading
renderscript/1.0/default/Device.cpp +7 −0 Original line number Diff line number Diff line #include "Context.h" #include "Device.h" #include <android-base/logging.h> #include <android/dlext.h> #include <dlfcn.h> Loading Loading @@ -54,12 +55,18 @@ dispatchTable loadHAL() { .flags = ANDROID_DLEXT_USE_NAMESPACE, .library_namespace = rsNamespace, }; handle = android_dlopen_ext(filename, RTLD_LAZY | RTLD_LOCAL, &dlextinfo); if (handle == nullptr) { LOG(WARNING) << "android_dlopen_ext(" << filename << ") failed: " << dlerror(); } } } if (handle == nullptr) { // if there is no "rs" namespace (in case when this HAL impl is loaded // into a vendor process), then use the plain dlopen. handle = dlopen(filename, RTLD_LAZY | RTLD_LOCAL); if (handle == nullptr) { LOG(FATAL) << "dlopen(" << filename << ") failed: " << dlerror(); } } dispatchTable dispatchHal = { Loading