/system/linkerconfig/contents/namespace/ |
D | sphal.cc | 37 Namespace ns("sphal", in BuildSphalNamespace() local 40 ns.AddSearchPath("/odm/${LIB}"); in BuildSphalNamespace() 41 ns.AddSearchPath("/vendor/${LIB}"); in BuildSphalNamespace() 42 ns.AddSearchPath("/vendor/${LIB}/hw"); in BuildSphalNamespace() 44 ns.AddPermittedPath("/odm/${LIB}"); in BuildSphalNamespace() 45 ns.AddPermittedPath("/vendor/${LIB}"); in BuildSphalNamespace() 46 ns.AddPermittedPath("/system/vendor/${LIB}"); in BuildSphalNamespace() 51 ns.AddSearchPath("/system/${LIB}"); in BuildSphalNamespace() 52 ns.AddPermittedPath("/system/${LIB}"); in BuildSphalNamespace() 57 ns.GetLink("vndk").AddSharedLib( in BuildSphalNamespace() [all …]
|
D | rs.cc | 30 Namespace ns( in BuildRsNamespace() local 33 ns.AddSearchPath("/odm/${LIB}/vndk-sp"); in BuildRsNamespace() 34 ns.AddSearchPath("/vendor/${LIB}/vndk-sp"); in BuildRsNamespace() 35 ns.AddSearchPath("/apex/com.android.vndk.v" + Var("VENDOR_VNDK_VERSION") + in BuildRsNamespace() 37 ns.AddSearchPath("/odm/${LIB}"); in BuildRsNamespace() 38 ns.AddSearchPath("/vendor/${LIB}"); in BuildRsNamespace() 40 ns.AddPermittedPath("/odm/${LIB}"); in BuildRsNamespace() 41 ns.AddPermittedPath("/vendor/${LIB}"); in BuildRsNamespace() 42 ns.AddPermittedPath("/system/vendor/${LIB}"); in BuildRsNamespace() 43 ns.AddPermittedPath("/data"); in BuildRsNamespace() [all …]
|
D | vndk.cc | 48 Namespace ns(name, in BuildVndkNamespace() local 65 ns.AddSearchPath(lib_path + "vndk-sp"); in BuildVndkNamespace() 67 ns.AddSearchPath(lib_path + "vndk"); in BuildVndkNamespace() 70 ns.AddSearchPath("/apex/com.android.vndk.v" + vndk_version + "/${LIB}"); in BuildVndkNamespace() 75 ns.AddPermittedPath("/odm/${LIB}/hw"); in BuildVndkNamespace() 76 ns.AddPermittedPath("/odm/${LIB}/egl"); in BuildVndkNamespace() 77 ns.AddPermittedPath("/vendor/${LIB}/hw"); in BuildVndkNamespace() 78 ns.AddPermittedPath("/vendor/${LIB}/egl"); in BuildVndkNamespace() 79 ns.AddPermittedPath("/system/vendor/${LIB}/hw"); in BuildVndkNamespace() 80 ns.AddPermittedPath("/system/vendor/${LIB}/egl"); in BuildVndkNamespace() [all …]
|
D | vendordefault.cc | 32 Namespace ns("default", /*is_isolated=*/true, /*is_visible=*/true); in BuildVendorDefaultNamespace() local 34 ns.AddSearchPath("/odm/${LIB}"); in BuildVendorDefaultNamespace() 35 ns.AddSearchPath("/vendor/${LIB}"); in BuildVendorDefaultNamespace() 38 ns.AddSearchPath("/vendor/${LIB}/hw"); in BuildVendorDefaultNamespace() 39 ns.AddSearchPath("/vendor/${LIB}/egl"); in BuildVendorDefaultNamespace() 42 ns.AddPermittedPath("/odm"); in BuildVendorDefaultNamespace() 43 ns.AddPermittedPath("/vendor"); in BuildVendorDefaultNamespace() 44 ns.AddPermittedPath("/system/vendor"); in BuildVendorDefaultNamespace() 46 ns.GetLink(ctx.GetSystemNamespaceName()) in BuildVendorDefaultNamespace() 49 ns.GetLink("vndk").AddSharedLib({Var("VNDK_SAMEPROCESS_LIBRARIES_VENDOR"), in BuildVendorDefaultNamespace() [all …]
|
D | unrestricteddefault.cc | 29 Namespace ns("default", /*is_isolated=*/false, /*is_visible=*/true); in BuildUnrestrictedDefaultNamespace() local 31 ns.AddSearchPath("/system/${LIB}"); in BuildUnrestrictedDefaultNamespace() 32 ns.AddSearchPath(Var("SYSTEM_EXT") + "/${LIB}"); in BuildUnrestrictedDefaultNamespace() 33 ns.AddSearchPath("/odm/${LIB}"); in BuildUnrestrictedDefaultNamespace() 34 ns.AddSearchPath("/vendor/${LIB}"); in BuildUnrestrictedDefaultNamespace() 35 ns.AddSearchPath(Var("PRODUCT") + "/${LIB}"); in BuildUnrestrictedDefaultNamespace() 37 ns.AddRequires(std::vector{ in BuildUnrestrictedDefaultNamespace() 60 ns.AddProvides(GetSystemStubLibraries()); in BuildUnrestrictedDefaultNamespace() 61 return ns; in BuildUnrestrictedDefaultNamespace()
|
D | systemdefault.cc | 38 Namespace ns("default", in BuildSystemDefaultNamespace() local 42 ns.AddSearchPath("/system/${LIB}"); in BuildSystemDefaultNamespace() 43 ns.AddSearchPath(system_ext + "/${LIB}"); in BuildSystemDefaultNamespace() 47 ns.AddSearchPath(product + "/${LIB}"); in BuildSystemDefaultNamespace() 50 ns.AddSearchPath("/vendor/${LIB}"); in BuildSystemDefaultNamespace() 51 ns.AddSearchPath("/odm/${LIB}"); in BuildSystemDefaultNamespace() 96 ns.AddPermittedPath(path); in BuildSystemDefaultNamespace() 100 ns.AddPermittedPath(product + "/${LIB}"); in BuildSystemDefaultNamespace() 104 ns.AddRequires(std::vector{ in BuildSystemDefaultNamespace() 131 ns.AddProvides(GetSystemStubLibraries()); in BuildSystemDefaultNamespace() [all …]
|
D | vndkinsystem.cc | 39 Namespace ns("vndk_in_system", /*is_isolated=*/true, in BuildVndkInSystemNamespace() local 43 ns.AddSearchPath("/system/${LIB}"); in BuildVndkInSystemNamespace() 44 ns.AddSearchPath(Var("SYSTEM_EXT") + "/${LIB}"); in BuildVndkInSystemNamespace() 46 ns.AddSearchPath(Var("PRODUCT") + "/${LIB}"); in BuildVndkInSystemNamespace() 50 ns.AddWhitelisted(Var("VNDK_USING_CORE_VARIANT_LIBRARIES")); in BuildVndkInSystemNamespace() 59 ns.GetLink(ctx.GetSystemNamespaceName()) in BuildVndkInSystemNamespace() 62 ns.GetLink(ctx.GetSystemNamespaceName()) in BuildVndkInSystemNamespace() 65 ns.GetLink("vndk").AllowAllSharedLibs(); in BuildVndkInSystemNamespace() 66 ns.AddRequires(std::vector{"libneuralnetworks.so"}); in BuildVndkInSystemNamespace() 68 return ns; in BuildVndkInSystemNamespace()
|
D | apexplatform.cc | 60 Namespace ns("system", /*is_isolated=*/true, /*is_visible=*/true); in BuildApexPlatformNamespace() local 62 ns.AddSearchPath("/system/${LIB}"); in BuildApexPlatformNamespace() 63 ns.AddSearchPath(Var("SYSTEM_EXT") + "/${LIB}"); in BuildApexPlatformNamespace() 65 ns.AddSearchPath(Var("PRODUCT") + "/${LIB}"); in BuildApexPlatformNamespace() 67 ns.AddPermittedPath("/apex/com.android.runtime/${LIB}/bionic"); in BuildApexPlatformNamespace() 69 ns.AddProvides(GetSystemStubLibraries()); in BuildApexPlatformNamespace() 70 ns.AddRequires(required_libs); in BuildApexPlatformNamespace() 72 return ns; in BuildApexPlatformNamespace()
|
D | productdefault.cc | 29 Namespace ns("default", /*is_isolated=*/true, /*is_visible=*/true); in BuildProductDefaultNamespace() local 31 ns.AddSearchPath(Var("PRODUCT", "product") + "/${LIB}"); in BuildProductDefaultNamespace() 32 ns.AddPermittedPath(Var("PRODUCT", "product")); in BuildProductDefaultNamespace() 34 ns.GetLink(ctx.GetSystemNamespaceName()) in BuildProductDefaultNamespace() 37 ns.GetLink("vndk").AddSharedLib({Var("VNDK_SAMEPROCESS_LIBRARIES_PRODUCT"), in BuildProductDefaultNamespace() 40 ns.GetLink("vndk_in_system") in BuildProductDefaultNamespace() 43 ns.AddRequires(std::vector{ in BuildProductDefaultNamespace() 46 return ns; in BuildProductDefaultNamespace()
|
D | system.cc | 31 Namespace ns("system", /*is_isolated=*/false, /*is_visible=*/false); in BuildSystemNamespace() local 32 ns.AddSearchPath("/system/${LIB}"); in BuildSystemNamespace() 33 ns.AddSearchPath(Var("SYSTEM_EXT") + "/${LIB}"); in BuildSystemNamespace() 35 ns.AddSearchPath(Var("PRODUCT") + "/${LIB}"); in BuildSystemNamespace() 38 ns.AddRequires(std::vector{"libdexfile_external.so", in BuildSystemNamespace() 49 ns.AddProvides(GetSystemStubLibraries()); in BuildSystemNamespace() 50 return ns; in BuildSystemNamespace()
|
D | apexdefault.cc | 30 Namespace ns("default", /*is_isolated=*/true, /*is_visible=*/false); in BuildApexDefaultNamespace() local 32 ns.AddSearchPath(apex_info.path + "/${LIB}"); in BuildApexDefaultNamespace() 33 ns.AddPermittedPath(apex_info.path + "/${LIB}"); in BuildApexDefaultNamespace() 34 ns.AddPermittedPath("/system/${LIB}"); in BuildApexDefaultNamespace() 36 ns.AddRequires(apex_info.require_libs); in BuildApexDefaultNamespace() 37 ns.AddProvides(apex_info.provide_libs); in BuildApexDefaultNamespace() 39 return ns; in BuildApexDefaultNamespace()
|
D | art.cc | 34 Namespace ns(apex.namespace_name, in BuildArtNamespace() local 37 InitializeWithApex(ns, apex); in BuildArtNamespace() 44 ns.AddPermittedPath("/data"); in BuildArtNamespace() 48 ns.AddPermittedPath("/system/framework"); in BuildArtNamespace() 53 ns.AddPermittedPath("/apex/com.android.art/javalib"); in BuildArtNamespace() 59 ns.GetLink(ctx.GetSystemNamespaceName()).AllowAllSharedLibs(); in BuildArtNamespace() 61 return ns; in BuildArtNamespace()
|
D | postinstall.cc | 25 Namespace ns("default", /*is_isolated=*/false, in BuildPostInstallNamespace() local 27 ns.AddSearchPath("/system/${LIB}"); in BuildPostInstallNamespace() 28 ns.AddSearchPath(Var("SYSTEM_EXT") + "/${LIB}"); in BuildPostInstallNamespace() 29 ns.AddSearchPath(Var("PRODUCT") + "/${LIB}"); in BuildPostInstallNamespace() 31 return ns; in BuildPostInstallNamespace()
|
D | apexartdefault.cc | 26 Namespace ns("default", /*is_isolated=*/true, /*is_visible=*/false); in BuildApexArtDefaultNamespace() local 31 ns.GetLink("com_android_art").AllowAllSharedLibs(); in BuildApexArtDefaultNamespace() 32 ns.GetLink("system").AllowAllSharedLibs(); in BuildApexArtDefaultNamespace() 33 ns.AddRequires(std::vector{"libadbconnection_client.so"}); in BuildApexArtDefaultNamespace() 35 return ns; in BuildApexArtDefaultNamespace()
|
D | recoverydefault.cc | 27 Namespace ns("default"); in BuildRecoveryDefaultNamespace() local 29 ns.AddSearchPath("/system/${LIB}"); in BuildRecoveryDefaultNamespace() 31 return ns; in BuildRecoveryDefaultNamespace()
|
D | isolateddefault.cc | 28 Namespace ns("default", /*is_isolated=*/true, /*is_visible=*/false); in BuildIsolatedDefaultNamespace() local 30 ns.GetLink(ctx.GetSystemNamespaceName()).AllowAllSharedLibs(); in BuildIsolatedDefaultNamespace() 32 return ns; in BuildIsolatedDefaultNamespace()
|
/system/linkerconfig/modules/ |
D | section.cc | 49 for (const auto& ns : namespaces_) { in WriteConfig() local 50 if (ns.GetName() != "default") { in WriteConfig() 51 additional_namespaces.push_back(ns.GetName()); in WriteConfig() 58 for (auto& ns : namespaces_) { in WriteConfig() local 59 ns.WriteConfig(writer); in WriteConfig() 75 for (auto& ns : namespaces_) { in Resolve() local 76 for (const auto& lib : ns.GetProvides()) { in Resolve() 81 ns.GetName(), in Resolve() 84 providers[lib] = ns.GetName(); in Resolve() 98 for (auto& ns : namespaces_) { in Resolve() local [all …]
|
D | namespace.cc | 32 void InitializeWithApex(Namespace& ns, const ApexInfo& apex_info) { in InitializeWithApex() argument 33 ns.AddSearchPath(apex_info.path + "/${LIB}"); in InitializeWithApex() 34 ns.AddPermittedPath(apex_info.path + "/${LIB}"); in InitializeWithApex() 35 ns.AddPermittedPath("/system/${LIB}"); in InitializeWithApex() 36 ns.AddProvides(apex_info.provide_libs); in InitializeWithApex() 37 ns.AddRequires(apex_info.require_libs); in InitializeWithApex()
|
/system/linkerconfig/modules/tests/ |
D | modules_testbase.h | 24 Namespace ns(name, is_isolated, is_visible); in CreateNamespaceWithPaths() 25 ns.AddSearchPath("/search_path1"); in CreateNamespaceWithPaths() 26 ns.AddSearchPath("/apex/search_path2"); in CreateNamespaceWithPaths() 27 ns.AddPermittedPath("/permitted_path1"); in CreateNamespaceWithPaths() 28 ns.AddPermittedPath("/apex/permitted_path2"); in CreateNamespaceWithPaths() 30 return ns; in CreateNamespaceWithPaths() 36 Namespace ns = CreateNamespaceWithPaths(name, is_isolated, is_visible); in CreateNamespaceWithLinks() local 37 auto& link = ns.GetLink(target_1); in CreateNamespaceWithLinks() 40 ns.GetLink(target_2).AllowAllSharedLibs(); in CreateNamespaceWithLinks() 41 return ns; in CreateNamespaceWithLinks()
|
D | namespace_test.cc | 84 auto ns = CreateNamespaceWithPaths("test_namespace", false, false); in TEST() local 85 ns.WriteConfig(writer); in TEST() 94 auto ns = CreateNamespaceWithLinks("test_namespace", true, true, in TEST() local 96 ns.WriteConfig(writer); in TEST() 104 auto ns = CreateNamespaceWithPaths("test_namespace", false, false); in TEST() local 105 ns.AddWhitelisted("whitelisted_path1"); in TEST() 106 ns.AddWhitelisted("whitelisted_path2"); in TEST() 107 ns.WriteConfig(writer); in TEST() 117 Namespace ns("test_namespace"); in TEST() local 119 ns.GetLink(link); in TEST() [all …]
|
/system/linkerconfig/contents/tests/configuration/include/ |
D | configurationtest.h | 25 inline void TraverseLink(const Namespace& ns, std::unordered_set<std::string>& visible_ns) { in TraverseLink() argument 26 if (visible_ns.count(ns.name) != 0) { in TraverseLink() 30 visible_ns.insert(ns.name); in TraverseLink() 32 for (auto& [_, link] : ns.links) { in TraverseLink() 39 for (auto& [_, ns] : section.namespaces) { in ValidateAllNamespacesAreVisible() 40 if (ns.name == "default" || ns.is_visible) { in ValidateAllNamespacesAreVisible() 41 TraverseLink(ns, visible_ns); in ValidateAllNamespacesAreVisible() 45 for (auto& [_, ns] : section.namespaces) { in ValidateAllNamespacesAreVisible() 46 EXPECT_EQ(1u, visible_ns.count(ns.name)) in ValidateAllNamespacesAreVisible() 47 << "Namespace " << ns.name << " is not visible from section " << section.name; in ValidateAllNamespacesAreVisible()
|
/system/linkerconfig/contents/common/ |
D | system_links.cc | 48 section->ForEachNamespaces([&](Namespace& ns) { in AddStandardSystemLinks() argument 49 if (ns.GetName() != system_ns_name) { in AddStandardSystemLinks() 50 ns.GetLink(system_ns_name).AddSharedLib(kBionicLibs); in AddStandardSystemLinks() 51 if (!is_section_vndk_enabled || ns.GetName() != "default") { in AddStandardSystemLinks() 52 ns.GetLink(system_ns_name) in AddStandardSystemLinks() 57 ns.GetLink(system_ns_name).AddSharedLib("libfdtrack.so"); in AddStandardSystemLinks()
|
/system/linkerconfig/contents/tests/backward_compatibility/ |
D | testbase.h | 68 const android::linkerconfig::modules::Namespace* ns, in ContainsSearchPath() argument 70 if (!ContainsPath(ns->SearchPaths(), path)) { in ContainsSearchPath() 74 auto asan_search_path = ns->AsanSearchPaths(); in ContainsSearchPath() 89 const android::linkerconfig::modules::Namespace* ns, in ContainsPermittedPath() argument 91 if (!ContainsPath(ns->PermittedPaths(), path)) { in ContainsPermittedPath() 95 auto asan_search_path = ns->AsanPermittedPaths(); in ContainsPermittedPath()
|
/system/media/audio_utils/include/audio_utils/ |
D | clock.h | 54 static inline void audio_utils_ns_to_string(int64_t ns, char *buffer, size_t buffer_size) in audio_utils_ns_to_string() argument 59 const time_t sec = ns / one_second; in audio_utils_ns_to_string() 71 (int)(ns % one_second / 1000000)) < 0) { in audio_utils_ns_to_string() 91 static inline audio_utils_time_string_t audio_utils_time_string_from_ns(int64_t ns) in audio_utils_time_string_from_ns() argument 95 audio_utils_ns_to_string(ns, ts.time, sizeof(ts.time)); in audio_utils_time_string_from_ns()
|
/system/update_engine/common/ |
D | prefs.cc | 115 bool PrefsBase::GetSubKeys(const string& ns, vector<string>* keys) const { in GetSubKeys() argument 116 return storage_->GetSubKeys(ns, keys); in GetSubKeys() 157 bool Prefs::FileStorage::GetSubKeys(const string& ns, in GetSubKeys() argument 160 TEST_AND_RETURN_FALSE(GetFileNameForKey(ns, &filename)); in GetSubKeys() 223 bool MemoryPrefs::MemoryStorage::GetSubKeys(const string& ns, in GetSubKeys() argument 227 auto lower_comp = [](const value_type& pr, const key_type& ns) { in GetSubKeys() argument 228 return pr.first.substr(0, ns.length()) < ns; in GetSubKeys() 230 auto upper_comp = [](const key_type& ns, const value_type& pr) { in GetSubKeys() argument 231 return ns < pr.first.substr(0, ns.length()); in GetSubKeys() 234 std::lower_bound(begin(values_), end(values_), ns, lower_comp); in GetSubKeys() [all …]
|