Lines Matching refs:path
30 static void setIcdPath(const std::string& path) { in setIcdPath() argument
31 if (android::base::pathExists(path.c_str())) { in setIcdPath()
36 android::base::setEnvironmentVariable("VK_ICD_FILENAMES", path); in setIcdPath()
129 auto path = android::base::getEnvironmentVariable("ANDROID_EMU_VK_LOADER_PATH"); in getLoaderPath() local
130 if (!path.empty()) { in getLoaderPath()
131 return path; in getLoaderPath()
135 auto path = pj({directory, "testlib64", VULKAN_LOADER_FILENAME}); in getLoaderPath() local
137 return path; in getLoaderPath()
143 auto path = pj({directory, "lib64", "vulkan", VULKAN_LOADER_FILENAME}); in getLoaderPath()
145 return path; in getLoaderPath()
152 auto path = android::base::getEnvironmentVariable("ANDROID_EMU_VK_LOADER_PATH"); in getMoltenVkPath() local
153 if (!path.empty()) { in getMoltenVkPath()
154 return path; in getMoltenVkPath()
161 auto path = pj({directory, "lib64", "vulkan", "libMoltenVK.dylib"}); in getMoltenVkPath() local
163 return path; in getMoltenVkPath()
175 bool addLibrary(const std::string& path) { in addLibrary() argument
177 fprintf(stderr, "cannot add library %s: full\n", path.c_str()); in addLibrary()
181 auto library = android::base::SharedLibrary::open(path.c_str()); in addLibrary()
184 fprintf(stderr, "added library %s\n", path.c_str()); in addLibrary()
187 fprintf(stderr, "cannot add library %s: failed\n", path.c_str()); in addLibrary()