• Home
  • Raw
  • Download

Lines Matching refs:handle

134   ZipArchiveHandle handle;  in TEST_F()  local
135 ASSERT_EQ(0, OpenArchive(lib_path.c_str(), &handle)); in TEST_F()
140 ASSERT_EQ(0, FindEntry(handle, zip_name, &zip_entry)); in TEST_F()
142 CloseArchive(handle); in TEST_F()
203 void* handle = dlopen("libdlext_test.so", RTLD_NOW); in TEST() local
204 ASSERT_DL_NOTNULL(handle); in TEST()
210 ASSERT_TRUE(handle != handle2); in TEST()
213 dlclose(handle); in TEST()
221 void* handle = dlopen(symlink_name.c_str(), RTLD_NOW); in TEST() local
222 ASSERT_DL_NOTNULL(handle); in TEST()
231 ASSERT_TRUE(handle == handle2); in TEST()
234 dlclose(handle); in TEST()
247 void* handle = dlopen((lib_path + "!/libdir/libatest_simple_zip.so").c_str(), RTLD_NOW); in TEST() local
248 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
250 …uint32_t* taxicab_number = reinterpret_cast<uint32_t*>(dlsym(handle, "dlopen_testlib_taxicab_numbe… in TEST()
254 dlclose(handle); in TEST()
261 void* handle = dlopen((lib_path + "!/libdir/libtest_dt_runpath_d_zip.so").c_str(), RTLD_NOW); in TEST() local
263 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
266 dlopen_b_fn fn = (dlopen_b_fn)dlsym(handle, "dlopen_b"); in TEST()
273 dlclose(handle); in TEST()
286 void* handle = dlopen("libdlext_test_zip.so", RTLD_NOW); in TEST() local
287 ASSERT_TRUE(handle == nullptr); in TEST()
291 handle = dlopen("libdlext_test_zip.so", RTLD_NOW); in TEST()
292 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
295 fn = reinterpret_cast<int (*)(void)>(dlsym(handle, "getRandomNumber")); in TEST()
300 reinterpret_cast<uint32_t*>(dlsym(handle, "dlopen_testlib_taxicab_number")); in TEST()
304 dlclose(handle); in TEST()
448 void* handle = android_dlopen_ext(lib, RTLD_NOW, &extinfo_); in CreateRelroFile() local
449 if (handle == nullptr) { in CreateRelroFile()
453 fn f = reinterpret_cast<fn>(dlsym(handle, "getRandomNumber")); in CreateRelroFile()
458 fn f = reinterpret_cast<fn>(dlsym(handle, "getBiggerRandomNumber")); in CreateRelroFile()
464 reinterpret_cast<uint32_t*>(dlsym(handle, "dlopen_testlib_taxicab_number")); in CreateRelroFile()
645 void* handle; in SpawnChildrenAndMeasurePss() local
647 handle = android_dlopen_ext(lib, RTLD_NOW, &extinfo_); in SpawnChildrenAndMeasurePss()
649 handle = dlopen(lib, RTLD_NOW); in SpawnChildrenAndMeasurePss()
651 if (handle == nullptr) { in SpawnChildrenAndMeasurePss()
766 void* handle = dlopen(g_public_lib, RTLD_NOW); in TEST() local
767 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
768 dlclose(handle); in TEST()
775 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
776 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
777 ASSERT_TRUE(handle == handle_public); in TEST()
779 dlclose(handle); in TEST()
789 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
790 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
793 ASSERT_TRUE(handle == handle_public); in TEST()
795 dlclose(handle); in TEST()
799 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
800 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
801 ASSERT_TRUE(handle == handle_public); in TEST()
803 dlclose(handle); in TEST()
814 handle = android_dlopen_ext(lib_public_path.c_str(), RTLD_NOW, &extinfo); in TEST()
815 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
819 ASSERT_TRUE(handle != handle_public); in TEST()
821 dlclose(handle); in TEST()
934 void* handle = android_dlopen_ext("foobar", RTLD_NOW, &extinfo); in TEST() local
936 ASSERT_DL_NOTNULL(handle); in TEST()
938 …uint32_t* taxicab_number = reinterpret_cast<uint32_t*>(dlsym(handle, "dlopen_testlib_taxicab_numbe… in TEST()
941 dlclose(handle); in TEST()
982 void* handle = android_dlopen_ext("foobar", RTLD_NOW, &extinfo); in TEST() local
984 ASSERT_DL_NOTNULL(handle); in TEST()
986 …uint32_t* taxicab_number = reinterpret_cast<uint32_t*>(dlsym(handle, "dlopen_testlib_taxicab_numbe… in TEST()
989 dlclose(handle); in TEST()
1013 void* handle = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST() local
1014 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1020 reinterpret_cast<fn_t>(dlsym(handle, "ns_get_internal_extern_string")); in TEST()
1025 reinterpret_cast<fn_t>(dlsym(handle, "internal_extern_string")); in TEST()
1062 void* handle = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST() local
1063 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1069 reinterpret_cast<fn_t>(dlsym(handle, "ns_get_internal_extern_string")); in TEST()
1076 reinterpret_cast<fn_t>(dlsym(handle, "internal_extern_string")); in TEST()
1113 void* handle = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); in TEST() local
1114 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1116 dlclose(handle); in TEST()
1118 handle = android_dlopen_ext(root_lib, RTLD_NOW | RTLD_NOLOAD, &extinfo); in TEST()
1119 ASSERT_TRUE(handle == nullptr); in TEST()
1125 handle = android_dlopen_ext(g_public_lib, RTLD_NOW | RTLD_NOLOAD, &extinfo); in TEST()
1126 ASSERT_TRUE(handle == nullptr); in TEST()
1162 void* handle = android_dlopen_ext((public_ns_search_path + "/libtest_missing_symbol.so").c_str(), in TEST() local
1165 ASSERT_TRUE(handle == nullptr); in TEST()
1205 void* handle = android_dlopen_ext("libtest_missing_symbol_root.so", RTLD_NOW, &extinfo); in TEST() local
1206 ASSERT_TRUE(handle == nullptr); in TEST()
1233 void* handle = android_dlopen_ext("libnativehelper.so", RTLD_NOW, &extinfo); in TEST() local
1234 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1237 void* dlsym_ptr = dlsym(handle, "dlsym"); in TEST()
1241 dlclose(handle); in TEST()
1245 handle = android_dlopen_ext("libnativehelper.so", RTLD_NOW, &extinfo); in TEST()
1246 ASSERT_TRUE(handle == nullptr); in TEST()
1270 void* handle = android_dlopen_ext("libnativehelper.so", RTLD_NOW, &extinfo); in TEST() local
1271 ASSERT_TRUE(handle == nullptr); in TEST()
1309 void* handle = android_dlopen_ext("libthatdoesnotexist.so", RTLD_NOW, &extinfo); in TEST() local
1310 ASSERT_TRUE(handle == nullptr); in TEST()
1364 void* handle = dlopen(lib_private_external_path.c_str(), RTLD_NOW); in TEST() local
1365 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1494 void* handle = android_dlopen_ext(lib_private_external_path.c_str(), RTLD_NOW, &extinfo); in TEST() local
1495 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1598 void* handle = android_dlopen_ext("libnstest_private.so", RTLD_NOW, &extinfo); in TEST() local
1599 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1600 …const char** ns_private_extern_string = static_cast<const char**>(dlsym(handle, "g_private_extern_… in TEST()
1604 dlclose(handle); in TEST()
1609 void* handle = android_dlopen_ext( in TEST() local
1614 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1615 …const char** ns_public_extern_string = static_cast<const char**>(dlsym(handle, "g_public_extern_st… in TEST()
1619 dlclose(handle); in TEST()
1624 void* handle = android_dlopen_ext( in TEST() local
1629 ASSERT_TRUE(handle == nullptr); in TEST()
1659 void* handle = android_dlopen_ext("libnstest_dlopened.so", RTLD_NOW | RTLD_NOLOAD, &extinfo); in TEST() local
1660 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1661 ASSERT_TRUE(handle == handle_dlopened); in TEST()
1662 dlclose(handle); in TEST()
1666 handle = android_dlopen_ext("libnstest_dlopened.so", RTLD_NOW | RTLD_NOLOAD, &extinfo); in TEST()
1667 ASSERT_TRUE(handle == nullptr) in TEST()
1670handle = android_dlopen_ext((GetTestlibRoot() + "/private_namespace_libs/libnstest_dlopened.so").c… in TEST()
1672 ASSERT_TRUE(handle == nullptr) in TEST()
1675 handle = dlopen("libnstest_dlopened.so", RTLD_NOW | RTLD_NOLOAD); in TEST()
1676 ASSERT_TRUE(handle == nullptr) in TEST()
1679 handle = dlopen((GetTestlibRoot() + "/private_namespace_libs/libnstest_dlopened.so").c_str(), in TEST()
1681 ASSERT_TRUE(handle == nullptr) in TEST()
1691 handle = android_dlopen_ext(g_public_lib, RTLD_NOW | RTLD_NOLOAD, &extinfo); in TEST()
1692 ASSERT_TRUE(handle == nullptr) in TEST()
1807 void* handle = android_dlopen_ext(library_path.c_str(), RTLD_NOW, &extinfo); in TEST() local
1808 ASSERT_TRUE(handle == nullptr); in TEST()
1969 void* handle = android_dlopen_ext(private_library_absolute_path.c_str(), RTLD_NOW, &extinfo); in TEST() local
1970 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1973 reinterpret_cast<uintptr_t>(dlsym(handle, "ns_get_dlopened_string")); in TEST()
2046 void* handle = dlopen("libtest_dlsym_from_this.so", RTLD_NOW | RTLD_LOCAL); in TEST() local
2047 ASSERT_TRUE((reinterpret_cast<uintptr_t>(handle) & 1) != 0) in TEST()
2049 dlclose(handle); in TEST()
2054 void* handle = dlopen("libtest_dlsym_from_this.so", RTLD_NOW | RTLD_LOCAL); in TEST() local
2055 ASSERT_TRUE(reinterpret_cast<uintptr_t>(handle) % sizeof(uintptr_t) == 0) in TEST()
2057 dlclose(handle); in TEST()