/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/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/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/grub/util/ |
mkbimage | 285 file_size=`$decompress $tarfile | wc -c | tr -d ' '` 286 file_size=$(($file_size / $block_size + 1)) 290 file_size=$(($file_size + $file_size / 10)) 299 cylinders=$(($file_size / $cyl_size + 2));; 300 1.20) [ $file_size -ge $bk_120 ] && error wont_fit; 305 1.44) [ $file_size -ge $bk_144 ] && error wont_fit; 310 1.60) [ $file_size -ge $bk_160 ] && error wont_fit; [all...] |
/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);
|
/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/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/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_spu_bfd.cpp | 47 file_size(-1), 83 file_size = st.st_size; 182 file_size = -1;
|
op_bfd.cpp | 106 file_size(-1), 143 file_size = st.st_size; 185 file_size = -1; 397 end = next ? next->filepos() : file_size; 445 end = file_size;
|
/external/llvm/include/llvm-c/ |
lto.h | 130 lto_module_create_from_fd(int fd, const char *path, size_t file_size); 137 lto_module_create_from_fd_at_offset(int fd, const char *path, size_t file_size,
|
/external/llvm/tools/lto/ |
lto.cpp | 108 size_t file_size, 112 return LTOModule::makeLTOModule(fd, path, file_size, map_size,
|
/external/bluetooth/glib/gio/ |
giotypes.h | 144 * @file_size: the size of the data currently read. 155 goffset file_size,
|
/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/freetype/include/freetype/ |
ftwinfnt.h | 186 FT_ULong file_size; member in struct:FT_WinFNT_HeaderRec_
|
/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 );
|
/frameworks/media/libvideoeditor/osal/inc/ |
M4OSA_FileCommon_priv.h | 54 M4OSA_FilePosition file_size; member in struct:__anon15635
|
/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;
|
/frameworks/media/libvideoeditor/osal/src/ |
M4OSA_FileWriter.c | 118 if(pFileContext->write_position > pFileContext->file_size) 120 pFileContext->file_size = pFileContext->write_position; 165 if(pFileContext->write_position > pFileContext->file_size) 167 pFileContext->file_size = pFileContext->write_position; 451 *position = pFileContext->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...] |
/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/chrome/browser/history/ |
history_database.cc | 42 int64 file_size = 0; 43 if (!file_util::GetFileSize(history_name, &file_size)) 45 int file_mb = static_cast<int>(file_size / (1024 * 1024));
|
/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/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 | 561 int file_size = static_cast<int>(file->GetLength()); local 562 if (file_size < static_cast<int>(sizeof(*header))) 563 return false; // file_size > 2GB is also an error. 566 if (file_size != expected) { 568 if (file_size < expected || header->empty[3] || file_size > max_expected) { 574 int num_entries = (file_size - sizeof(*header)) / header->entry_size;
|