Home
last modified time | relevance | path

Searched refs:file_size (Results 1 – 25 of 132) sorted by relevance

123456

/external/v8/tools/
Dshell-utils.h49 int file_size = static_cast<int>(ftell(file)); in ReadFileAndRepeat() local
52 *size = file_size * repeat; in ReadFileAndRepeat()
55 for (int i = 0; i < file_size;) { in ReadFileAndRepeat()
56 int read = static_cast<int>(fread(&chars[i], 1, file_size - i, file)); in ReadFileAndRepeat()
61 for (int i = file_size; i < *size; i++) { in ReadFileAndRepeat()
62 chars[i] = chars[i - file_size]; in ReadFileAndRepeat()
/external/libbrillo/brillo/
Dcryptohome.cc37 int64_t file_size; in EnsureSystemSaltIsLoaded() local
38 if (!base::GetFileSize(salt_path, &file_size)) { in EnsureSystemSaltIsLoaded()
42 if (file_size > static_cast<int64_t>(std::numeric_limits<int>::max())) { in EnsureSystemSaltIsLoaded()
43 LOG(ERROR) << "System salt too large: " << file_size; in EnsureSystemSaltIsLoaded()
47 buf.resize(file_size); in EnsureSystemSaltIsLoaded()
48 unsigned int data_read = base::ReadFile(salt_path, buf.data(), file_size); in EnsureSystemSaltIsLoaded()
49 if (data_read != file_size) { in EnsureSystemSaltIsLoaded()
51 << " != " << file_size; in EnsureSystemSaltIsLoaded()
57 salt->assign(buf.data(), file_size); in EnsureSystemSaltIsLoaded()
/external/chromium-trace/catapult/telemetry/telemetry/core/
Dmemory_cache_http_server_unittest.py27 file_size = self._test_file_size
28 last_byte = file_size - 1
30 self.CheckContentHeaders('0-', '0-%d' % last_byte, file_size)
33 self.CheckContentHeaders('100-', '100-%d' % last_byte, file_size - 100)
39 self.CheckContentHeaders('-228', '%d-%d' % (file_size - 228, last_byte),
43 self.CheckContentHeaders('100-5', '100-%d' % last_byte, file_size - 100)
/external/valgrind/none/tests/linux/
Dpthread-stack.c73 const size_t file_size = 1024 * 1024; in main() local
78 void *p = malloc(file_size); in main()
80 memset(p, 0, file_size); in main()
81 int written = write(fd, p, file_size); in main()
82 assert(written == file_size); in main()
90 assert(stack_size < file_size); in main()
/external/autotest/client/site_tests/hardware_TrimIntegrity/
Dhardware_TrimIntegrity.py97 def run_once(self, filename=None, file_size=FILE_SIZE, argument
119 if file_size == 0:
121 file_size = utils.get_disk_size(self._filename)
122 if file_size == 0:
130 file_size -= file_size % (4 * chunk_size)
135 fio_file_size = file_size
137 logging.info('filename: %s, filesize: %d', self._filename, file_size)
153 chunk_count = file_size / chunk_size
/external/squashfs-tools/squashfs-tools/
Dprocess_fragments.c278 long long file_size; in frag_thrd() local
304 if(file_buffer->file_size != file_buffer->size) { in frag_thrd()
309 file_size = file_buffer->file_size; in frag_thrd()
312 dupl_ptr = dupl[DUP_HASH(file_size)]; in frag_thrd()
319 if(file_size != dupl_ptr->file_size || in frag_thrd()
320 file_size != dupl_ptr->fragment->size) in frag_thrd()
351 dupl_ptr->fragment->offset, file_size); in frag_thrd()
Dsquashfs_compat.h126 unsigned int file_size; member
141 long long file_size; member
153 unsigned int file_size:19; member
167 unsigned int file_size:27; member
310 SQUASHFS_SWAP((s)->file_size, d, 224, 32);\
321 SQUASHFS_SWAP((s)->file_size, d, 256, 64);\
329 SQUASHFS_SWAP((s)->file_size, d, 128, 19);\
340 SQUASHFS_SWAP((s)->file_size, d, 128, 27);\
486 unsigned int file_size:32; member
495 unsigned int file_size:19; member
[all …]
Dread_fs.c254 0 : inode.file_size % sBlk->block_size; in scan_inode_table()
256 (inode.file_size + sBlk->block_size - 1) >> in scan_inode_table()
257 sBlk->block_log : inode.file_size >> in scan_inode_table()
262 "blocks %d\n", inode.file_size, blocks); in scan_inode_table()
275 *uncompressed_file += inode.file_size; in scan_inode_table()
289 add_file(start, inode.file_size, file_bytes, in scan_inode_table()
309 0 : inode.file_size % sBlk->block_size; in scan_inode_table()
311 (inode.file_size + sBlk->block_size - 1) >> in scan_inode_table()
312 sBlk->block_log : inode.file_size >> in scan_inode_table()
318 inode.file_size, blocks); in scan_inode_table()
[all …]
Dunsquash-4.c126 i.data = inode->file_size; in read_inode_4()
137 i.data = inode->file_size; in read_inode_4()
148 i.data = inode->file_size; in read_inode_4()
150 ? 0 : inode->file_size % sBlk.s.block_size; in read_inode_4()
168 i.data = inode->file_size; in read_inode_4()
170 ? 0 : inode->file_size % sBlk.s.block_size; in read_inode_4()
174 (inode->file_size + sBlk.s.block_size - 1) >> in read_inode_4()
176 inode->file_size >> sBlk.s.block_log; in read_inode_4()
Dunsquash-3.c159 i.data = inode->file_size; in read_inode_3()
176 i.data = inode->file_size; in read_inode_3()
192 i.data = inode->file_size; in read_inode_3()
194 ? 0 : inode->file_size % sBlk.s.block_size; in read_inode_3()
217 i.data = inode->file_size; in read_inode_3()
219 ? 0 : inode->file_size % sBlk.s.block_size; in read_inode_3()
223 (inode->file_size + sBlk.s.block_size - 1) >> in read_inode_3()
225 inode->file_size >> sBlk.s.block_log; in read_inode_3()
/external/autotest/client/tests/rmaptest/src/
Drmap-test.c142 loff_t file_size; in main() local
191 file_size = nvmas; in main()
192 file_size *= vmasize; in main()
193 file_size += nvmas - 1; in main()
194 file_size *= pagesize; in main()
197 file_size / 1024, in main()
200 if (ftruncate(fd, file_size) < 0) { in main()
/external/valgrind/none/tests/solaris/
Dpthread-stack.c68 size_t file_size = 1024 * 1024; in main() local
73 void *p = calloc(file_size, 1); in main()
75 int written = write(fd, p, file_size); in main()
76 assert(written == file_size); in main()
84 assert(stack_size < file_size); in main()
/external/libchrome/base/files/
Dfile_unittest.cc208 int64_t file_size = 0; in TEST() local
209 EXPECT_TRUE(GetFileSize(file_path, &file_size)); in TEST()
210 EXPECT_EQ(kOffsetBeyondEndOfFile + kPartialWriteLength, file_size); in TEST()
214 bytes_read = file.Read(0, data_read_2, static_cast<int>(file_size)); in TEST()
215 EXPECT_EQ(file_size, bytes_read); in TEST()
220 for (int i = kOffsetBeyondEndOfFile; i < file_size; i++) in TEST()
290 int64_t file_size = 0; in TEST() local
293 EXPECT_TRUE(GetFileSize(file_path, &file_size)); in TEST()
294 EXPECT_EQ(kExtendedFileLength, file_size); in TEST()
298 int bytes_read = file.Read(0, data_read, static_cast<int>(file_size)); in TEST()
[all …]
/external/squashfs-tools/kernel-2.4/include/linux/
Dsquashfs_fs.h287 unsigned int file_size; member
297 long long file_size; member
304 unsigned int file_size:19; member
313 unsigned int file_size:27; member
445 SQUASHFS_SWAP((s)->file_size, d, 224, 32);\
456 SQUASHFS_SWAP((s)->file_size, d, 256, 64);\
464 SQUASHFS_SWAP((s)->file_size, d, 128, 19);\
475 SQUASHFS_SWAP((s)->file_size, d, 128, 27);\
598 unsigned int file_size:32; member
607 unsigned int file_size:19; member
[all …]
/external/sfntly/cpp/src/sample/chromium/
Dchrome_subsetter.cc54 size_t file_size = ftell(input_file); in LoadFile() local
56 input_buffer->resize(file_size); in LoadFile()
57 size_t bytes_read = fread(&((*input_buffer)[0]), 1, file_size, input_file); in LoadFile()
59 return bytes_read == file_size; in LoadFile()
/external/sfntly/cpp/src/test/
Dtest_font_utils.cc75 size_t file_size = ftell(input_file); in LoadFile() local
77 input_buffer->resize(file_size); in LoadFile()
78 size_t bytes_read = fread(&((*input_buffer)[0]), 1, file_size, input_file); in LoadFile()
79 EXPECT_EQ(bytes_read, file_size); in LoadFile()
/external/vboot_reference/host/lib/
Dhost_key.c200 int PublicKeyLooksOkay(VbPublicKey *key, uint64_t file_size) in PublicKeyLooksOkay() argument
205 if (0 != VerifyPublicKeyInside(key, file_size, key)) { in PublicKeyLooksOkay()
231 uint64_t file_size; in PublicKeyRead() local
233 key = (VbPublicKey*)ReadFile(filename, &file_size); in PublicKeyRead()
237 if (PublicKeyLooksOkay(key, file_size)) in PublicKeyRead()
/external/autotest/client/site_tests/hardware_MultiReaderPowerConsumption/
Dcontrol30 @param file_size: test file size (integer in MiB).
45 file_size = int(args_dict.get("file_size", 512)) # MiB
52 file_size=file_size,
/external/netperf/src/
Dnetcpu_looper.c278 unsigned int i, file_size; in start_looper_processes() local
286 file_size = ((netlib_get_page_size() * PAGES_PER_CHILD) * in start_looper_processes()
316 if (truncate("/tmp/netperf_cpu",file_size) == -1) { in start_looper_processes()
333 file_size, in start_looper_processes()
347 file_size, in start_looper_processes()
384 if ((lib_base_pointer = malloc(file_size)) == NULL) { in start_looper_processes()
387 file_size); in start_looper_processes()
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/
Dinput_audio_file.cc51 const long file_size = ftell(fp_); in Seek() local
52 RTC_CHECK_NE(EOF, file_size) << "Error returned when getting file position."; in Seek()
57 new_pos = new_pos % file_size; // Wrap around the end of the file. in Seek()
/external/vboot_reference/futility/
Dcmd_vbutil_kernel.c178 uint64_t file_size = 0; in ReadOldKPartFromFileOrDie() local
187 ioctl(fd, BLKGETSIZE64, &file_size); in ReadOldKPartFromFileOrDie()
192 file_size = statbuf.st_size; in ReadOldKPartFromFileOrDie()
194 Debug("%s size is 0x%" PRIx64 "\n", filename, file_size); in ReadOldKPartFromFileOrDie()
195 if (file_size < opt_pad) in ReadOldKPartFromFileOrDie()
204 buf = malloc(file_size); in ReadOldKPartFromFileOrDie()
205 if (1 != fread(buf, file_size, 1, fp)) in ReadOldKPartFromFileOrDie()
210 *size_ptr = file_size; in ReadOldKPartFromFileOrDie()
/external/google-breakpad/src/processor/
Dsource_line_resolver_base.cc106 off_t file_size = buf.st_size; in ReadSymbolFile() local
110 *symbol_data_size = file_size + 1; in ReadSymbolFile()
111 *symbol_data = new char[file_size + 1]; in ReadSymbolFile()
135 items_read = fread(*symbol_data, 1, file_size, f); in ReadSymbolFile()
137 if (items_read != file_size) { in ReadSymbolFile()
147 (*symbol_data)[file_size] = '\0'; in ReadSymbolFile()
/external/sfntly/cpp/src/sample/subsetter/
Dsubset_util.cc52 size_t file_size = ftell(input_file); in Subset() local
54 input_buffer.resize(file_size); in Subset()
55 size_t bytes_read = fread(&(input_buffer[0]), 1, file_size, input_file); in Subset()
/external/skia/platform_tools/android/bin/
Dhttp_download.py75 file_size = os.path.getsize(target)
76 if content_len != file_size:
78 file_size, content_len))
/external/compiler-rt/lib/profile/
DGCDAProfiling.c74 static uint64_t file_size = 0; variable
207 file_size = ftell(output_file); in map_file()
211 if (file_size == 0) in map_file()
214 write_buffer = mmap(0, file_size, PROT_READ | PROT_WRITE, in map_file()
226 if (msync(write_buffer, file_size, MS_SYNC) == -1) { in unmap_file()
235 (void)munmap(write_buffer, file_size); in unmap_file()
237 file_size = 0; in unmap_file()

123456