/system/extras/tests/bionic/libc/bionic/ |
H A D | test_cond.c | 78 int count = (int)(sizeof t/sizeof t[0]); local 80 for (nn = 0; nn < count; nn++) { 88 for (nn = 0; nn < count; nn++) {
|
/system/media/mca/filterfw/java/android/filterfw/core/ |
H A D | NativeBuffer.java | 39 public NativeBuffer(int count) { argument 40 allocate(count * getElementSize()); 63 public int count() { method in class:NativeBuffer
|
H A D | MutableFrameFormat.java | 81 public void setDimensionCount(int count) { argument 82 mDimensions = new int[count];
|
/system/core/init/ |
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;
|
H A D | bootchart.c | 81 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...] |
/system/media/wilhelm/src/itf/ |
H A D | IBufferQueue.c | 68 ++thiz->mState.count; 73 (1 == thiz->mState.count) && (SL_PLAYSTATE_PLAYING == getAssociatedState(thiz))) ? 96 thiz->mState.count = 0; 131 state.count = thiz->mState.count; 177 thiz->mState.count = 0;
|
H A D | IMetadataTraversal.c | 55 SLuint32 count = thiz->mCount; local 57 *pCount = count;
|
/system/media/wilhelm/tests/sandbox/ |
H A D | intbufq.c | 171 unsigned count = 0; local 182 count = count * 10 + (ch - '0'); 184 count = ch - '0'; 203 expectedContext = (void *) count; 216 for (i = 0; i < (in_count ? count : 1); ++i) { 227 if (bufqstate.count != 0) 228 printf("\rcount=%u\r\n", (unsigned) bufqstate.count); 239 printf("count=%u\r\n", (unsigned) bufqstate.count); [all...] |
H A D | reverb.c | 322 SLuint32 count = 0; local 324 mix_req[count] = SL_BOOLEAN_TRUE; 325 mix_ids[count++] = SL_IID_PRESETREVERB; 328 mix_req[count] = SL_BOOLEAN_TRUE; 329 mix_ids[count++] = SL_IID_ENVIRONMENTALREVERB; 332 result = (*engineEngine)->CreateOutputMix(engineEngine, &mixObject, count, mix_ids, mix_req); 409 count = 0; 411 player_req[count] = SL_BOOLEAN_TRUE; 412 player_ids[count++] = SL_IID_PRESETREVERB; 415 player_req[count] [all...] |
H A D | playbq.c | 77 sf_count_t count; local 78 count = sf_readf_short(sndfile, buffer, (sf_count_t) framesPerBuffer); 79 if (0 >= count) { 82 SLuint32 nbytes = count * sfinfo.channels * sizeof(short); 164 fprintf(stderr, "unsupported channel count %d\n", sfinfo.channels); 320 sf_count_t count; local 321 count = sf_readf_short(sndfile, buffer, frames); 322 if (0 >= count) { 328 SLuint32 nbytes = count * sfinfo.channels * sizeof(short); 355 if (0 >= bufqstate.count) { [all...] |
/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/libnl_2/ |
H A D | attr.c | 209 int nla_memcpy(void *dest, struct nlattr *src, int count) argument 213 if (count > nla_len(src)) 214 count = nla_len(src); 215 memcpy(dest, nla_data(src), count); 216 return count;
|
/system/extras/ext4_utils/ |
H A D | ext4fixup.c | 36 /* The inode block count for a file/directory is in units of 512 byte blocks, 63 static int count = 0; variable 386 /* Update the free inodes count in each block group descriptor */ 396 critical_error("Failed sanity check on new inode count\n"); 402 /* Update the free inodes count in the superblock */ 451 unsigned int *count) 463 *count += i; 473 unsigned long long *block_list, unsigned int *count) 492 *count += i; 501 unsigned int count local 450 get_direct_blocks(struct ext4_inode *inode, unsigned long long *block_list, unsigned int *count) argument 472 get_indirect_blocks(int fd, struct ext4_inode *inode, unsigned long long *block_list, unsigned int *count) argument [all...] |
/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/nexus/ |
H A D | TiwlanWifiController.cpp | 69 int count = 100; local 75 while (count-- > 0) {
|
/system/extras/showmap/ |
H A D | showmap.c | 26 int count; member in struct:mapinfo 82 info->count = 1; 143 current->count++; 255 unsigned count = 0; local 275 count += mi->count; 290 printf("%4d ", mi->count); 311 printf("%4d ", count);
|
/system/media/mca/filterfw/java/android/filterfw/geometry/ |
H A D | Point.java | 88 public Point rotated90(int count) { argument 91 for (int i = 0; i < count; ++i) {
|
/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/media/wilhelm/tools/permute/ |
H A D | permute.c | 243 sf_count_t count; local 244 count = sf_readf_short(sf_in, ptr, sfinfo_in.frames); 245 if (count != sfinfo_in.frames) { 247 (int) sfinfo_in.frames, (int) count); 270 count = sf_writef_short(sf_out, &((short *) ptr)[sfinfo_in.channels * s.mSegmentArray[i] 272 if (count != s.mSegmentArray[i].mFrameLength) { 274 path_out, (int) s.mSegmentArray[i].mFrameLength, (int) count);
|
/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;
|