Searched refs:NativeLoaderNamespace (Results 1 – 9 of 9) 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 58 Result<void> Link(const NativeLoaderNamespace& target, const std::string& shared_libs) const; argument 61 static Result<NativeLoaderNamespace> GetExportedNamespace(const std::string& name, 63 static Result<NativeLoaderNamespace> GetSystemNamespace(bool is_bridged); 66 explicit NativeLoaderNamespace(const std::string& name, android_namespace_t* ns) in NativeLoaderNamespace() function [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() 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_greylist_enabled, in Create() 103 const NativeLoaderNamespace& effective_parent = parent != nullptr ? *parent : *system_ns; in Create() 128 return NativeLoaderNamespace(name, raw); in Create() [all …]
|
D | library_namespaces.h | 56 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_;
|
D | library_namespaces.cpp | 173 Result<NativeLoaderNamespace*> LibraryNamespaces::Create(JNIEnv* env, uint32_t target_sdk_version, in Create() 287 NativeLoaderNamespace* parent_ns = FindParentNamespaceByClassLoader(env, class_loader); in Create() 298 auto app_ns = NativeLoaderNamespace::Create( in Create() 307 auto system_ns = NativeLoaderNamespace::GetSystemNamespace(is_bridged); in Create() 317 auto art_ns = NativeLoaderNamespace::GetExportedNamespace(kArtNamespaceName, is_bridged); in Create() 326 auto i18n_ns = NativeLoaderNamespace::GetExportedNamespace(kI18nNamespaceName, is_bridged); in Create() 337 NativeLoaderNamespace::GetExportedNamespace(kNeuralNetworksNamespaceName, is_bridged); in Create() 347 auto vndk_ns = NativeLoaderNamespace::GetExportedNamespace(kVndkNamespaceName, is_bridged); in Create() 358 … auto vndk_ns = NativeLoaderNamespace::GetExportedNamespace(kVndkProductNamespaceName, is_bridged); in Create() 371 auto apex_ns = NativeLoaderNamespace::GetExportedNamespace(*apex_ns_name, is_bridged); in Create() [all …]
|
D | native_loader.cpp | 124 NativeLoaderNamespace* ns; in OpenNativeLibrary() 129 Result<NativeLoaderNamespace*> isolated_ns = in OpenNativeLibrary() 213 void* OpenNativeLibraryInNamespace(NativeLoaderNamespace* ns, const char* path, in OpenNativeLibraryInNamespace() 230 NativeLoaderNamespace* ns = g_namespaces->FindNamespaceByClassLoader(env, class_loader); in FindNamespaceByClassLoader() 237 NativeLoaderNamespace* FindNativeLoaderNamespaceByClassLoader(JNIEnv* env, jobject class_loader) { in FindNativeLoaderNamespaceByClassLoader()
|
D | native_loader_lazy.cpp | 83 struct NativeLoaderNamespace* FindNativeLoaderNamespaceByClassLoader(JNIEnv* env, in FindNativeLoaderNamespaceByClassLoader() 89 void* OpenNativeLibraryInNamespace(struct NativeLoaderNamespace* ns, const char* path, in OpenNativeLibraryInNamespace()
|
D | native_loader_test.cpp | 453 struct NativeLoaderNamespace* ns = in RunTest() 594 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,
|