Searched refs:count (Results 1 - 25 of 112) sorted by relevance

12345

/system/media/audio_utils/
H A Dprimitives.c33 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count) argument
35 dst += count;
36 src += count;
37 while (count--) {
42 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count) argument
44 while (count--) {
49 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_t count) argument
51 while (count--) {
56 void memcpy_to_i16_from_float(int16_t *dst, const float *src, size_t count) argument
58 while (count
73 downmix_to_mono_i16_from_stereo_i16(int16_t *dst, const int16_t *src, size_t count) argument
81 upmix_to_stereo_i16_from_mono_i16(int16_t *dst, const int16_t *src, size_t count) argument
[all...]
/system/extras/tests/bionic/libc/other/
H A Dtest_thread_max.c42 int count; local
49 for ( count = 0; count != ~0; count++ ) {
53 if (pthread_create( &thread, &attr, thread_func, (void*)(long)count ) < 0) {
54 fprintf(stderr, "could not create thread %d\n", count);
H A Dbench_locks.c19 long count; local
24 for (count = ITERATIONS; count > 0; count--) {
H A Dtest_timer_create3.c36 static int count; variable
53 count += 1;
55 /* this should disable the timer, and hence make 'count' no more than 1 */
100 if (count == 1) {
104 printf("KO (count=%d)\n", count);
/system/extras/tests/bionic/libc/bionic/
H A Dtest_getgrouplist.c37 int count = MAX_GROUPS; local
45 ret = getgrouplist( TEST_USER, TEST_GROUP, groups, &count );
48 ret, count);
/system/core/include/cutils/
H A Daref.h36 volatile int32_t count; member in struct:aref
41 r->count = 1;
46 return r->count;
51 android_atomic_inc(&r->count);
56 if (android_atomic_dec(&r->count) == 1)
/system/core/toolbox/
H A Ddynarray.c8 a->count = a->capacity = 0;
14 dynarray_reserve_more( dynarray_t *a, int count )
20 int new_count = a->count + count;
22 if (count <= 0)
25 if (count > max_cap - a->count)
28 new_count = a->count + count;
48 if (a->count >
[all...]
H A Dhd.c24 int count = 0; local
36 count = strtol(optarg, NULL, 0);
49 fprintf(stderr, "Usage: %s [-b base] [-c count] [-r delay] file\n", argv[0]);
68 if(count > 0 && base + count - filepos < read_len)
69 read_len = base + count - filepos;
90 if(filepos == base + count)
H A Dumount.c31 int count; local
45 count = fscanf(f, "%255s %255s %255s\n", device, mount_path, rest);
46 if (count == 3) {
53 } while (count == 3);
H A Ddynarray.h8 int count; member in struct:__anon246
35 for (;_nn_##__LINE__ < (_array)->count; ++ _nn_##__LINE__) { \
/system/core/liblog/
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/include/sync/
H A Dsw_sync.h32 int sw_sync_timeline_inc(int fd, unsigned count);
/system/core/include/log/
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/libsysutils/src/
H A DServiceManager.cpp54 int count = SLEEP_MAX_USEC; local
55 while(count > 0) {
57 count -= SLEEP_MIN_USEC;
61 if (count <= 0) {
83 int count = SLEEP_MAX_USEC; local
84 while(count > 0) {
86 count -= SLEEP_MIN_USEC;
91 if (count <= 0) {
H A DNetlinkListener.cpp47 ssize_t count; local
50 count = TEMP_FAILURE_RETRY(uevent_kernel_multicast_uid_recv(
52 if (count < 0) {
60 if (!evt->decode(mBuffer, count, mFormat)) {
/system/core/sh/bltin/
H A Decho.c64 int count; local
98 count = 3;
99 while (--count >= 0 && (unsigned)(*p - '0') < 8)
/system/core/libutils/tests/
H A DBitSet_test.cpp42 EXPECT_EQ(tmp.count(), 2u);
48 EXPECT_EQ(b1.count(), 2u);
50 EXPECT_TRUE(b2.hasBit(4) && b2.count() == 1u);
64 EXPECT_EQ(b1.count(), 3u);
77 EXPECT_EQ(tmp.count(), 1u);
83 EXPECT_EQ(b1.count(), 1u);
84 EXPECT_EQ(b2.count(), 3u);
/system/extras/libpagemap/
H A Dpm_map.c34 uint64_t count; local
64 &count);
67 usage.rss += (count >= 1) ? map->proc->ker->pagesize : (0);
68 usage.pss += (count >= 1) ? (map->proc->ker->pagesize / count) : (0);
69 usage.uss += (count == 1) ? (map->proc->ker->pagesize) : (0);
92 uint64_t count, flags; local
113 &count);
118 ws.rss += (count >= 1) ? (map->proc->ker->pagesize) : (0);
119 ws.pss += (count >
[all...]
/system/extras/tests/bionic/libc/common/
H A Dbench_pthread.c94 filter_stats(int count, const char* statement) argument
99 qsort(stats, count, sizeof(stats[0]), compare_stats);
102 int min_index = count*0.05;
103 int max_index = count - min_index;
104 if (max_index >= count)
105 max_index = count-1;
107 count = (max_index - min_index)+1;
137 int64_t count = total; \
140 while (num_stats < MAX_STATS && count >= SUBCOUNT) { \
143 count
[all...]
/system/extras/latencytop/
H A Dlatencytop.c35 unsigned long count; member in struct:latency_entry
72 int count, erase; local
137 count = 0;
140 while ((iterations == 0) || (count++ < iterations)) {
328 unsigned long count, max, total; local
345 sscanf(line, "%ld %ld %ld %s", &count, &total, &max, reason);
349 e->count += count;
355 e->count = count;
371 int i, count; local
[all...]
/system/media/audio_utils/include/audio_utils/
H A Dprimitives.h44 * count Number of samples to copy
48 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count);
54 * count Number of samples to copy
59 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count);
65 * count Number of samples to copy
70 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_t count);
77 * count Number of samples to copy
82 void memcpy_to_i16_from_float(int16_t *dst, const float *src, size_t count);
88 * count Number of stereo frames to downmix
92 void downmix_to_mono_i16_from_stereo_i16(int16_t *dst, const int16_t *src, size_t count);
[all...]
/system/extras/tests/icachetest/
H A Dicache_main.c4 extern void icache_test(long count, long step);
5 extern void icache_test2(long count);
/system/core/libutils/
H A DBasicHashtable.cpp245 void* BasicHashtableImpl::allocateBuckets(size_t count) const {
246 size_t bytes = count * mBucketSize;
249 uint32_t(bytes), uint32_t(count));
251 for (size_t i = 0; i < count; i++) {
258 void BasicHashtableImpl::releaseBuckets(void* __restrict__ buckets, size_t count) const {
261 destroyBuckets(buckets, count);
266 void BasicHashtableImpl::destroyBuckets(void* __restrict__ buckets, size_t count) const {
268 for (size_t i = 0; i < count; i++) {
278 void* __restrict__ toBuckets, size_t count) const {
279 for (size_t i = 0; i < count;
329 size_t count = ceilf(minimumCapacity / loadFactor) + 1; local
[all...]
/system/extras/ext4_utils/
H A Dsha1.h32 uint32_t count[2]; member in struct:__anon266
/system/core/toolbox/grep/
H A Dqueue.c55 static unsigned long long count; variable
74 if (++count > Bflag) {
91 --count;

Completed in 223 milliseconds

12345