/system/core/liblog/ |
D | uio.c | 24 int total = 0; in readv() local 33 if (total == 0) in readv() 34 total = -1; in readv() 40 total += ret; in readv() 46 return total; in readv() 51 int total = 0; in writev() local 60 if (total == 0) in writev() 61 total = -1; in writev() 67 total += ret; in writev() 73 return total; in writev()
|
/system/bt/osi/src/ |
D | ringbuffer.c | 26 size_t total; member 45 p->total = p->available = size; in ringbuffer_init() 63 return rb->total - rb->available; in ringbuffer_size() 75 if (rb->tail >= (rb->base + rb->total)) in ringbuffer_insert() 90 if (rb->head >= (rb->base + rb->total)) in ringbuffer_delete() 91 rb->head -= rb->total; in ringbuffer_delete() 106 if (b >= (rb->base + rb->total)) in ringbuffer_peek() 120 if (rb->head >= (rb->base + rb->total)) in ringbuffer_pop() 121 rb->head -= rb->total; in ringbuffer_pop()
|
/system/bt/test/suite/cases/ |
D | rfcomm.c | 34 size_t total = 0; in handshake() local 35 while (!strstr(response, HANDSHAKE_RESPONSE) && total < sizeof(response)) { in handshake() 36 ssize_t len = read(fd, response + total, sizeof(response) - total); in handshake() 38 total += len; in handshake()
|
/system/bt/gki/common/ |
D | gki_buffer.c | 48 static void gki_init_free_queue (UINT8 id, UINT16 size, UINT16 total, void *p_mem) in gki_init_free_queue() argument 66 p_cb->pool_end[id] = (UINT8 *)p_mem + (act_size * total); in gki_init_free_queue() 72 p_cb->freeq[id].total = total; in gki_init_free_queue() 81 for (i = 0; i < total; i++) in gki_init_free_queue() 158 p_cb->freeq[i].total = 0; in gki_buffer_init() 497 return (gki_cb.com.freeq[pool_id].total); in GKI_poolcount() 521 return ((UINT16)(Q->total - Q->cur_cnt)); in GKI_poolfreecount() 564 if (Q->total == 0) in GKI_poolutilization() 567 return ((Q->cur_cnt * 100) / Q->total); in GKI_poolutilization()
|
D | gki_common.h | 37 UINT16 total; /* toatal number of buffers */ member
|
/system/extras/tests/memtest/ |
D | memtest.cpp | 118 size_t total = 0; in malloc_test() local 126 total += size; in malloc_test() 128 size, addr, total, total / (1024*1024)); in malloc_test() 137 printf("done. allocated %zd MB\n", total / (1024*1024)); in malloc_test()
|
D | fptest.cpp | 66 float total = 0; in test_mad() local 102 float total = 0; in test_fma() local
|
/system/core/libdiskconfig/ |
D | diskutils.c | 42 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/ |
D | latencytop.c | 38 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/ |
D | verify_boot_signature.c | 240 uint64_t total = 0; in hash_image() local 264 if ((length - total) < BUFFER_SIZE) { in hash_image() 265 bytes = length - total; in hash_image() 274 total += bytes; in hash_image() 275 } while (total < length); in hash_image()
|
/system/core/fs_mgr/ |
D | fs_mgr_fstab.c | 83 uint64_t total; in calculate_zram_size() local 85 total = sysconf(_SC_PHYS_PAGES); in calculate_zram_size() 86 total *= percentage; in calculate_zram_size() 87 total /= 100; in calculate_zram_size() 89 total *= sysconf(_SC_PAGESIZE); in calculate_zram_size() 91 return total; in calculate_zram_size()
|
/system/bt/embdrv/sbc/decoder/srce/ |
D | bitalloc.c | 260 OI_UINT32 total = 0; in adjustToFitBitpool() local 278 total += n; in adjustToFitBitpool() 281 count = (total & 0xFFFF) + (total >> 16); in adjustToFitBitpool()
|
/system/extras/tests/directiotest/ |
D | directiotest.c | 162 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/extras/sound/ |
D | playwav.c | 200 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/extras/taskstats/ |
D | taskstats.c | 168 double average_ms(unsigned long long total, unsigned long long count) { in average_ms() argument 172 return ((double)total) / count / 1e6; in average_ms() 175 unsigned long long average_ns(unsigned long long total, in average_ns() argument 180 return total / count; in average_ns()
|
/system/extras/tests/binder/benchmarks/ |
D | binderAddInts.cpp | 243 double min = FLT_MAX, max = 0.0, total = 0.0; // Time in seconds for all in client() local 289 total += delta; in client() 302 << " avg: " << (total / options.iterations) in client()
|
/system/extras/tests/workloads/ |
D | defs.sh | 227 total=0 234 total=$4 247 echo $total $janky $l90 $l95 $l99
|
/system/core/adb/ |
D | file_sync_client.cpp | 284 int total = 0; in write_data_buffer() local 287 while (total < size) { in write_data_buffer() 288 int count = size - total; in write_data_buffer() 293 memcpy(sbuf->data, &file_buffer[total], count); in write_data_buffer() 299 total += count; in write_data_buffer() 303 print_transfer_progress(total, size); in write_data_buffer()
|
D | commandline.cpp | 312 long total = 0; in copy_to_file() local 344 total += len; in copy_to_file() 351 D("copy_to_file() finished after %lu bytes\n", total); in copy_to_file() 462 unsigned total = sz; in adb_download_buffer() local 481 printf("sending: '%s' %4d%% \r", fn, (int)(100LL - ((100LL * sz) / (total)))); in adb_download_buffer()
|
/system/core/libsparse/ |
D | output_file.c | 320 size_t total = 0; in read_all() local 324 while (total < len) { in read_all() 325 ret = read(fd, ptr, len - total); in read_all() 334 total += ret; in read_all()
|
/system/core/logcat/tests/ |
D | logcat_test.cpp | 510 static const char total[] = "total "; in TEST() local 517 } else if (strncmp(buffer, total, sizeof(total) - 1)) { in TEST()
|
/system/bt/stack/sdp/ |
D | sdp_discovery.c | 291 UINT16 total, cur_handles, orig; in process_service_search_rsp() local 296 BE_STREAM_TO_UINT16 (total, p_reply); in process_service_search_rsp() 309 if (total > sdp_cb.max_recs_per_search) in process_service_search_rsp() 310 total = sdp_cb.max_recs_per_search; in process_service_search_rsp()
|
/system/core/lmkd/ |
D | lmkd.c | 516 int total; in proc_get_size() local 530 sscanf(line, "%d %d ", &total, &rss); in proc_get_size()
|
/system/core/fastboot/ |
D | fastboot_protocol.txt | 45 the total data size to transfer.
|