Searched refs:count (Results 1 - 25 of 115) sorted by last modified time

12345

/system/bluetooth/brcm_patchram_plus/
H A Dbrcm_patchram_plus.c573 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 Dadb.c166 unsigned count; local
180 count = p->msg.data_length;
182 if(count > DUMPMAX) {
183 count = DUMPMAX;
188 while(count-- > 0){
759 DWORD count; local
761 ret = ReadFile( pipe_read, temp, 3, &count, NULL );
767 if (count != 3 || temp[0] != 'O' || temp[1] != 'K' || temp[2] != '\n') {
970 DWORD count; local
971 WriteFile( GetStdHandle( STD_OUTPUT_HANDLE ), "OK\n", 3, &count, NUL local
[all...]
H A Dfile_sync_client.c254 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 Dservices.c82 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 Dsysdeps_win32.c918 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 Dtransport.c216 unsigned count; local
220 count = p->msg.data_length;
223 while(count-- > 0){
710 D("transport: %s unref (count=%d)\n", t->serial, t->ref_count);
1065 unsigned count, sum; local
1068 count = p->msg.data_length;
1071 while(count-- > 0) {
H A Dtransport_local.c140 int count = ADB_LOCAL_TRANSPORT_MAX; local
147 for ( ; count > 0; count--, port += 2 ) {
H A Dusb_osx.c232 int i, count; local
236 count = (req.wLenDone - 1) / 2;
237 for (i = 0; i < count; i++)
/system/core/debuggerd/
H A Dgetevent.c82 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 Dengine.c149 static int match(char *str, const char **value, unsigned count) argument
155 for (n = 0; n < count; n++) {
178 unsigned count = a->size; local
197 yes = match(resp, value, count);
211 for (n = 1; n < count; n++) {
H A Dfastboot.c346 unsigned n, count; local
371 for(count = 1; count < MAX_OPTIONS; count++) {
372 x = strchr(val[count - 1],'|');
375 val[count] = x + 1;
379 for(n = 0; n < count; n++) val[n] = strip(val[n]);
387 out = malloc(sizeof(char*) * count);
390 for(n = 0; n < count; n++) {
H A Dusb_linux.c272 unsigned count = 0; local
311 count += xfer;
316 return count;
322 unsigned count = 0; local
352 count += n;
361 return count;
H A Dusb_osx.c340 int i, count; local
343 count = (req.wLenDone - 1) / 2;
344 for (i = 0; i < count; i++)
H A Dusb_windows.c157 unsigned count = 0; local
179 count += written;
184 return count;
/system/core/include/cutils/
H A Dabort_socket.h83 int asocket_read(struct asocket *s, void *buf, size_t count, int timeout);
85 int asocket_write(struct asocket *s, const void *buf, size_t count,
H A Duio.h38 extern int readv( int fd, struct iovec* vecs, int count );
39 extern int writev( int fd, const struct iovec* vecs, int count );
/system/core/include/mincrypt/
H A Dsha.h38 uint64_t count; member in struct:SHA_CTX
/system/core/init/
H A Dbootchart.c81 int count; member in struct:__anon356
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 Dkeychords.c54 keychord->count = svc->nkeycodes;
H A Dlogo.c33 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;
H A Dproperty_service.c304 if(pa->count == PA_COUNT_MAX) return -1;
306 pi = pa_info_array + pa->count;
311 pa->toc[pa->count] =
314 pa->count++;
/system/core/libcutils/
H A Dabort_socket.c166 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 Ddir_hash.c270 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++) {
H A Duio.c22 int readv( int fd, struct iovec* vecs, int count )
26 for ( ; count > 0; count--, vecs++ ) {
49 int writev( int fd, const struct iovec* vecs, int count )
53 for ( ; count > 0; count--, vecs++ ) {
/system/core/liblinenoise/
H A Dlinenoise.c366 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...]

Completed in 807 milliseconds

12345