Home
last modified time | relevance | path

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

123

/system/core/liblog/
Duio.c26 int total = 0; in readv() local
35 if (total == 0) total = -1; in readv()
40 total += ret; in readv()
46 return total; in readv()
50 int total = 0; in writev() local
59 if (total == 0) total = -1; in writev()
64 total += ret; in writev()
70 return total; in writev()
/system/bt/osi/src/
Dringbuffer.cc26 size_t total; member
39 p->total = p->available = size; in ringbuffer_init()
56 return rb->total - rb->available; in ringbuffer_size()
67 if (rb->tail >= (rb->base + rb->total)) rb->tail = rb->base; in ringbuffer_insert()
80 if (rb->head >= (rb->base + rb->total)) rb->head -= rb->total; in ringbuffer_delete()
93 uint8_t* b = ((rb->head - rb->base + offset) % rb->total) + rb->base; in ringbuffer_peek()
100 if (b >= (rb->base + rb->total)) b = rb->base; in ringbuffer_peek()
112 if (rb->head >= (rb->base + rb->total)) rb->head -= rb->total; in ringbuffer_pop()
/system/nfc/src/adaptation/
Dringbuffer.cc25 size_t total; member
39 p->total = p->available = size; in ringbuffer_init()
56 return rb->total - rb->available; in ringbuffer_size()
67 if (rb->tail >= (rb->base + rb->total)) rb->tail = rb->base; in ringbuffer_insert()
80 if (rb->head >= (rb->base + rb->total)) rb->head -= rb->total; in ringbuffer_delete()
93 uint8_t* b = ((rb->head - rb->base + offset) % rb->total) + rb->base; in ringbuffer_peek()
100 if (b >= (rb->base + rb->total)) b = rb->base; in ringbuffer_peek()
112 if (rb->head >= (rb->base + rb->total)) rb->head -= rb->total; in ringbuffer_pop()
/system/extras/showmap/
Dshowmap.cpp246 static void print_mi(mapinfo *mi, bool total) in print_mi() argument
249 if (total) { in print_mi()
267 mapinfo total; in show_map() local
268 memset(&total, 0, sizeof(total)); in show_map()
281 total.shared_clean += mi->shared_clean; in show_map()
282 total.shared_dirty += mi->shared_dirty; in show_map()
283 total.private_clean += mi->private_clean; in show_map()
284 total.private_dirty += mi->private_dirty; in show_map()
285 total.swap += mi->swap; in show_map()
286 total.swap_pss += mi->swap_pss; in show_map()
[all …]
/system/update_engine/scripts/update_payload/
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)
Dformat_utils.py8 def NumToPercent(num, total, min_precision=1, max_precision=5): argument
34 if total == 0:
41 percent = num * 100 * factor / total
/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/nfc/halimpl/bcm2079x/gki/common/
Dgki_buffer.c49 static void gki_init_free_queue(uint8_t id, uint16_t size, uint16_t total, in gki_init_free_queue() argument
66 p_cb->pool_end[id] = (uint8_t*)p_mem + (act_size * total); in gki_init_free_queue()
72 p_cb->freeq[id].total = total; in gki_init_free_queue()
80 id, size, tempsize, total, p_mem); in gki_init_free_queue()
87 for (i = 0; i < total; i++) { in gki_init_free_queue()
114 void* p_mem = GKI_os_malloc((Q->size + BUFFER_PADDING_SIZE) * Q->total); in gki_alloc_free_queue()
121 id, Q->size, Q->total); in gki_alloc_free_queue()
123 gki_init_free_queue(id, Q->size, Q->total, p_mem); in gki_alloc_free_queue()
126 Q->size, Q->total); in gki_alloc_free_queue()
170 p_cb->freeq[tt].total = 0; in gki_buffer_init()
[all …]
Dgki_debug.c54 p->max_cnt, p->total); in GKI_PrintBufferUsage()
57 p->max_cnt, p->total); in GKI_PrintBufferUsage()
79 gki_cb.com.freeq[i].max_cnt, gki_cb.com.freeq[i].total); in GKI_PrintBuffer()
160 maxbuffs = gki_cb.com.freeq[pool].total; in gki_print_buffer_statistics()
164 gki_cb.com.freeq[pool].max_cnt, gki_cb.com.freeq[pool].total); in gki_print_buffer_statistics()
202 num_bufs = gki_cb.com.freeq[pool_id].total; in gki_print_used_bufs()
/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()
/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/nfc/src/gki/common/
Dgki_buffer.c40 static void gki_init_free_queue(uint8_t id, uint16_t size, uint16_t total, in gki_init_free_queue() argument
57 p_cb->pool_end[id] = (uint8_t*)p_mem + (act_size * total); in gki_init_free_queue()
63 p_cb->freeq[id].total = total; in gki_init_free_queue()
71 for (i = 0; i < total; i++) { in gki_init_free_queue()
95 void* p_mem = GKI_os_malloc((Q->size + BUFFER_PADDING_SIZE) * Q->total); in gki_alloc_free_queue()
98 gki_init_free_queue(id, Q->size, Q->total, p_mem); in gki_alloc_free_queue()
137 p_cb->freeq[tt].total = 0; in gki_buffer_init()
283 if (Q->cur_cnt < Q->total) { in GKI_getbuf()
350 if (Q->cur_cnt < Q->total) { in GKI_getpoolbuf()
995 if (Q->cur_cnt < Q->total) { in GKI_igetpoolbuf()
[all …]
/system/extras/verity/
Dverify_boot_signature.c233 uint64_t total = 0; in hash_image() local
257 if ((length - total) < BUFFER_SIZE) { in hash_image()
258 bytes = length - total; in hash_image()
267 total += bytes; in hash_image()
268 } while (total < length); in hash_image()
/system/bt/test/
DREADME.md60 [----------] 6 tests from BluetoothTest (32789 ms total)
73 [----------] 5 tests from GattTest (11706 ms total)
76 [==========] 11 tests from 2 test cases ran. (44495 ms total)
/system/bt/embdrv/sbc/decoder/srce/
Dbitalloc.c256 uint32_t total = 0; in adjustToFitBitpool() local
274 total += n; in adjustToFitBitpool()
277 count = (total & 0xFFFF) + (total >> 16); in adjustToFitBitpool()
/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/update_engine/payload_consumer/
Dmock_download_action.h34 uint64_t total));
/system/hwservicemanager/
DServiceManager.cpp42 size_t total = 0; in countExistingService() local
44 ++total; in countExistingService()
46 return total; in countExistingService()
315 size_t total = 0; in listByInterface() local
320 ++total; in listByInterface()
322 list.resize(total); in listByInterface()
/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/libhwbinder/vts/performance/
DLatency.cpp374 PResults total, presults[no_pair]; in main() local
379 total = PResults::combine(total, presults[i]); in main()
382 total.dump(); in main()
/system/extras/ANRdaemon/
DANRdaemon.cpp76 unsigned long total; member
151 cpu->total = cpu->utime + cpu->ntime + cpu->stime + cpu->itime in get_cpu_stat()
169 diff_total = new_cpu.total - old_cpu.total; in is_heavy_load()
/system/update_engine/
Dupdate_attempter_android.cc356 uint64_t total) { in BytesReceived() argument
358 if (total) in BytesReceived()
359 progress = static_cast<double>(bytes_received) / static_cast<double>(total); in BytesReceived()
360 if (status_ != UpdateStatus::DOWNLOADING || bytes_received == total) { in BytesReceived()

123