/system/webservd/webservd/ |
H A D | log_manager.cc | 115 int64_t file_size = 0; variable 116 bool got_size = base::GetFileSize(file_path, &file_size); 117 if (got_size && (file_size + entry.size() > kMaxLogFileSize))
|
/system/update_engine/payload_generator/ |
H A D | payload_signer.cc | 526 uint64_t file_size = utils::FileSize(payload_path); local 536 properties->SetString(kPayloadPropertyFileSize, std::to_string(file_size)); 542 HashCalculator::RawHashOfFile(payload_path, file_size, &file_hash) == 543 static_cast<off_t>(file_size));
|
/system/tools/aidl/ |
H A D | io_delegate.cpp | 93 ssize_t file_size = in.tellg(); local 94 contents->resize(file_size + content_suffix.length()); 97 in.read(&(*contents)[0], file_size); 99 contents->replace(file_size, content_suffix.length(), content_suffix);
|
/system/extras/pagecache/ |
H A D | dumpcache.c | 23 size_t file_size; member in struct:file_info 42 static struct file_info *get_file_info(const char* fpath, size_t file_size) { argument 67 info->file_size = file_size; 147 (100 * info->num_cached_pages * g_page_size) / info->file_size);
|
/system/extras/simpleperf/ |
H A D | read_elf.cpp | 147 uint64_t file_size = 0) { 154 if (file_size == 0) { 155 file_size = GetFileSize(filename); 156 if (file_size == 0) { 161 auto buffer_or_err = llvm::MemoryBuffer::getOpenFileSlice(fhelper.fd(), filename, file_size, file_offset); 163 LOG(ERROR) << "failed to read " << filename << " [" << file_offset << "-" << (file_offset + file_size) 169 LOG(ERROR) << filename << " [" << file_offset << "-" << (file_offset + file_size) 177 LOG(ERROR) << filename << " [" << file_offset << "-" << (file_offset + file_size) 193 uint32_t file_size, BuildId* build_id) { 194 BinaryRet ret = OpenObjectFile(filename, file_offset, file_size); 192 GetBuildIdFromEmbeddedElfFile(const std::string& filename, uint64_t file_offset, uint32_t file_size, BuildId* build_id) argument 294 ParseSymbolsFromEmbeddedElfFile(const std::string& filename, uint64_t file_offset, uint32_t file_size, const BuildId& expected_build_id, std::function<void(const ElfFileSymbol&)> callback) argument [all...] |
H A D | read_elf.h | 27 uint32_t file_size, BuildId* build_id); 47 uint32_t file_size, const BuildId& expected_build_id,
|
/system/extras/tests/pagingtest/ |
H A D | pageinout_test.c | 11 int pageinout_test(int test_runs, unsigned long long file_size) { argument 26 fd = create_tmp_file(tmpname, file_size); 31 vec = alloc_mincore_vec(file_size); 36 buf = mmap(NULL, file_size, PROT_READ, MAP_PRIVATE, fd, 0); 42 if (!check_caching((void *)buf, vec, file_size, false)) { 49 for (j = ((file_size - 1) & ~(pagesize - 1)); j >= 0; j -= pagesize) { 57 if (!check_caching((void *)buf, vec, file_size, true)) { 62 rc = madvise((void *)buf, file_size, MADV_DONTNEED) || 63 posix_fadvise(fd, 0, file_size, POSIX_FADV_DONTNEED); 73 if (!check_caching((void *)buf, vec, file_size, fals [all...] |
H A D | pagingtest.c | 136 unsigned long long file_size = 0ULL; local 140 //arguments: <program> [test_runs [alloc_size [file_size]]] 154 file_size = strtoull(argv[3], NULL, 10); 156 if (!file_size) { 157 file_size = FILE_SIZE; 164 rc = pageinout_test(test_runs, file_size);
|
H A D | pagingtest.h | 17 int pageinout_test(int test_runs, unsigned long long file_size);
|
/system/extras/libfec/ |
H A D | fec_open.cpp | 43 static int find_offset(uint64_t file_size, int roots, uint64_t *offset, argument 50 if (file_size % FEC_BLOCKSIZE) { 57 uint64_t mi = get_appr_size(file_size, roots); 58 uint64_t lo = file_size - mi * 2; 59 uint64_t hi = file_size - mi / 2; 65 if (total < file_size) { 67 } else if (total > file_size) { 71 debug("file_size = %" PRIu64 " -> offset = %" PRIu64, file_size,
|
H A D | fec_private.h | 126 extern uint64_t verity_get_size(uint64_t file_size, uint32_t *verity_levels,
|
H A D | fec_verity.cpp | 87 /* computes the size of verity hash tree for `file_size' bytes and returns the 90 uint64_t verity_get_size(uint64_t file_size, uint32_t *verity_levels, argument 98 uint64_t hashes = file_size / FEC_BLOCKSIZE;
|
/system/extras/libfec/include/fec/ |
H A D | ecc.h | 57 inline uint64_t fec_ecc_get_size(uint64_t file_size, int roots) argument 59 return fec_div_round_up(fec_div_round_up(file_size, FEC_BLOCKSIZE),
|
/system/core/adb/ |
H A D | sysdeps_win32.cpp | 122 DWORD file_size; local 139 file_size = GetFileSize( file, NULL ); 142 if (file_size > 0) { 143 data = (char*) malloc( file_size + 1 ); 145 D("load_file: could not allocate %ld bytes", file_size ); 146 file_size = 0; 150 if ( !ReadFile( file, data, file_size, &out_bytes, NULL ) || 151 out_bytes != file_size ) 153 D("load_file: could not read %ld bytes from '%s'", file_size, fn); 156 file_size [all...] |
/system/core/crash_reporter/ |
H A D | user_collector.cc | 257 int64_t file_size = 0; local 258 if (!base::GetFileSize(container_dir.Append("maps"), &file_size)) { 262 if (file_size == 0) {
|
/system/core/libbacktrace/ |
H A D | BacktraceOffline.cpp | 218 if (file_offset >= header.file_offset && file_offset < header.file_offset + header.file_size) { 613 header.file_size = it->p_filesz;
|
H A D | BacktraceOffline.h | 54 uint64_t file_size; member in struct:DebugFrameInfo::EhFrame::ProgramHeader
|
/system/connectivity/shill/ |
H A D | json_store.cc | 338 int64_t file_size = 0; local 339 return base::GetFileSize(path_, &file_size) && file_size != 0;
|
H A D | key_file_store.cc | 79 int64_t file_size = 0; local 80 return base::GetFileSize(path_, &file_size) && file_size != 0;
|