Home
last modified time | relevance | path

Searched refs:dirname (Results 1 – 6 of 6) sorted by relevance

/bootable/recovery/applypatch/
Dfreecache.cpp42 static int EliminateOpenFiles(const std::string& dirname, std::set<std::string>* files) { in EliminateOpenFiles() argument
69 if (android::base::StartsWith(link, dirname)) { in EliminateOpenFiles()
81 const std::string& dirname, const std::function<bool(const std::string&)>& name_filter) { in FindExpendableFiles() argument
82 std::unique_ptr<DIR, decltype(&closedir)> d(opendir(dirname.c_str()), closedir); in FindExpendableFiles()
84 PLOG(ERROR) << "Failed to open " << dirname; in FindExpendableFiles()
92 std::string path = dirname + "/" + de->d_name; in FindExpendableFiles()
112 if (EliminateOpenFiles(dirname, &files) < 0) { in FindExpendableFiles()
163 for (const auto& dirname : dirs) { in CheckAndFreeSpaceOnCache() local
164 if (RemoveFilesInDirectory(bytes, dirname, FreeSpaceForFile)) { in CheckAndFreeSpaceOnCache()
172 bool RemoveFilesInDirectory(size_t bytes_needed, const std::string& dirname, in RemoveFilesInDirectory() argument
[all …]
/bootable/recovery/tests/unit/
Dapplypatch_test.cpp162 static std::vector<std::string> FindFilesInDir(const std::string& dirname) { in FindFilesInDir() argument
165 std::unique_ptr<DIR, decltype(&closedir)> d(opendir(dirname.c_str()), closedir); in FindFilesInDir()
168 std::string path = dirname + "/" + de->d_name; in FindFilesInDir()
201 static size_t MockFreeSpaceChecker(const std::string& dirname) { in MockFreeSpaceChecker() argument
202 std::vector<std::string> files = FindFilesInDir(dirname); in MockFreeSpaceChecker()
/bootable/recovery/updater/
Dblockimg.cpp127 static bool FsyncDir(const std::string& dirname) { in FsyncDir() argument
128 android::base::unique_fd dfd(TEMP_FAILURE_RETRY(open(dirname.c_str(), O_RDONLY | O_DIRECTORY))); in FsyncDir()
131 PLOG(ERROR) << "Failed to open " << dirname; in FsyncDir()
136 PLOG(ERROR) << "Failed to fsync " << dirname; in FsyncDir()
177 auto dirname = android::base::Dirname(marker); in SetUpdatedMarker() local
178 auto res = mkdir(dirname.c_str(), MARKER_DIRECTORY_MODE); in SetUpdatedMarker()
180 PLOG(ERROR) << "Failed to create directory for marker: " << dirname; in SetUpdatedMarker()
188 if (!FsyncDir(dirname)) { in SetUpdatedMarker()
687 static void EnumerateStash(const std::string& dirname, in EnumerateStash() argument
689 if (dirname.empty()) return; in EnumerateStash()
[all …]
/bootable/recovery/updater_sample/tools/
Dtest_gen_update_config.py55 ota_package = os.path.join(os.path.dirname(__file__),
/bootable/recovery/applypatch/include/applypatch/
Dapplypatch.h129 bool RemoveFilesInDirectory(size_t bytes_needed, const std::string& dirname,
/bootable/recovery/minui/
Dresources.cpp334 void res_set_resource_dir(const std::string& dirname) { in res_set_resource_dir() argument
335 g_resource_dir = dirname; in res_set_resource_dir()