/external/chromium/net/base/ |
D | file_stream_unittest.cc | 104 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/ |
D | 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; 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/ |
D | platform_file_unittest.cc | 183 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/ |
D | bta_fs_ci.c | 121 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/ |
D | wps_ufd.c | 176 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/ |
D | owner_key_utils.cc | 114 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/ |
D | screenshot_source.cc | 39 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/ |
D | netcpu_looper.c | 278 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/ |
D | bta_fs_ci.h | 38 UINT32 file_size; member 166 UINT32 file_size, UINT16 evt); 249 UINT32 file_size, UINT16 evt);
|
/external/chromium/sdch/open-vcdiff/src/gtest/ |
D | gtest-port.cc | 142 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/ |
D | vcdiff_main.cc | 93 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/ |
D | url_request_unittest.cc | 937 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++/ |
D | op_spu_bfd.cpp | 47 file_size(-1), in op_bfd() 83 file_size = st.st_size; in op_bfd() 182 file_size = -1; in op_bfd()
|
D | op_bfd.cpp | 106 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/ |
D | sim_card.c | 208 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/ |
D | pcsc_funcs.c | 1109 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/ |
D | history_database.cc | 42 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/ |
D | lto.h | 137 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/ |
D | session_backend.cc | 272 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/ |
D | FileOutputBufferTest.cpp | 69 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/ |
D | goep_fs.h | 104 UINT32 file_size; member 337 UINT32 file_size, UINT16 event_id);
|
/external/chromium/chrome/browser/printing/ |
D | print_dialog_cloud.cc | 176 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/ |
D | lto.cpp | 79 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/ |
D | block_files.cc | 567 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/ |
D | db_manage.c | 215 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()
|