Searched refs:total (Results 1 - 25 of 49) sorted by relevance

12

/system/core/liblog/
H A Duio.c26 int total = 0; local
35 if (total == 0) total = -1;
40 total += ret;
46 return total;
50 int total = 0; local
59 if (total == 0) total = -1;
64 total += ret;
70 return total;
[all...]
/system/update_engine/scripts/update_payload/
H A Dformat_utils.py8 def NumToPercent(num, total, min_precision=1, max_precision=5):
9 """Returns the percentage (string) of |num| out of |total|.
26 total: the value of the whole
30 Percentage string, or None if percent cannot be computed (i.e. total is
34 if total == 0:
41 percent = num * 100 * factor / total
H A Dhistogram.py43 self.total = sum([count for key, count in self.data])
100 if self.total:
101 bar_len = count * self.scale / self.total
108 percent_str = format_utils.NumToPercent(count, self.total)
/system/update_engine/payload_consumer/
H A Dmock_download_action.h34 uint64_t total));
/system/bt/osi/src/
H A Dringbuffer.cc26 size_t total; member in struct:ringbuffer_t
39 p->total = p->available = size;
56 return rb->total - rb->available;
67 if (rb->tail >= (rb->base + rb->total)) rb->tail = rb->base;
80 if (rb->head >= (rb->base + rb->total)) rb->head -= rb->total;
93 uint8_t* b = ((rb->head - rb->base + offset) % rb->total) + rb->base;
100 if (b >= (rb->base + rb->total)) b = rb->base;
112 if (rb->head >= (rb->base + rb->total)) rb->head -= rb->total;
[all...]
/system/nfc/src/adaptation/
H A Dringbuffer.cc25 size_t total; member in struct:ringbuffer_t
39 p->total = p->available = size;
56 return rb->total - rb->available;
67 if (rb->tail >= (rb->base + rb->total)) rb->tail = rb->base;
80 if (rb->head >= (rb->base + rb->total)) rb->head -= rb->total;
93 uint8_t* b = ((rb->head - rb->base + offset) % rb->total) + rb->base;
100 if (b >= (rb->base + rb->total)) b = rb->base;
112 if (rb->head >= (rb->base + rb->total)) rb->head -= rb->total;
[all...]
/system/extras/showmap/
H A Dshowmap.cpp246 static void print_mi(mapinfo *mi, bool total) argument
249 if (total) {
267 mapinfo total; local
268 memset(&total, 0, sizeof(total));
281 total.shared_clean += mi->shared_clean;
282 total.shared_dirty += mi->shared_dirty;
283 total.private_clean += mi->private_clean;
284 total.private_dirty += mi->private_dirty;
285 total
[all...]
/system/core/libdiskconfig/
H A Ddiskutils.c42 uint64_t total = 0; local
77 total += nr_bytes;
105 ALOGI("Wrote %" PRIu64 " bytes to %s @ %lld", total, dst, (long long)offset);
/system/extras/tests/memtest/
H A Dmemtest.cpp112 size_t total = 0; local
120 total += size;
121 printf("size = %9zd, addr = %p (total = %9zd (%zd MB))\n",
122 size, addr, total, total / (1024*1024));
131 printf("done. allocated %zd MB\n", total / (1024*1024));
/system/extras/tests/tcp_nuke_addr/
H A Dtcp_nuke_addr_test.cpp117 uint32_t total, previous = 0; local
121 total = attempts->load();
122 printf("%ds: %u cps, total %u\n", elapsed, total-previous, total);
124 previous = total;
/system/core/fastboot/
H A Dsocket.cpp52 size_t total = 0; local
54 while (total < length) {
55 ssize_t bytes = Receive(reinterpret_cast<char*>(data) + total, length - total, timeout_ms);
58 if (total == 0) {
63 total += bytes;
66 return total;
H A Dfastboot.h58 size_t total);
/system/extras/latencytop/
H A Dlatencytop.c38 unsigned long total; member in struct:latency_entry
329 unsigned long count, max, total; local
346 sscanf(line, "%ld %ld %ld %s", &count, &total, &max, reason);
347 if (max > 0 || total > 0) {
353 e->total += total;
358 e->total = total;
397 average = e->total / e->count;
/system/nfc/halimpl/bcm2079x/gki/common/
H A Dgki_buffer.c49 static void gki_init_free_queue(uint8_t id, uint16_t size, uint16_t total, argument
66 p_cb->pool_end[id] = (uint8_t*)p_mem + (act_size * total);
72 p_cb->freeq[id].total = total;
78 "gki_init_free_queue() init pool=%d, size=%d (aligned=%d) total=%d "
80 id, size, tempsize, total, p_mem);
87 for (i = 0; i < total; i++) {
114 void* p_mem = GKI_os_malloc((Q->size + BUFFER_PADDING_SIZE) * Q->total);
121 id, Q->size, Q->total);
123 gki_init_free_queue(id, Q->size, Q->total, p_me
[all...]
H A Dgki_debug.c54 p->max_cnt, p->total);
57 p->max_cnt, p->total);
77 GKI_TRACE_5("pool:%4u free %4u cur %3u max %3u total%3u", i,
79 gki_cb.com.freeq[i].max_cnt, gki_cb.com.freeq[i].total);
160 maxbuffs = gki_cb.com.freeq[pool].total;
162 print("Buffer Pool[%u] size=%u cur_cnt=%u max_cnt=%u total=%u\n", pool,
164 gki_cb.com.freeq[pool].max_cnt, gki_cb.com.freeq[pool].total);
202 num_bufs = gki_cb.com.freeq[pool_id].total;
/system/bt/embdrv/sbc/decoder/srce/
H A Dbitalloc.c256 uint32_t total = 0; local
274 total += n;
277 count = (total & 0xFFFF) + (total >> 16);
/system/extras/taskstats/
H A Dtaskstats.c118 double average_ms(unsigned long long total, unsigned long long count) { argument
122 return ((double)total) / count / 1e6;
125 unsigned long long average_ns(unsigned long long total, argument
130 return total / count;
/system/nfc/src/gki/common/
H A Dgki_buffer.c40 static void gki_init_free_queue(uint8_t id, uint16_t size, uint16_t total, argument
57 p_cb->pool_end[id] = (uint8_t*)p_mem + (act_size * total);
63 p_cb->freeq[id].total = total;
71 for (i = 0; i < total; i++) {
95 void* p_mem = GKI_os_malloc((Q->size + BUFFER_PADDING_SIZE) * Q->total);
98 gki_init_free_queue(id, Q->size, Q->total, p_mem);
137 p_cb->freeq[tt].total = 0;
283 if (Q->cur_cnt < Q->total) {
350 if (Q->cur_cnt < Q->total) {
[all...]
/system/extras/verity/
H A Dverify_boot_signature.c233 uint64_t total = 0; local
257 if ((length - total) < BUFFER_SIZE) {
258 bytes = length - total;
267 total += bytes;
268 } while (total < length);
/system/hwservicemanager/
H A DServiceManager.cpp25 size_t total = 0; local
27 ++total;
29 return total;
305 size_t total = 0; local
310 ++total;
312 list.resize(total);
/system/extras/sound/
H A Dplaywav.c200 unsigned total = 0; local
276 total += sz;
283 hdr.data_sz = total;
284 hdr.riff_sz = total + 8 + 16 + 8;
/system/libhwbinder/vts/performance/
H A DLatency.cpp374 PResults total, presults[no_pair]; local
379 total = PResults::combine(total, presults[i]);
382 total.dump();
/system/extras/tests/directiotest/
H A Ddirectiotest.c162 static void update_progress(int current, int total) argument
164 double pct_done = (double)current * 100 / total;
165 printf("Testing area %d/%d (%6.2f%% complete)\r", current, total,
/system/extras/tests/workloads/
H A Ddefs.sh248 total=0
255 total=$4
268 echo $total $janky $l90 $l95 $l99
/system/extras/ANRdaemon/
H A DANRdaemon.cpp76 unsigned long total; member in struct:cpu_stat
151 cpu->total = cpu->utime + cpu->ntime + cpu->stime + cpu->itime
169 diff_total = new_cpu.total - old_cpu.total;

Completed in 357 milliseconds

12