/system/bt/osi/src/ |
D | ringbuffer.cc | 26 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/utils/ |
D | ringbuffer.cc | 25 size_t total; member 41 p->total = p->available = size; in ringbuffer_init() 58 return rb->total - rb->available; in ringbuffer_size() 69 if (rb->tail >= (rb->base + rb->total)) rb->tail = rb->base; in ringbuffer_insert() 82 if (rb->head >= (rb->base + rb->total)) rb->head -= rb->total; in ringbuffer_delete() 95 uint8_t* b = ((rb->head - rb->base + offset) % rb->total) + rb->base; in ringbuffer_peek() 102 if (b >= (rb->base + rb->total)) b = rb->base; in ringbuffer_peek() 114 if (rb->head >= (rb->base + rb->total)) rb->head -= rb->total; in ringbuffer_pop()
|
/system/core/fs_mgr/tools/ |
D | dmuserd.cpp | 81 ssize_t total = 0; in write_all() local 84 while (total < static_cast<ssize_t>(len)) { in write_all() 85 once = write(fd, buf_c + total, len - total); in write_all() 91 total += once; in write_all() 94 return total; in write_all() 99 ssize_t total = 0; in read_all() local 102 while (total < static_cast<ssize_t>(len)) { in read_all() 103 once = read(fd, buf_c + total, len - total); in read_all() 109 total += once; in read_all() 112 return total; in read_all()
|
/system/update_engine/scripts/update_payload/ |
D | histogram.py | 58 self.total = sum([count for key, count in self.data]) 115 if self.total: 116 bar_len = count * self.scale // self.total 123 percent_str = format_utils.NumToPercent(count, self.total)
|
D | format_utils.py | 22 def NumToPercent(num, total, min_precision=1, max_precision=5): argument 48 if total == 0: 55 percent = num * 100 * factor // total
|
/system/extras/boottime_tools/io_analysis/ |
D | check_verity.py | 109 io, verity, total, blocks = get_average_and_std_dev(l) 111 verity[0], verity[1], verity[2], "total:", total[0], total[1], total[2] 112 return io, verity, total, blocks 116 io, verity, total, blocks = self.dump_list ("total,", self.reads)
|
/system/extras/tests/tcp_nuke_addr/ |
D | tcp_nuke_addr_test.cpp | 117 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/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/core/fastboot/ |
D | socket.cpp | 52 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() 60 if (total == 0) { in ReceiveAll() 65 total += bytes; in ReceiveAll() 68 return total; in ReceiveAll()
|
D | fastboot_driver.cpp | 157 size_t current, size_t total) { in FlashPartition() argument 159 if ((ret = Download(partition, s, size, current, total, false))) { in FlashPartition() 249 size_t current, size_t total, bool use_crc, std::string* response, in Download() argument 251 prolog_(StringPrintf("Sending sparse '%s' %zu/%zu (%u KB)", partition.c_str(), current, total, in Download() 593 size_t total = 0; in SparseWriteCallback() local 607 total += to_write; in SparseWriteCallback() 610 size_t nchunks = (len - total) / TRANSPORT_CHUNK_SIZE; in SparseWriteCallback() 612 if (nbytes && SendBuffer(data + total, nbytes)) { // Don't send a ZLP in SparseWriteCallback() 616 total += nbytes; in SparseWriteCallback() 618 if (len - total > 0) { // We have residual data to save for next time in SparseWriteCallback() [all …]
|
/system/extras/latencytop/ |
D | latencytop.c | 38 unsigned long total; member 318 unsigned long count, max, total; in read_latency_file() local 335 sscanf(line, "%ld %ld %ld %s", &count, &total, &max, reason); in read_latency_file() 336 if (max > 0 || total > 0) { in read_latency_file() 341 e->total += total; in read_latency_file() 346 e->total = total; in read_latency_file() 385 average = e->total / e->count; in print_latency_entries()
|
/system/nfc/src/gki/common/ |
D | gki_buffer.cc | 45 static void gki_init_free_queue(uint8_t id, uint16_t size, uint16_t total, in gki_init_free_queue() argument 62 p_cb->pool_end[id] = (uint8_t*)p_mem + (act_size * total); in gki_init_free_queue() 68 p_cb->freeq[id].total = total; in gki_init_free_queue() 76 for (i = 0; i < total; i++) { in gki_init_free_queue() 100 void* p_mem = GKI_os_malloc((Q->size + BUFFER_PADDING_SIZE) * Q->total); in gki_alloc_free_queue() 103 gki_init_free_queue(id, Q->size, Q->total, p_mem); in gki_alloc_free_queue() 142 p_cb->freeq[tt].total = 0; in gki_buffer_init() 339 if (Q->cur_cnt < Q->total) { in GKI_getbuf() 432 if (Q->cur_cnt < Q->total) { in GKI_getpoolbuf() 1086 return (gki_cb.com.freeq[pool_id].total); in GKI_poolcount() [all …]
|
/system/gsid/aidl/android/gsi/ |
D | IProgressCallback.aidl | 33 void onProgress(long current, long total); in onProgress() argument
|
/system/bt/test/ |
D | README.md | 60 [----------] 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/security/keystore2/aidl/android/security/remoteprovisioning/ |
D | AttestationPoolStatus.aidl | 44 int total;
|
/system/bt/embdrv/sbc/decoder/srce/ |
D | bitalloc.c | 256 uint32_t total = 0; in adjustToFitBitpool() local 274 total += n; in adjustToFitBitpool() 277 count = (total & 0xFFFF) + (total >> 16); in adjustToFitBitpool()
|
/system/security/keystore2/aidl/android/security/metrics/ |
D | RkpPoolStats.aidl | 31 int total;
|
/system/update_engine/common/ |
D | mock_download_action.h | 34 uint64_t total));
|
/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/taskstats/ |
D | taskstats.c | 118 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/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/vold/bench/ |
D | benchgen.py | 181 total = len(events) variable 185 print >>bench, "if (!checkpoint(%d)) return -1;" % (50 + ((i * 50) / total)) 313 total = len(files.values()) variable 317 print >>bench, "if (!checkpoint(%d)) return -1;" % ((i * 50) / total)
|
/system/memory/libmeminfo/libdmabufinfo/ |
D | dmabuf_sysfs_stats.cpp | 108 struct DmabufTotal total = {.size = info.size, .buffer_count = 1}; in GetDmabufSysfsStats() local 109 stats->exporter_info_[info.exp_name] = total; in GetDmabufSysfsStats()
|
/system/libhwbinder/vts/performance/ |
D | Latency.cpp | 374 PResults total, presults[no_pair]; in main() local 379 total = PResults::combine(total, presults[i]); in main() 382 total.dump(); in main()
|
/system/bpfprogs/ |
D | time_in_state.c | 116 uint64_t* total = bpf_total_time_in_state_map_lookup_elem(&total_freq_idx); variable 117 if (total) *total += delta;
|