/external/selinux/libsepol/cil/test/unit/ |
CilTest.h | 38 uint32_t file_size; member in struct:cil_file_data
|
test_cil_parser.c | 52 rc = cil_parser("policy.cil", data->buffer, data->file_size + 2, &test_parse_root);
|
/external/perf_data_converter/src/quipper/ |
file_utils.cc | 17 size_t file_size = reader.size(); 18 contents->resize(file_size); 20 if (file_size > 0 && !reader.ReadData(file_size, contents->data())) { 21 LOG(ERROR) << "Failed to read " << file_size << " bytes from file "
|
/external/strace/tests/ |
sendfile64.c | 60 unsigned int file_size = 0; local 61 socklen_t optlen = sizeof(file_size); 62 if (getsockopt(sv[1], SOL_SOCKET, SO_SNDBUF, &file_size, &optlen)) 64 if (file_size < 1024) 65 error_msg_and_skip("SO_SNDBUF too small: %u", file_size); 67 file_size /= 4; 68 if (file_size / 16 > page_size) 69 file_size = page_size * 16; 70 const unsigned int blen = file_size / 3; 71 const unsigned int alen = file_size - blen [all...] |
sendfile.c | 60 unsigned int file_size = 0; local 61 socklen_t optlen = sizeof(file_size); 62 if (getsockopt(sv[1], SOL_SOCKET, SO_SNDBUF, &file_size, &optlen)) 64 if (file_size < 1024) 65 error_msg_and_skip("SO_SNDBUF too small: %u", file_size); 67 file_size /= 4; 68 if (file_size / 16 > page_size) 69 file_size = page_size * 16; 70 const unsigned int blen = file_size / 3; 71 const unsigned int alen = file_size - blen [all...] |
/external/strace/tests-m32/ |
sendfile64.c | 60 unsigned int file_size = 0; local 61 socklen_t optlen = sizeof(file_size); 62 if (getsockopt(sv[1], SOL_SOCKET, SO_SNDBUF, &file_size, &optlen)) 64 if (file_size < 1024) 65 error_msg_and_skip("SO_SNDBUF too small: %u", file_size); 67 file_size /= 4; 68 if (file_size / 16 > page_size) 69 file_size = page_size * 16; 70 const unsigned int blen = file_size / 3; 71 const unsigned int alen = file_size - blen [all...] |
sendfile.c | 60 unsigned int file_size = 0; local 61 socklen_t optlen = sizeof(file_size); 62 if (getsockopt(sv[1], SOL_SOCKET, SO_SNDBUF, &file_size, &optlen)) 64 if (file_size < 1024) 65 error_msg_and_skip("SO_SNDBUF too small: %u", file_size); 67 file_size /= 4; 68 if (file_size / 16 > page_size) 69 file_size = page_size * 16; 70 const unsigned int blen = file_size / 3; 71 const unsigned int alen = file_size - blen [all...] |
/external/strace/tests-mx32/ |
sendfile64.c | 60 unsigned int file_size = 0; local 61 socklen_t optlen = sizeof(file_size); 62 if (getsockopt(sv[1], SOL_SOCKET, SO_SNDBUF, &file_size, &optlen)) 64 if (file_size < 1024) 65 error_msg_and_skip("SO_SNDBUF too small: %u", file_size); 67 file_size /= 4; 68 if (file_size / 16 > page_size) 69 file_size = page_size * 16; 70 const unsigned int blen = file_size / 3; 71 const unsigned int alen = file_size - blen [all...] |
sendfile.c | 60 unsigned int file_size = 0; local 61 socklen_t optlen = sizeof(file_size); 62 if (getsockopt(sv[1], SOL_SOCKET, SO_SNDBUF, &file_size, &optlen)) 64 if (file_size < 1024) 65 error_msg_and_skip("SO_SNDBUF too small: %u", file_size); 67 file_size /= 4; 68 if (file_size / 16 > page_size) 69 file_size = page_size * 16; 70 const unsigned int blen = file_size / 3; 71 const unsigned int alen = file_size - blen [all...] |
/external/v8/tools/ |
shell-utils.h | 49 int file_size = static_cast<int>(ftell(file)); local 52 *size = file_size * repeat; 55 for (int i = 0; i < file_size;) { 56 int read = static_cast<int>(fread(&chars[i], 1, file_size - i, file)); 61 for (int i = file_size; i < *size; i++) { 62 chars[i] = chars[i - file_size];
|
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.file_size/ |
file_size.pass.cpp | 14 // uintmax_t file_size(const path& p); 15 // uintmax_t file_size(const path& p, std::error_code& ec) noexcept; 33 ASSERT_SAME_TYPE(decltype(file_size(p)), uintmax_t); 34 ASSERT_SAME_TYPE(decltype(file_size(p, ec)), uintmax_t); 35 ASSERT_NOT_NOEXCEPT(file_size(p)); 36 ASSERT_NOEXCEPT(file_size(p, ec)); 42 TEST_CHECK(file_size(p) == 0); 44 TEST_CHECK(file_size(p, ec) == 0); 51 TEST_CHECK(file_size(p) == 42); 53 TEST_CHECK(file_size(p, ec) == 42) [all...] |
/bootable/recovery/minadbd/ |
fuse_adb_provider.h | 26 FuseAdbDataProvider(int fd, uint64_t file_size, uint32_t block_size) 27 : FuseDataProvider(file_size, block_size), fd_(fd) {}
|
/external/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/ |
file_size.pass.cpp | 16 // uintmax_t file_size() const; 17 // uintmax_t file_size(error_code const&) const noexcept; 35 static_assert(std::is_same<decltype(e.file_size()), uintmax_t>::value, ""); 36 static_assert(std::is_same<decltype(e.file_size(ec)), uintmax_t>::value, 38 static_assert(noexcept(e.file_size()) == false, ""); 39 static_assert(noexcept(e.file_size(ec)) == true, ""); 53 uintmax_t expect = file_size(ent); 60 TEST_CHECK(ent.file_size(ec) == expect); 67 uintmax_t expect = file_size(ent); 73 TEST_CHECK(ent.file_size(ec) == 99) [all...] |
/bootable/recovery/fuse_sideload/include/ |
fuse_provider.h | 28 FuseDataProvider(uint64_t file_size, uint32_t block_size) 29 : file_size_(file_size), fuse_block_size_(block_size) {} 33 uint64_t file_size() const { function in class:FuseDataProvider
|
/device/google/cuttlefish_common/host/commands/launch/ |
vsoc_shared_memory.cc | 110 uint32_t file_size) { 117 header->size = file_size; 167 uint32_t file_size = local 171 allocators.emplace_back(*layout, file_size /* offset */, 175 file_size += allocators.back().region_size; 177 file_size = cvd::RoundUpToNextPowerOf2(file_size); 179 int truncate_res = shared_mem_fd->Truncate(file_size); 185 shared_mem_fd->Mmap(0, file_size, PROT_READ | PROT_WRITE, MAP_SHARED, 0); 188 WriteLayout(mmap_addr, allocators, file_size); [all...] |
/device/google/contexthub/util/nanotool/ |
calibrationfile.cpp | 48 off64_t file_size = file_->seekTo(0, SEEK_END); local 49 if (file_size > 0) { 50 auto file_data = std::vector<char>(file_size); 52 ssize_t bytes_read = file_->read(file_data.data(), file_size); 53 if (bytes_read != file_size) { 55 bytes_read, file_size); 59 sp<JSONCompound> json = JSONCompound::Parse(file_data.data(), file_size);
|
/external/libbrillo/brillo/ |
cryptohome.cc | 48 int64_t file_size; local 49 if (!base::GetFileSize(salt_path, &file_size)) { 53 if (file_size > static_cast<int64_t>(std::numeric_limits<int>::max())) { 54 LOG(ERROR) << "System salt too large: " << file_size; 58 buf.resize(file_size); 59 unsigned int data_read = base::ReadFile(salt_path, buf.data(), file_size); 60 if (data_read != file_size) { 62 << " != " << file_size; local 68 salt->assign(buf.data(), file_size);
|
/external/pdfium/core/fpdfapi/parser/ |
cpdf_linearized_header.cpp | 41 FX_FILESIZE file_size) { 43 return header->GetFileSize() == file_size && 46 header->GetMainXRefTableFirstEntryOffset() < file_size && 48 header->GetFirstPageEndOffset() < file_size && 49 header->GetLastXRefOffset() < file_size && 50 header->GetHintStart() < file_size;
|
/external/icu/tools/ |
ziputil.py | 45 a.file_size == b.file_size and
|
/external/tensorflow/tensorflow/python/framework/ |
test_file_system.cc | 47 Status GetFileSize(const string& fname, uint64* file_size) override { 48 *file_size = 10;
|
/external/libxcam/xcore/ |
file_handle.cpp | 108 long file_size; local 116 if ((file_size = ftell (_fp)) <= 0) 122 _file_size = file_size; 123 size = file_size;
|
/external/u-boot/tools/ |
rkimage.c | 22 rkcommon_rc4_encode_spl(buf, 4, params->file_size);
|
/bootable/recovery/otautil/include/otautil/ |
sysutil.h | 50 uint64_t file_size() const { function in class:BlockMapData 63 BlockMapData(const std::string& path, uint64_t file_size, uint32_t block_size, 66 file_size_(file_size),
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/ |
3-1.c | 34 long file_size; local 49 file_size = 2 * page_size; 65 if (ftruncate(fd, file_size) == -1) {
|
9-1.c | 31 long file_size; local 44 file_size = 2 * page_size; 60 if (ftruncate(fd, file_size) == -1) {
|