• Home
  • Raw
  • Download

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()
144 handle_ = android_dlopen_ext(lib_path.c_str(), RTLD_NOW, &extinfo); in TEST_F()
157 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
201 const std::string symlink_name = basename(symlink.get_symlink_path().c_str()); in TEST()
208 void* handle2 = android_dlopen_ext(symlink_name.c_str(), RTLD_NOW, &extinfo); in TEST()
218 const std::string symlink_name = basename(symlink.get_symlink_path().c_str()); in TEST()
221 void* handle = dlopen(symlink_name.c_str(), RTLD_NOW); in TEST()
247 void* handle = dlopen((lib_path + "!/libdir/libatest_simple_zip.so").c_str(), RTLD_NOW); in TEST()
261 void* handle = dlopen((lib_path + "!/libdir/libtest_dt_runpath_d_zip.so").c_str(), RTLD_NOW); in TEST()
289 android_update_LD_LIBRARY_PATH(lib_path.c_str()); in TEST()
728 void* handle_public = dlopen(lib_public_path.c_str(), RTLD_NOW); in TEST()
731 ASSERT_TRUE(android_init_anonymous_namespace(shared_libs.c_str(), nullptr)) << dlerror(); in TEST()
735 handle_public = dlopen(lib_public_path.c_str(), RTLD_NOW | RTLD_NOLOAD); in TEST()
740 handle_public = dlopen(lib_public_path.c_str(), RTLD_NOW); in TEST()
747 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
752 ASSERT_TRUE(android_link_namespaces(ns1, nullptr, shared_libs.c_str())) << dlerror(); in TEST()
757 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
762 ASSERT_TRUE(android_link_namespaces(ns2, nullptr, shared_libs.c_str())) << dlerror(); in TEST()
775 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
784 handle_public = dlopen(lib_public_path.c_str(), RTLD_NOW | RTLD_NOLOAD); in TEST()
789 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
792 handle_public = dlopen(lib_public_path.c_str(), RTLD_NOW); in TEST()
799 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
809 handle_public = dlopen(lib_public_path.c_str(), RTLD_NOW | RTLD_NOLOAD); in TEST()
814 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
817 handle_public = dlopen(lib_public_path.c_str(), RTLD_NOW); in TEST()
904 open(GetTestlibRoot().c_str(), O_TMPFILE | O_CLOEXEC | O_RDWR | O_EXCL, 0)); in TEST()
916 GetTestlibRoot().c_str(), in TEST()
923 ASSERT_TRUE(android_link_namespaces(ns, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
963 GetTestlibRoot().c_str(), in TEST()
970 ASSERT_TRUE(android_link_namespaces(ns, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
994 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1002 ns_search_path.c_str(), in TEST()
1007 ASSERT_TRUE(android_link_namespaces(ns, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1032 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1040 public_ns_search_path.c_str(), in TEST()
1045 ASSERT_TRUE(android_link_namespaces(ns_public, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1050 private_ns_search_path.c_str(), in TEST()
1056 …ASSERT_TRUE(android_link_namespaces(ns_private, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1083 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1091 public_ns_search_path.c_str(), in TEST()
1096 ASSERT_TRUE(android_link_namespaces(ns_public, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1101 private_ns_search_path.c_str(), in TEST()
1107 …ASSERT_TRUE(android_link_namespaces(ns_private, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1132 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1140 public_ns_search_path.c_str(), in TEST()
1145 ASSERT_TRUE(android_link_namespaces(ns_public, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1150 private_ns_search_path.c_str(), in TEST()
1156 …ASSERT_TRUE(android_link_namespaces(ns_private, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1162 void* handle = android_dlopen_ext((public_ns_search_path + "/libtest_missing_symbol.so").c_str(), in TEST()
1172 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1180 public_ns_search_path.c_str(), in TEST()
1185 ASSERT_TRUE(android_link_namespaces(ns_public, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1190 private_ns_search_path.c_str(), in TEST()
1199 …ASSERT_TRUE(android_link_namespaces(ns_private, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1213 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1220 ns_search_path.c_str(), in TEST()
1225 ASSERT_TRUE(android_link_namespaces(ns, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1251 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1258 ns_search_path.c_str(), in TEST()
1263 ASSERT_TRUE(android_link_namespaces(ns, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1277 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1285 ns_search_path.c_str(), in TEST()
1290 ASSERT_TRUE(android_link_namespaces(ns1, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1295 ns_search_path.c_str(), in TEST()
1300 ASSERT_TRUE(android_link_namespaces(ns2, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1302 ASSERT_TRUE(android_link_namespaces(ns2, ns1, shared_libs.c_str())) << dlerror(); in TEST()
1303 ASSERT_TRUE(android_link_namespaces(ns1, ns2, shared_libs.c_str())) << dlerror(); in TEST()
1319 void* handle_public = dlopen(lib_public_path.c_str(), RTLD_NOW); in TEST()
1324 ASSERT_TRUE(android_init_anonymous_namespace(shared_libs.c_str(), nullptr)) << dlerror(); in TEST()
1329 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1334 ASSERT_TRUE(android_link_namespaces(ns_not_isolated, nullptr, shared_libs.c_str())) << dlerror(); in TEST()
1339 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1344 ASSERT_TRUE(android_link_namespaces(ns_isolated, nullptr, shared_libs.c_str())) << dlerror(); in TEST()
1348 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1351 GetTestlibRoot().c_str(), in TEST()
1354 ASSERT_TRUE(android_link_namespaces(ns_isolated2, nullptr, shared_libs.c_str())) << dlerror(); in TEST()
1364 void* handle = dlopen(lib_private_external_path.c_str(), RTLD_NOW); in TEST()
1381 handle2 = android_dlopen_ext(lib_private_external_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1395 handle2 = android_dlopen_ext(lib_private_external_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1442 ASSERT_TRUE(android_link_namespaces(ns_parent, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1449 void* handle_public = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1454 ASSERT_TRUE(android_init_anonymous_namespace(shared_libs.c_str(), nullptr)) << dlerror(); in TEST()
1459 …_ext((GetTestlibRoot() + "/private_namespace_libs/libnstest_dlopened.so").c_str(), RTLD_NOW, &exti… in TEST()
1467 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1473 …ASSERT_TRUE(android_link_namespaces(ns_not_isolated, nullptr, g_core_shared_libs.c_str())) << dler… in TEST()
1478 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1484 …ASSERT_TRUE(android_link_namespaces(ns_isolated_shared, nullptr, g_core_shared_libs.c_str())) << d… in TEST()
1494 void* handle = android_dlopen_ext(lib_private_external_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1509 handle2 = android_dlopen_ext(lib_private_external_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1574 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1576 (GetTestlibRoot() + "/public_namespace_libs").c_str(), in TEST()
1579 …ASSERT_TRUE(android_link_namespaces(ns_isolated, nullptr, g_core_shared_libs.c_str())) << dlerror(… in TEST()
1610 (GetTestlibRoot() + "/public_namespace_libs/libnstest_public.so").c_str(), in TEST()
1625 (GetTestlibRoot() + "/libtest_empty.so").c_str(), in TEST()
1636 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)) << dlerror(); in TEST()
1641 … dlopen((GetTestlibRoot() + "/private_namespace_libs/libnstest_dlopened.so").c_str(), RTLD_NOW); in TEST()
1647 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1652 …ASSERT_TRUE(android_link_namespaces(ns_isolated_shared, nullptr, g_core_shared_libs.c_str())) << d… in TEST()
1670 … = android_dlopen_ext((GetTestlibRoot() + "/private_namespace_libs/libnstest_dlopened.so").c_str(), in TEST()
1679 handle = dlopen((GetTestlibRoot() + "/private_namespace_libs/libnstest_dlopened.so").c_str(), in TEST()
1687 void* handle_public = dlopen(lib_public_path.c_str(), RTLD_NOW); in TEST()
1698 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1705 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1707 lib_public_path.c_str(), in TEST()
1710 ASSERT_TRUE(android_link_namespaces(ns1, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1715 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1717 lib_public_path.c_str(), in TEST()
1720 ASSERT_TRUE(android_link_namespaces(ns2, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1726 void* handle_global = android_dlopen_ext((lib_public_path + "/" + g_public_lib).c_str(), in TEST()
1735 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1741 ASSERT_TRUE(android_link_namespaces(ns1_child, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1777 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1782 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1787 ASSERT_TRUE(android_link_namespaces(ns_a, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1792 GetTestlibRoot().c_str(), in TEST()
1797 ASSERT_TRUE(android_link_namespaces(ns_b, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1807 void* handle = android_dlopen_ext(library_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1812 library_path.c_str(), in TEST()
1813 android::base::GetExecutablePath().c_str()); in TEST()
1821 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1826 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1862 ASSERT_TRUE(android_init_anonymous_namespace(g_core_shared_libs.c_str(), nullptr)); in TEST()
1867 (GetTestlibRoot() + "/ns_a").c_str(), in TEST()
1872 ASSERT_TRUE(android_link_namespaces(ns_a, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1877 (GetTestlibRoot() + "/ns_b").c_str(), in TEST()
1882 ASSERT_TRUE(android_link_namespaces(ns_b, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
1942 void* handle_public = dlopen(lib_public_path.c_str(), RTLD_NOW); in TEST()
1947 android_init_anonymous_namespace(shared_libs.c_str(), in TEST()
1948 (GetTestlibRoot() + "/private_namespace_libs").c_str()) in TEST()
1954 (GetTestlibRoot() + "/private_namespace_libs").c_str(), in TEST()
1960 ASSERT_TRUE(android_link_namespaces(ns, nullptr, shared_libs.c_str())) << dlerror(); in TEST()
1969 void* handle = android_dlopen_ext(private_library_absolute_path.c_str(), RTLD_NOW, &extinfo); in TEST()