Home
last modified time | relevance | path

Searched refs:filesize (Results 1 – 4 of 4) sorted by relevance

/system/extras/tests/pagingtest/
Dthrashing_test.c21 unsigned long long filesize; in thrashing_test() local
34 filesize = num_pages * pagesize / (ARRAY_SIZE(fds) - 1); in thrashing_test()
37 fds[i] = create_tmp_file(tmpnames[i], filesize); in thrashing_test()
44 bufs[i] = mmap(NULL, filesize, PROT_READ, MAP_PRIVATE, fds[i], 0); in thrashing_test()
51 ret = madvise((void *)bufs[i], filesize, MADV_RANDOM) || in thrashing_test()
52 posix_fadvise(fds[i], 0, filesize, POSIX_FADV_RANDOM); in thrashing_test()
62 for (k = 0; k < filesize; k += pagesize) { in thrashing_test()
73 (filesize * ARRAY_SIZE(fds) * test_runs * USEC_PER_SEC) / in thrashing_test()
80 munmap((void *)bufs[i], filesize); in thrashing_test()
/system/tools/mkbootimg/
Dmkbootimg.py67 def filesize(f): function
80 sha.update(pack('I', filesize(f)))
98 num_kernel_pages = get_number_of_pages(filesize(args.kernel), args.pagesize)
99 num_ramdisk_pages = get_number_of_pages(filesize(args.ramdisk),
101 num_second_pages = get_number_of_pages(filesize(args.second), args.pagesize)
115 args.output.write(pack('I', filesize(args.kernel)))
117 args.output.write(pack('I', filesize(args.ramdisk)))
134 if filesize(args.dtb) == 0:
141 vendor_ramdisk_size = filesize(args.vendor_ramdisk)
167 args.vendor_boot.write(pack('I', filesize(args.dtb)))
[all …]
/system/update_engine/scripts/
Dbrillo_update_payload486 local filesize=$(stat -c%s "${part_file}")
487 if [[ $(( filesize % 4096 )) -ne 0 ]]; then
490 : $(( filesize = filesize & -4096 ))
493 : $(( filesize = (filesize + 4095) & -4096 ))
495 truncate_file "${part_file}" "${filesize}"
498 echo "Extracted ${partitions_array}[${part}]: ${filesize} bytes"
/system/extras/pagecache/
Dpagecache.py30 filename, filesize = self._inode_to_filename[(device_number, inode)]
39 self._file_size[filename] = filesize
43 filename, filesize = self._inode_to_filename[(device_number, inode)]
52 self._file_size[filename] = filesize
75 filesize = self._file_size[filename]
80 …at.format(filename, self.pages_to_mb(added), self.pages_to_mb(removed), self.bytes_to_mb(filesize))
94 filesize = self._file_size[filename]
102 pad.addstr(y, 96, self.bytes_to_mb(filesize).rjust(9))