Searched defs:file_size (Results 1 - 15 of 15) sorted by relevance

/system/core/libunwindstack/tests/
H A DMemoryFileTest.cpp128 uint64_t file_size = 2 * pagesize + pagesize / 2; local
129 for (size_t i = 0; i < file_size; i++) {
135 ASSERT_FALSE(memory_.Init(tf_->path, file_size + 2 * pagesize));
137 ASSERT_FALSE(memory_.Init(tf_->path, file_size));
/system/extras/libfec/include/fec/
H A Decc.h57 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/extras/tests/pagingtest/
H A Dpageinout_test.c12 int pageinout_test(int test_runs, bool cache, unsigned long long file_size) { argument
27 fd = create_tmp_file(tmpname, file_size);
32 vec = alloc_mincore_vec(file_size);
37 buf = mmap(NULL, file_size, PROT_READ, MAP_PRIVATE, fd, 0);
43 if (!check_caching((void *)buf, vec, file_size, false)) {
49 rc = madvise((void *)buf, file_size, MADV_RANDOM) ||
50 posix_fadvise(fd, 0, file_size, POSIX_FADV_RANDOM);
59 for (j = 0; j < file_size; j += pagesize) {
67 if (!check_caching((void *)buf, vec, file_size, true)) {
72 rc = madvise((void *)buf, file_size, MADV_DONTNEE
[all...]
H A Dpagingtest.c142 unsigned long long file_size = 0ULL; local
146 //arguments: <program> [test_runs [alloc_size [file_size]]]
160 file_size = strtoull(argv[3], NULL, 10);
162 if (!file_size) {
163 file_size = FILE_SIZE;
170 rc = pageinout_test(test_runs, true, file_size);
174 rc = pageinout_test(test_runs, false, file_size);
/system/core/libunwindstack/
H A DDexFile.cpp153 uint32_t file_size = header->file_size_; local
163 if (computed_file_size > file_size) {
164 file_size = computed_file_size;
170 memory_.resize(file_size);
/system/sepolicy/tools/
H A Dversion_policy.c34 uint32_t file_size; local
48 file_size = filedata.st_size;
49 buff = malloc(file_size);
55 rc = fread(buff, file_size, 1, file);
65 rc = cil_add_file(*db, path, buff, file_size);
/system/tools/aidl/
H A Dio_delegate.cpp93 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 Ddumpcache.c24 size_t file_size; member in struct:file_info
43 static struct file_info *get_file_info(const char* fpath, size_t file_size) { argument
68 info->file_size = file_size;
163 (100 * info->num_cached_pages * g_page_size) / info->file_size);
/system/core/trusty/storage/lib/
H A Dstorage.c268 int storage_set_file_size(file_handle_t fh, storage_off_t file_size, uint32_t opflags) argument
271 struct storage_file_set_size_req req = { .handle = _to_handle(fh), .size = file_size, };
/system/extras/libfec/
H A Dfec_open.cpp44 static int find_offset(uint64_t file_size, int roots, uint64_t *offset, argument
51 if (file_size % FEC_BLOCKSIZE) {
58 uint64_t mi = get_appr_size(file_size, roots);
59 uint64_t lo = file_size - mi * 2;
60 uint64_t hi = file_size - mi / 2;
66 if (total < file_size) {
68 } else if (total > file_size) {
72 debug("file_size = %" PRIu64 " -> offset = %" PRIu64, file_size,
H A Dfec_verity.cpp87 /* 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/core/trusty/storage/tests/
H A Dmain.cpp846 size_t file_size = 32768; local
856 WritePattern(handle, 0, file_size, blk, true);
898 size_t file_size = 1024 * 1024; local
908 WritePattern(handle, 0, file_size, 4040, true);
918 size_t file_size = 1024 * 1024; local
928 WritePattern(handle, 0, file_size, 2032, true);
939 size_t file_size = 1024 * 1024; local
949 WritePattern(handle, 0, file_size, 496, true);
959 size_t file_size = 1024 * 1024; local
969 WritePattern(handle, 0, file_size, 24
[all...]
/system/extras/simpleperf/
H A Dread_elf.cpp178 uint64_t file_size, BinaryWrapper* wrapper) {
183 if (file_size == 0) {
184 file_size = GetFileSize(filename);
185 if (file_size == 0) {
189 auto buffer_or_err = llvm::MemoryBuffer::getOpenFileSlice(fhelper.fd(), filename, file_size, file_offset);
230 uint32_t file_size, BuildId* build_id) {
232 ElfStatus result = OpenObjectFile(filename, file_offset, file_size, &wrapper);
437 uint32_t file_size, const BuildId& expected_build_id,
440 ElfStatus result = OpenObjectFile(filename, file_offset, file_size, &wrapper);
177 OpenObjectFile(const std::string& filename, uint64_t file_offset, uint64_t file_size, BinaryWrapper* wrapper) argument
229 GetBuildIdFromEmbeddedElfFile(const std::string& filename, uint64_t file_offset, uint32_t file_size, BuildId* build_id) argument
436 ParseSymbolsFromEmbeddedElfFile(const std::string& filename, uint64_t file_offset, uint32_t file_size, const BuildId& expected_build_id, const std::function<void(const ElfFileSymbol&)>& callback) argument
H A Dtracing.cpp63 uint64_t file_size = file.size(); local
64 AppendData(data, file_size);
66 uint32_t file_size = file.size(); local
67 AppendData(data, file_size);
74 uint64_t file_size = ConvertBytesToValue(p, file_size_bytes); local
77 file.insert(file.end(), p, p + file_size);
78 p += file_size;
/system/update_engine/payload_generator/
H A Dpayload_signer.cc528 uint64_t file_size = utils::FileSize(payload_path); local
538 properties->SetString(kPayloadPropertyFileSize, std::to_string(file_size));
544 HashCalculator::RawHashOfFile(payload_path, file_size, &file_hash) ==
545 static_cast<off_t>(file_size));

Completed in 334 milliseconds