Lines Matching refs:library
113 bool Init(const char* library);
117 static const char* GetLibrary(const char* library,
170 const char* JniInvocationImpl::GetLibrary(const char* library, in GetLibrary() argument
182 library = kLibraryFallback; in GetLibrary()
205 if (library == NULL) { in GetLibrary()
206 library = default_library; in GetLibrary()
209 return library; in GetLibrary()
212 bool JniInvocationImpl::Init(const char* library) { in Init() argument
218 library = GetLibrary(library, buffer); in Init()
219 handle_ = OpenLibrary(library); in Init()
221 if (strcmp(library, kLibraryFallback) == 0) { in Init()
223 ALOGE("Failed to dlopen %s: %s", library, GetError().c_str()); in Init()
232 library, kLibraryFallback, GetError().c_str()); in Init()
233 library = kLibraryFallback; in Init()
234 handle_ = OpenLibrary(library); in Init()
236 ALOGE("Failed to dlopen %s: %s", library, GetError().c_str()); in Init()
308 MODULE_API int JniInvocationInit(JniInvocationImpl* instance, const char* library) { in JniInvocationInit() argument
309 return instance->Init(library) ? 1 : 0; in JniInvocationInit()
312 MODULE_API const char* JniInvocationGetLibrary(const char* library, char* buffer) { in JniInvocationGetLibrary() argument
313 return JniInvocationImpl::GetLibrary(library, buffer); in JniInvocationGetLibrary()
316 MODULE_API const char* JniInvocation::GetLibrary(const char* library, in GetLibrary() argument
320 return JniInvocationImpl::GetLibrary(library, buffer, is_debuggable, get_library_system_property); in GetLibrary()