Home
last modified time | relevance | path

Searched refs:total (Results 1 – 25 of 51) sorted by relevance

123

/system/core/liblog/
Duio.c27 int total = 0; in readv() local
36 if (total == 0) in readv()
37 total = -1; in readv()
43 total += ret; in readv()
49 return total; in readv()
54 int total = 0; in writev() local
63 if (total == 0) in writev()
64 total = -1; in writev()
70 total += ret; in writev()
76 return total; in writev()
/system/bt/osi/src/
Dringbuffer.c26 size_t total; member
38 p->total = p->available = size; in ringbuffer_init()
56 return rb->total - rb->available; in ringbuffer_size()
68 if (rb->tail >= (rb->base + rb->total)) in ringbuffer_insert()
83 if (rb->head >= (rb->base + rb->total)) in ringbuffer_delete()
84 rb->head -= rb->total; in ringbuffer_delete()
96 uint8_t *b = ((rb->head - rb->base + offset) % rb->total) + rb->base; in ringbuffer_peek()
101 if (b >= (rb->base + rb->total)) in ringbuffer_peek()
114 if (rb->head >= (rb->base + rb->total)) in ringbuffer_pop()
115 rb->head -= rb->total; in ringbuffer_pop()
/system/connectivity/shill/test-scripts/
Dconnect-disconnect107 total = 0
109 while options.limit == 0 or total < options.limit:
110 rc = Cycle(service_name, total)
111 total += 1
117 (float(total - success) / total, success, total - success, total))
119 if (total % 10) == 0:
/system/extras/showmap/
Dshowmap.cpp242 static void print_mi(mapinfo *mi, bool total) in print_mi() argument
245 if (total) { in print_mi()
263 mapinfo total; in show_map() local
264 memset(&total, 0, sizeof(total)); in show_map()
277 total.shared_clean += mi->shared_clean; in show_map()
278 total.shared_dirty += mi->shared_dirty; in show_map()
279 total.private_clean += mi->private_clean; in show_map()
280 total.private_dirty += mi->private_dirty; in show_map()
281 total.swap += mi->swap; in show_map()
282 total.rss += mi->rss; in show_map()
[all …]
/system/extras/tests/tcp_nuke_addr/
Dtcp_nuke_addr_test.cpp117 uint32_t total, previous = 0; in progressThread() local
121 total = attempts->load(); in progressThread()
122 printf("%ds: %u cps, total %u\n", elapsed, total-previous, total); in progressThread()
124 previous = total; in progressThread()
/system/extras/tests/memtest/
Dmemtest.cpp112 size_t total = 0; in malloc_test() local
120 total += size; in malloc_test()
122 size, addr, total, total / (1024*1024)); in malloc_test()
131 printf("done. allocated %zd MB\n", total / (1024*1024)); in malloc_test()
/system/core/fastboot/
Dsocket.cpp52 size_t total = 0; in ReceiveAll() local
54 while (total < length) { in ReceiveAll()
55 ssize_t bytes = Receive(reinterpret_cast<char*>(data) + total, length - total, timeout_ms); in ReceiveAll()
58 if (total == 0) { in ReceiveAll()
63 total += bytes; in ReceiveAll()
66 return total; in ReceiveAll()
Dfastboot.h55 size_t total);
Dengine.cpp161 size_t total) { in fb_queue_flash_sparse() argument
167 a->msg = mkmsg("sending sparse '%s' %zu/%zu (%d KB)", ptn, current, total, sz / 1024); in fb_queue_flash_sparse()
170 a->msg = mkmsg("writing '%s' %zu/%zu", ptn, current, total); in fb_queue_flash_sparse()
/system/core/libdiskconfig/
Ddiskutils.c42 uint64_t total = 0; in write_raw_image() local
77 total += nr_bytes; in write_raw_image()
105 ALOGI("Wrote %" PRIu64 " bytes to %s @ %lld", total, dst, (long long)offset); in write_raw_image()
/system/extras/latencytop/
Dlatencytop.c38 unsigned long total; member
329 unsigned long count, max, total; in read_latency_file() local
346 sscanf(line, "%ld %ld %ld %s", &count, &total, &max, reason); in read_latency_file()
347 if (max > 0 || total > 0) { in read_latency_file()
353 e->total += total; in read_latency_file()
358 e->total = total; in read_latency_file()
397 average = e->total / e->count; in print_latency_entries()
/system/extras/verity/
Dverify_boot_signature.c232 uint64_t total = 0; in hash_image() local
256 if ((length - total) < BUFFER_SIZE) { in hash_image()
257 bytes = length - total; in hash_image()
266 total += bytes; in hash_image()
267 } while (total < length); in hash_image()
/system/core/adb/
Dbugreport.cpp147 int total = std::stoi(line.substr(idx2 + 1)); in ProcessLine() local
148 br_->UpdateProgress(line_message_, progress, total); in ProcessLine()
262 void Bugreport::UpdateProgress(const std::string& message, int progress, int total) { in UpdateProgress() argument
263 int progress_percentage = (progress * 100 / total); in UpdateProgress()
Dbugreport.h46 virtual void UpdateProgress(const std::string& file_name, int progress, int total);
/system/bt/embdrv/sbc/decoder/srce/
Dbitalloc.c260 OI_UINT32 total = 0; in adjustToFitBitpool() local
278 total += n; in adjustToFitBitpool()
281 count = (total & 0xFFFF) + (total >> 16); in adjustToFitBitpool()
/system/core/fs_mgr/
Dfs_mgr_fstab.c96 uint64_t total; in calculate_zram_size() local
98 total = sysconf(_SC_PHYS_PAGES); in calculate_zram_size()
99 total *= percentage; in calculate_zram_size()
100 total /= 100; in calculate_zram_size()
102 total *= sysconf(_SC_PAGESIZE); in calculate_zram_size()
104 return total; in calculate_zram_size()
/system/extras/taskstats/
Dtaskstats.c118 double average_ms(unsigned long long total, unsigned long long count) { in average_ms() argument
122 return ((double)total) / count / 1e6; in average_ms()
125 unsigned long long average_ns(unsigned long long total, in average_ns() argument
130 return total / count; in average_ns()
/system/extras/tests/directiotest/
Ddirectiotest.c162 static void update_progress(int current, int total) in update_progress() argument
164 double pct_done = (double)current * 100 / total; in update_progress()
165 printf("Testing area %d/%d (%6.2f%% complete)\r", current, total, in update_progress()
/system/core/metricsd/collectors/
Dcpu_usage_collector.cc98 uint64_t total = user_ticks + user_nice_ticks + system_ticks; in GetCumulativeCpuUse() local
100 total * 1000 * 1000 / ticks_per_second_); in GetCumulativeCpuUse()
/system/extras/sound/
Dplaywav.c200 unsigned total = 0; in wav_rec() local
276 total += sz; in wav_rec()
283 hdr.data_sz = total; in wav_rec()
284 hdr.riff_sz = total + 8 + 16 + 8; in wav_rec()
/system/update_engine/payload_consumer/
Dmock_download_action.h34 uint64_t total));
/system/extras/ANRdaemon/
DANRdaemon.cpp76 unsigned long total; member
149 cpu->total = cpu->utime + cpu->ntime + cpu->stime + cpu->itime in get_cpu_stat()
167 diff_total = new_cpu.total - old_cpu.total; in is_heavy_load()
/system/netd/server/
DResolverController.cpp218 int total = s.successes + s.errors + s.timeouts + s.internal_errors; in dump() local
219 if (total > 0) { in dump()
222 total, s.successes, s.errors, s.timeouts, s.internal_errors, in dump()
/system/update_engine/
Dupdate_attempter_android.cc338 uint64_t total) { in BytesReceived() argument
340 if (total) in BytesReceived()
341 progress = static_cast<double>(bytes_received) / static_cast<double>(total); in BytesReceived()
342 if (status_ != UpdateStatus::DOWNLOADING || bytes_received == total) { in BytesReceived()
/system/extras/tests/workloads/
Ddefs.sh248 total=0
255 total=$4
268 echo $total $janky $l90 $l95 $l99

123