• Home
  • Raw
  • Download

Lines Matching refs:extinfo

99   android_dlextinfo extinfo;  in TEST_F()  local
100 extinfo.flags = 0; in TEST_F()
101 handle_ = android_dlopen_ext(kLibName, RTLD_NOW, &extinfo); in TEST_F()
111 android_dlextinfo extinfo; in TEST_F() local
112 extinfo.flags = ANDROID_DLEXT_USE_LIBRARY_FD; in TEST_F()
113 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
114 ASSERT_TRUE(extinfo.library_fd != -1); in TEST_F()
115 handle_ = android_dlopen_ext(lib_path.c_str(), RTLD_NOW, &extinfo); in TEST_F()
129 android_dlextinfo extinfo; in TEST_F() local
130 extinfo.flags = ANDROID_DLEXT_USE_LIBRARY_FD | ANDROID_DLEXT_USE_LIBRARY_FD_OFFSET; in TEST_F()
131 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
141 extinfo.library_fd_offset = zip_entry.offset; in TEST_F()
144 handle_ = android_dlopen_ext(lib_path.c_str(), RTLD_NOW, &extinfo); in TEST_F()
155 android_dlextinfo extinfo; in TEST_F() local
156 extinfo.flags = ANDROID_DLEXT_USE_LIBRARY_FD | ANDROID_DLEXT_USE_LIBRARY_FD_OFFSET; in TEST_F()
157 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
158 extinfo.library_fd_offset = 17; in TEST_F()
160 handle_ = android_dlopen_ext("libname_placeholder", RTLD_NOW, &extinfo); in TEST_F()
165 extinfo.library_fd_offset = (5LL<<48) + PAGE_SIZE; in TEST_F()
166 handle_ = android_dlopen_ext("libname_placeholder", RTLD_NOW, &extinfo); in TEST_F()
170 extinfo.library_fd_offset = 0LL - PAGE_SIZE; in TEST_F()
171 handle_ = android_dlopen_ext("libname_placeholder", RTLD_NOW, &extinfo); in TEST_F()
175 extinfo.library_fd_offset = 0; in TEST_F()
176 handle_ = android_dlopen_ext("libname_ignored", RTLD_NOW, &extinfo); in TEST_F()
185 close(extinfo.library_fd); in TEST_F()
189 android_dlextinfo extinfo; in TEST_F() local
190 extinfo.flags = ANDROID_DLEXT_USE_LIBRARY_FD_OFFSET; in TEST_F()
192 extinfo.library_fd_offset = 0; in TEST_F()
194 handle_ = android_dlopen_ext("/some/lib/that/does_not_exist", RTLD_NOW, &extinfo); in TEST_F()
206 android_dlextinfo extinfo; in TEST() local
207 extinfo.flags = ANDROID_DLEXT_FORCE_LOAD; in TEST()
208 void* handle2 = android_dlopen_ext(symlink_name.c_str(), RTLD_NOW, &extinfo); in TEST()
224 android_dlextinfo extinfo; in TEST() local
225 extinfo.flags = ANDROID_DLEXT_FORCE_LOAD; in TEST()
228 void* handle2 = android_dlopen_ext("libdlext_test.so", RTLD_NOW, &extinfo); in TEST()
311 android_dlextinfo extinfo; in TEST_F() local
312 extinfo.flags = ANDROID_DLEXT_RESERVED_ADDRESS; in TEST_F()
313 extinfo.reserved_addr = start; in TEST_F()
314 extinfo.reserved_size = kLibSize; in TEST_F()
315 handle_ = android_dlopen_ext(kLibName, RTLD_NOW, &extinfo); in TEST_F()
335 android_dlextinfo extinfo; in TEST_F() local
336 extinfo.flags = ANDROID_DLEXT_RESERVED_ADDRESS; in TEST_F()
337 extinfo.reserved_addr = start; in TEST_F()
338 extinfo.reserved_size = PAGE_SIZE; in TEST_F()
339 handle_ = android_dlopen_ext(kLibName, RTLD_NOW, &extinfo); in TEST_F()
346 android_dlextinfo extinfo; in TEST_F() local
347 extinfo.flags = ANDROID_DLEXT_RESERVED_ADDRESS | ANDROID_DLEXT_RESERVED_ADDRESS_RECURSIVE; in TEST_F()
348 extinfo.reserved_addr = start; in TEST_F()
349 extinfo.reserved_size = kLibSize; in TEST_F()
350 handle_ = android_dlopen_ext(kLibNameRecursive, RTLD_NOW, &extinfo); in TEST_F()
377 android_dlextinfo extinfo; in TEST_F() local
378 extinfo.flags = ANDROID_DLEXT_RESERVED_ADDRESS | ANDROID_DLEXT_RESERVED_ADDRESS_RECURSIVE; in TEST_F()
379 extinfo.reserved_addr = start; in TEST_F()
380 extinfo.reserved_size = PAGE_SIZE; in TEST_F()
381 handle_ = android_dlopen_ext(kLibNameRecursive, RTLD_NOW, &extinfo); in TEST_F()
388 android_dlextinfo extinfo; in TEST_F() local
389 extinfo.flags = ANDROID_DLEXT_RESERVED_ADDRESS_HINT; in TEST_F()
390 extinfo.reserved_addr = start; in TEST_F()
391 extinfo.reserved_size = kLibSize; in TEST_F()
392 handle_ = android_dlopen_ext(kLibName, RTLD_NOW, &extinfo); in TEST_F()
405 android_dlextinfo extinfo; in TEST_F() local
406 extinfo.flags = ANDROID_DLEXT_RESERVED_ADDRESS_HINT; in TEST_F()
407 extinfo.reserved_addr = start; in TEST_F()
408 extinfo.reserved_size = PAGE_SIZE; in TEST_F()
409 handle_ = android_dlopen_ext(kLibName, RTLD_NOW, &extinfo); in TEST_F()
772 android_dlextinfo extinfo; in TEST() local
773 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
774 extinfo.library_namespace = ns2; in TEST()
775 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
789 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
798 extinfo.library_namespace = ns1; in TEST()
799 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
814 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
823 extinfo.library_namespace = ns1; in TEST()
825 void* handle1 = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
828 extinfo.library_namespace = ns2; in TEST()
829 void* handle2 = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
929 android_dlextinfo extinfo; in TEST() local
930 extinfo.flags = ANDROID_DLEXT_USE_LIBRARY_FD | ANDROID_DLEXT_USE_NAMESPACE; in TEST()
931 extinfo.library_fd = tmpfd; in TEST()
932 extinfo.library_namespace = ns; in TEST()
934 void* handle = android_dlopen_ext("foobar", RTLD_NOW, &extinfo); in TEST()
977 android_dlextinfo extinfo; in TEST() local
978 extinfo.flags = ANDROID_DLEXT_USE_LIBRARY_FD | ANDROID_DLEXT_USE_NAMESPACE; in TEST()
979 extinfo.library_fd = memfd; in TEST()
980 extinfo.library_namespace = ns; in TEST()
982 void* handle = android_dlopen_ext("foobar", RTLD_NOW, &extinfo); in TEST()
1009 android_dlextinfo extinfo; in TEST() local
1010 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1011 extinfo.library_namespace = ns; in TEST()
1013 void* handle = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
1058 android_dlextinfo extinfo; in TEST() local
1059 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1060 extinfo.library_namespace = ns_private; in TEST()
1062 void* handle = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
1109 android_dlextinfo extinfo; in TEST() local
1110 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1111 extinfo.library_namespace = ns_private; in TEST()
1113 void* handle = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
1118 handle = android_dlopen_ext(root_lib, RTLD_NOW | RTLD_NOLOAD, &extinfo); in TEST()
1124 extinfo.library_namespace = ns_public; in TEST()
1125 handle = android_dlopen_ext(g_public_lib, RTLD_NOW | RTLD_NOLOAD, &extinfo); in TEST()
1158 android_dlextinfo extinfo; in TEST() local
1159 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1160 extinfo.library_namespace = ns_private; in TEST()
1164 &extinfo); in TEST()
1201 android_dlextinfo extinfo; in TEST() local
1202 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1203 extinfo.library_namespace = ns_private; in TEST()
1205 void* handle = android_dlopen_ext("libtest_missing_symbol_root.so", RTLD_NOW, &extinfo); in TEST()
1227 android_dlextinfo extinfo; in TEST() local
1228 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1229 extinfo.library_namespace = ns; in TEST()
1233 void* handle = android_dlopen_ext("libnativehelper.so", RTLD_NOW, &extinfo); in TEST()
1245 handle = android_dlopen_ext("libnativehelper.so", RTLD_NOW, &extinfo); in TEST()
1265 android_dlextinfo extinfo; in TEST() local
1266 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1267 extinfo.library_namespace = ns; in TEST()
1270 void* handle = android_dlopen_ext("libnativehelper.so", RTLD_NOW, &extinfo); in TEST()
1305 android_dlextinfo extinfo; in TEST() local
1306 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1307 extinfo.library_namespace = ns1; in TEST()
1309 void* handle = android_dlopen_ext("libthatdoesnotexist.so", RTLD_NOW, &extinfo); in TEST()
1367 android_dlextinfo extinfo; in TEST() local
1368 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1369 extinfo.library_namespace = ns_not_isolated; in TEST()
1371 void* handle1 = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
1374 extinfo.library_namespace = ns_isolated; in TEST()
1376 void* handle2 = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
1381 handle2 = android_dlopen_ext(lib_private_external_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1387 extinfo.library_namespace = ns_isolated2; in TEST()
1390 handle2 = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
1395 handle2 = android_dlopen_ext(lib_private_external_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1444 android_dlextinfo extinfo; in TEST() local
1445 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1446 extinfo.library_namespace = ns_parent; in TEST()
1449 void* handle_public = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1459 …((GetTestlibRoot() + "/private_namespace_libs/libnstest_dlopened.so").c_str(), RTLD_NOW, &extinfo); in TEST()
1486 ASSERT_TRUE(android_dlopen_ext(root_lib, RTLD_NOW, &extinfo) == nullptr); in TEST()
1494 void* handle = android_dlopen_ext(lib_private_external_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1497 extinfo.library_namespace = ns_not_isolated; in TEST()
1499 void* handle1 = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
1502 extinfo.library_namespace = ns_isolated_shared; in TEST()
1504 void* handle2 = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
1509 handle2 = android_dlopen_ext(lib_private_external_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1518 handle2 = android_dlopen_ext(root_lib_isolated, RTLD_NOW, &extinfo); in TEST()
1593 android_dlextinfo extinfo; in TEST() local
1594 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1595 extinfo.library_namespace = ns_shared; in TEST()
1598 void* handle = android_dlopen_ext("libnstest_private.so", RTLD_NOW, &extinfo); in TEST()
1612 &extinfo); in TEST()
1627 &extinfo); in TEST()
1655 android_dlextinfo extinfo; in TEST() local
1656 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1657 extinfo.library_namespace = ns_isolated_shared; in TEST()
1659 void* handle = android_dlopen_ext("libnstest_dlopened.so", RTLD_NOW | RTLD_NOLOAD, &extinfo); in TEST()
1666 handle = android_dlopen_ext("libnstest_dlopened.so", RTLD_NOW | RTLD_NOLOAD, &extinfo); in TEST()
1671 RTLD_NOW | RTLD_NOLOAD, &extinfo); in TEST()
1691 handle = android_dlopen_ext(g_public_lib, RTLD_NOW | RTLD_NOLOAD, &extinfo); in TEST()
1722 android_dlextinfo extinfo; in TEST() local
1723 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1724 extinfo.library_namespace = ns1; in TEST()
1728 &extinfo); in TEST()
1747 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1748 extinfo.library_namespace = ns1_child; in TEST()
1750 void* handle1 = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
1754 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1755 extinfo.library_namespace = ns1; in TEST()
1757 handle1 = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
1761 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1762 extinfo.library_namespace = ns2; in TEST()
1764 handle1 = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
1801 android_dlextinfo extinfo; in TEST() local
1802 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1803 extinfo.library_namespace = ns_a; in TEST()
1807 void* handle = android_dlopen_ext(library_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1888 android_dlextinfo extinfo; in TEST() local
1889 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1890 extinfo.library_namespace = ns_b; in TEST()
1892 void* ns_b_handle1 = android_dlopen_ext("libnstest_ns_a_public1.so", RTLD_NOW, &extinfo); in TEST()
1896 android_dlopen_ext("libnstest_ns_a_public1_internal.so", RTLD_NOW, &extinfo); in TEST()
1899 void* ns_b_handle2 = android_dlopen_ext("libnstest_ns_b_public2.so", RTLD_NOW, &extinfo); in TEST()
1902 void* ns_b_handle3 = android_dlopen_ext("libnstest_ns_b_public3.so", RTLD_NOW, &extinfo); in TEST()
1906 extinfo.library_namespace = ns_a; in TEST()
1908 void* ns_a_handle1 = android_dlopen_ext("libnstest_ns_a_public1.so", RTLD_NOW, &extinfo); in TEST()
1912 android_dlopen_ext("libnstest_ns_a_public1_internal.so", RTLD_NOW, &extinfo); in TEST()
1915 void* ns_a_handle2 = android_dlopen_ext("libnstest_ns_b_public2.so", RTLD_NOW, &extinfo); in TEST()
1918 void* ns_a_handle3 = android_dlopen_ext("libnstest_ns_b_public3.so", RTLD_NOW, &extinfo); in TEST()
1964 android_dlextinfo extinfo; in TEST() local
1965 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1966 extinfo.library_namespace = ns; in TEST()
1969 void* handle = android_dlopen_ext(private_library_absolute_path.c_str(), RTLD_NOW, &extinfo); in TEST()