Home
last modified time | relevance | path

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

/aosp12/bionic/tests/
H A Dftw_test.cpp53 ASSERT_TRUE(fpath != nullptr); in smoke_test_ftw()
60 EXPECT_EQ(-1, stat(fpath, &sb)); in smoke_test_ftw()
66 if (access(fpath, R_OK) == 0) { in smoke_test_ftw()
69 EXPECT_EQ(FTW_DNR, tflag) << fpath; in smoke_test_ftw()
72 EXPECT_EQ(FTW_SL, tflag) << fpath; in smoke_test_ftw()
74 EXPECT_EQ(FTW_F, tflag) << fpath; in smoke_test_ftw()
79 smoke_test_ftw(fpath, sb, tflag); in smoke_test_nftw()
80 ASSERT_EQ('/', fpath[ftwbuf->base - 1]) << fpath; in smoke_test_nftw()
83 int check_ftw(const char* fpath, const struct stat* sb, int tflag) { in check_ftw() argument
84 smoke_test_ftw(fpath, sb, tflag); in check_ftw()
[all …]
/aosp12/system/extras/pagecache/
H A Ddumpcache.c43 static struct file_info *get_file_info(const char* fpath, size_t file_size) { in get_file_info() argument
60 info->name = malloc(strlen(fpath) + 1); in get_file_info()
65 strcpy(info->name, fpath); in get_file_info()
75 static int store_num_cached(const char* fpath, const struct stat *sb) { in store_num_cached() argument
77 fd = open (fpath, O_RDONLY); in store_num_cached()
80 fprintf(stderr, "Could not open file: %s\n", fpath); in store_num_cached()
98 struct file_info *info = get_file_info(fpath, sb->st_size); in store_num_cached()
110 static int scan_entry(const char *fpath, const struct stat *sb, int typeflag, in scan_entry() argument
113 store_num_cached(fpath, sb); in scan_entry()
/aosp12/system/timezone/tzdatacheck/
H A Dtzdatacheck.cpp160 static int deleteFn(const char* fpath, const struct stat*, int typeflag, struct FTW*) { in deleteFn() argument
161 LOG(DEBUG) << "Inspecting " << fpath; in deleteFn()
165 LOG(DEBUG) << "Unlinking " << fpath; in deleteFn()
166 if (unlink(fpath)) { in deleteFn()
167 PLOG(WARNING) << "Failed to unlink file/symlink " << fpath; in deleteFn()
172 LOG(DEBUG) << "Removing dir " << fpath; in deleteFn()
173 if (rmdir(fpath)) { in deleteFn()
174 PLOG(WARNING) << "Failed to remove dir " << fpath; in deleteFn()
178 LOG(WARNING) << "Unsupported file type " << fpath << ": " << typeflag; in deleteFn()
/aosp12/frameworks/native/libs/vr/libpdx_default_transport/private/pdx/default_transport/
H A Dservice_utility.h56 static int PokeService(const char* fpath, const struct stat* /*sb*/, in PokeService() argument
62 auto utility = ServiceUtility::Create(fpath, &error); in PokeService()
65 ALOGE("ServiceUtility::PokeService: Failed to open %s: %s.", fpath, in PokeService()
76 fpath, status.GetErrorMessage().c_str()); in PokeService()
/aosp12/art/odrefresh/
H A Dodr_fs_utils.cc45 static int NftwCleanUpCallback(const char* fpath, in NftwCleanUpCallback() argument
51 return unlink(fpath); in NftwCleanUpCallback()
53 return (ftwbuf->level == 0) ? 0 : rmdir(fpath); in NftwCleanUpCallback()
/aosp12/system/core/fastboot/fuzzy_fastboot/
H A Dmain.cpp1406 const std::string fpath = unpacked + '/' + part + ".img"; in TEST_P() local
1407 ASSERT_NO_FATAL_FAILURE(flash_part(fpath, part_name)) in TEST_P()
1408 << "Failed to flash '" + fpath + "'"; in TEST_P()