Home
last modified time | relevance | path

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

12345678910

/external/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/
Dfile_size.pass.cpp35 static_assert(std::is_same<decltype(e.file_size()), uintmax_t>::value, ""); in TEST_CASE()
36 static_assert(std::is_same<decltype(e.file_size(ec)), uintmax_t>::value, in TEST_CASE()
38 static_assert(noexcept(e.file_size()) == false, ""); in TEST_CASE()
39 static_assert(noexcept(e.file_size(ec)) == true, ""); in TEST_CASE()
53 uintmax_t expect = file_size(ent); in TEST_CASE()
60 TEST_CHECK(ent.file_size(ec) == expect); in TEST_CASE()
67 uintmax_t expect = file_size(ent); in TEST_CASE()
73 TEST_CHECK(ent.file_size(ec) == 99); in TEST_CASE()
97 uintmax_t expect = file_size(p, other_ec); in TEST_CASE()
99 uintmax_t got = ent.file_size(ec); in TEST_CASE()
[all …]
/external/strace/tests/
Dsendfile64.c60 unsigned int file_size = 0; in main() local
61 socklen_t optlen = sizeof(file_size); in main()
62 if (getsockopt(sv[1], SOL_SOCKET, SO_SNDBUF, &file_size, &optlen)) in main()
64 if (file_size < 1024) in main()
65 error_msg_and_skip("SO_SNDBUF too small: %u", file_size); in main()
67 file_size /= 4; in main()
68 if (file_size / 16 > page_size) in main()
69 file_size = page_size * 16; in main()
70 const unsigned int blen = file_size / 3; in main()
71 const unsigned int alen = file_size - blen; in main()
[all …]
Dsendfile.c60 unsigned int file_size = 0; in main() local
61 socklen_t optlen = sizeof(file_size); in main()
62 if (getsockopt(sv[1], SOL_SOCKET, SO_SNDBUF, &file_size, &optlen)) in main()
64 if (file_size < 1024) in main()
65 error_msg_and_skip("SO_SNDBUF too small: %u", file_size); in main()
67 file_size /= 4; in main()
68 if (file_size / 16 > page_size) in main()
69 file_size = page_size * 16; in main()
70 const unsigned int blen = file_size / 3; in main()
71 const unsigned int alen = file_size - blen; in main()
[all …]
/external/strace/tests-mx32/
Dsendfile64.c60 unsigned int file_size = 0; in main() local
61 socklen_t optlen = sizeof(file_size); in main()
62 if (getsockopt(sv[1], SOL_SOCKET, SO_SNDBUF, &file_size, &optlen)) in main()
64 if (file_size < 1024) in main()
65 error_msg_and_skip("SO_SNDBUF too small: %u", file_size); in main()
67 file_size /= 4; in main()
68 if (file_size / 16 > page_size) in main()
69 file_size = page_size * 16; in main()
70 const unsigned int blen = file_size / 3; in main()
71 const unsigned int alen = file_size - blen; in main()
[all …]
Dsendfile.c60 unsigned int file_size = 0; in main() local
61 socklen_t optlen = sizeof(file_size); in main()
62 if (getsockopt(sv[1], SOL_SOCKET, SO_SNDBUF, &file_size, &optlen)) in main()
64 if (file_size < 1024) in main()
65 error_msg_and_skip("SO_SNDBUF too small: %u", file_size); in main()
67 file_size /= 4; in main()
68 if (file_size / 16 > page_size) in main()
69 file_size = page_size * 16; in main()
70 const unsigned int blen = file_size / 3; in main()
71 const unsigned int alen = file_size - blen; in main()
[all …]
/external/strace/tests-m32/
Dsendfile64.c60 unsigned int file_size = 0; in main() local
61 socklen_t optlen = sizeof(file_size); in main()
62 if (getsockopt(sv[1], SOL_SOCKET, SO_SNDBUF, &file_size, &optlen)) in main()
64 if (file_size < 1024) in main()
65 error_msg_and_skip("SO_SNDBUF too small: %u", file_size); in main()
67 file_size /= 4; in main()
68 if (file_size / 16 > page_size) in main()
69 file_size = page_size * 16; in main()
70 const unsigned int blen = file_size / 3; in main()
71 const unsigned int alen = file_size - blen; in main()
[all …]
Dsendfile.c60 unsigned int file_size = 0; in main() local
61 socklen_t optlen = sizeof(file_size); in main()
62 if (getsockopt(sv[1], SOL_SOCKET, SO_SNDBUF, &file_size, &optlen)) in main()
64 if (file_size < 1024) in main()
65 error_msg_and_skip("SO_SNDBUF too small: %u", file_size); in main()
67 file_size /= 4; in main()
68 if (file_size / 16 > page_size) in main()
69 file_size = page_size * 16; in main()
70 const unsigned int blen = file_size / 3; in main()
71 const unsigned int alen = file_size - blen; in main()
[all …]
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.file_size/
Dfile_size.pass.cpp33 ASSERT_SAME_TYPE(decltype(file_size(p)), uintmax_t); in TEST_CASE()
34 ASSERT_SAME_TYPE(decltype(file_size(p, ec)), uintmax_t); in TEST_CASE()
35 ASSERT_NOT_NOEXCEPT(file_size(p)); in TEST_CASE()
36 ASSERT_NOEXCEPT(file_size(p, ec)); in TEST_CASE()
42 TEST_CHECK(file_size(p) == 0); in TEST_CASE()
44 TEST_CHECK(file_size(p, ec) == 0); in TEST_CASE()
51 TEST_CHECK(file_size(p) == 42); in TEST_CASE()
53 TEST_CHECK(file_size(p, ec) == 42); in TEST_CASE()
60 TEST_CHECK(file_size(p) == file_size(p2)); in TEST_CASE()
77 TEST_CHECK(file_size(TC.p, ec) == expect); in TEST_CASE()
[all …]
/external/ltp/testcases/kernel/fs/fsx-linux/
Dfsx-linux.c101 off_t file_size = 0; variable
316 save_buffer(good_buf, file_size, fsxgoodfd); in report_failure()
483 if (file_size != statbuf.st_size || file_size != size_by_seek) { in check_size()
485 (unsigned long long)file_size, in check_size()
600 if (size + offset > file_size) { in doread()
655 if (size + offset > file_size) { in domapread()
734 log4(OP_WRITE, offset, size, file_size, &t); in dowrite()
737 if (file_size < offset + size) { in dowrite()
738 if (file_size < offset) in dowrite()
739 memset(good_buf + file_size, '\0', offset - file_size); in dowrite()
[all …]
/external/libbrillo/brillo/
Dcryptohome.cc48 int64_t file_size; in EnsureSystemSaltIsLoaded() local
49 if (!base::GetFileSize(salt_path, &file_size)) { in EnsureSystemSaltIsLoaded()
53 if (file_size > static_cast<int64_t>(std::numeric_limits<int>::max())) { in EnsureSystemSaltIsLoaded()
54 LOG(ERROR) << "System salt too large: " << file_size; in EnsureSystemSaltIsLoaded()
58 buf.resize(file_size); in EnsureSystemSaltIsLoaded()
59 unsigned int data_read = base::ReadFile(salt_path, buf.data(), file_size); in EnsureSystemSaltIsLoaded()
60 if (data_read != file_size) { in EnsureSystemSaltIsLoaded()
62 << " != " << file_size; in EnsureSystemSaltIsLoaded()
68 salt->assign(buf.data(), file_size); in EnsureSystemSaltIsLoaded()
/external/fsverity-utils/
Dcmd_enable.c51 u64 file_size; in read_signature() local
57 if (!get_file_size(&file, &file_size)) in read_signature()
59 if (file_size <= 0) { in read_signature()
63 if (file_size > 1000000) { in read_signature()
67 sig = xmalloc(file_size); in read_signature()
68 if (!full_read(&file, sig, file_size)) in read_signature()
71 *sig_size_ret = file_size; in read_signature()
/external/v4l2_codec2/tests/c2_e2e_test/jni/
Dencoded_data_helper.cpp104 int file_size = input.GetLength(); in EncodedDataHelper() local
105 if (file_size <= 0) { in EncodedDataHelper()
106 ALOGE("Stream byte size (=%d) is invalid", file_size); in EncodedDataHelper()
111 char* read_bytes = new char[file_size]; in EncodedDataHelper()
112 if (input.Read(read_bytes, file_size) != file_size) { in EncodedDataHelper()
119 std::string data(read_bytes, file_size); in EncodedDataHelper()
/external/autotest/client/site_tests/hardware_TrimIntegrity/
Dhardware_TrimIntegrity.py99 def run_once(self, filename=None, file_size=FILE_SIZE, argument
121 if file_size == 0:
123 file_size = utils.get_disk_size(self._filename)
124 if file_size == 0:
132 file_size -= file_size % (4 * chunk_size)
137 fio_file_size = file_size
139 logging.info('filename: %s, filesize: %d', self._filename, file_size)
155 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 …]
/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/u-boot/tools/
Dmksunxiboot.c70 unsigned file_size; in main() local
118 file_size = lseek(fd_in, 0, SEEK_END); in main()
120 if (file_size > SRAM_LOAD_MAX_SIZE) { in main()
133 count = read(fd_in, img.code, file_size); in main()
134 if (count != file_size) { in main()
146 ALIGN(file_size + sizeof(struct boot_file_head), BLOCK_SIZE); in main()
/external/u-boot/lib/efi_loader/
Defi_file.c332 loff_t *file_size) in efi_get_file_size() argument
337 if (fs_size(fh->path, file_size)) in efi_get_file_size()
348 loff_t file_size; in file_read() local
350 ret = efi_get_file_size(fh, &file_size); in file_read()
353 if (file_size < fh->offset) { in file_read()
421 info->file_size = dent->size; in dir_read()
574 loff_t file_size; in efi_file_setpos() local
576 ret = efi_get_file_size(fh, &file_size); in efi_file_setpos()
579 pos = file_size; in efi_file_setpos()
609 loff_t file_size; in efi_file_getinfo() local
[all …]
/external/tensorflow/tensorflow/core/platform/s3/
Ds3_file_system_test.cc52 uint64 file_size = 0; in ReadAll() local
53 TF_RETURN_IF_ERROR(s3fs.GetFileSize(fname, &file_size)); in ReadAll()
55 content->resize(file_size); in ReadAll()
57 TF_RETURN_IF_ERROR(reader->Read(0, file_size, &result, &(*content)[0])); in ReadAll()
58 if (file_size != result.size()) { in ReadAll()
59 return errors::DataLoss("expected ", file_size, " got ", result.size(), in ReadAll()
166 uint64 file_size = 0; in TEST_F() local
167 TF_EXPECT_OK(s3fs.GetFileSize(fname, &file_size)); in TEST_F()
168 EXPECT_EQ(4, file_size); in TEST_F()
/external/perfetto/src/trace_processor/
Dread_trace.cc52 uint64_t file_size = 0; in ReadTrace() local
75 progress_callback(file_size); in ReadTrace()
82 file_size += static_cast<uint64_t>(rsize); in ReadTrace()
107 progress_callback(file_size); in ReadTrace()
113 file_size += static_cast<uint64_t>(rsize); in ReadTrace()
125 progress_callback(file_size); in ReadTrace()
/external/avb/test/
Dfake_avb_ops.cc58 int64_t file_size; in preload_partition() local
59 if (!base::GetFileSize(path, &file_size)) { in preload_partition()
73 uint8_t* buffer = static_cast<uint8_t*>(malloc(file_size)); in preload_partition()
74 ssize_t num_read = read(fd, buffer, file_size); in preload_partition()
75 if (num_read != file_size) { in preload_partition()
78 file_size, in preload_partition()
105 int64_t file_size; in read_from_partition() local
106 if (!base::GetFileSize(path, &file_size)) { in read_from_partition()
111 offset = file_size - (-offset); in read_from_partition()
197 int64_t file_size; in write_to_partition() local
[all …]
/external/python/cpython2/Lib/
Dzipfile.py336 CRC = compress_size = file_size = 0
340 file_size = self.file_size
345 zip64 = file_size > ZIP64_LIMIT or compress_size > ZIP64_LIMIT
349 1, struct.calcsize(fmt)-4, file_size, compress_size)
350 if file_size > ZIP64_LIMIT or compress_size > ZIP64_LIMIT:
355 file_size = 0xffffffff
364 compress_size, file_size,
404 if self.file_size in (0xffffffffffffffffL, 0xffffffffL):
405 self.file_size = counts[idx]
850 x.CRC, x.compress_size, x.file_size) = centdir[1:12]
[all …]
/external/chromium-trace/catapult/third_party/zipfile/
Dzipfile_2_7_13.py336 CRC = compress_size = file_size = 0
340 file_size = self.file_size
345 zip64 = file_size > ZIP64_LIMIT or compress_size > ZIP64_LIMIT
349 1, struct.calcsize(fmt)-4, file_size, compress_size)
350 if file_size > ZIP64_LIMIT or compress_size > ZIP64_LIMIT:
355 file_size = 0xffffffff
364 compress_size, file_size,
404 if self.file_size in (0xffffffffffffffffL, 0xffffffffL):
405 self.file_size = counts[idx]
853 x.CRC, x.compress_size, x.file_size) = centdir[1:12]
[all …]
/external/ltp/testcases/kernel/mem/mtest06/
Dmmap1.c47 static int file_size = 1024; variable
112 (size_t) file_size, PROT_WRITE | PROT_READ, in map_write_unmap()
116 for (j = 0; j < file_size; j++) in map_write_unmap()
121 SAFE_MUNMAP(tmp, file_size); in map_write_unmap()
139 for (j = 0; j < file_size; j++) { in read_mem()
229 int fd = mkfile(file_size); in run()
/external/tensorflow/tensorflow/core/util/
Dtensor_slice_writer.cc46 Status Finish(int64* file_size) override { in Finish() argument
47 *file_size = -1; in Finish()
52 *file_size = builder_->FileSize(); in Finish()
114 int64 file_size; in Finish() local
115 s = builder->Finish(&file_size); in Finish()
121 << sts_.meta().tensor_size() << " tensors (" << file_size in Finish()

12345678910