Lines Matching refs:path

58 static std::string BrowseDirectory(const std::string& path, Device* device, RecoveryUI* ui) {  in BrowseDirectory()  argument
59 ensure_path_mounted(path); in BrowseDirectory()
61 std::unique_ptr<DIR, decltype(&closedir)> d(opendir(path.c_str()), closedir); in BrowseDirectory()
63 PLOG(ERROR) << "error opening " << path; in BrowseDirectory()
90 std::vector<std::string> headers{ "Choose a package to install:", path }; in BrowseDirectory()
109 std::string new_path = path + "/" + item; in BrowseDirectory()
124 static bool StartInstallPackageFuse(std::string_view path) { in StartInstallPackageFuse() argument
125 if (path.empty()) { in StartInstallPackageFuse()
130 bool is_block_map = android::base::ConsumePrefix(&path, "@"); in StartInstallPackageFuse()
132 is_block_map ? FuseBlockDataProvider::CreateFromBlockMap(std::string(path), FUSE_BLOCK_SIZE) in StartInstallPackageFuse()
133 : FuseFileDataProvider::CreateFromFile(std::string(path), FUSE_BLOCK_SIZE); in StartInstallPackageFuse()
140 if (android::base::StartsWith(path, SDCARD_ROOT)) { in StartInstallPackageFuse()
149 InstallResult InstallWithFuseFromPath(std::string_view path, RecoveryUI* ui) { in InstallWithFuseFromPath() argument
155 bool status = StartInstallPackageFuse(path); in InstallWithFuseFromPath()
214 std::string path = BrowseDirectory(SDCARD_ROOT, device, ui); in ApplyFromSdcard() local
215 if (path.empty()) { in ApplyFromSdcard()
222 if (android::base::EndsWithIgnoreCase(path, ".map")) { in ApplyFromSdcard()
223 path = "@" + path; in ApplyFromSdcard()
226 ui->Print("\n-- Install %s ...\n", path.c_str()); in ApplyFromSdcard()
229 auto result = InstallWithFuseFromPath(path, ui); in ApplyFromSdcard()