Lines Matching refs:callbacks
86 static const NativeBridgeCallbacks* callbacks = nullptr; variable
160 if (!callbacks->isCompatibleWith(kLibNativeBridgeVersion)) { in VersionCheck()
201 callbacks = reinterpret_cast<NativeBridgeCallbacks*>(dlsym(handle, in LoadNativeBridge()
203 if (callbacks != nullptr) { in LoadNativeBridge()
204 if (VersionCheck(callbacks)) { in LoadNativeBridge()
208 callbacks = nullptr; in LoadNativeBridge()
219 if (callbacks == nullptr) { in LoadNativeBridge()
346 static void SetupEnvironment(const NativeBridgeCallbacks* callbacks, JNIEnv* env, const char* isa) { in SetupEnvironment() argument
354 const struct NativeBridgeRuntimeValues* env_values = callbacks->getAppEnv(isa); in SetupEnvironment()
429 if (callbacks->initialize(runtime_callbacks, app_code_cache_dir, instruction_set)) { in InitializeNativeBridge()
430 SetupEnvironment(callbacks, env, instruction_set); in InitializeNativeBridge()
489 return callbacks->loadLibrary(libpath, flag); in NativeBridgeLoadLibrary()
497 return callbacks->getTrampoline(handle, name, shorty, len); in NativeBridgeGetTrampoline()
504 return callbacks->isSupported(libpath); in NativeBridgeIsSupported()
511 return callbacks->version; in NativeBridgeGetVersion()
517 if (NativeBridgeInitialized() && callbacks->version >= 2) { in NativeBridgeGetSignalHandler()
518 return callbacks->getSignalHandler(signal); in NativeBridgeGetSignalHandler()