/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 | 181 size_t file_size; local 188 file_size = s.st_size; 189 buf = wpabuf_alloc(file_size); 196 if (read(data->ufd_fd, wpabuf_mhead(buf), file_size) != 197 (int) file_size) { 202 wpabuf_put(buf, file_size);
|
/frameworks/media/libvideoeditor/osal/inc/ |
M4OSA_FileCommon_priv.h | 54 M4OSA_FilePosition file_size; member in struct:__anon15829
|
/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/gtest/src/ |
gtest-port.cc | 482 const size_t file_size = GetFileSize(file); local 483 char* const buffer = new char[file_size]; 493 bytes_last_read = fread(buffer+bytes_read, 1, file_size-bytes_read, file); 495 } while (bytes_last_read > 0 && bytes_read < file_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::__anon1437 161 uint32_t file_size; member in struct:android::__anon1438
|
/external/wpa_supplicant/ |
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_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 | 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...] |