Lines Matching refs:handle
132 ZipArchiveHandle handle; in TEST_F() local
133 ASSERT_EQ(0, OpenArchive(lib_path.c_str(), &handle)); in TEST_F()
138 ASSERT_EQ(0, FindEntry(handle, zip_name, &zip_entry)); in TEST_F()
140 CloseArchive(handle); in TEST_F()
201 void* handle = dlopen("libdlext_test.so", RTLD_NOW); in TEST() local
202 ASSERT_DL_NOTNULL(handle); in TEST()
208 ASSERT_TRUE(handle != handle2); in TEST()
211 dlclose(handle); in TEST()
219 void* handle = dlopen(symlink_name.c_str(), RTLD_NOW); in TEST() local
220 ASSERT_DL_NOTNULL(handle); in TEST()
229 ASSERT_TRUE(handle == handle2); in TEST()
232 dlclose(handle); in TEST()
239 void* handle = dlopen((lib_path + "!/libdir/libatest_simple_zip.so").c_str(), RTLD_NOW); in TEST() local
240 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
242 …uint32_t* taxicab_number = reinterpret_cast<uint32_t*>(dlsym(handle, "dlopen_testlib_taxicab_numbe… in TEST()
246 dlclose(handle); in TEST()
253 void* handle = dlopen((lib_path + "!/libdir/libtest_dt_runpath_d_zip.so").c_str(), RTLD_NOW); in TEST() local
255 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
258 dlopen_b_fn fn = (dlopen_b_fn)dlsym(handle, "dlopen_b"); in TEST()
265 dlclose(handle); in TEST()
278 void* handle = dlopen("libdlext_test_zip.so", RTLD_NOW); in TEST() local
279 ASSERT_TRUE(handle == nullptr); in TEST()
283 handle = dlopen("libdlext_test_zip.so", RTLD_NOW); in TEST()
284 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
287 fn = reinterpret_cast<int (*)(void)>(dlsym(handle, "getRandomNumber")); in TEST()
292 reinterpret_cast<uint32_t*>(dlsym(handle, "dlopen_testlib_taxicab_number")); in TEST()
296 dlclose(handle); in TEST()
436 void* handle = android_dlopen_ext(lib, RTLD_NOW, &extinfo_); in CreateRelroFile() local
437 if (handle == nullptr) { in CreateRelroFile()
583 void* handle; in SpawnChildrenAndMeasurePss() local
585 handle = android_dlopen_ext(lib, RTLD_NOW, &extinfo_); in SpawnChildrenAndMeasurePss()
587 handle = dlopen(lib, RTLD_NOW); in SpawnChildrenAndMeasurePss()
589 if (handle == nullptr) { in SpawnChildrenAndMeasurePss()
689 void* handle = dlopen(g_public_lib, RTLD_NOW); in TEST() local
690 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
691 dlclose(handle); in TEST()
698 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
699 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
700 ASSERT_TRUE(handle == handle_public); in TEST()
702 dlclose(handle); in TEST()
712 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
713 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
716 ASSERT_TRUE(handle == handle_public); in TEST()
718 dlclose(handle); in TEST()
722 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
723 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
724 ASSERT_TRUE(handle == handle_public); in TEST()
726 dlclose(handle); in TEST()
737 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
738 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
742 ASSERT_TRUE(handle != handle_public); in TEST()
744 dlclose(handle); in TEST()
857 void* handle = android_dlopen_ext("foobar", RTLD_NOW, &extinfo); in TEST() local
859 ASSERT_DL_NOTNULL(handle); in TEST()
861 …uint32_t* taxicab_number = reinterpret_cast<uint32_t*>(dlsym(handle, "dlopen_testlib_taxicab_numbe… in TEST()
864 dlclose(handle); in TEST()
905 void* handle = android_dlopen_ext("foobar", RTLD_NOW, &extinfo); in TEST() local
907 ASSERT_DL_NOTNULL(handle); in TEST()
909 …uint32_t* taxicab_number = reinterpret_cast<uint32_t*>(dlsym(handle, "dlopen_testlib_taxicab_numbe… in TEST()
912 dlclose(handle); in TEST()
936 void* handle = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST() local
937 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
943 reinterpret_cast<fn_t>(dlsym(handle, "ns_get_internal_extern_string")); in TEST()
948 reinterpret_cast<fn_t>(dlsym(handle, "internal_extern_string")); in TEST()
985 void* handle = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST() local
986 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
992 reinterpret_cast<fn_t>(dlsym(handle, "ns_get_internal_extern_string")); in TEST()
999 reinterpret_cast<fn_t>(dlsym(handle, "internal_extern_string")); in TEST()
1036 void* handle = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST() local
1037 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1039 dlclose(handle); in TEST()
1041 handle = android_dlopen_ext(root_lib, RTLD_NOW | RTLD_NOLOAD, &extinfo); in TEST()
1042 ASSERT_TRUE(handle == nullptr); in TEST()
1048 handle = android_dlopen_ext(g_public_lib, RTLD_NOW | RTLD_NOLOAD, &extinfo); in TEST()
1049 ASSERT_TRUE(handle == nullptr); in TEST()
1085 void* handle = android_dlopen_ext((public_ns_search_path + "/libtest_missing_symbol.so").c_str(), in TEST() local
1088 ASSERT_TRUE(handle == nullptr); in TEST()
1128 void* handle = android_dlopen_ext("libtest_missing_symbol_root.so", RTLD_NOW, &extinfo); in TEST() local
1129 ASSERT_TRUE(handle == nullptr); in TEST()
1156 void* handle = android_dlopen_ext("libnativehelper.so", RTLD_NOW, &extinfo); in TEST() local
1157 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1160 void* dlsym_ptr = dlsym(handle, "dlsym"); in TEST()
1164 dlclose(handle); in TEST()
1168 handle = android_dlopen_ext("libnativehelper.so", RTLD_NOW, &extinfo); in TEST()
1169 ASSERT_TRUE(handle == nullptr); in TEST()
1193 void* handle = android_dlopen_ext("libnativehelper.so", RTLD_NOW, &extinfo); in TEST() local
1194 ASSERT_TRUE(handle == nullptr); in TEST()
1232 void* handle = android_dlopen_ext("libthatdoesnotexist.so", RTLD_NOW, &extinfo); in TEST() local
1233 ASSERT_TRUE(handle == nullptr); in TEST()
1287 void* handle = dlopen(lib_private_external_path.c_str(), RTLD_NOW); in TEST() local
1288 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1417 void* handle = android_dlopen_ext(lib_private_external_path.c_str(), RTLD_NOW, &extinfo); in TEST() local
1418 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1521 void* handle = android_dlopen_ext("libnstest_private.so", RTLD_NOW, &extinfo); in TEST() local
1522 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1523 …const char** ns_private_extern_string = static_cast<const char**>(dlsym(handle, "g_private_extern_… in TEST()
1527 dlclose(handle); in TEST()
1532 void* handle = android_dlopen_ext( in TEST() local
1537 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1538 …const char** ns_public_extern_string = static_cast<const char**>(dlsym(handle, "g_public_extern_st… in TEST()
1542 dlclose(handle); in TEST()
1547 void* handle = android_dlopen_ext( in TEST() local
1552 ASSERT_TRUE(handle == nullptr); in TEST()
1582 void* handle = android_dlopen_ext("libnstest_dlopened.so", RTLD_NOW | RTLD_NOLOAD, &extinfo); in TEST() local
1583 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1584 ASSERT_TRUE(handle == handle_dlopened); in TEST()
1585 dlclose(handle); in TEST()
1589 handle = android_dlopen_ext("libnstest_dlopened.so", RTLD_NOW | RTLD_NOLOAD, &extinfo); in TEST()
1590 ASSERT_TRUE(handle == nullptr) in TEST()
1593 …handle = android_dlopen_ext((get_testlib_root() + "/private_namespace_libs/libnstest_dlopened.so")… in TEST()
1595 ASSERT_TRUE(handle == nullptr) in TEST()
1598 handle = dlopen("libnstest_dlopened.so", RTLD_NOW | RTLD_NOLOAD); in TEST()
1599 ASSERT_TRUE(handle == nullptr) in TEST()
1602 handle = dlopen((get_testlib_root() + "/private_namespace_libs/libnstest_dlopened.so").c_str(), in TEST()
1604 ASSERT_TRUE(handle == nullptr) in TEST()
1614 handle = android_dlopen_ext(g_public_lib, RTLD_NOW | RTLD_NOLOAD, &extinfo); in TEST()
1615 ASSERT_TRUE(handle == nullptr) in TEST()
1730 void* handle = android_dlopen_ext(library_path.c_str(), RTLD_NOW, &extinfo); in TEST() local
1731 ASSERT_TRUE(handle == nullptr); in TEST()
1892 void* handle = android_dlopen_ext(private_library_absolute_path.c_str(), RTLD_NOW, &extinfo); in TEST() local
1893 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1896 reinterpret_cast<uintptr_t>(dlsym(handle, "ns_get_dlopened_string")); in TEST()
1969 void* handle = dlopen("libtest_dlsym_from_this.so", RTLD_NOW | RTLD_LOCAL); in TEST() local
1970 ASSERT_TRUE((reinterpret_cast<uintptr_t>(handle) & 1) != 0) in TEST()
1972 dlclose(handle); in TEST()
1977 void* handle = dlopen("libtest_dlsym_from_this.so", RTLD_NOW | RTLD_LOCAL); in TEST() local
1978 ASSERT_TRUE(reinterpret_cast<uintptr_t>(handle) % sizeof(uintptr_t) == 0) in TEST()
1980 dlclose(handle); in TEST()