Searched refs:filesize (Results 1 – 4 of 4) sorted by relevance
/system/extras/tests/pagingtest/ |
D | thrashing_test.c | 21 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/core/mkbootimg/ |
D | mkbootimg.py | 25 def filesize(f): function 38 sha.update(pack('I', filesize(f))) 56 num_kernel_pages = get_number_of_pages(filesize(args.kernel), args.pagesize) 57 num_ramdisk_pages = get_number_of_pages(filesize(args.ramdisk), args.pagesize) 58 num_second_pages = get_number_of_pages(filesize(args.second), args.pagesize) 74 filesize(args.kernel), # size in bytes 76 filesize(args.ramdisk), # size in bytes 78 filesize(args.second), # size in bytes 103 args.output.write(pack('I', filesize(args.recovery_dtbo))) # size in bytes 116 args.output.write(pack('I', filesize(args.dtb))) # size in bytes
|
/system/update_engine/scripts/ |
D | brillo_update_payload | 441 local filesize=$(stat -c%s "${part_file}") 442 if [[ $(( filesize % 4096 )) -ne 0 ]]; then 445 : $(( filesize = filesize & -4096 )) 448 : $(( filesize = (filesize + 4095) & -4096 )) 450 truncate_file "${part_file}" "${filesize}" 453 echo "Extracted ${partitions_array}[${part}]: ${filesize} bytes"
|
/system/extras/pagecache/ |
D | pagecache.py | 30 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))
|