HomeSort by relevance Sort by last modified time
    Searched defs:file_size (Results 1 - 25 of 36) sorted by null

1 2

  /system/core/fastboot/
util_windows.c 55 DWORD file_size; local
68 file_size = GetFileSize( file, NULL );
71 if (file_size > 0) {
72 data = (char*) malloc( file_size );
74 fprintf(stderr, "load_file: could not allocate %ld bytes\n", file_size );
75 file_size = 0;
79 if ( !ReadFile( file, data, file_size, &out_bytes, NULL ) ||
80 out_bytes != file_size )
82 fprintf(stderr, "load_file: could not read %ld bytes from '%s'\n", file_size, fn);
85 file_size = 0
    [all...]
  /external/chromium/chrome/browser/ui/webui/
screenshot_source.cc 39 int64 file_size = 0; local
40 if (!file_util::GetFileSize(file, &file_size)) {
46 read_bytes->resize(file_size);
52 static_cast<int>(file_size))))
  /external/chromium/chrome/browser/chromeos/login/
owner_key_utils.cc 114 int64 file_size; local
115 if (!file_util::GetFileSize(key_file, &file_size)) {
119 if (file_size > static_cast<int64>(std::numeric_limits<int>::max())) {
121 << file_size << "bytes!!! Too big!";
124 int32 safe_file_size = static_cast<int32>(file_size);
  /external/wpa_supplicant_8/src/wps/
wps_ufd.c 180 size_t file_size; local
187 file_size = s.st_size;
188 buf = wpabuf_alloc(file_size);
195 if (read(data->ufd_fd, wpabuf_mhead(buf), file_size) !=
196 (int) file_size) {
201 wpabuf_put(buf, file_size);
  /frameworks/av/libvideoeditor/osal/inc/
M4OSA_FileCommon_priv.h 54 M4OSA_FilePosition file_size; member in struct:__anon15894
  /external/chromium/base/
platform_file_unittest.cc 183 int64 file_size = 0; local
184 EXPECT_TRUE(file_util::GetFileSize(file_path, &file_size));
185 EXPECT_EQ(kOffsetBeyondEndOfFile + kPartialWriteLength, file_size);
189 bytes_read = ReadFully(file, 0, data_read_2, static_cast<int>(file_size));
190 EXPECT_EQ(file_size, bytes_read);
195 for (int i = kOffsetBeyondEndOfFile; i < file_size; i++)
222 int64 file_size = 0; local
224 EXPECT_TRUE(file_util::GetFileSize(file_path, &file_size));
225 EXPECT_EQ(kExtendedFileLength, file_size);
229 int bytes_read = ReadFully(file, 0, data_read, static_cast<int>(file_size));
    [all...]
  /external/chromium/chrome/browser/safe_browsing/
prefix_set_unittest.cc 106 long file_size = ftell(fp); local
108 size_t payload_size = static_cast<size_t>(file_size) - sizeof(MD5Digest);
125 ASSERT_EQ(file_size, ftell(fp));
  /external/oprofile/libdb/
db_manage.c 215 size_t file_size; local
224 file_size = tables_size(data, nr_node);
225 if (ftruncate(data->fd, file_size)) {
  /external/chromium/chrome/browser/diagnostics/
recon_diagnostics.cc 328 int64 file_size; local
329 if (!file_util::GetFileSize(path_, &file_size)) {
334 if (file_size > max_file_size_) {
  /external/chromium/chrome/browser/sessions/
session_backend.cc 272 int64 file_size; local
273 if (file_util::GetFileSize(current_session_path, &file_size)) {
276 static_cast<int>(file_size / 1024));
279 static_cast<int>(file_size / 1024));
  /external/chromium/net/base/
file_stream_unittest.cc 104 int64 file_size; local
105 bool ok = file_util::GetFileSize(temp_file_path(), &file_size);
115 EXPECT_EQ(file_size, total_bytes_avail);
129 EXPECT_EQ(file_size, total_bytes_read);
134 int64 file_size; local
135 bool ok = file_util::GetFileSize(temp_file_path(), &file_size);
146 EXPECT_EQ(file_size, total_bytes_avail);
164 EXPECT_EQ(file_size, total_bytes_read);
169 int64 file_size; local
170 bool ok = file_util::GetFileSize(temp_file_path(), &file_size);
199 int64 file_size; local
234 int64 file_size; local
302 int64 file_size; local
324 int64 file_size; local
356 int64 file_size; local
387 int64 file_size; local
406 int64 file_size; local
441 int64 file_size; local
480 int64 file_size; local
528 int64 file_size; local
583 int64 file_size; local
733 int64 file_size; local
835 int64 file_size; local
    [all...]
  /external/chromium/sdch/open-vcdiff/src/gtest/
gtest-port.cc 142 const size_t file_size = GetFileSize(file); local
143 char* const buffer = new char[file_size];
153 bytes_last_read = fread(buffer+bytes_read, 1, file_size-bytes_read, file);
155 } while (bytes_last_read > 0 && bytes_read < file_size);
  /external/chromium/sdch/open-vcdiff/src/
vcdiff_main.cc 91 // returns true and populates file_size if successful; otherwise, it returns
93 static bool FileSize(FILE* file, size_t* file_size);
209 bool VCDiffFileBasedCoder::FileSize(FILE* file, size_t* file_size) {
214 *file_size = static_cast<size_t>(ftell(file));
272 size_t file_size = 0U; local
273 if (!FileSize(*file, &file_size)) {
279 if (file_size < buffer_size) {
281 buffer_size = file_size;
  /external/freetype/include/freetype/
ftwinfnt.h 186 FT_ULong file_size; member in struct:FT_WinFNT_HeaderRec_
  /external/netperf/
netcpu_looper.c 279 unsigned int i, file_size;
287 file_size = ((netlib_get_page_size() * PAGES_PER_CHILD) *
317 if (truncate("/tmp/netperf_cpu",file_size) == -1) {
334 file_size,
346 fprintf(where,"num CPUs %d, file_size %d, lib_base_pointer %p\n",
348 file_size,
385 if ((lib_base_pointer = malloc(file_size)) == NULL) {
388 file_size);
278 unsigned int i, file_size; local
  /external/oprofile/libutil++/
op_bfd.h 271 off_t file_size; member in class:op_bfd
  /external/chromium/chrome/browser/printing/
print_dialog_cloud.cc 176 int64 file_size = 0; local
177 if (file_util::GetFileSize(path_to_file, &file_size) && file_size != 0) {
179 if (file_size < kuint32max) {
180 file_data.reserve(static_cast<unsigned int>(file_size));
  /external/chromium/net/disk_cache/
block_files.cc 567 int file_size = static_cast<int>(file->GetLength()); local
568 if (file_size < static_cast<int>(sizeof(*header)))
569 return false; // file_size > 2GB is also an error.
572 if (file_size != expected) {
574 if (file_size < expected || header->empty[3] || file_size > max_expected) {
580 int num_entries = (file_size - sizeof(*header)) / header->entry_size;
  /external/protobuf/src/google/protobuf/compiler/
plugin.pb.h 351 inline int file_size() const;
685 inline int CodeGeneratorResponse::file_size() const { function in class:google::protobuf::compiler::CodeGeneratorResponse
  /external/qemu/telephony/
sim_card.c 208 int file_size, perm; local
215 file_size = file->dedicated.length;
217 file_size = file->linear.rec_count * file->linear.rec_len;
219 gsm_hex_from_short( dst, file_size );
  /device/samsung/crespo/libs3cjpeg/
JpegEncoder.h 150 uint32_t file_size; member in struct:android::__anon1523
161 uint32_t file_size; member in struct:android::__anon1524
  /external/wpa_supplicant_6/wpa_supplicant/src/utils/
pcsc_funcs.c 279 wpa_printf(MSG_DEBUG, "SCARD: file_size=%d",
981 int file_size; local
982 if (scard_parse_fsp_templ(buf, blen, NULL, &file_size))
984 blen = file_size;
    [all...]
  /external/wpa_supplicant_8/src/utils/
pcsc_funcs.c 273 wpa_printf(MSG_DEBUG, "SCARD: file_size=%d",
975 int file_size; local
976 if (scard_parse_fsp_templ(buf, blen, NULL, &file_size))
978 blen = file_size;
1034 int file_size; local
1047 file_size = (buf[2] << 8) | buf[3];
1049 if (scard_parse_fsp_templ(buf, blen, NULL, &file_size))
1052 if (file_size == 3) {
1056 if (file_size < 4 || file_size > (int) sizeof(buf))
    [all...]
  /frameworks/compile/mclinker/lib/Target/
GNULDBackend.cpp 861 uint64_t file_size = 0; local
893 file_size = last_sect->offset() - segment.offset();
895 file_size += last_sect->size();
896 segment.setFilesz(file_size);
  /external/chromium/net/url_request/
url_request_unittest.cc 937 int64 file_size = -1; local
938 EXPECT_TRUE(file_util::GetFileSize(app_path, &file_size));
943 EXPECT_EQ(d.bytes_received(), static_cast<int>(file_size));
959 int64 file_size; local
960 EXPECT_TRUE(file_util::GetFileSize(temp_path, &file_size));
1003 int64 file_size; local
1004 EXPECT_TRUE(file_util::GetFileSize(temp_path, &file_size));
1046 int64 file_size local
2499 int64 file_size = 0; local
2530 int64 file_size = 0; local
2563 int64 file_size = 0; local
2596 int64 file_size = 0; local
2625 int64 file_size = 0; local
2658 int64 file_size = 0; local
2689 int64 file_size = 0; local
2707 int64 file_size = 0; local
2741 int64 file_size = 0; local
2762 int64 file_size = 0; local
    [all...]

Completed in 1207 milliseconds

1 2