/system/bt/osi/test/ |
D | wakelock_test.cc | 101 CHECK(lock_stat.st_size >= unlock_stat.st_size); in IsFileWakeLockAcquired() 104 mmap(nullptr, lock_stat.st_size, PROT_READ, MAP_PRIVATE, lock_fd, 0); in IsFileWakeLockAcquired() 106 void* unlock_file = mmap(nullptr, unlock_stat.st_size, PROT_READ, in IsFileWakeLockAcquired() 109 if (memcmp(lock_file, unlock_file, unlock_stat.st_size) == 0) { in IsFileWakeLockAcquired() 110 acquired = lock_stat.st_size > unlock_stat.st_size; in IsFileWakeLockAcquired() 117 munmap(lock_file, lock_stat.st_size); in IsFileWakeLockAcquired() 118 munmap(unlock_file, unlock_stat.st_size); in IsFileWakeLockAcquired()
|
/system/extras/pagecache/ |
D | dumpcache.c | 84 void* mapped_addr = mmap(NULL, sb->st_size, PROT_NONE, MAP_SHARED, fd, 0); in store_num_cached() 88 size_t num_file_pages = (sb->st_size + g_page_size - 1) / g_page_size; in store_num_cached() 90 ret = mincore(mapped_addr, sb->st_size, mincore_data); in store_num_cached() 98 struct file_info *info = get_file_info(fpath, sb->st_size); in store_num_cached() 103 munmap(mapped_addr, sb->st_size); in store_num_cached()
|
/system/sepolicy/tools/sepolicy-analyze/ |
D | utils.c | 41 map = mmap(NULL, sb.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in load_policy() 50 pf->len = sb.st_size; in load_policy() 64 munmap(map, sb.st_size); in load_policy()
|
/system/core/mkbootfs/ |
D | mkbootfs.c | 251 tmp = (char*) malloc(s.st_size); in _archive() 252 if(tmp == 0) die("cannot allocate %d bytes", s.st_size); in _archive() 254 if(read(fd, tmp, s.st_size) != s.st_size) { in _archive() 255 die("cannot read %d bytes", s.st_size); in _archive() 258 _eject(&s, out, olen, tmp, s.st_size); in _archive()
|
/system/iorap/src/serialize/ |
D | protobuf_io.cc | 64 buf.st_size, in Open() 79 google::protobuf::io::ArrayInputStream protobuf_input_stream{data, static_cast<int>(buf.st_size)}; in Open() 86 if (munmap(data, buf.st_size) < 0) { in Open()
|
/system/nvram/hal/ |
D | fake_nvram_storage.cpp | 95 if (data_file_stat.st_size > kMaxFileSize) { in LoadFile() 96 LOG(ERROR) << "Bad size for " << name << ":" << data_file_stat.st_size; in LoadFile() 100 if (!blob->Resize(data_file_stat.st_size)) { in LoadFile()
|
/system/sepolicy/tools/ |
D | sepolicy-check.c | 204 map = mmap(NULL, sb.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in load_policy() 214 pf->len = sb.st_size; in load_policy() 218 munmap(map, sb.st_size); in load_policy() 225 munmap(map, sb.st_size); in load_policy()
|
D | version_policy.c | 48 file_size = filedata.st_size; in read_cil_file()
|
/system/unwinding/libunwindstack/ |
D | Symbols.cpp | 75 Info& info = symbols_[sym.st_value + sym.st_size]; in BinarySearch() 76 info = {.size = static_cast<uint32_t>(sym.st_size), .index = current}; in BinarySearch() 79 } else if (addr < sym.st_value + sym.st_size) { in BinarySearch() 111 if (IsFunc(&sym) && sym.st_size != 0) { in BuildRemapTable()
|
/system/core/fs_mgr/libsnapshot/ |
D | power_test.cpp | 191 while (written < s.st_size) { in Create() 192 uint64_t remaining = s.st_size - written; in Create() 268 uint64_t s1_size = (s1.st_size + 4095) & ~uint64_t(4095); in SetupImages() 269 uint64_t s2_size = (s2.st_size + 4095) & ~uint64_t(4095); in SetupImages() 292 while (written < s1.st_size) { in SetupImages() 293 uint64_t remaining = s1.st_size - written; in SetupImages() 496 uint64_t canonical_size = s.st_size; in Check()
|
D | estimate_cow_from_nonab_ota.cpp | 293 source_size = s.st_size; in AnalyzePartition() 388 size_ += s.st_size; in AnalyzePartition()
|
/system/core/fs_mgr/libvbmeta/ |
D | utility.cpp | 37 return sb.st_size; in GetFileSize()
|
/system/core/libcutils/ |
D | ashmem-host.cpp | 95 return buf.st_size; in ashmem_get_size_region()
|
D | ashmem-dev.cpp | 469 ALOGD("ashmem_get_size_region(%d): %d\n", fd, static_cast<int>(sb.st_size)); in ashmem_get_size_region() 472 return sb.st_size; in ashmem_get_size_region()
|
/system/extras/ioshark/ |
D | dump_ioshark_filenames.c | 50 filename_cache_num_entries = st.st_size / in main()
|
/system/unwinding/libunwindstack/tests/ |
D | SymbolsTest.cpp | 47 void InitSym(TypeParam* sym, uint32_t st_value, uint32_t st_size, uint32_t st_name) { in InitSym() argument 51 sym->st_size = st_size; in InitSym() 359 sym.st_size = 0x100; in TYPED_TEST_P() 377 sym.st_size = 0x100; in TYPED_TEST_P()
|
/system/core/trusty/apploader/ |
D | apploader.cpp | 109 assert(st.st_size >= 0); in read_file() 110 file_size = st.st_size; in read_file()
|
/system/core/property_service/libpropertyinfoparser/ |
D | property_info_parser.cpp | 210 (fd_stat.st_size < static_cast<off_t>(sizeof(PropertyInfoArea)))) { in LoadPath() 215 auto mmap_size = fd_stat.st_size; in LoadPath()
|
/system/core/libprocessgroup/cgrouprc/ |
D | cgroup_file.cpp | 50 size_t file_size = sb.st_size; in LoadRcFile()
|
/system/extras/kexec_tools/ |
D | kexecload.c | 32 return st.st_size; in get_file_size()
|
/system/security/identity/ |
D | Util.cpp | 64 data.resize(statbuf.st_size); in fileGetContents()
|
/system/extras/verity/fec/tests/ |
D | fec.py | 34 size = os.stat(image).st_size
|
/system/sepolicy/tests/ |
D | sepol_wrap.cpp | 221 auto unmap = [=](void *ptr) { munmap(ptr, sb.st_size); }; in load_policy() 223 mmap(nullptr, sb.st_size, PROT_READ, MAP_PRIVATE, fileno(fp), 0), unmap); in load_policy() 235 pf.len = sb.st_size; in load_policy()
|
/system/core/libutils/ |
D | Tokenizer.cpp | 62 size_t length = size_t(stat.st_size); in open()
|
/system/core/libdiskconfig/ |
D | diskconfig.c | 329 dinfo->num_lba = (uint32_t)(stat.st_size / dinfo->sect_size); in validate() 330 disk_size = (uint64_t)stat.st_size; in validate()
|