Lines Matching refs:ns
83 auto ns = g_namespaces->Create(env, target_sdk_version, class_loader, is_shared, dex_path, in CreateClassLoaderNamespace() local
85 if (!ns.ok()) { in CreateClassLoaderNamespace()
86 return env->NewStringUTF(ns.error().message().c_str()); in CreateClassLoaderNamespace()
124 NativeLoaderNamespace* ns; in OpenNativeLibrary() local
126 if ((ns = g_namespaces->FindNamespaceByClassLoader(env, class_loader)) == nullptr) { in OpenNativeLibrary()
136 ns = *isolated_ns; in OpenNativeLibrary()
140 return OpenNativeLibraryInNamespace(ns, path, needs_native_bridge, error_msg); in OpenNativeLibrary()
213 void* OpenNativeLibraryInNamespace(NativeLoaderNamespace* ns, const char* path, in OpenNativeLibraryInNamespace() argument
215 auto handle = ns->Load(path); in OpenNativeLibraryInNamespace()
220 *needs_native_bridge = ns->IsBridged(); in OpenNativeLibraryInNamespace()
230 NativeLoaderNamespace* ns = g_namespaces->FindNamespaceByClassLoader(env, class_loader); in FindNamespaceByClassLoader() local
231 if (ns != nullptr && !ns->IsBridged()) { in FindNamespaceByClassLoader()
232 return ns->ToRawAndroidNamespace(); in FindNamespaceByClassLoader()