Searched refs:count (Results 26 - 50 of 115) sorted by relevance

12345

/system/extras/tests/bionic/libc/bionic/
H A Dtest_cond.c78 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 DNativeBuffer.java39 public NativeBuffer(int count) { argument
40 allocate(count * getElementSize());
63 public int count() { method in class:NativeBuffer
H A DMutableFrameFormat.java81 public void setDimensionCount(int count) { argument
82 mDimensions = new int[count];
/system/core/init/
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 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...]
/system/media/wilhelm/src/itf/
H A DIBufferQueue.c68 ++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 DIMetadataTraversal.c55 SLuint32 count = thiz->mCount; local
57 *pCount = count;
/system/media/wilhelm/tests/sandbox/
H A Dintbufq.c171 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 Dreverb.c322 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 Dplaybq.c77 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 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...]
/system/core/libnl_2/
H A Dattr.c209 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 Dext4fixup.c36 /* 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 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/nexus/
H A DTiwlanWifiController.cpp69 int count = 100; local
75 while (count-- > 0) {
/system/extras/showmap/
H A Dshowmap.c26 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 DPoint.java88 public Point rotated90(int count) { argument
91 for (int i = 0; i < count; ++i) {
/system/extras/fatblock/
H A Dimport.c211 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 Dtest_cpu_set.c201 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 Ddirectiotest.c70 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 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++) {
/system/extras/sound/
H A Dplaywav.c136 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 Dpermute.c243 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 Dmemtest.cpp52 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 Dsha.c148 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;

Completed in 278 milliseconds

12345