Home
last modified time | relevance | path

Searched refs:st (Results 1 – 5 of 5) sorted by relevance

/bootable/recovery/applypatch/
Dfreecache.cpp105 struct stat st; in FindExpendableFiles() local
106 if (stat(path.c_str(), &st) == 0 && S_ISREG(st.st_mode)) { in FindExpendableFiles()
181 struct stat st; in RemoveFilesInDirectory() local
182 if (stat(dirname.c_str(), &st) == -1) { in RemoveFilesInDirectory()
186 if (!S_ISDIR(st.st_mode)) { in RemoveFilesInDirectory()
Dimgdiff.cpp360 struct stat st; in MakePatch() local
361 if (fstat(patch_fd, &st) != 0) { in MakePatch()
366 size_t sz = static_cast<size_t>(st.st_size); in MakePatch()
629 struct stat st; in ReadFile() local
630 if (fstat(fd, &st) != 0) { in ReadFile()
635 size_t sz = static_cast<size_t>(st.st_size); in ReadFile()
1524 struct stat st; in imgdiff() local
1525 if (fstat(fd, &st) != 0) { in imgdiff()
1530 size_t bonus_size = st.st_size; in imgdiff()
/bootable/recovery/install/
Dadb_install.cpp102 struct stat st; in AdbInstallPackageHandler() local
103 if (stat(FUSE_SIDELOAD_HOST_PATHNAME, &st) != 0) { in AdbInstallPackageHandler()
122 struct stat st; in AdbInstallPackageHandler() local
123 stat(FUSE_SIDELOAD_HOST_EXIT_PATHNAME, &st); in AdbInstallPackageHandler()
/bootable/recovery/tests/unit/
Dapplypatch_test.cpp170 struct stat st; in FindFilesInDir() local
171 if (stat(path.c_str(), &st) == 0 && S_ISREG(st.st_mode)) { in FindFilesInDir()
/bootable/recovery/tests/unit/host/
Dimgdiff_test.cpp919 struct stat st; in TEST() local
921 ASSERT_EQ(0, stat(path.c_str(), &st)); in TEST()
922 ASSERT_EQ(std::to_string(st.st_size) + " " + tgt_file_ranges[i], in TEST()