Home | History | Annotate | Download | only in libnativehelper

Lines Matching full:library

59 const char* JniInvocation::GetLibrary(const char* library, char* buffer) {
68 // Do not allow arbitrary library. Ignore the library parameter. This
69 // will also ignore the default library, but initialize to fallback
71 library = kLibraryFallback;
75 // Accept the library parameter. For the case it is NULL, load the default
76 // library from the system property.
92 if (library == NULL) {
93 library = default_library;
96 return library;
99 bool JniInvocation::Init(const char* library) {
105 library = GetLibrary(library, buffer);
108 // exiting even after JNI_DeleteJavaVM returns, which can lead to segfaults if the library is
111 handle_ = dlopen(library, kDlopenFlags);
113 if (strcmp(library, kLibraryFallback) == 0) {
115 ALOGE("Failed to dlopen %s: %s", library, dlerror());
124 library, kLibraryFallback, dlerror());
125 library = kLibraryFallback;
126 handle_ = dlopen(library, kDlopenFlags);
128 ALOGE("Failed to dlopen %s: %s", library, dlerror());