Home
last modified time | relevance | path

Searched refs:total_size (Results 1 – 25 of 47) sorted by relevance

12

/system/extras/puncture_fs/
Dpuncture_fs.cpp139 static bool puncture_fs (const char * const path, const u64 total_size, in puncture_fs() argument
141 u64 increments = (hole_size * total_size) / total_hole_size; in puncture_fs()
161 while (ending_max <= total_size) { in puncture_fs()
163 (int) (100.0 * starting_max / total_size)); in puncture_fs()
208 u64 total_size = 0; in main() local
251 total_size = get_free_space(path); in main()
252 if (!total_size) { in main()
255 if (total_size < total_hole_size || total_hole_size < hole_size) { in main()
262 if (!puncture_fs(path, total_size, hole_size, total_hole_size)) { in main()
/system/core/fs_mgr/libfs_avb/
Dfs_avb.cpp55 size_t total_size = 0; in VerifyVbmetaDigest() local
59 total_size += vbmeta.size(); in VerifyVbmetaDigest()
64 return std::make_pair(total_size, matched); in VerifyVbmetaDigest()
70 size_t total_size = 0; in CalculateVbmetaDigest() local
75 total_size += vbmeta.size(); in CalculateVbmetaDigest()
80 return std::make_pair(digest, total_size); in CalculateVbmetaDigest()
157 size_t total_size = 0; in VerifyVbmetaImages() local
161 std::tie(total_size, digest_matched) = in VerifyVbmetaImages()
164 std::tie(total_size, digest_matched) = in VerifyVbmetaImages()
168 if (total_size != vbmeta_size_) { in VerifyVbmetaImages()
[all …]
Davb_ops.cpp198 off64_t total_size = lseek64(fd, 0, SEEK_END); in ReadFromPartition() local
199 if (total_size == -1) { in ReadFromPartition()
203 offset = total_size + offset; in ReadFromPartition()
/system/core/mkbootfs/
Dmkbootfs.c58 static int total_size = 0; variable
99 while(total_size & 3) { in _eject()
100 total_size++; in _eject()
127 total_size += 6 + 8*13 + olen + 1; in _eject()
131 while(total_size & 3) { in _eject()
132 total_size++; in _eject()
138 total_size += datasize; in _eject()
148 while(total_size & 0xff) { in _eject_trailer()
149 total_size++; in _eject_trailer()
/system/logging/logd/
DSerializedLogBuffer.cpp165 size_t total_size = GetSizeUsed(log_id); in MaybePrune() local
166 size_t after_size = total_size; in MaybePrune()
167 if (total_size > max_size_[log_id]) { in MaybePrune()
168 Prune(log_id, total_size - max_size_[log_id]); in MaybePrune()
170 LOG(VERBOSE) << "Pruned Logs from log_id: " << log_id << ", previous size: " << total_size in MaybePrune()
314 size_t total_size = 0; in GetSizeUsed() local
316 total_size += chunk.PruneSize(); in GetSizeUsed()
318 return total_size; in GetSizeUsed()
/system/core/fs_mgr/libfs_avb/tests/
Dfs_avb_test.cpp117 EXPECT_EQ(8576UL, avb_handle->vbmeta_info().total_size); in TEST_F()
130 EXPECT_EQ(5184UL, avb_handle->vbmeta_info().total_size); in TEST_F()
201 EXPECT_EQ(8576UL, avb_handle->vbmeta_info().total_size); in TEST_F()
217 EXPECT_EQ(5184UL, avb_handle->vbmeta_info().total_size); in TEST_F()
235 EXPECT_EQ(8576UL, avb_handle->vbmeta_info().total_size); in TEST_F()
/system/extras/showslab/
Dshowslab.c33 unsigned long total_size; /* size of all objects */ member
136 stats->total_size += p->nr_objs * p->obj_size; in get_slabinfo()
151 stats->avg_obj_size = stats->total_size / stats->nr_objs; in get_slabinfo()
327 stats.total_size / 1024.0, in main()
328 100.0 * stats.active_size / stats.total_size, in main()
/system/core/fs_mgr/libfs_avb/include/fs_avb/
Dfs_avb.h34 size_t total_size; member
39 : digest(std::move(digest_value)), hash_algorithm(algorithm), total_size(size) {} in VBMetaInfo()
/system/memory/libmeminfo/libdmabufinfo/tools/
Ddmabuf_dump.cpp138 uint64_t total_size = 0; // Total size of dmabufs in the system in PrintDmaBufPerProcess() local
144 total_size += buf.size(); in PrintDmaBufPerProcess()
179 total_size / 1024, kernel_rss / 1024, total_rss / 1024, total_pss / 1024); in PrintDmaBufPerProcess()
247 stats.total_size()); in DumpDmabufSysfsStats()
/system/core/libdiskconfig/
Ddiskconfig.c275 uint64_t total_size; in validate() local
344 total_size = dinfo->skip_lba * dinfo->sect_size; in validate()
350 total_size += part->len_kb * 1024; in validate()
372 if (S_ISBLK(stat.st_mode) && total_size > disk_size) { in validate()
374 "size (%"PRIu64").", total_size, disk_size); in validate()
/system/nvram/hal/tests/
Dnvram_hal_test.cc205 uint64_t total_size = 0; in TEST() local
206 ASSERT_EQ(NV_RESULT_SUCCESS, device.GetTotalSizeInBytes(&total_size)); in TEST()
207 EXPECT_LE(2048u, total_size); in TEST()
214 uint64_t total_size = 0; in TEST() local
215 ASSERT_EQ(NV_RESULT_SUCCESS, device.GetTotalSizeInBytes(&total_size)); in TEST()
216 EXPECT_LE(available_size, total_size); in TEST()
223 uint64_t total_size = 0; in TEST() local
224 ASSERT_EQ(NV_RESULT_SUCCESS, device.GetTotalSizeInBytes(&total_size)); in TEST()
225 EXPECT_LE(max_space_size, total_size); in TEST()
Dscoped_nvram_device.cc68 nvram_result_t ScopedNvramDevice::GetTotalSizeInBytes(uint64_t* total_size) { in GetTotalSizeInBytes() argument
72 return device_->get_total_size_in_bytes(device_, total_size); in GetTotalSizeInBytes()
/system/update_engine/payload_generator/
Dpayload_file.cc332 off_t total_size = 0; in ReportPayloadUsage() local
341 total_size += aop.op.data_length(); in ReportPayloadUsage()
347 total_size += metadata_size; in ReportPayloadUsage()
355 object.size * 100.0 / total_size, in ReportPayloadUsage()
364 printf(kFormatString, 100.0, total_size, "", "<total>", total_op); in ReportPayloadUsage()
/system/core/fs_mgr/libvbmeta/
Dsuper_vbmeta_format_c.h98 uint32_t total_size; member
/system/libufdt/utils/src/
Ddt_table.c35 header->total_size = cpu_to_fdt32(header_size); in dt_table_header_init()
Ddt_table.h32 uint32_t total_size; /* includes dt_table_header + all dt_table_entry member
Dmkdtimg_core.c179 uint32_t entry_count, uint32_t total_size, in output_img_header() argument
185 header.total_size = cpu_to_fdt32(total_size); in output_img_header()
/system/memory/lmkd/tests/
Dlmkd_test.cpp184 size_t total_size; member
196 while (allocated_size < data->total_size) { in add_pressure()
209 data->finished = (allocated_size >= data->total_size); in add_pressure()
234 data->total_size = (size_t)-1; /* allocate until killed */ in runMemStressTest()
/system/memory/libmeminfo/libdmabufinfo/include/dmabufinfo/
Ddmabuf_sysfs_stats.h49 inline uint64_t total_size() const { return total_.size; } in total_size() function
/system/memory/libmemunreachable/include/memunreachable/
Dmemunreachable.h42 size_t total_size = 0; member
/system/core/fs_mgr/liblp/
Dutility.cpp154 uint64_t total_size = 0; in GetPartitionSize() local
157 total_size += extent.num_sectors * LP_SECTOR_SIZE; in GetPartitionSize()
159 return total_size; in GetPartitionSize()
/system/memory/libmemunreachable/
DMemUnreachable.cpp189 similar_leak->total_size += it.range.size(); in GetUnreachableMemory()
190 similar_leak->total_size += it.referenced_size; in GetUnreachableMemory()
199 leak->total_size = leak->size + leak->referenced_size; in GetUnreachableMemory()
207 [](const Leak& a, const Leak& b) { return a.total_size > b.total_size; }); in GetUnreachableMemory()
/system/nvram/hal/include/nvram/hal/tests/
Dscoped_nvram_device.h43 virtual nvram_result_t GetTotalSizeInBytes(uint64_t* total_size);
/system/nvram/client/
Dnvram_client.c103 uint64_t total_size = 0; in HandleGetTotalSize() local
104 nvram_result_t result = device->get_total_size_in_bytes(device, &total_size); in HandleGetTotalSize()
109 printf("%" PRIu64 "\n", total_size); in HandleGetTotalSize()
/system/nvram/hal/
Dnvram_device_adapter.cpp62 uint64_t* total_size) { in device_get_total_size_in_bytes() argument
67 *total_size = get_info_response.total_size; in device_get_total_size_in_bytes()

12