/external/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/ |
D | file_size.pass.cpp | 35 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/ |
D | sendfile64.c | 60 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 …]
|
D | sendfile.c | 60 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/ |
D | sendfile64.c | 60 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 …]
|
D | sendfile.c | 60 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/ |
D | sendfile64.c | 60 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 …]
|
D | sendfile.c | 60 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/ |
D | file_size.pass.cpp | 33 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/ |
D | fsx-linux.c | 101 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/v8/tools/ |
D | shell-utils.h | 49 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/ |
D | cryptohome.cc | 48 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/perf_data_converter/src/quipper/ |
D | file_utils.cc | 17 size_t file_size = reader.size(); in FileToBuffer() local 18 contents->resize(file_size); in FileToBuffer() 20 if (file_size > 0 && !reader.ReadData(file_size, contents->data())) { in FileToBuffer() 21 LOG(ERROR) << "Failed to read " << file_size << " bytes from file " in FileToBuffer()
|
/external/libxcam/xcore/ |
D | calibration_parser.cpp | 197 size_t file_size = 0; in parse_intrinsic_file() local 203 WARNING, xcam_ret_is_ok (ret = file_reader.get_file_size (file_size)), ret, in parse_intrinsic_file() 205 context.resize (file_size + 1); in parse_intrinsic_file() 207 WARNING, xcam_ret_is_ok (ret = file_reader.read_file (&context[0], file_size)), ret, in parse_intrinsic_file() 208 "read intrinsic file(%s) failed, file size:%d.", file_path, (int)file_size); in parse_intrinsic_file() 210 context[file_size] = '\0'; in parse_intrinsic_file() 223 size_t file_size = 0; in parse_extrinsic_file() local 229 WARNING, xcam_ret_is_ok (ret = file_reader.get_file_size (file_size)), ret, in parse_extrinsic_file() 231 context.resize (file_size + 1); in parse_extrinsic_file() 233 WARNING, xcam_ret_is_ok (ret = file_reader.read_file (&context[0], file_size)), ret, in parse_extrinsic_file() [all …]
|
/external/squashfs-tools/squashfs-tools/ |
D | process_fragments.c | 278 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()
|
D | squashfs_compat.h | 126 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/site_tests/hardware_TrimIntegrity/ |
D | hardware_TrimIntegrity.py | 99 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/pdfium/core/fpdfapi/parser/ |
D | cpdf_linearized_header.cpp | 41 FX_FILESIZE file_size) { in IsLinearizedHeaderValid() argument 43 return header->GetFileSize() == file_size && in IsLinearizedHeaderValid() 46 header->GetMainXRefTableFirstEntryOffset() < file_size && in IsLinearizedHeaderValid() 48 header->GetFirstPageEndOffset() < file_size && in IsLinearizedHeaderValid() 49 header->GetLastXRefOffset() < file_size && in IsLinearizedHeaderValid() 50 header->GetHintStart() < file_size; in IsLinearizedHeaderValid()
|
/external/avb/test/ |
D | fake_avb_ops.cc | 58 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/autotest/client/tests/rmaptest/src/ |
D | rmap-test.c | 142 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/tensorflow/tensorflow/core/platform/s3/ |
D | s3_file_system_test.cc | 53 uint64 file_size = 0; in ReadAll() local 54 TF_RETURN_IF_ERROR(s3fs.GetFileSize(fname, &file_size)); in ReadAll() 56 content->resize(file_size); in ReadAll() 59 reader->Read(0, file_size, &result, gtl::string_as_array(content))); in ReadAll() 60 if (file_size != result.size()) { in ReadAll() 61 return errors::DataLoss("expected ", file_size, " got ", result.size(), in ReadAll() 169 uint64 file_size = 0; in TEST_F() local 170 TF_EXPECT_OK(s3fs.GetFileSize(fname, &file_size)); in TEST_F() 171 EXPECT_EQ(4, file_size); in TEST_F()
|
/external/chromium-trace/catapult/third_party/zipfile/ |
D | zipfile_2_7_13.py | 336 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/python/cpython2/Lib/ |
D | zipfile.py | 336 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/u-boot/tools/ |
D | mksunxiboot.c | 70 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/tensorflow/tensorflow/core/platform/hadoop/ |
D | hadoop_file_system_test.cc | 53 uint64 file_size = 0; in ReadAll() local 54 TF_RETURN_IF_ERROR(hdfs.GetFileSize(fname, &file_size)); in ReadAll() 56 content->resize(file_size); in ReadAll() 59 reader->Read(0, file_size, &result, gtl::string_as_array(content))); in ReadAll() 60 if (file_size != result.size()) { in ReadAll() 61 return errors::DataLoss("expected ", file_size, " got ", result.size(), in ReadAll() 149 uint64 file_size = 0; in TEST_F() local 150 TF_EXPECT_OK(hdfs.GetFileSize(fname, &file_size)); in TEST_F() 151 EXPECT_EQ(4, file_size); in TEST_F()
|
/external/ltp/testcases/kernel/mem/mtest06/ |
D | mmap1.c | 33 static int file_size = 1024; variable 98 (size_t) file_size, PROT_WRITE | PROT_READ, in map_write_unmap() 102 for (j = 0; j < file_size; j++) in map_write_unmap() 107 SAFE_MUNMAP(tmp, file_size); in map_write_unmap() 125 for (j = 0; j < file_size; j++) { in read_mem() 215 int fd = mkfile(file_size); in run()
|