/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...] |
/system/core/libsparse/ |
H A D | sparse.c | 194 int64_t *count = priv; local 195 *count += len; 203 int64_t count = 0; local 206 out = output_file_open_callback(out_counter_write, &count, 220 return count; 226 int64_t count = 0; local 242 out_counter = output_file_open_callback(out_counter_write, &count, 249 count = 0; 250 /* will call out_counter_write to update count */ 252 if (file_len + count > le [all...] |
/system/media/camera/src/ |
H A D | camera_metadata.c | 34 size_t count; member in struct:camera_metadata_buffer_entry 265 if ( camera_metadata_type_size[entry->type] * entry->count > 4 ) { 325 entry->count = data_count; 389 entry->count = buffer_entry->count; 390 if (buffer_entry->count * 446 entry->count); 460 e->type, e->count) > 0 && 492 entry->count); 512 e->type, e->count) > 682 int count = entry->count; local 689 print_data(int fd, const uint8_t *data_ptr, int type, int count, int indentation) argument [all...] |
/system/core/include/sync/ |
H A D | sync.h | 57 int sw_sync_timeline_inc(int fd, unsigned count);
|
/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/media/camera/tests/ |
H A D | camera_metadata_tests.cpp | 240 EXPECT_EQ((size_t)1, entry.count); 249 EXPECT_EQ((size_t)1, entry.count); 258 EXPECT_EQ((size_t)1, entry.count); 267 EXPECT_EQ((size_t)9, entry.count); 268 for (unsigned int i=0; i < entry.count; i++) { 335 EXPECT_EQ((size_t)1, entry.count); 341 entry.count = 7890; 348 EXPECT_EQ((size_t)7890, entry.count); 396 EXPECT_EQ(e1.count, e2.count); [all...] |
/system/core/libnl_2/ |
H A D | attr.c | 231 int nla_memcpy(void *dest, struct nlattr *src, int count) argument 235 if (count > nla_len(src)) 236 count = nla_len(src); 237 memcpy(dest, nla_data(src), count); 238 return count;
|
/system/core/adb/ |
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...] |
/system/media/audio_utils/include/audio_utils/ |
H A D | primitives.h | 41 * count Number of samples to copy 45 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count); 51 * count Number of stereo frames to downmix 55 void downmix_to_mono_i16_from_stereo_i16(int16_t *dst, const int16_t *src, size_t count); 62 * count Number of mono samples to upmix 65 void upmix_to_stereo_i16_from_mono_i16(int16_t *dst, const int16_t *src, size_t count);
|
/system/extras/ext4_utils/ |
H A D | ext4fixup.c | 39 /* The inode block count for a file/directory is in units of 512 byte blocks, 66 static int count = 0; variable 389 /* Update the free inodes count in each block group descriptor */ 399 critical_error("Failed sanity check on new inode count\n"); 405 /* Update the free inodes count in the superblock */ 454 unsigned int *count) 466 *count += i; 476 unsigned long long *block_list, unsigned int *count) 495 *count += i; 504 unsigned int count local 453 get_direct_blocks(struct ext4_inode *inode, unsigned long long *block_list, unsigned int *count) argument 475 get_indirect_blocks(int fd, struct ext4_inode *inode, unsigned long long *block_list, unsigned int *count) argument [all...] |
H A D | indirect.c | 351 u32 count = block_len; local 353 if (inode_attach_direct_blocks(inode, alloc, &count)) { 358 if (count > 0) { 359 if (inode_attach_indirect_blocks(inode, alloc, &count)) { 365 if (count > 0) { 366 if (inode_attach_dindirect_blocks(inode, alloc, &count)) { 372 if (count > 0) { 373 if (inode_attach_tindirect_blocks(inode, alloc, &count)) { 379 if (count) {
|
/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/libsync/ |
H A D | sync.c | 96 int sw_sync_timeline_inc(int fd, unsigned count) argument 98 __u32 arg = count;
|
/system/extras/showmap/ |
H A D | showmap.c | 26 int count; member in struct:mapinfo 80 info->count = 1; 141 current->count++; 253 unsigned count = 0; local 273 count += mi->count; 288 printf("%4d ", mi->count); 309 printf("%4d ", count);
|
/system/extras/fatblock/ |
H A D | import.c | 211 int count; local 241 count = 0; 281 count++; 294 d->size = sizeof(struct fat_dirent) * (count + (is_root ? 0 : 2)); 307 d->entries = malloc(sizeof(struct fat_dirent) * (count + (is_root ? 0 : 2))); 309 for (i = count - 1; i >= 0; i--) {
|
/system/extras/tests/bionic/libc/common/ |
H A D | test_cpu_set.c | 201 size_t count; local 202 for (count = 32; count <= 1024; count *= 2) { 203 cpu_set_t* set = CPU_ALLOC(count); 204 test_1_s(count/8, set);
|
/system/extras/tests/directiotest/ |
H A D | directiotest.c | 70 static ssize_t do_read(int fd, void *buf, off64_t start, size_t count) argument 78 ret = read(fd, (char *)buf + bytes_read, count - bytes_read); 87 } while (bytes_read < count); 92 static ssize_t do_write(int fd, const void *buf, off64_t start, size_t count) argument 100 ret = write(fd, (char *)buf + bytes_out, count - bytes_out); 109 } while (bytes_out < count);
|
/system/core/libcutils/ |
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/extras/sound/ |
H A D | playwav.c | 136 int fd, unsigned count) 138 next = malloc(count); 140 fprintf(stderr,"could not allocate %d bytes\n", count); 143 if (read(fd, next, count) != count) { 144 fprintf(stderr,"could not read %d bytes\n", count); 147 avail = count; 135 play_file(unsigned rate, unsigned channels, int fd, unsigned count) argument
|
/system/extras/tests/memtest/ |
H A D | memtest.cpp | 52 nsecs_t loop_overhead(size_t count) __attribute__((noinline)); 53 nsecs_t loop_overhead(size_t count) argument 58 } while (--count); 194 register int count = REPEAT; local 197 } while (--count); 309 size_t count = REPEAT; local 312 } while (--count); 451 register int count = REPEAT; local 458 } while (--count); 561 size_t count local 702 register size_t count = REPEAT; local [all...] |
/system/core/libmincrypt/ |
H A D | sha.c | 148 int i = ctx->count % sizeof(ctx->buf); 151 ctx->count += len; 172 uint64_t cnt = ctx->count * 8; 176 while ((ctx->count % sizeof(ctx->buf)) != (sizeof(ctx->buf) - 8)) { 246 int i = ctx->count % sizeof(ctx->buf); 249 ctx->count += len; 261 uint64_t cnt = ctx->count * 8; 265 while ((ctx->count % sizeof(ctx->buf)) != (sizeof(ctx->buf) - 8)) { 292 ctx->count = 0;
|
/system/core/toolbox/ |
H A D | vmstat.c | 75 int toggle, count; local 117 count = 0; 126 if (count == 0) 128 count = (count + 1) % header_interval;
|
H A D | getevent.c | 48 int count; local 57 count = 0; 66 count++; 70 if (!count) 87 int count = 0; local 162 if(count == 0) 164 else if((count & (print_flags & PRINT_LABELS ? 0x3 : 0x7)) == 0 || i == EV_ABS) 183 count++; 186 if(count) 392 int count local [all...] |
/system/core/fastboot/ |
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;
|
/system/core/libpixelflinger/codeflinger/ |
H A D | GGLAssembler.cpp | 208 MOV(AL, 0, parts.count.reg, 209 reg_imm(parts.count.reg, ROR, GGL_DITHER_ORDER_SHIFT)); 210 ADD(AL, 0, parts.count.reg, parts.count.reg, 212 MOV(AL, 0, parts.count.reg, 213 reg_imm(parts.count.reg, ROR, 32 - GGL_DITHER_ORDER_SHIFT)); 265 AND(AL, 0, parts.dither.reg, parts.count.reg, imm(mask)); 324 SUB(AL, S, parts.count.reg, parts.count.reg, imm(1<<16)); 341 SUB(AL, S, parts.count [all...] |