Home
last modified time | relevance | path

Searched refs:file_length (Results 1 – 22 of 22) sorted by relevance

/external/pdfium/testing/utils/
Dfile_util.cpp20 size_t file_length = ftell(file); in GetFileContents() local
21 if (!file_length) { in GetFileContents()
26 static_cast<char*>(malloc(file_length))); in GetFileContents()
30 size_t bytes_read = fread(buffer.get(), 1, file_length, file); in GetFileContents()
32 if (bytes_read != file_length) { in GetFileContents()
/external/ltp/testcases/kernel/syscalls/ftruncate/
Dftruncate01.c33 int i, file_length; in check_and_report() local
40 file_length = stat_buf.st_size; in check_and_report()
42 if (file_length != trunc_len) { in check_and_report()
44 file_length); in check_and_report()
/external/ltp/testcases/kernel/syscalls/truncate/
Dtruncate01.c98 off_t file_length; /* test file length */ in main() local
130 file_length = stat_buf.st_size; in main()
136 if (file_length != TRUNC_LEN) { in main()
140 (int64_t) file_length, in main()
/external/dynamic_depth/internal/dynamic_depth/
Ddynamic_depth.cc97 size_t file_length = 0; in GetItemPayload() local
105 file_length = item->GetLength(); in GetItemPayload()
113 if (file_length == 0) { in GetItemPayload()
131 ParseFileAfterImageFromStream(file_offset, file_length, input_jpeg_stream, in GetItemPayload()
/external/u-boot/common/
DxyzModem.c52 unsigned long file_length, read_length; member
439 xyz.file_length = 0; in xyzModem_stream_open()
461 parse_num ((char *) xyz.bufp, &xyz.file_length, NULL, " "); in xyzModem_stream_open()
514 if (xyz.mode == xyzModem_xmodem || xyz.file_length == 0) in xyzModem_stream_read()
536 if (xyz.mode != xyzModem_xmodem && 0 != xyz.file_length) in xyzModem_stream_read()
539 if (xyz.read_length > xyz.file_length) in xyzModem_stream_read()
541 xyz.len -= (xyz.read_length - xyz.file_length); in xyzModem_stream_read()
/external/e2fsprogs/ext2ed/
Dfile_com.c39 file_info.file_length=ptr->i_size; in init_file_info()
267 if (file_info.file_offset+offset>file_info.file_length-1) break; in file_show_hex()
271 if (file_info.file_offset+offset+i>file_info.file_length-1) { in file_show_hex()
291 if (file_info.file_offset+offset+i>file_info.file_length-1) break; in file_show_hex()
332 if (file_info.file_offset+last_offset > file_info.file_length-1) in file_show_text()
333 last_offset=file_info.file_length-1-file_info.file_offset; in file_show_text()
388 wprintw (show_win,"File Offset %ld of %ld.",file_info.file_offset,file_info.file_length-1); in show_status()
Ddir_com.c68 info_ptr->file_length=ptr->i_size; in init_dir_info()
109 while (info.file_offset < info.file_length) { /* While we haven't reached the end */ in search_dir_entries()
127 if (info.file_offset >= info.file_length) break; in search_dir_entries()
530 wprintw (show_win,"Directory Offset %ld of %ld. ",file_info.file_offset,file_info.file_length-1); in show_dir_status()
Dext2ed.h136 long file_offset,file_length; member
/external/toolchain-utils/bestflags/
Dtask.py270 (checksum, cost, image, file_length, text_length) = out.split()
288 self._file_length = file_length
339 def __SetBuildResult(self, (checksum, build_cost, image, file_length, argument
344 self._file_length = file_length
/external/ltp/testcases/kernel/fs/inode/
Dinode02.c85 int max_depth, max_breadth, file_length; variable
140 file_length = 8; in main()
153 if (sscanf(argv[i++], "%d", &file_length) != 1) in main()
468 for (j = 1; j <= file_length; j++) { in generate()
620 for (j = 1; j <= file_length; j++) { in check()
/external/tensorflow/tensorflow/core/util/
Dmemmapped_file_system_test.cc155 uint64 file_length = 0; in TEST() local
156 TF_EXPECT_OK(memmapped_env.GetFileSize(filename, &file_length)); in TEST()
157 EXPECT_EQ(test_string.length(), file_length); in TEST()
/external/v8/src/d8/
Dd8-posix.cc730 int32_t file_length = bit_cast<int32_t>(htonl(big_endian_file_length)); in ReadCharsFromTcpPort() local
732 if (file_length < 0) { in ReadCharsFromTcpPort()
734 file_length, name, Shell::options.read_from_tcp_port.get()); in ReadCharsFromTcpPort()
740 char* chars = new char[file_length]; in ReadCharsFromTcpPort()
744 while (total_received < file_length) { in ReadCharsFromTcpPort()
746 recv(sockfd, chars + total_received, file_length - total_received, 0); in ReadCharsFromTcpPort()
758 *size_out = file_length; in ReadCharsFromTcpPort()
/external/pdfium/fpdfsdk/
Dfpdf_dataavail_embeddertest.cpp92 size_t file_length() const { return file_length_; } in file_length() function in __anon826ac76f0111::TestAsyncLoader
302 ByteString data(loader.file_contents(), loader.file_length()); in TEST_F()
329 ByteString data(loader.file_contents(), loader.file_length()); in TEST_F()
355 ByteString data(loader.file_contents(), loader.file_length()); in TEST_F()
Dfpdf_view_embeddertest.cpp1061 size_t file_length = 0; in TEST_F() local
1063 GetFileContents(file_path.c_str(), &file_length); in TEST_F()
1066 FPDF_LoadMemDocument(file_contents.get(), file_length, "")); in TEST_F()
/external/image_io/src/gcontainer/
Dgcontainer.cc131 size_t file_start_offset, size_t file_length, in ParseFileAfterImage() argument
137 return ParseFileAfterImageFromStream(file_start_offset, file_length, in ParseFileAfterImage()
/external/image_io/includes/image_io/gcontainer/
Dgcontainer.h30 size_t file_start_offset, size_t file_length,
/external/libchrome/base/metrics/
Dpersistent_memory_allocator_unittest.cc962 for (size_t file_length : {a2_used, a1_used, a1_used / 2}) { in TEST_F()
963 SCOPED_TRACE(StringPrintf("file_length=%zu", file_length)); in TEST_F()
964 SetFileLength(file_path, file_length); in TEST_F()
984 EXPECT_EQ(file_length >= a1_used ? a1_ref : 0U, iter.GetNext(&type_id)); in TEST_F()
985 EXPECT_EQ(file_length >= a2_used ? a2_ref : 0U, iter.GetNext(&type_id)); in TEST_F()
989 EXPECT_EQ(file_length < a2_used, allocator.IsCorrupt()); in TEST_F()
995 EXPECT_EQ(file_length, static_cast<size_t>(actual_length)); in TEST_F()
/external/u-boot/drivers/usb/gadget/
Dstorage_common.c276 loff_t file_length; member
575 curlun->file_length = num_sectors << 9; in fsg_lun_open()
/external/zlib/google/
Dzip_reader.h259 int64_t file_length() { return file_length_; } in file_length() function
/external/v8/third_party/zlib/google/
Dzip_reader.h259 int64_t file_length() { return file_length_; } in file_length() function
/external/pdfium/third_party/libopenjpeg20/
Dopenjpeg.c100 OPJ_OFF_T file_length = 0; in opj_get_data_length_from_file() local
103 file_length = (OPJ_OFF_T)OPJ_FTELL(p_file); in opj_get_data_length_from_file()
106 return (OPJ_UINT64)file_length; in opj_get_data_length_from_file()
/external/pdfium/samples/
Dpdfium_test.cc1141 size_t file_length = 0; in main() local
1143 GetFileContents(filename.c_str(), &file_length); in main()
1172 RenderPdf(filename, file_contents.get(), file_length, options, events); in main()