Lines Matching refs:lib_path
109 const std::string lib_path = std::string(getenv("ANDROID_DATA")) + LIBPATH;
113 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC));
115 handle_ = android_dlopen_ext(lib_path.c_str(), RTLD_NOW, &extinfo);
127 const std::string lib_path = std::string(getenv("ANDROID_DATA")) + LIBZIPPATH;
131 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC));
135 ASSERT_EQ(0, OpenArchive(lib_path.c_str(), &handle));
144 handle_ = android_dlopen_ext(lib_path.c_str(), RTLD_NOW, &extinfo);
153 const std::string lib_path = std::string(getenv("ANDROID_DATA")) + LIBZIPPATH;
154 // lib_path is relative when $ANDROID_DATA is relative
156 ASSERT_TRUE(realpath(lib_path.c_str(), lib_realpath_buf) == lib_realpath_buf);
161 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC));
238 const std::string lib_path = std::string(getenv("ANDROID_DATA")) + LIBZIPPATH;
240 void* handle = dlopen((lib_path + "!/libdir/libatest_simple_zip.so").c_str(), RTLD_NOW);
251 const std::string lib_path = std::string(getenv("ANDROID_DATA")) + LIBZIPPATH_WITH_RUNPATH;
253 void* handle = dlopen((lib_path + "!/libdir/libtest_dt_runpath_d_zip.so").c_str(), RTLD_NOW);
269 const std::string lib_path = std::string(getenv("ANDROID_DATA")) + LIBZIPPATH + "!/libdir";
280 android_update_LD_LIBRARY_PATH(lib_path.c_str());
635 const std::string lib_path = std::string(getenv("ANDROID_DATA")) + NATIVE_TESTS_PATH;
637 const std::string lib_public_path = lib_path + "/public_namespace_libs/" + g_public_lib;
645 handle_public = dlopen((lib_path + "/public_namespace_libs/" + g_public_lib).c_str(),
652 (lib_path + "/private_namespace_libs").c_str(),
658 (lib_path + "/private_namespace_libs").c_str(),
749 const std::string lib_path = std::string(getenv("ANDROID_DATA")) + NATIVE_TESTS_PATH;
750 const std::string lib_public_path = lib_path + "/public_namespace_libs/" + g_public_lib;
760 (lib_path + "/private_namespace_libs").c_str(),
767 (lib_path + "/private_namespace_libs").c_str(),
775 (lib_path + "/private_namespace_libs").c_str(),
778 lib_path.c_str(),
786 lib_path + "/private_namespace_libs_external/libnstest_private_external.so";
815 // this should work because isolation_path for private_isolated2 includes lib_path
856 const std::string lib_path = std::string(getenv("ANDROID_DATA")) + NATIVE_TESTS_PATH;
857 const std::string lib_public_path = lib_path + "/public_namespace_libs/" + g_public_lib;
868 dlopen((lib_path + "/private_namespace_libs/libnstest_dlopened.so").c_str(), RTLD_NOW);
873 (lib_path + "/private_namespace_libs").c_str(),
879 lib_path + "/private_namespace_libs").c_str(),
888 lib_path + "/private_namespace_libs_external/libnstest_private_external.so";
972 const std::string lib_path = std::string(getenv("ANDROID_DATA")) + NATIVE_TESTS_PATH;
981 dlopen((lib_path + "/private_namespace_libs/libnstest_dlopened.so").c_str(), RTLD_NOW);
986 (lib_path + "/private_namespace_libs").c_str(),
1007 handle = android_dlopen_ext((lib_path + "/private_namespace_libs/libnstest_dlopened.so").c_str(),
1016 handle = dlopen((lib_path + "/private_namespace_libs/libnstest_dlopened.so").c_str(),
1023 const std::string lib_public_path = lib_path + "/public_namespace_libs/" + g_public_lib;
1039 const std::string lib_path = std::string(getenv("ANDROID_DATA")) + NATIVE_TESTS_PATH;
1041 const std::string lib_public_path = lib_path + "/public_namespace_libs";
1046 (lib_path + "/private_namespace_libs").c_str(),
1055 (lib_path + "/private_namespace_libs").c_str(),
1074 (lib_path + "/private_namespace_libs").c_str(),
1109 const std::string lib_path = std::string(getenv("ANDROID_DATA")) + NATIVE_TESTS_PATH;
1111 const std::string lib_public_path = lib_path + "/public_namespace_libs/" + g_public_lib;
1116 ASSERT_TRUE(android_init_namespaces(path.c_str(), (lib_path + "/private_namespace_libs").c_str()))
1121 (lib_path + "/private_namespace_libs").c_str(),
1126 std::string private_library_absolute_path = lib_path + "/private_namespace_libs/" + root_lib;