Home
last modified time | relevance | path

Searched refs:file_size (Results 1 – 25 of 57) sorted by relevance

123

/external/chromium/net/base/
Dfile_stream_unittest.cc104 int64 file_size; in TEST_F() local
105 bool ok = file_util::GetFileSize(temp_file_path(), &file_size); in TEST_F()
115 EXPECT_EQ(file_size, total_bytes_avail); in TEST_F()
129 EXPECT_EQ(file_size, total_bytes_read); in TEST_F()
134 int64 file_size; in TEST_F() local
135 bool ok = file_util::GetFileSize(temp_file_path(), &file_size); in TEST_F()
146 EXPECT_EQ(file_size, total_bytes_avail); in TEST_F()
164 EXPECT_EQ(file_size, total_bytes_read); in TEST_F()
169 int64 file_size; in TEST_F() local
170 bool ok = file_util::GetFileSize(temp_file_path(), &file_size); in TEST_F()
[all …]
/external/grub/util/
Dmkbimage285 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;
316 1.68) [ $file_size -ge $bk_168 ] && error wont_fit;
321 1.74) [ $file_size -ge $bk_174 ] && error wont_fit;
326 2.88) [ $file_size -ge $bk_288 ] && error wont_fit;
/external/chromium/base/
Dplatform_file_unittest.cc183 int64 file_size = 0; in TEST() local
184 EXPECT_TRUE(file_util::GetFileSize(file_path, &file_size)); in TEST()
185 EXPECT_EQ(kOffsetBeyondEndOfFile + kPartialWriteLength, file_size); in TEST()
189 bytes_read = ReadFully(file, 0, data_read_2, static_cast<int>(file_size)); in TEST()
190 EXPECT_EQ(file_size, bytes_read); in TEST()
195 for (int i = kOffsetBeyondEndOfFile; i < file_size; i++) in TEST()
222 int64 file_size = 0; in TEST() local
224 EXPECT_TRUE(file_util::GetFileSize(file_path, &file_size)); in TEST()
225 EXPECT_EQ(kExtendedFileLength, file_size); in TEST()
229 int bytes_read = ReadFully(file, 0, data_read, static_cast<int>(file_size)); in TEST()
[all …]
/external/bluetooth/bluedroid/bta/fs/
Dbta_fs_ci.c121 void bta_fs_ci_open(int fd, tBTA_FS_CO_STATUS status, UINT32 file_size, UINT16 evt) in bta_fs_ci_open() argument
130 p_evt->file_size = file_size; in bta_fs_ci_open()
260 UINT32 file_size, UINT16 evt) in bta_fs_ci_resume_op() argument
272 p_evt->file_size = file_size; in bta_fs_ci_resume_op()
/external/wpa_supplicant_8/src/wps/
Dwps_ufd.c176 size_t file_size; in read_ufd() local
183 file_size = s.st_size; in read_ufd()
184 buf = wpabuf_alloc(file_size); in read_ufd()
191 if (read(data->ufd_fd, wpabuf_mhead(buf), file_size) != in read_ufd()
192 (int) file_size) { in read_ufd()
197 wpabuf_put(buf, file_size); in read_ufd()
/external/chromium/chrome/browser/chromeos/login/
Downer_key_utils.cc114 int64 file_size; in ImportPublicKey() local
115 if (!file_util::GetFileSize(key_file, &file_size)) { in ImportPublicKey()
119 if (file_size > static_cast<int64>(std::numeric_limits<int>::max())) { in ImportPublicKey()
121 << file_size << "bytes!!! Too big!"; in ImportPublicKey()
124 int32 safe_file_size = static_cast<int32>(file_size); in ImportPublicKey()
/external/chromium/chrome/browser/ui/webui/
Dscreenshot_source.cc39 int64 file_size = 0; in ReadScreenshot() local
40 if (!file_util::GetFileSize(file, &file_size)) { in ReadScreenshot()
46 read_bytes->resize(file_size); in ReadScreenshot()
52 static_cast<int>(file_size)))) in ReadScreenshot()
/external/netperf/
Dnetcpu_looper.c278 unsigned int i, file_size; in start_looper_processes() local
286 file_size = ((netlib_get_page_size() * PAGES_PER_CHILD) * in start_looper_processes()
316 if (truncate("/tmp/netperf_cpu",file_size) == -1) { in start_looper_processes()
333 file_size, in start_looper_processes()
347 file_size, in start_looper_processes()
384 if ((lib_base_pointer = malloc(file_size)) == NULL) { in start_looper_processes()
387 file_size); in start_looper_processes()
/external/bluetooth/bluedroid/bta/include/
Dbta_fs_ci.h38 UINT32 file_size; member
166 UINT32 file_size, UINT16 evt);
249 UINT32 file_size, UINT16 evt);
/external/chromium/sdch/open-vcdiff/src/gtest/
Dgtest-port.cc142 const size_t file_size = GetFileSize(file); in ReadEntireFile() local
143 char* const buffer = new char[file_size]; in ReadEntireFile()
153 bytes_last_read = fread(buffer+bytes_read, 1, file_size-bytes_read, file); in ReadEntireFile()
155 } while (bytes_last_read > 0 && bytes_read < file_size); in ReadEntireFile()
/external/chromium/sdch/open-vcdiff/src/
Dvcdiff_main.cc93 static bool FileSize(FILE* file, size_t* file_size);
209 bool VCDiffFileBasedCoder::FileSize(FILE* file, size_t* file_size) { in FileSize() argument
214 *file_size = static_cast<size_t>(ftell(file)); in FileSize()
272 size_t file_size = 0U; in OpenFileForReading() local
273 if (!FileSize(*file, &file_size)) { in OpenFileForReading()
279 if (file_size < buffer_size) { in OpenFileForReading()
281 buffer_size = file_size; in OpenFileForReading()
/external/chromium/net/url_request/
Durl_request_unittest.cc937 int64 file_size = -1; in TEST_F() local
938 EXPECT_TRUE(file_util::GetFileSize(app_path, &file_size)); in TEST_F()
943 EXPECT_EQ(d.bytes_received(), static_cast<int>(file_size)); in TEST_F()
959 int64 file_size; in TEST_F() local
960 EXPECT_TRUE(file_util::GetFileSize(temp_path, &file_size)); in TEST_F()
1003 int64 file_size; in TEST_F() local
1004 EXPECT_TRUE(file_util::GetFileSize(temp_path, &file_size)); in TEST_F()
1046 int64 file_size; in TEST_F() local
1047 EXPECT_TRUE(file_util::GetFileSize(temp_path, &file_size)); in TEST_F()
2499 int64 file_size = 0; in TEST_F() local
[all …]
/external/oprofile/libutil++/
Dop_spu_bfd.cpp47 file_size(-1), in op_bfd()
83 file_size = st.st_size; in op_bfd()
182 file_size = -1; in op_bfd()
Dop_bfd.cpp106 file_size(-1), in op_bfd()
143 file_size = st.st_size; in op_bfd()
185 file_size = -1; in op_bfd()
397 end = next ? next->filepos() : file_size; in symbol_size()
445 end = file_size; in get_vma_range()
/external/qemu/telephony/
Dsim_card.c208 int file_size, perm; in sim_file_to_hex() local
215 file_size = file->dedicated.length; in sim_file_to_hex()
217 file_size = file->linear.rec_count * file->linear.rec_len; in sim_file_to_hex()
219 gsm_hex_from_short( dst, file_size ); in sim_file_to_hex()
/external/wpa_supplicant_8/src/utils/
Dpcsc_funcs.c1109 int file_size; in scard_get_imsi() local
1110 if (scard_parse_fsp_templ(buf, blen, NULL, &file_size)) in scard_get_imsi()
1112 blen = file_size; in scard_get_imsi()
1168 int file_size; in scard_get_mnc_len() local
1181 file_size = (buf[2] << 8) | buf[3]; in scard_get_mnc_len()
1183 if (scard_parse_fsp_templ(buf, blen, NULL, &file_size)) in scard_get_mnc_len()
1186 if (file_size == 3) { in scard_get_mnc_len()
1190 if (file_size < 4 || file_size > (int) sizeof(buf)) { in scard_get_mnc_len()
1192 (long) file_size); in scard_get_mnc_len()
1196 if (scard_read_file(scard, buf, file_size)) in scard_get_mnc_len()
/external/chromium/chrome/browser/history/
Dhistory_database.cc42 int64 file_size = 0; in ComputeDatabaseMetrics() local
43 if (!file_util::GetFileSize(history_name, &file_size)) in ComputeDatabaseMetrics()
45 int file_mb = static_cast<int>(file_size / (1024 * 1024)); in ComputeDatabaseMetrics()
/external/llvm/include/llvm-c/
Dlto.h137 lto_module_create_from_fd(int fd, const char *path, size_t file_size);
144 lto_module_create_from_fd_at_offset(int fd, const char *path, size_t file_size,
/external/chromium/chrome/browser/sessions/
Dsession_backend.cc272 int64 file_size; in MoveCurrentSessionToLastSession() local
273 if (file_util::GetFileSize(current_session_path, &file_size)) { in MoveCurrentSessionToLastSession()
276 static_cast<int>(file_size / 1024)); in MoveCurrentSessionToLastSession()
279 static_cast<int>(file_size / 1024)); in MoveCurrentSessionToLastSession()
/external/llvm/unittests/Support/
DFileOutputBufferTest.cpp69 ASSERT_NO_ERROR(fs::file_size(Twine(File1), File1Size)); in TEST()
108 ASSERT_NO_ERROR(fs::file_size(Twine(File3), File3Size)); in TEST()
/external/bluetooth/bluedroid/stack/include/
Dgoep_fs.h104 UINT32 file_size; member
337 UINT32 file_size, UINT16 event_id);
/external/chromium/chrome/browser/printing/
Dprint_dialog_cloud.cc176 int64 file_size = 0; in ReadPrintDataFile() local
177 if (file_util::GetFileSize(path_to_file, &file_size) && file_size != 0) { in ReadPrintDataFile()
179 if (file_size < kuint32max) { in ReadPrintDataFile()
180 file_data.reserve(static_cast<unsigned int>(file_size)); in ReadPrintDataFile()
/external/llvm/tools/lto/
Dlto.cpp79 size_t file_size, in lto_module_create_from_fd_at_offset() argument
82 return LTOModule::makeLTOModule(fd, path, file_size, map_size, in lto_module_create_from_fd_at_offset()
/external/chromium/net/disk_cache/
Dblock_files.cc567 int file_size = static_cast<int>(file->GetLength()); in FixBlockFileHeader() local
568 if (file_size < static_cast<int>(sizeof(*header))) in FixBlockFileHeader()
572 if (file_size != expected) { in FixBlockFileHeader()
574 if (file_size < expected || header->empty[3] || file_size > max_expected) { in FixBlockFileHeader()
580 int num_entries = (file_size - sizeof(*header)) / header->entry_size; in FixBlockFileHeader()
/external/oprofile/libdb/
Ddb_manage.c215 size_t file_size; in odb_open() local
224 file_size = tables_size(data, nr_node); in odb_open()
225 if (ftruncate(data->fd, file_size)) { in odb_open()

123