/system/bluetooth/brcm_patchram_plus/ |
H A D | brcm_patchram_plus.c | 573 int count; local 575 while ((count = read(fd, &buffer[i], len)) < len) { 576 i += count; 577 len -= count; 580 i += count; 583 while ((count = read(fd, &buffer[i], len)) < len) { 584 i += count; 585 len -= count; 589 count += i; 591 fprintf(stderr, "received %d\n", count); [all...] |
/system/core/adb/ |
H A D | adb.c | 230 unsigned count; local 245 count = p->msg.data_length; 247 if(count > DUMPMAX) { 248 count = DUMPMAX; 253 while(count-- > 0){ 975 DWORD count; local 977 ret = ReadFile( pipe_read, temp, 3, &count, NULL ); 983 if (count != 3 || temp[0] != 'O' || temp[1] != 'K' || temp[2] != '\n') { 1220 DWORD count; local 1221 WriteFile( GetStdHandle( STD_OUTPUT_HANDLE ), "OK\n", 3, &count, NUL local [all...] |
H A D | file_sync_client.c | 254 int count = size - total; local 255 if (count > SYNC_DATA_MAX) { 256 count = SYNC_DATA_MAX; 259 memcpy(sbuf->data, &file_buffer[total], count); 260 sbuf->size = htoll(count); 261 if(writex(fd, sbuf, sizeof(unsigned) * 2 + count)){ 265 total += count; 266 total_bytes += count;
|
H A D | services.c | 82 unsigned count = (unsigned) cookie; local 91 while(count > 0) { 92 unsigned xfer = (count > 4096) ? 4096 : count; 95 count -= xfer; 98 if(count == 0) {
|
H A D | sysdeps_win32.c | 918 int avail, count = 0; local 960 count += avail; 981 count += avail; 990 assert( count > 0 ); 997 BIPD(( "bip_buffer_write: exit %d->%d count %d (as=%d ae=%d be=%d cw=%d cr=%d\n", 998 bip->fdin, bip->fdout, count, bip->a_start, bip->a_end, bip->b_end, bip->can_write, bip->can_read )); 1001 return count; 1007 int avail, count = 0; local 1053 count += avail; 1069 count [all...] |
H A D | transport.c | 216 unsigned count; local 220 count = p->msg.data_length; 223 while(count-- > 0){ 716 D("transport: %s unref (count=%d)\n", t->serial, t->ref_count); 1171 unsigned count, sum; local 1174 count = p->msg.data_length; 1177 while(count-- > 0) {
|
H A D | transport_local.c | 140 int count = ADB_LOCAL_TRANSPORT_MAX; local 147 for ( ; count > 0; count--, port += 2 ) {
|
H A D | usb_linux_client.c | 346 size_t count = 0; local 350 ret = adb_write(bulk_in, buf + count, length - count); 355 count += ret; 357 } while (count < length); 360 return count; 380 size_t count = 0; local 384 ret = adb_read(bulk_out, buf + count, length - count); 387 D("[ bulk_read failed fd=%d length=%d count [all...] |
H A D | usb_osx.c | 240 int i, count; local 244 count = (req.wLenDone - 1) / 2; 245 for (i = 0; i < count; i++)
|
/system/core/debuggerd/ |
H A D | getevent.c | 82 int count = nfds - i - 1; local 84 memmove(device_names + i, device_names + i + 1, sizeof(device_names[0]) * count); 85 memmove(ufds + i, ufds + i + 1, sizeof(ufds[0]) * count);
|
/system/core/fastboot/ |
H A D | engine.c | 237 ssize_t count = 0; local 248 while(count < size) { 249 ssize_t actually_read = read(fd, (char*)buffer+count, size-count); 263 count += actually_read; 431 static int match(char *str, const char **value, unsigned count) argument 437 for (n = 0; n < count; n++) { 460 unsigned count = a->size; local 479 yes = match(resp, value, count); 493 for (n = 1; n < count; [all...] |
H A D | fastboot.c | 409 unsigned n, count; local 434 for(count = 1; count < MAX_OPTIONS; count++) { 435 x = strchr(val[count - 1],'|'); 438 val[count] = x + 1; 442 for(n = 0; n < count; n++) val[n] = strip(val[n]); 450 out = malloc(sizeof(char*) * count); 453 for(n = 0; n < count; n++) {
|
H A D | usb_linux.c | 314 unsigned count = 0; local 353 count += xfer; 358 return count; 364 unsigned count = 0; local 394 count += n; 403 return count;
|
H A D | usb_osx.c | 349 int i, count; local 352 count = (req.wLenDone - 1) / 2; 353 for (i = 0; i < count; i++)
|
H A D | usb_windows.c | 157 unsigned count = 0; local 179 count += written; 184 return count;
|
/system/core/include/mincrypt/ |
H A D | sha.h | 38 uint64_t count; member in struct:SHA_CTX
|
/system/core/include/sysutils/ |
H A D | List.h | 277 ptrdiff_t count = 0; local 280 ++count; 282 return count;
|
/system/core/init/ |
H A D | bootchart.c | 81 int count; member in struct:__anon367 89 buff->count = 0; 97 int avail = sizeof(buff->data) - buff->count; 101 memcpy( buff->data + buff->count, src, avail ); 105 buff->count += avail; 106 if (buff->count == FILE_BUFF_SIZE) { 107 unix_write( buff->fd, buff->data, buff->count ); 108 buff->count = 0; 116 if (buff->count > 0) { 117 unix_write( buff->fd, buff->data, buff->count ); 303 int timeout = 0, count = 0; local [all...] |
H A D | logo.c | 33 void android_memset16(void *_ptr, unsigned short val, unsigned count) argument 36 count >>= 1; 37 while(count--) 103 /* 565RLE image format: [count(2 bytes), rle(2 bytes)] */ 110 unsigned count, max; local 135 count = s.st_size; 137 while (count > 3) { 145 count -= 4;
|
/system/core/libcorkscrew/arch-arm/ |
H A D | backtrace-arm.c | 109 int count; local 110 uintptr_t start = (uintptr_t)__gnu_Unwind_Find_exidx((_Unwind_Ptr)pc, &count); 111 *out_exidx_size = count;
|
/system/core/libcutils/ |
H A D | abort_socket.c | 166 int asocket_read(struct asocket *s, void *buf, size_t count, int timeout) { argument 199 ret = read(s->fd, buf, count); 211 int asocket_write(struct asocket *s, const void *buf, size_t count, argument 245 ret = write(s->fd, buf, count);
|
H A D | dir_hash.c | 270 int count = 0; local 281 count++; 285 list = malloc(count * sizeof(struct list *)); 296 count = 0; 298 list[count++] = r; 301 qsort(list, count, sizeof(struct list *), cmp); 315 for (i = 0; i < count; i++) {
|
/system/core/liblinenoise/ |
H A D | linenoise.c | 366 int count; local 374 count = strlen(buf); 375 if (count && buf[count-1] == '\n') { 376 count--; 377 buf[count] = '\0'; 381 count = linenoisePrompt(fd, buf, buflen, prompt); 384 return count; 389 int count; local 404 count [all...] |
/system/core/liblog/ |
H A D | fake_log_device.c | 542 static ssize_t logWritev(int fd, const struct iovec* vector, int count) argument 563 if (count != 3) { 564 TRACE("%s: writevLog with count=%d not expected\n", 565 state->debugName, count); 643 static ssize_t (*redirectWritev)(int fd, const struct iovec* vector, int count) 681 ssize_t fakeLogWritev(int fd, const struct iovec* vector, int count) argument 684 return redirectWritev(fd, vector, count);
|
H A D | logprint.c | 534 unsigned char count; local 540 count = *eventData++; 550 for (i = 0; i < count; i++) { 556 if (i < count-1) { 680 * Terminate the buffer. The NUL byte does not count as part of 890 * Returns count bytes written
|