Searched refs:avail (Results 1 – 5 of 5) sorted by relevance
/system/core/init/ |
D | bootchart.c | 97 int avail = sizeof(buff->data) - buff->count; in file_buff_write() local 98 if (avail > len) in file_buff_write() 99 avail = len; in file_buff_write() 101 memcpy( buff->data + buff->count, src, avail ); in file_buff_write() 102 len -= avail; in file_buff_write() 103 src = (char*)src + avail; in file_buff_write() 105 buff->count += avail; in file_buff_write()
|
/system/core/adb/ |
D | sysdeps_win32.c | 925 int avail, count = 0; in bip_buffer_write() local 958 avail = BIP_BUFFER_SIZE - bip->a_end; in bip_buffer_write() 959 if (avail > 0) in bip_buffer_write() 962 if (avail > len) in bip_buffer_write() 963 avail = len; in bip_buffer_write() 965 memcpy( bip->buff + bip->a_end, src, avail ); in bip_buffer_write() 966 src = (const char *)src + avail; in bip_buffer_write() 967 count += avail; in bip_buffer_write() 968 len -= avail; in bip_buffer_write() 970 bip->a_end += avail; in bip_buffer_write() [all …]
|
D | sockets.c | 343 size_t avail = MAX_PAYLOAD; in local_socket_event_func() local 347 while(avail > 0) { in local_socket_event_func() 348 r = adb_read(fd, x, avail); in local_socket_event_func() 349 …S(%d): post adb_read(fd=%d,...) r=%d (errno=%d) avail=%zu\n", s->id, s->fd, r, r<0?errno:0, avail); in local_socket_event_func() 351 avail -= r; in local_socket_event_func() 366 if((avail == MAX_PAYLOAD) || (s->peer == 0)) { in local_socket_event_func() 369 p->len = MAX_PAYLOAD - avail; in local_socket_event_func()
|
/system/extras/tests/wifi/stress/ |
D | wifiLoadScanAssoc.c | 480 int chosenAvail, avail, cpu, currentCPU; in randBind() local 488 avail = 0; in randBind() 491 if (chosenAvail == avail) { in randBind() 495 avail++; in randBind()
|
/system/extras/sound/ |
D | playwav.c | 123 static unsigned avail; variable 127 if (sz > avail) in fill_buffer() 131 avail -= sz; in fill_buffer() 147 avail = count; in play_file()
|