Searched refs:NativeLoaderNamespace (Results 1 – 11 of 11) sorted by relevance
/art/libnativeloader/ |
D | native_loader_namespace.h | 39 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 …]
|
D | native_loader_namespace.cpp | 52 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 …]
|
D | native_loader.cpp | 78 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 …]
|
D | library_namespaces.cpp | 195 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 …]
|
D | library_namespaces.h | 80 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_;
|
D | native_loader_lazy.cpp | 78 struct NativeLoaderNamespace* FindNativeLoaderNamespaceByClassLoader(JNIEnv* env, in FindNativeLoaderNamespaceByClassLoader() 84 void* OpenNativeLibraryInNamespace(struct NativeLoaderNamespace* ns, const char* path, in OpenNativeLibraryInNamespace()
|
D | native_loader_api_test.cpp | 102 struct NativeLoaderNamespace* ns = FindNativeLoaderNamespaceByClassLoader( in TEST_F()
|
D | native_loader_test.cpp | 520 struct NativeLoaderNamespace* ns = in RunTest() 678 struct NativeLoaderNamespace* ns = FindNativeLoaderNamespaceByClassLoader( in TEST_P()
|
D | README.md | 76 `native_loader_namespace.cpp` implements the class `NativeLoaderNamespace` that
|
/art/libnativeloader/include/nativeloader/ |
D | native_loader.h | 60 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/ |
D | jni_internal.cc | 2922 android::NativeLoaderNamespace* ns = in IsClassLoaderNamespaceNativelyBridged()
|