/aosp12/system/core/fs_mgr/ |
H A D | blockdev.cpp | 54 struct stat statbuf; in PartitionParent() local 55 if (stat(path.c_str(), &statbuf) >= 0) { in PartitionParent() 73 struct stat statbuf; in BlockdevName() local 74 if (stat(path.c_str(), &statbuf) >= 0 && dev == statbuf.st_rdev) { in BlockdevName() 89 struct stat statbuf; in BlockDeviceQueueDepth() local 90 int res = stat(file_path.c_str(), &statbuf); in BlockDeviceQueueDepth() 94 std::string blockdev = "/dev/block/" + BlockdevName(statbuf.st_dev); in BlockDeviceQueueDepth() 98 StringPrintf("Failed to convert %u:%u (path %s)", major(statbuf.st_dev), in BlockDeviceQueueDepth() 99 minor(statbuf.st_dev), file_path.c_str()); in BlockDeviceQueueDepth()
|
/aosp12/system/extras/boot_control_copy/ |
H A D | boot_control_copy.cpp | 42 struct stat statbuf; in get_dev_t_for_partition() local 46 if (fstat(fd, &statbuf) != 0) { in get_dev_t_for_partition() 53 *out_device = statbuf.st_rdev; in get_dev_t_for_partition() 58 struct stat statbuf; in module_getCurrentSlot() local 61 if (stat("/system", &statbuf) != 0) { in module_getCurrentSlot() 70 if (statbuf.st_dev == system_a_dev) { in module_getCurrentSlot() 72 } else if (statbuf.st_dev == system_b_dev) { in module_getCurrentSlot() 78 major(statbuf.st_dev), minor(statbuf.st_dev), major(system_a_dev), minor(system_a_dev), in module_getCurrentSlot()
|
/aosp12/frameworks/av/media/libmedia/ |
H A D | MediaScanner.cpp | 175 struct stat statbuf; in doProcessDirectoryEntry() local 195 if (stat(path, &statbuf) == 0) { in doProcessDirectoryEntry() 196 if (S_ISREG(statbuf.st_mode)) { in doProcessDirectoryEntry() 198 } else if (S_ISDIR(statbuf.st_mode)) { in doProcessDirectoryEntry() 213 if (stat(path, &statbuf) == 0) { in doProcessDirectoryEntry() 214 status_t status = client.scanFile(path, statbuf.st_mtime, 0, in doProcessDirectoryEntry() 229 stat(path, &statbuf); in doProcessDirectoryEntry() 230 status_t status = client.scanFile(path, statbuf.st_mtime, statbuf.st_size, in doProcessDirectoryEntry()
|
/aosp12/system/iorap/src/inode2filename/ |
H A D | system_call.h | 30 virtual int stat(const char *pathname, struct stat *statbuf) = 0; 50 virtual int stat(const char *pathname, struct stat *statbuf) override { in stat() 51 return ::stat(pathname, statbuf); in stat()
|
H A D | search_directories.cc | 713 struct stat statbuf{}; in Stat() struct 716 if (system_call->stat(path_name.c_str(), /*out*/&statbuf) == 0) { in Stat() 717 return statbuf; in Stat()
|
/aosp12/system/extras/tests/storage/ |
H A D | opentest.c | 32 struct stat statbuf; in main() local 49 if (stat(dir, &statbuf)) { in main() 54 if (! S_ISDIR(statbuf.st_mode)) { in main()
|
H A D | wipe_blkdev.c | 86 struct stat statbuf; in main() local 110 if (fstat(fd, &statbuf) < 0) { in main() 115 if (!S_ISBLK(statbuf.st_mode)) { in main()
|
/aosp12/frameworks/minikin/app/ |
H A D | HyphTool.cpp | 14 struct stat statbuf; in loadHybFile() local 15 int status = stat(fn, &statbuf); in loadHybFile() 20 size_t size = statbuf.st_size; in loadHybFile()
|
/aosp12/system/security/identity/ |
H A D | Util.cpp | 57 struct stat statbuf; in fileGetContents() local 58 if (fstat(fd, &statbuf) != 0) { in fileGetContents() 64 data.resize(statbuf.st_size); in fileGetContents()
|
H A D | CredentialData.cpp | 468 struct stat statbuf; in credentialExists() local 470 if (stat(filename.c_str(), &statbuf) != 0) { in credentialExists()
|
/aosp12/frameworks/native/cmds/service/ |
H A D | service.cpp | 222 struct stat statbuf; in main() local 223 if (fd < 0 || fstat(fd, &statbuf) != 0) { in main() 229 int afd = ashmem_create_region("test", statbuf.st_size); in main() 230 void* ptr = mmap(NULL, statbuf.st_size, in main() 232 read(fd, ptr, statbuf.st_size); in main()
|
/aosp12/system/extras/ioshark/ |
H A D | ioshark_bench_mmap.c | 174 struct stat statbuf; in ioshark_handle_mmap() local 176 if (fstat(files_db_get_fd(db_node), &statbuf) < 0) { in ioshark_handle_mmap() 186 assert(offset + len <= statbuf.st_size); in ioshark_handle_mmap()
|
H A D | ioshark_bench_subr.c | 629 struct stat statbuf; in is_readonly_mount() local 631 if (stat(filename, &statbuf) < 0) { in is_readonly_mount() 635 if (!S_ISREG(statbuf.st_mode)) { in is_readonly_mount() 639 if ((size_t)statbuf.st_size < size) { in is_readonly_mount()
|
/aosp12/system/update_engine/cros/ |
H A D | hardware_chromeos.cc | 143 struct stat statbuf; in IsOOBEComplete() local 144 if (stat(kOOBECompletedMarker, &statbuf) != 0) { in IsOOBEComplete() 152 *out_time_of_oobe = base::Time::FromTimeT(statbuf.st_mtime); in IsOOBEComplete()
|
H A D | p2p_manager.cc | 577 struct stat statbuf; in FileGetPath() local 581 if (stat(path.value().c_str(), &statbuf) == 0) { in FileGetPath() 586 if (stat(path.value().c_str(), &statbuf) == 0) { in FileGetPath()
|
/aosp12/frameworks/av/media/mtp/ |
H A D | MtpUtils.cpp | 233 struct stat statbuf; in deletePath() local 235 if (stat(path, &statbuf) == 0) { in deletePath() 236 if (S_ISDIR(statbuf.st_mode)) { in deletePath()
|
/aosp12/frameworks/wilhelm/tests/examples/ |
H A D | slesTestDecodeAac.cpp | 417 struct stat statbuf; in TestDecToBuffQueue() local 418 ok = fstat(fd, &statbuf); in TestDecToBuffQueue() 425 if (!S_ISREG(statbuf.st_mode)) { in TestDecToBuffQueue() 431 ptr = mmap(NULL, statbuf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, (off_t) 0); in TestDecToBuffQueue() 437 filelen = statbuf.st_size; in TestDecToBuffQueue() 849 ok = munmap(ptr, statbuf.st_size); in TestDecToBuffQueue()
|
/aosp12/packages/modules/SdkExtensions/derive_sdk/ |
H A D | derive_sdk.cpp | 131 struct stat statbuf; in SetSdkLevels() local 132 if (stat(path.c_str(), &statbuf) != 0) { in SetSdkLevels()
|
/aosp12/system/logging/logcat/ |
H A D | logcat.cpp | 277 struct stat statbuf; in SetupOutputAndSchedulingPolicy() local 278 if (fstat(output_fd_.get(), &statbuf) == -1) { in SetupOutputAndSchedulingPolicy() 282 if ((size_t)statbuf.st_size > SIZE_MAX || statbuf.st_size < 0) { in SetupOutputAndSchedulingPolicy() 286 out_byte_count_ = statbuf.st_size; in SetupOutputAndSchedulingPolicy()
|
/aosp12/frameworks/wilhelm/tests/sandbox/ |
H A D | xaplay.c | 323 struct stat statbuf; in main() local 324 ok = fstat(fd, &statbuf); in main() 329 if (!S_ISREG(statbuf.st_mode)) { in main() 334 ptr = mmap(NULL, statbuf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, (off_t) 0); in main() 339 size_t filelen = statbuf.st_size; in main()
|
/aosp12/system/vold/ |
H A D | cryptfs.cpp | 678 struct stat statbuf; in put_crypt_ftr_and_key() local 706 fstat(fd, &statbuf); in put_crypt_ftr_and_key() 708 if (S_ISREG(statbuf.st_mode)) { in put_crypt_ftr_and_key() 818 struct stat statbuf; in get_crypt_ftr_and_key() local 834 fstat(fd, &statbuf); in get_crypt_ftr_and_key() 835 if (S_ISREG(statbuf.st_mode) && (statbuf.st_size != 0x4000)) { in get_crypt_ftr_and_key()
|
/aosp12/frameworks/wilhelm/src/android/ |
H A D | AudioPlayer_to_android.cpp | 1781 struct stat statbuf; in android_audioPlayer_realize() local 1782 if (!::fstat(fd, &statbuf) && S_ISREG(statbuf.st_mode)) { in android_audioPlayer_realize() 1785 pAudioPlayer->mAPlayer->setDataSource(fd, 0, statbuf.st_size, true); in android_audioPlayer_realize()
|
/aosp12/frameworks/native/services/inputflinger/reader/ |
H A D | EventHub.cpp | 201 struct stat statbuf; in getSysfsRootPath() local 202 if (stat(devicePath, &statbuf) == -1) { in getSysfsRootPath() 207 unsigned int major_num = major(statbuf.st_rdev); in getSysfsRootPath() 208 unsigned int minor_num = minor(statbuf.st_rdev); in getSysfsRootPath()
|
/aosp12/frameworks/av/media/libstagefright/ |
H A D | MPEG4Writer.cpp | 1173 struct stat statbuf; in release() local 1174 if (fstat(mFd, &statbuf) == 0) { in release() 1175 filesize = statbuf.st_size; in release()
|