Home
last modified time | relevance | path

Searched refs:NativeLoaderNamespace (Results 1 – 11 of 11) 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()
72 Result<NativeLoaderNamespace> ns = GetExportedNamespace(kSystemNamespaceName, 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()
99 Result<NativeLoaderNamespace> system_ns = GetSystemNamespace(is_bridged); in Create()
[all …]
Dnative_loader.cpp78 NativeLoaderNamespace* g_nativeloader_extra_libs_namespace GUARDED_BY(g_namespaces_mutex) = nullptr;
80 std::optional<NativeLoaderNamespace> FindApexNamespace(const char* caller_location) { in FindApexNamespace()
84 Result<NativeLoaderNamespace> ns = in FindApexNamespace()
85 NativeLoaderNamespace::GetExportedNamespace(name.value(), /*is_bridged=*/false); in FindApexNamespace()
96 Result<NativeLoaderNamespace> GetNamespaceForApiDomain(nativeloader::ApiDomain api_domain, in GetNamespaceForApiDomain()
100 return NativeLoaderNamespace::GetExportedNamespace(nativeloader::kVendorNamespaceName, in GetNamespaceForApiDomain()
103 return NativeLoaderNamespace::GetExportedNamespace(nativeloader::kProductNamespaceName, in GetNamespaceForApiDomain()
106 return NativeLoaderNamespace::GetSystemNamespace(is_bridged); in GetNamespaceForApiDomain()
113 Result<void> CreateNativeloaderDefaultNamespaceLibsLink(NativeLoaderNamespace& ns) in CreateNativeloaderDefaultNamespaceLibsLink()
124 Result<NativeLoaderNamespace*> GetNativeloaderExtraLibsNamespace() REQUIRES(g_namespaces_mutex) { in GetNativeloaderExtraLibsNamespace()
[all …]
Dlibrary_namespaces.cpp195 Result<NativeLoaderNamespace*> LibraryNamespaces::Create(JNIEnv* env, in Create()
321 NativeLoaderNamespace* parent_ns = FindParentNamespaceByClassLoader(env, class_loader); in Create()
332 Result<NativeLoaderNamespace> app_ns = in Create()
333 NativeLoaderNamespace::Create(namespace_name, in Create()
346 Result<NativeLoaderNamespace> system_ns = NativeLoaderNamespace::GetSystemNamespace(is_bridged); in Create()
357 Result<NativeLoaderNamespace> ns = in Create()
358 NativeLoaderNamespace::GetExportedNamespace(apex_ns_name, is_bridged); in Create()
370 Result<NativeLoaderNamespace> vndk_ns = in Create()
371 NativeLoaderNamespace::GetExportedNamespace(kVndkNamespaceName, is_bridged); in Create()
382 Result<NativeLoaderNamespace> vndk_ns = in Create()
[all …]
Dlibrary_namespaces.h80 Result<NativeLoaderNamespace*> Create(JNIEnv* env,
89 NativeLoaderNamespace* FindNamespaceByClassLoader(JNIEnv* env, jobject class_loader);
93 NativeLoaderNamespace* FindParentNamespaceByClassLoader(JNIEnv* env, jobject class_loader);
96 NativeLoaderNamespace* app_main_namespace_;
97 std::list<std::pair<jweak, NativeLoaderNamespace>> namespaces_;
Dnative_loader_lazy.cpp78 struct NativeLoaderNamespace* FindNativeLoaderNamespaceByClassLoader(JNIEnv* env, in FindNativeLoaderNamespaceByClassLoader()
84 void* OpenNativeLibraryInNamespace(struct NativeLoaderNamespace* ns, const char* path, in OpenNativeLibraryInNamespace()
Dnative_loader_api_test.cpp102 struct NativeLoaderNamespace* ns = FindNativeLoaderNamespaceByClassLoader( in TEST_F()
Dnative_loader_test.cpp520 struct NativeLoaderNamespace* ns = in RunTest()
678 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,
70 const struct NativeLoaderNamespace* ns);
/art/runtime/jni/
Djni_internal.cc2922 android::NativeLoaderNamespace* ns = in IsClassLoaderNamespaceNativelyBridged()