• Home
  • Raw
  • Download

Lines Matching refs:ns

60   explicit NativeLoaderNamespace(android_namespace_t* ns)  in NativeLoaderNamespace()
61 : android_ns_(ns), native_bridge_ns_(nullptr) { } in NativeLoaderNamespace()
63 explicit NativeLoaderNamespace(native_bridge_namespace_t* ns) in NativeLoaderNamespace()
64 : android_ns_(nullptr), native_bridge_ns_(ns) { } in NativeLoaderNamespace()
329 android_namespace_t* ns = android_create_namespace(namespace_name, in Create() local
335 if (ns == nullptr) { in Create()
347 if (!android_link_namespaces(ns, nullptr, system_exposed_libraries.c_str())) { in Create()
354 if (!android_link_namespaces(ns, runtime_ns, runtime_exposed_libraries.c_str())) { in Create()
362 if (!android_link_namespaces(ns, vndk_ns, system_vndksp_libraries_.c_str())) { in Create()
369 if (!android_link_namespaces(ns, vendor_ns, vendor_public_libraries_.c_str())) { in Create()
375 native_loader_ns = NativeLoaderNamespace(ns); in Create()
387 native_bridge_namespace_t* ns = NativeBridgeCreateNamespace(namespace_name, in Create() local
393 if (ns == nullptr) { in Create()
402 if (!NativeBridgeLinkNamespaces(ns, nullptr, system_exposed_libraries.c_str())) { in Create()
409 if (!NativeBridgeLinkNamespaces(ns, runtime_ns, runtime_exposed_libraries.c_str())) { in Create()
415 if (!NativeBridgeLinkNamespaces(ns, vendor_ns, vendor_public_libraries_.c_str())) { in Create()
421 native_loader_ns = NativeLoaderNamespace(ns); in Create()
691 NativeLoaderNamespace* ns; in FindParentNamespaceByClassLoader() local
692 if ((ns = FindNamespaceByClassLoader(env, parent_class_loader)) != nullptr) { in FindParentNamespaceByClassLoader()
693 return ns; in FindParentNamespaceByClassLoader()
825 NativeLoaderNamespace* ns; in OpenNativeLibrary() local
827 if ((ns = g_namespaces->FindNamespaceByClassLoader(env, class_loader)) == nullptr) { in OpenNativeLibrary()
831 if ((ns = g_namespaces->Create(env, target_sdk_version, class_loader, false /* is_shared */, in OpenNativeLibrary()
838 return OpenNativeLibraryInNamespace(ns, path, needs_native_bridge, error_msg); in OpenNativeLibrary()
911 void* OpenNativeLibraryInNamespace(NativeLoaderNamespace* ns, const char* path, in OpenNativeLibraryInNamespace() argument
913 if (ns->is_android_namespace()) { in OpenNativeLibraryInNamespace()
916 extinfo.library_namespace = ns->get_android_ns(); in OpenNativeLibraryInNamespace()
925 void* handle = NativeBridgeLoadLibraryExt(path, RTLD_NOW, ns->get_native_bridge_ns()); in OpenNativeLibraryInNamespace()
939 NativeLoaderNamespace* ns = g_namespaces->FindNamespaceByClassLoader(env, class_loader); in FindNamespaceByClassLoader() local
940 if (ns != nullptr) { in FindNamespaceByClassLoader()
941 return ns->is_android_namespace() ? ns->get_android_ns() : nullptr; in FindNamespaceByClassLoader()