Lines Matching refs:ns
95 auto ns = g_namespaces->Create(env, target_sdk_version, class_loader, is_shared, dex_path, in CreateClassLoaderNamespace() local
97 if (!ns.ok()) { in CreateClassLoaderNamespace()
98 return env->NewStringUTF(ns.error().message().c_str()); in CreateClassLoaderNamespace()
135 NativeLoaderNamespace* ns; in OpenNativeLibrary() local
137 if ((ns = g_namespaces->FindNamespaceByClassLoader(env, class_loader)) == nullptr) { in OpenNativeLibrary()
147 ns = *isolated_ns; in OpenNativeLibrary()
151 return OpenNativeLibraryInNamespace(ns, path, needs_native_bridge, error_msg); in OpenNativeLibrary()
224 void* OpenNativeLibraryInNamespace(NativeLoaderNamespace* ns, const char* path, in OpenNativeLibraryInNamespace() argument
226 auto handle = ns->Load(path); in OpenNativeLibraryInNamespace()
231 *needs_native_bridge = ns->IsBridged(); in OpenNativeLibraryInNamespace()
241 NativeLoaderNamespace* ns = g_namespaces->FindNamespaceByClassLoader(env, class_loader); in FindNamespaceByClassLoader() local
242 if (ns != nullptr && !ns->IsBridged()) { in FindNamespaceByClassLoader()
243 return ns->ToRawAndroidNamespace(); in FindNamespaceByClassLoader()