Lines Matching refs:library
75 const char* JniInvocation::GetLibrary(const char* library, char* buffer) {
76 return GetLibrary(library, buffer, &IsDebuggable, &GetLibrarySystemProperty);
79 const char* JniInvocation::GetLibrary(const char* library, char* buffer, bool (*is_debuggable)(),
86 // Do not allow arbitrary library. Ignore the library parameter. This
87 // will also ignore the default library, but initialize to fallback
89 library = kLibraryFallback;
93 // Accept the library parameter. For the case it is NULL, load the default
94 // library from the system property.
112 if (library == NULL) {
113 library = default_library;
116 return library;
119 bool JniInvocation::Init(const char* library) {
125 library = GetLibrary(library, buffer);
128 // exiting even after JNI_DeleteJavaVM returns, which can lead to segfaults if the library is
131 handle_ = dlopen(library, kDlopenFlags);
133 if (strcmp(library, kLibraryFallback) == 0) {
135 ALOGE("Failed to dlopen %s: %s", library, dlerror());
144 library, kLibraryFallback, dlerror());
145 library = kLibraryFallback;
146 handle_ = dlopen(library, kDlopenFlags);
148 ALOGE("Failed to dlopen %s: %s", library, dlerror());