Lines Matching refs:c_str
115 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
117 handle_ = android_dlopen_ext(lib_path.c_str(), RTLD_NOW, &extinfo); in TEST_F()
133 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
137 ASSERT_EQ(0, OpenArchive(lib_path.c_str(), &handle)); in TEST_F()
143 handle_ = android_dlopen_ext(lib_path.c_str(), RTLD_NOW, &extinfo); in TEST_F()
156 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
200 const std::string symlink_name = basename(symlink.get_symlink_path().c_str()); in TEST()
207 void* handle2 = android_dlopen_ext(symlink_name.c_str(), RTLD_NOW, &extinfo); in TEST()
217 const std::string symlink_name = basename(symlink.get_symlink_path().c_str()); in TEST()
220 void* handle = dlopen(symlink_name.c_str(), RTLD_NOW); in TEST()
264 void* handle = dlopen((lib_path + "!/libdir/libatest_simple_zip.so").c_str(), RTLD_NOW); in TEST()
278 void* handle = dlopen((lib_path + "!/libdir/libtest_dt_runpath_d_zip.so").c_str(), RTLD_NOW); in TEST()
306 android_update_LD_LIBRARY_PATH(lib_path.c_str()); in TEST()
747 void* handle_public = dlopen(lib_public_path.c_str(), RTLD_NOW); in TEST()
750 ASSERT_TRUE(android_init_anonymous_namespace(shared_libs.c_str(), nullptr)) << dlerror(); in TEST()
754 handle_public = dlopen(lib_public_path.c_str(), RTLD_NOW | RTLD_NOLOAD); in TEST()
759 handle_public = dlopen(lib_public_path.c_str(), RTLD_NOW); in TEST()
766 (GetTestLibRoot() + "/private_namespace_libs").c_str(), in TEST()
771 ASSERT_TRUE(android_link_namespaces(ns1, nullptr, shared_libs.c_str())) << dlerror(); in TEST()
776 (GetTestLibRoot() + "/private_namespace_libs").c_str(), in TEST()
781 ASSERT_TRUE(android_link_namespaces(ns2, nullptr, shared_libs.c_str())) << dlerror(); in TEST()
794 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
803 handle_public = dlopen(lib_public_path.c_str(), RTLD_NOW | RTLD_NOLOAD); in TEST()
808 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
811 handle_public = dlopen(lib_public_path.c_str(), RTLD_NOW); in TEST()
818 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
828 handle_public = dlopen(lib_public_path.c_str(), RTLD_NOW | RTLD_NOLOAD); in TEST()
833 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
836 handle_public = dlopen(lib_public_path.c_str(), RTLD_NOW); in TEST()
923 open(GetTestLibRoot().c_str(), O_TMPFILE | O_CLOEXEC | O_RDWR | O_EXCL, 0)); in TEST()
935 GetTestLibRoot().c_str(), in TEST()
942 ASSERT_TRUE(android_link_namespaces(ns, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
979 GetTestLibRoot().c_str(), in TEST()
986 ASSERT_TRUE(android_link_namespaces(ns, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1010 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1018 ns_search_path.c_str(), in TEST()
1023 ASSERT_TRUE(android_link_namespaces(ns, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1048 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1056 public_ns_search_path.c_str(), in TEST()
1061 ASSERT_TRUE(android_link_namespaces(ns_public, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1066 private_ns_search_path.c_str(), in TEST()
1072 …ASSERT_TRUE(android_link_namespaces(ns_private, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1099 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1107 public_ns_search_path.c_str(), in TEST()
1112 ASSERT_TRUE(android_link_namespaces(ns_public, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1117 private_ns_search_path.c_str(), in TEST()
1123 …ASSERT_TRUE(android_link_namespaces(ns_private, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1148 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1156 public_ns_search_path.c_str(), in TEST()
1161 ASSERT_TRUE(android_link_namespaces(ns_public, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1166 private_ns_search_path.c_str(), in TEST()
1172 …ASSERT_TRUE(android_link_namespaces(ns_private, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1178 void* handle = android_dlopen_ext((public_ns_search_path + "/libtest_missing_symbol.so").c_str(), in TEST()
1188 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1196 public_ns_search_path.c_str(), in TEST()
1201 ASSERT_TRUE(android_link_namespaces(ns_public, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1206 private_ns_search_path.c_str(), in TEST()
1215 …ASSERT_TRUE(android_link_namespaces(ns_private, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1229 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1236 ns_search_path.c_str(), in TEST()
1241 ASSERT_TRUE(android_link_namespaces(ns, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1267 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1274 ns_search_path.c_str(), in TEST()
1279 ASSERT_TRUE(android_link_namespaces(ns, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1293 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1301 ns_search_path.c_str(), in TEST()
1306 ASSERT_TRUE(android_link_namespaces(ns1, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1311 ns_search_path.c_str(), in TEST()
1316 ASSERT_TRUE(android_link_namespaces(ns2, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1318 ASSERT_TRUE(android_link_namespaces(ns2, ns1, shared_libs.c_str())) << dlerror(); in TEST()
1319 ASSERT_TRUE(android_link_namespaces(ns1, ns2, shared_libs.c_str())) << dlerror(); in TEST()
1335 void* handle_public = dlopen(lib_public_path.c_str(), RTLD_NOW); in TEST()
1340 ASSERT_TRUE(android_init_anonymous_namespace(shared_libs.c_str(), nullptr)) << dlerror(); in TEST()
1345 (GetTestLibRoot() + "/private_namespace_libs").c_str(), in TEST()
1350 ASSERT_TRUE(android_link_namespaces(ns_not_isolated, nullptr, shared_libs.c_str())) << dlerror(); in TEST()
1355 (GetTestLibRoot() + "/private_namespace_libs").c_str(), in TEST()
1360 ASSERT_TRUE(android_link_namespaces(ns_isolated, nullptr, shared_libs.c_str())) << dlerror(); in TEST()
1364 (GetTestLibRoot() + "/private_namespace_libs").c_str(), in TEST()
1367 GetTestLibRoot().c_str(), in TEST()
1370 ASSERT_TRUE(android_link_namespaces(ns_isolated2, nullptr, shared_libs.c_str())) << dlerror(); in TEST()
1380 void* handle = dlopen(lib_private_external_path.c_str(), RTLD_NOW); in TEST()
1400 handle2 = android_dlopen_ext(lib_private_external_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1414 handle2 = android_dlopen_ext(lib_private_external_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1461 ASSERT_TRUE(android_link_namespaces(ns_parent, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1468 void* handle_public = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1473 ASSERT_TRUE(android_init_anonymous_namespace(shared_libs.c_str(), nullptr)) << dlerror(); in TEST()
1478 …_ext((GetTestLibRoot() + "/private_namespace_libs/libnstest_dlopened.so").c_str(), RTLD_NOW, &exti… in TEST()
1486 (GetTestLibRoot() + "/private_namespace_libs").c_str(), in TEST()
1492 …ASSERT_TRUE(android_link_namespaces(ns_not_isolated, nullptr, g_core_shared_libs.c_str())) << dler… in TEST()
1497 (GetTestLibRoot() + "/private_namespace_libs").c_str(), in TEST()
1503 …ASSERT_TRUE(android_link_namespaces(ns_isolated_shared, nullptr, g_core_shared_libs.c_str())) << d… in TEST()
1513 void* handle = android_dlopen_ext(lib_private_external_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1530 handle2 = android_dlopen_ext(lib_private_external_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1595 (GetTestLibRoot() + "/private_namespace_libs").c_str(), in TEST()
1597 (GetTestLibRoot() + "/public_namespace_libs").c_str(), in TEST()
1600 …ASSERT_TRUE(android_link_namespaces(ns_isolated, nullptr, g_core_shared_libs.c_str())) << dlerror(… in TEST()
1631 (GetTestLibRoot() + "/public_namespace_libs/libnstest_public.so").c_str(), in TEST()
1646 (GetTestLibRoot() + "/libtest_empty.so").c_str(), in TEST()
1657 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)) << dlerror(); in TEST()
1662 … dlopen((GetTestLibRoot() + "/private_namespace_libs/libnstest_dlopened.so").c_str(), RTLD_NOW); in TEST()
1668 (GetTestLibRoot() + "/private_namespace_libs").c_str(), in TEST()
1673 …ASSERT_TRUE(android_link_namespaces(ns_isolated_shared, nullptr, g_core_shared_libs.c_str())) << d… in TEST()
1691 … = android_dlopen_ext((GetTestLibRoot() + "/private_namespace_libs/libnstest_dlopened.so").c_str(), in TEST()
1700 handle = dlopen((GetTestLibRoot() + "/private_namespace_libs/libnstest_dlopened.so").c_str(), in TEST()
1708 void* handle_public = dlopen(lib_public_path.c_str(), RTLD_NOW); in TEST()
1719 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1726 (GetTestLibRoot() + "/private_namespace_libs").c_str(), in TEST()
1728 lib_public_path.c_str(), in TEST()
1731 ASSERT_TRUE(android_link_namespaces(ns1, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1736 (GetTestLibRoot() + "/private_namespace_libs").c_str(), in TEST()
1738 lib_public_path.c_str(), in TEST()
1741 ASSERT_TRUE(android_link_namespaces(ns2, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1747 void* handle_global = android_dlopen_ext((lib_public_path + "/" + g_public_lib).c_str(), in TEST()
1756 (GetTestLibRoot() + "/private_namespace_libs").c_str(), in TEST()
1762 ASSERT_TRUE(android_link_namespaces(ns1_child, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1801 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1806 (GetTestLibRoot() + "/private_namespace_libs").c_str(), in TEST()
1811 ASSERT_TRUE(android_link_namespaces(ns_a, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1816 GetTestLibRoot().c_str(), in TEST()
1821 ASSERT_TRUE(android_link_namespaces(ns_b, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1831 void* handle = android_dlopen_ext(library_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1836 library_path.c_str(), in TEST()
1837 android::base::GetExecutablePath().c_str()); in TEST()
1845 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1850 (GetTestLibRoot() + "/private_namespace_libs").c_str(), in TEST()
1886 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1891 (GetTestLibRoot() + "/ns_a").c_str(), in TEST()
1896 ASSERT_TRUE(android_link_namespaces(ns_a, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1901 (GetTestLibRoot() + "/ns_b").c_str(), in TEST()
1906 ASSERT_TRUE(android_link_namespaces(ns_b, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1966 void* handle_public = dlopen(lib_public_path.c_str(), RTLD_NOW); in TEST()
1971 android_init_anonymous_namespace(shared_libs.c_str(), in TEST()
1972 (GetTestLibRoot() + "/private_namespace_libs").c_str()) in TEST()
1978 (GetTestLibRoot() + "/private_namespace_libs").c_str(), in TEST()
1984 ASSERT_TRUE(android_link_namespaces(ns, nullptr, shared_libs.c_str())) << dlerror(); in TEST()
1993 void* handle = android_dlopen_ext(private_library_absolute_path.c_str(), RTLD_NOW, &extinfo); in TEST()
2051 int ret = TEMP_FAILURE_RETRY(stat(private_library_absolute_path.c_str(), &file_stat)); in TEST()
2088 eth.SetArgs({ helper.c_str(), app_ns_dir.c_str(), nullptr }); in TEST()
2092 eth.SetEnv({ env.c_str(), nullptr }); in TEST()
2094 eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, in TEST()