Home
last modified time | relevance | path

Searched refs:NativeLoaderNamespace (Results 1 – 10 of 10) sorted by relevance

/art/libnativeloader/
Dnative_loader_namespace.h39 struct NativeLoaderNamespace { struct
41 static Result<NativeLoaderNamespace> Create(const std::string& name,
44 const NativeLoaderNamespace* parent, bool is_shared,
48 NativeLoaderNamespace(NativeLoaderNamespace&&) = default;
49 NativeLoaderNamespace(const NativeLoaderNamespace&) = default;
50 NativeLoaderNamespace& operator=(const NativeLoaderNamespace&) = default; argument
61 Result<void> Link(const NativeLoaderNamespace* target, const std::string& shared_libs) const; argument
65 static Result<NativeLoaderNamespace> GetExportedNamespace(const std::string& name,
67 static Result<NativeLoaderNamespace> GetSystemNamespace(bool is_bridged);
70 explicit NativeLoaderNamespace(const std::string& name, android_namespace_t* ns) in NativeLoaderNamespace() argument
[all …]
Dnative_loader_namespace.cpp52 Result<NativeLoaderNamespace> NativeLoaderNamespace::GetExportedNamespace(const std::string& name, in GetExportedNamespace()
57 return NativeLoaderNamespace(name, raw); in GetExportedNamespace()
62 return NativeLoaderNamespace(name, raw); in GetExportedNamespace()
71 Result<NativeLoaderNamespace> NativeLoaderNamespace::GetSystemNamespace(bool is_bridged) { in GetSystemNamespace()
80 return NativeLoaderNamespace(kDefaultNamespaceName, static_cast<android_namespace_t*>(nullptr)); in GetSystemNamespace()
82 return NativeLoaderNamespace(kDefaultNamespaceName, in GetSystemNamespace()
87 Result<NativeLoaderNamespace> NativeLoaderNamespace::Create( in Create()
89 const NativeLoaderNamespace* parent, bool is_shared, bool is_exempt_list_enabled, in Create()
103 const NativeLoaderNamespace& effective_parent = parent != nullptr ? *parent : *system_ns; in Create()
128 return NativeLoaderNamespace(name, raw); in Create()
[all …]
Dnative_loader.cpp69 NativeLoaderNamespace* g_nativeloader_extra_libs_namespace = nullptr;
82 Result<void> CreateNativeloaderDefaultNamespaceLibsLink(NativeLoaderNamespace& ns) in CreateNativeloaderDefaultNamespaceLibsLink()
93 Result<NativeLoaderNamespace*> GetNativeloaderExtraLibsNamespace() REQUIRES(g_namespaces_mutex) { in GetNativeloaderExtraLibsNamespace()
98 Result<NativeLoaderNamespace> ns = in GetNativeloaderExtraLibsNamespace()
99 NativeLoaderNamespace::Create(kNativeloaderExtraLibs, in GetNativeloaderExtraLibsNamespace()
109 g_nativeloader_extra_libs_namespace = new NativeLoaderNamespace(std::move(ns.value())); in GetNativeloaderExtraLibsNamespace()
132 Result<NativeLoaderNamespace*> ns = GetNativeloaderExtraLibsNamespace(); in TryLoadNativeloaderExtraLib()
139 Result<NativeLoaderNamespace*> CreateClassLoaderNamespaceLocked(JNIEnv* env, in CreateClassLoaderNamespaceLocked()
148 Result<NativeLoaderNamespace*> ns = g_namespaces->Create(env, in CreateClassLoaderNamespaceLocked()
191 Result<NativeLoaderNamespace*> ns = CreateClassLoaderNamespaceLocked(env, in CreateClassLoaderNamespace()
[all …]
Dlibrary_namespaces.h56 Result<NativeLoaderNamespace*> Create(JNIEnv* env, uint32_t target_sdk_version,
60 NativeLoaderNamespace* FindNamespaceByClassLoader(JNIEnv* env, jobject class_loader);
64 NativeLoaderNamespace* FindParentNamespaceByClassLoader(JNIEnv* env, jobject class_loader);
67 NativeLoaderNamespace* app_main_namespace_;
68 std::list<std::pair<jweak, NativeLoaderNamespace>> namespaces_;
Dlibrary_namespaces.cpp170 Result<NativeLoaderNamespace*> LibraryNamespaces::Create(JNIEnv* env, uint32_t target_sdk_version, in Create()
284 NativeLoaderNamespace* parent_ns = FindParentNamespaceByClassLoader(env, class_loader); in Create()
295 auto app_ns = NativeLoaderNamespace::Create( in Create()
304 auto system_ns = NativeLoaderNamespace::GetSystemNamespace(is_bridged); in Create()
315 auto ns = NativeLoaderNamespace::GetExportedNamespace(apex_ns_name, is_bridged); in Create()
327 auto vndk_ns = NativeLoaderNamespace::GetExportedNamespace(kVndkNamespaceName, is_bridged); in Create()
338 … auto vndk_ns = NativeLoaderNamespace::GetExportedNamespace(kVndkProductNamespaceName, is_bridged); in Create()
352 auto apex_ns = NativeLoaderNamespace::GetExportedNamespace(*apex_ns_name, is_bridged); in Create()
366 auto vendor_ns = NativeLoaderNamespace::GetExportedNamespace(kVendorNamespaceName, is_bridged); in Create()
385 NativeLoaderNamespace* LibraryNamespaces::FindNamespaceByClassLoader(JNIEnv* env, in FindNamespaceByClassLoader()
[all …]
Dnative_loader_lazy.cpp78 struct NativeLoaderNamespace* FindNativeLoaderNamespaceByClassLoader(JNIEnv* env, in FindNativeLoaderNamespaceByClassLoader()
84 void* OpenNativeLibraryInNamespace(struct NativeLoaderNamespace* ns, const char* path, in OpenNativeLibraryInNamespace()
Dnative_loader_lazy_test.cpp99 struct NativeLoaderNamespace* ns = FindNativeLoaderNamespaceByClassLoader( in TEST_F()
Dnative_loader_test.cpp285 struct NativeLoaderNamespace* ns = in RunTest()
437 struct NativeLoaderNamespace* ns = FindNativeLoaderNamespaceByClassLoader( in TEST_P()
DREADME.md76 `native_loader_namespace.cpp` implements the class `NativeLoaderNamespace` that
/art/libnativeloader/include/nativeloader/
Dnative_loader.h60 struct NativeLoaderNamespace;
61 __attribute__((visibility("default"))) struct NativeLoaderNamespace*
66 struct NativeLoaderNamespace* ns, const char* path, bool* needs_native_bridge,