Lines Matching refs:c_str
113 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
115 handle_ = android_dlopen_ext(lib_path.c_str(), RTLD_NOW, &extinfo); in TEST_F()
131 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
135 ASSERT_EQ(0, OpenArchive(lib_path.c_str(), &handle)); in TEST_F()
141 handle_ = android_dlopen_ext(lib_path.c_str(), RTLD_NOW, &extinfo); in TEST_F()
154 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
198 const std::string symlink_name = basename(symlink.get_symlink_path().c_str()); in TEST()
205 void* handle2 = android_dlopen_ext(symlink_name.c_str(), RTLD_NOW, &extinfo); in TEST()
215 const std::string symlink_name = basename(symlink.get_symlink_path().c_str()); in TEST()
218 void* handle = dlopen(symlink_name.c_str(), RTLD_NOW); in TEST()
262 void* handle = dlopen((lib_path + "!/libdir/libatest_simple_zip.so").c_str(), RTLD_NOW); in TEST()
276 void* handle = dlopen((lib_path + "!/libdir/libtest_dt_runpath_d_zip.so").c_str(), RTLD_NOW); in TEST()
304 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()
982 GetTestlibRoot().c_str(), in TEST()
989 ASSERT_TRUE(android_link_namespaces(ns, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1013 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1021 ns_search_path.c_str(), in TEST()
1026 ASSERT_TRUE(android_link_namespaces(ns, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1051 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1059 public_ns_search_path.c_str(), in TEST()
1064 ASSERT_TRUE(android_link_namespaces(ns_public, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1069 private_ns_search_path.c_str(), in TEST()
1075 …ASSERT_TRUE(android_link_namespaces(ns_private, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1102 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1110 public_ns_search_path.c_str(), in TEST()
1115 ASSERT_TRUE(android_link_namespaces(ns_public, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1120 private_ns_search_path.c_str(), in TEST()
1126 …ASSERT_TRUE(android_link_namespaces(ns_private, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1151 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1159 public_ns_search_path.c_str(), in TEST()
1164 ASSERT_TRUE(android_link_namespaces(ns_public, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1169 private_ns_search_path.c_str(), in TEST()
1175 …ASSERT_TRUE(android_link_namespaces(ns_private, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1181 void* handle = android_dlopen_ext((public_ns_search_path + "/libtest_missing_symbol.so").c_str(), in TEST()
1191 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1199 public_ns_search_path.c_str(), in TEST()
1204 ASSERT_TRUE(android_link_namespaces(ns_public, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1209 private_ns_search_path.c_str(), in TEST()
1218 …ASSERT_TRUE(android_link_namespaces(ns_private, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1232 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1239 ns_search_path.c_str(), in TEST()
1244 ASSERT_TRUE(android_link_namespaces(ns, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1270 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1277 ns_search_path.c_str(), in TEST()
1282 ASSERT_TRUE(android_link_namespaces(ns, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1296 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1304 ns_search_path.c_str(), in TEST()
1309 ASSERT_TRUE(android_link_namespaces(ns1, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1314 ns_search_path.c_str(), in TEST()
1319 ASSERT_TRUE(android_link_namespaces(ns2, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1321 ASSERT_TRUE(android_link_namespaces(ns2, ns1, shared_libs.c_str())) << dlerror(); in TEST()
1322 ASSERT_TRUE(android_link_namespaces(ns1, ns2, shared_libs.c_str())) << dlerror(); in TEST()
1338 void* handle_public = dlopen(lib_public_path.c_str(), RTLD_NOW); in TEST()
1343 ASSERT_TRUE(android_init_anonymous_namespace(shared_libs.c_str(), nullptr)) << dlerror(); in TEST()
1348 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1353 ASSERT_TRUE(android_link_namespaces(ns_not_isolated, nullptr, shared_libs.c_str())) << dlerror(); in TEST()
1358 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1363 ASSERT_TRUE(android_link_namespaces(ns_isolated, nullptr, shared_libs.c_str())) << dlerror(); in TEST()
1367 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1370 GetTestlibRoot().c_str(), in TEST()
1373 ASSERT_TRUE(android_link_namespaces(ns_isolated2, nullptr, shared_libs.c_str())) << dlerror(); in TEST()
1383 void* handle = dlopen(lib_private_external_path.c_str(), RTLD_NOW); in TEST()
1403 handle2 = android_dlopen_ext(lib_private_external_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1417 handle2 = android_dlopen_ext(lib_private_external_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1464 ASSERT_TRUE(android_link_namespaces(ns_parent, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1471 void* handle_public = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1476 ASSERT_TRUE(android_init_anonymous_namespace(shared_libs.c_str(), nullptr)) << dlerror(); in TEST()
1481 …_ext((GetTestlibRoot() + "/private_namespace_libs/libnstest_dlopened.so").c_str(), RTLD_NOW, &exti… in TEST()
1489 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1495 …ASSERT_TRUE(android_link_namespaces(ns_not_isolated, nullptr, g_core_shared_libs.c_str())) << dler… in TEST()
1500 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1506 …ASSERT_TRUE(android_link_namespaces(ns_isolated_shared, nullptr, g_core_shared_libs.c_str())) << d… in TEST()
1516 void* handle = android_dlopen_ext(lib_private_external_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1533 handle2 = android_dlopen_ext(lib_private_external_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1598 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1600 (GetTestlibRoot() + "/public_namespace_libs").c_str(), in TEST()
1603 …ASSERT_TRUE(android_link_namespaces(ns_isolated, nullptr, g_core_shared_libs.c_str())) << dlerror(… in TEST()
1634 (GetTestlibRoot() + "/public_namespace_libs/libnstest_public.so").c_str(), in TEST()
1649 (GetTestlibRoot() + "/libtest_empty.so").c_str(), in TEST()
1660 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)) << dlerror(); in TEST()
1665 … dlopen((GetTestlibRoot() + "/private_namespace_libs/libnstest_dlopened.so").c_str(), RTLD_NOW); in TEST()
1671 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1676 …ASSERT_TRUE(android_link_namespaces(ns_isolated_shared, nullptr, g_core_shared_libs.c_str())) << d… in TEST()
1694 … = android_dlopen_ext((GetTestlibRoot() + "/private_namespace_libs/libnstest_dlopened.so").c_str(), in TEST()
1703 handle = dlopen((GetTestlibRoot() + "/private_namespace_libs/libnstest_dlopened.so").c_str(), in TEST()
1711 void* handle_public = dlopen(lib_public_path.c_str(), RTLD_NOW); in TEST()
1722 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1729 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1731 lib_public_path.c_str(), in TEST()
1734 ASSERT_TRUE(android_link_namespaces(ns1, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1739 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1741 lib_public_path.c_str(), in TEST()
1744 ASSERT_TRUE(android_link_namespaces(ns2, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1750 void* handle_global = android_dlopen_ext((lib_public_path + "/" + g_public_lib).c_str(), in TEST()
1759 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1765 ASSERT_TRUE(android_link_namespaces(ns1_child, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1804 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1809 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1814 ASSERT_TRUE(android_link_namespaces(ns_a, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1819 GetTestlibRoot().c_str(), in TEST()
1824 ASSERT_TRUE(android_link_namespaces(ns_b, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1834 void* handle = android_dlopen_ext(library_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1839 library_path.c_str(), in TEST()
1840 android::base::GetExecutablePath().c_str()); in TEST()
1848 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1853 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1889 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1894 (GetTestlibRoot() + "/ns_a").c_str(), in TEST()
1899 ASSERT_TRUE(android_link_namespaces(ns_a, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1904 (GetTestlibRoot() + "/ns_b").c_str(), in TEST()
1909 ASSERT_TRUE(android_link_namespaces(ns_b, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1969 void* handle_public = dlopen(lib_public_path.c_str(), RTLD_NOW); in TEST()
1974 android_init_anonymous_namespace(shared_libs.c_str(), in TEST()
1975 (GetTestlibRoot() + "/private_namespace_libs").c_str()) in TEST()
1981 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1987 ASSERT_TRUE(android_link_namespaces(ns, nullptr, shared_libs.c_str())) << dlerror(); in TEST()
1996 void* handle = android_dlopen_ext(private_library_absolute_path.c_str(), RTLD_NOW, &extinfo); in TEST()
2081 chmod(helper.c_str(), 0755); // TODO: "x" lost in CTS, b/34945607 in TEST()
2083 eth.SetArgs({ helper.c_str(), app_ns_dir.c_str(), nullptr }); in TEST()
2087 eth.SetEnv({ env.c_str(), nullptr }); in TEST()
2089 eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, in TEST()