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()
138 extinfo.library_fd_offset = zip_entry.offset; in TEST_F()
141 handle_ = android_dlopen_ext(lib_path.c_str(), RTLD_NOW, &extinfo); in TEST_F()
152 android_dlextinfo extinfo; in TEST_F() local
153 extinfo.flags = ANDROID_DLEXT_USE_LIBRARY_FD | ANDROID_DLEXT_USE_LIBRARY_FD_OFFSET; in TEST_F()
154 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
155 extinfo.library_fd_offset = 17; in TEST_F()
157 handle_ = android_dlopen_ext("libname_placeholder", RTLD_NOW, &extinfo); in TEST_F()
162 extinfo.library_fd_offset = (5LL<<48) + PAGE_SIZE; in TEST_F()
163 handle_ = android_dlopen_ext("libname_placeholder", RTLD_NOW, &extinfo); in TEST_F()
167 extinfo.library_fd_offset = 0LL - PAGE_SIZE; in TEST_F()
168 handle_ = android_dlopen_ext("libname_placeholder", RTLD_NOW, &extinfo); in TEST_F()
172 extinfo.library_fd_offset = 0; in TEST_F()
173 handle_ = android_dlopen_ext("libname_ignored", RTLD_NOW, &extinfo); in TEST_F()
182 close(extinfo.library_fd); in TEST_F()
186 android_dlextinfo extinfo; in TEST_F() local
187 extinfo.flags = ANDROID_DLEXT_USE_LIBRARY_FD_OFFSET; in TEST_F()
189 extinfo.library_fd_offset = 0; in TEST_F()
191 handle_ = android_dlopen_ext("/some/lib/that/does_not_exist", RTLD_NOW, &extinfo); in TEST_F()
203 android_dlextinfo extinfo; in TEST() local
204 extinfo.flags = ANDROID_DLEXT_FORCE_LOAD; in TEST()
205 void* handle2 = android_dlopen_ext(symlink_name.c_str(), RTLD_NOW, &extinfo); in TEST()
221 android_dlextinfo extinfo; in TEST() local
222 extinfo.flags = ANDROID_DLEXT_FORCE_LOAD; in TEST()
225 void* handle2 = android_dlopen_ext("libdlext_test.so", RTLD_NOW, &extinfo); in TEST()
326 android_dlextinfo extinfo; in TEST_F() local
327 extinfo.flags = ANDROID_DLEXT_RESERVED_ADDRESS; in TEST_F()
328 extinfo.reserved_addr = start; in TEST_F()
329 extinfo.reserved_size = kLibSize; in TEST_F()
330 handle_ = android_dlopen_ext(kLibName, RTLD_NOW, &extinfo); in TEST_F()
350 android_dlextinfo extinfo; in TEST_F() local
351 extinfo.flags = ANDROID_DLEXT_RESERVED_ADDRESS; in TEST_F()
352 extinfo.reserved_addr = start; in TEST_F()
353 extinfo.reserved_size = PAGE_SIZE; in TEST_F()
354 handle_ = android_dlopen_ext(kLibName, RTLD_NOW, &extinfo); in TEST_F()
361 android_dlextinfo extinfo; in TEST_F() local
362 extinfo.flags = ANDROID_DLEXT_RESERVED_ADDRESS | ANDROID_DLEXT_RESERVED_ADDRESS_RECURSIVE; in TEST_F()
363 extinfo.reserved_addr = start; in TEST_F()
364 extinfo.reserved_size = kLibSize; in TEST_F()
365 handle_ = android_dlopen_ext(kLibNameRecursive, RTLD_NOW, &extinfo); in TEST_F()
394 android_dlextinfo extinfo; in TEST_F() local
395 extinfo.flags = ANDROID_DLEXT_RESERVED_ADDRESS | ANDROID_DLEXT_RESERVED_ADDRESS_RECURSIVE; in TEST_F()
396 extinfo.reserved_addr = start; in TEST_F()
397 extinfo.reserved_size = PAGE_SIZE; in TEST_F()
398 handle_ = android_dlopen_ext(kLibNameRecursive, 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 = kLibSize; in TEST_F()
409 handle_ = android_dlopen_ext(kLibName, RTLD_NOW, &extinfo); in TEST_F()
422 android_dlextinfo extinfo; in TEST_F() local
423 extinfo.flags = ANDROID_DLEXT_RESERVED_ADDRESS_HINT; in TEST_F()
424 extinfo.reserved_addr = start; in TEST_F()
425 extinfo.reserved_size = PAGE_SIZE; in TEST_F()
426 handle_ = android_dlopen_ext(kLibName, RTLD_NOW, &extinfo); in TEST_F()
791 android_dlextinfo extinfo; in TEST() local
792 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
793 extinfo.library_namespace = ns2; in TEST()
794 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
808 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
817 extinfo.library_namespace = ns1; in TEST()
818 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
833 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
842 extinfo.library_namespace = ns1; in TEST()
844 void* handle1 = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
847 extinfo.library_namespace = ns2; in TEST()
848 void* handle2 = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
948 android_dlextinfo extinfo; in TEST() local
949 extinfo.flags = ANDROID_DLEXT_USE_LIBRARY_FD | ANDROID_DLEXT_USE_NAMESPACE; in TEST()
950 extinfo.library_fd = tmpfd; in TEST()
951 extinfo.library_namespace = ns; in TEST()
953 void* handle = android_dlopen_ext("foobar", RTLD_NOW, &extinfo); in TEST()
996 android_dlextinfo extinfo; in TEST() local
997 extinfo.flags = ANDROID_DLEXT_USE_LIBRARY_FD | ANDROID_DLEXT_USE_NAMESPACE; in TEST()
998 extinfo.library_fd = memfd; in TEST()
999 extinfo.library_namespace = ns; in TEST()
1001 void* handle = android_dlopen_ext("foobar", RTLD_NOW, &extinfo); in TEST()
1028 android_dlextinfo extinfo; in TEST() local
1029 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1030 extinfo.library_namespace = ns; in TEST()
1032 void* handle = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
1077 android_dlextinfo extinfo; in TEST() local
1078 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1079 extinfo.library_namespace = ns_private; in TEST()
1081 void* handle = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
1128 android_dlextinfo extinfo; in TEST() local
1129 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1130 extinfo.library_namespace = ns_private; in TEST()
1132 void* handle = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
1137 handle = android_dlopen_ext(root_lib, RTLD_NOW | RTLD_NOLOAD, &extinfo); in TEST()
1143 extinfo.library_namespace = ns_public; in TEST()
1144 handle = android_dlopen_ext(g_public_lib, RTLD_NOW | RTLD_NOLOAD, &extinfo); in TEST()
1177 android_dlextinfo extinfo; in TEST() local
1178 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1179 extinfo.library_namespace = ns_private; in TEST()
1183 &extinfo); in TEST()
1220 android_dlextinfo extinfo; in TEST() local
1221 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1222 extinfo.library_namespace = ns_private; in TEST()
1224 void* handle = android_dlopen_ext("libtest_missing_symbol_root.so", RTLD_NOW, &extinfo); in TEST()
1246 android_dlextinfo extinfo; in TEST() local
1247 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1248 extinfo.library_namespace = ns; in TEST()
1252 void* handle = android_dlopen_ext("libnativehelper.so", RTLD_NOW, &extinfo); in TEST()
1264 handle = android_dlopen_ext("libnativehelper.so", RTLD_NOW, &extinfo); in TEST()
1284 android_dlextinfo extinfo; in TEST() local
1285 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1286 extinfo.library_namespace = ns; in TEST()
1289 void* handle = android_dlopen_ext("libnativehelper.so", RTLD_NOW, &extinfo); in TEST()
1324 android_dlextinfo extinfo; in TEST() local
1325 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1326 extinfo.library_namespace = ns1; in TEST()
1328 void* handle = android_dlopen_ext("libthatdoesnotexist.so", RTLD_NOW, &extinfo); in TEST()
1386 android_dlextinfo extinfo; in TEST() local
1387 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1388 extinfo.library_namespace = ns_not_isolated; in TEST()
1390 void* handle1 = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
1393 extinfo.library_namespace = ns_isolated; in TEST()
1395 void* handle2 = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
1403 handle2 = android_dlopen_ext(lib_private_external_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1409 extinfo.library_namespace = ns_isolated2; in TEST()
1412 handle2 = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
1417 handle2 = android_dlopen_ext(lib_private_external_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1466 android_dlextinfo extinfo; in TEST() local
1467 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1468 extinfo.library_namespace = ns_parent; in TEST()
1471 void* handle_public = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1481 …((GetTestlibRoot() + "/private_namespace_libs/libnstest_dlopened.so").c_str(), RTLD_NOW, &extinfo); in TEST()
1508 ASSERT_TRUE(android_dlopen_ext(root_lib, RTLD_NOW, &extinfo) == nullptr); in TEST()
1516 void* handle = android_dlopen_ext(lib_private_external_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1519 extinfo.library_namespace = ns_not_isolated; in TEST()
1521 void* handle1 = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
1524 extinfo.library_namespace = ns_isolated_shared; in TEST()
1526 void* handle2 = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
1533 handle2 = android_dlopen_ext(lib_private_external_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1542 handle2 = android_dlopen_ext(root_lib_isolated, RTLD_NOW, &extinfo); in TEST()
1617 android_dlextinfo extinfo; in TEST() local
1618 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1619 extinfo.library_namespace = ns_shared; in TEST()
1622 void* handle = android_dlopen_ext("libnstest_private.so", RTLD_NOW, &extinfo); in TEST()
1636 &extinfo); in TEST()
1651 &extinfo); in TEST()
1679 android_dlextinfo extinfo; in TEST() local
1680 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1681 extinfo.library_namespace = ns_isolated_shared; in TEST()
1683 void* handle = android_dlopen_ext("libnstest_dlopened.so", RTLD_NOW | RTLD_NOLOAD, &extinfo); in TEST()
1690 handle = android_dlopen_ext("libnstest_dlopened.so", RTLD_NOW | RTLD_NOLOAD, &extinfo); in TEST()
1695 RTLD_NOW | RTLD_NOLOAD, &extinfo); in TEST()
1715 handle = android_dlopen_ext(g_public_lib, RTLD_NOW | RTLD_NOLOAD, &extinfo); in TEST()
1746 android_dlextinfo extinfo; in TEST() local
1747 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1748 extinfo.library_namespace = ns1; in TEST()
1752 &extinfo); in TEST()
1771 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1772 extinfo.library_namespace = ns1_child; in TEST()
1774 void* handle1 = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
1778 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1779 extinfo.library_namespace = ns1; in TEST()
1781 handle1 = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
1785 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1786 extinfo.library_namespace = ns2; in TEST()
1788 handle1 = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST()
1828 android_dlextinfo extinfo; in TEST() local
1829 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1830 extinfo.library_namespace = ns_a; in TEST()
1834 void* handle = android_dlopen_ext(library_path.c_str(), RTLD_NOW, &extinfo); in TEST()
1915 android_dlextinfo extinfo; in TEST() local
1916 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1917 extinfo.library_namespace = ns_b; in TEST()
1919 void* ns_b_handle1 = android_dlopen_ext("libnstest_ns_a_public1.so", RTLD_NOW, &extinfo); in TEST()
1923 android_dlopen_ext("libnstest_ns_a_public1_internal.so", RTLD_NOW, &extinfo); in TEST()
1926 void* ns_b_handle2 = android_dlopen_ext("libnstest_ns_b_public2.so", RTLD_NOW, &extinfo); in TEST()
1929 void* ns_b_handle3 = android_dlopen_ext("libnstest_ns_b_public3.so", RTLD_NOW, &extinfo); in TEST()
1933 extinfo.library_namespace = ns_a; in TEST()
1935 void* ns_a_handle1 = android_dlopen_ext("libnstest_ns_a_public1.so", RTLD_NOW, &extinfo); in TEST()
1939 android_dlopen_ext("libnstest_ns_a_public1_internal.so", RTLD_NOW, &extinfo); in TEST()
1942 void* ns_a_handle2 = android_dlopen_ext("libnstest_ns_b_public2.so", RTLD_NOW, &extinfo); in TEST()
1945 void* ns_a_handle3 = android_dlopen_ext("libnstest_ns_b_public3.so", RTLD_NOW, &extinfo); in TEST()
1991 android_dlextinfo extinfo; in TEST() local
1992 extinfo.flags = ANDROID_DLEXT_USE_NAMESPACE; in TEST()
1993 extinfo.library_namespace = ns; in TEST()
1996 void* handle = android_dlopen_ext(private_library_absolute_path.c_str(), RTLD_NOW, &extinfo); in TEST()