Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 100) sorted by relevance

1234

/system/core/toolbox/
Dwatchprops.c44 unsigned count = pa->count; in watchprops_main() local
47 if(count >= 1024) exit(1); in watchprops_main()
49 for(n = 0; n < count; n++) { in watchprops_main()
59 while(count < pa->count){ in watchprops_main()
60 watchlist[count].pi = __system_property_find_nth(count); in watchprops_main()
61 watchlist[count].serial = watchlist[n].pi->serial; in watchprops_main()
62 announce(watchlist[count].pi); in watchprops_main()
63 count++; in watchprops_main()
64 if(count == 1024) exit(1); in watchprops_main()
67 for(n = 0; n < count; n++){ in watchprops_main()
Ddynarray.c8 a->count = a->capacity = 0; in dynarray_init()
14 dynarray_reserve_more( dynarray_t *a, int count ) in dynarray_reserve_more() argument
20 int new_count = a->count + count; in dynarray_reserve_more()
22 if (count <= 0) in dynarray_reserve_more()
25 if (count > max_cap - a->count) in dynarray_reserve_more()
28 new_count = a->count + count; in dynarray_reserve_more()
48 if (a->count >= a->capacity) in dynarray_append()
51 a->items[a->count++] = item; in dynarray_append()
59 a->count = a->capacity = 0; in dynarray_done()
97 if (list->count > 0) { in strlist_sort()
[all …]
Dhd.c24 int count = 0; in hd_main() local
36 count = strtol(optarg, NULL, 0); in hd_main()
68 if(count > 0 && base + count - filepos < read_len) in hd_main()
69 read_len = base + count - filepos; in hd_main()
90 if(filepos == base + count) in hd_main()
Dumount.c31 int count; in is_loop_mount() local
45 count = fscanf(f, "%255s %255s %255s\n", device, mount_path, rest); in is_loop_mount()
46 if (count == 3) { in is_loop_mount()
53 } while (count == 3); in is_loop_mount()
/system/media/audio_utils/
Dprimitives.c33 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count) in memcpy_to_i16_from_u8() argument
35 dst += count; in memcpy_to_i16_from_u8()
36 src += count; in memcpy_to_i16_from_u8()
37 while (count--) { in memcpy_to_i16_from_u8()
42 void downmix_to_mono_i16_from_stereo_i16(int16_t *dst, const int16_t *src, size_t count) in downmix_to_mono_i16_from_stereo_i16() argument
44 while (count--) { in downmix_to_mono_i16_from_stereo_i16()
50 void upmix_to_stereo_i16_from_mono_i16(int16_t *dst, const int16_t *src, size_t count) in upmix_to_stereo_i16_from_mono_i16() argument
52 while (count--) { in upmix_to_stereo_i16_from_mono_i16()
/system/core/libsysutils/src/
DServiceManager.cpp54 int count = SLEEP_MAX_USEC; in start() local
55 while(count > 0) { in start()
57 count -= SLEEP_MIN_USEC; in start()
61 if (count <= 0) { in start()
83 int count = SLEEP_MAX_USEC; in stop() local
84 while(count > 0) { in stop()
86 count -= SLEEP_MIN_USEC; in stop()
91 if (count <= 0) { in stop()
DNetlinkListener.cpp47 ssize_t count; in onDataAvailable() local
50 count = TEMP_FAILURE_RETRY(uevent_kernel_multicast_uid_recv( in onDataAvailable()
52 if (count < 0) { in onDataAvailable()
60 if (!evt->decode(mBuffer, count, mFormat)) { in onDataAvailable()
/system/extras/tests/bionic/libc/other/
Dtest_thread_max.c42 int count; in main() local
49 for ( count = 0; count != ~0; count++ ) { in main()
53 if (pthread_create( &thread, &attr, thread_func, (void*)(long)count ) < 0) { in main()
54 fprintf(stderr, "could not create thread %d\n", count); in main()
Dbench_locks.c19 long count; in main() local
24 for (count = ITERATIONS; count > 0; count--) { in main()
Dtest_timer_create3.c36 static int count; variable
53 count += 1; in handle()
100 if (count == 1) { in main()
104 printf("KO (count=%d)\n", count); in main()
/system/extras/libpagemap/
Dpm_map.c33 uint64_t count; in pm_map_usage() local
51 &count); in pm_map_usage()
55 usage.rss += (count >= 1) ? (map->proc->ker->pagesize) : (0); in pm_map_usage()
56 usage.pss += (count >= 1) ? (map->proc->ker->pagesize / count) : (0); in pm_map_usage()
57 usage.uss += (count == 1) ? (map->proc->ker->pagesize) : (0); in pm_map_usage()
73 uint64_t count, flags; in pm_map_workingset() local
94 &count); in pm_map_workingset()
99 ws.rss += (count >= 1) ? (map->proc->ker->pagesize) : (0); in pm_map_workingset()
100 ws.pss += (count >= 1) ? (map->proc->ker->pagesize / count) : (0); in pm_map_workingset()
101 ws.uss += (count == 1) ? (map->proc->ker->pagesize) : (0); in pm_map_workingset()
/system/core/libcutils/
Duio.c22 int readv( int fd, struct iovec* vecs, int count ) in readv() argument
26 for ( ; count > 0; count--, vecs++ ) { in readv()
49 int writev( int fd, const struct iovec* vecs, int count ) in writev() argument
53 for ( ; count > 0; count--, vecs++ ) { in writev()
/system/extras/tests/bionic/libc/common/
Dbench_pthread.c94 filter_stats(int count, const char* statement) in filter_stats() argument
99 qsort(stats, count, sizeof(stats[0]), compare_stats); in filter_stats()
102 int min_index = count*0.05; in filter_stats()
103 int max_index = count - min_index; in filter_stats()
104 if (max_index >= count) in filter_stats()
105 max_index = count-1; in filter_stats()
107 count = (max_index - min_index)+1; in filter_stats()
137 int64_t count = total; \
140 while (num_stats < MAX_STATS && count >= SUBCOUNT) { \
143 count -= tries; \
/system/extras/latencytop/
Dlatencytop.c35 unsigned long count; member
72 int count, erase; in main() local
137 count = 0; in main()
140 while ((iterations == 0) || (count++ < iterations)) { in main()
328 unsigned long count, max, total; in read_latency_file() local
345 sscanf(line, "%ld %ld %ld %s", &count, &total, &max, reason); in read_latency_file()
349 e->count += count; in read_latency_file()
355 e->count = count; in read_latency_file()
371 int i, count; in print_latency_entries() local
374 count = 0; in print_latency_entries()
[all …]
/system/core/init/
Dbootchart.c81 int count; member
89 buff->count = 0; in file_buff_open()
97 int avail = sizeof(buff->data) - buff->count; in file_buff_write()
101 memcpy( buff->data + buff->count, src, avail ); in file_buff_write()
105 buff->count += avail; in file_buff_write()
106 if (buff->count == FILE_BUFF_SIZE) { in file_buff_write()
107 unix_write( buff->fd, buff->data, buff->count ); in file_buff_write()
108 buff->count = 0; in file_buff_write()
116 if (buff->count > 0) { in file_buff_done()
117 unix_write( buff->fd, buff->data, buff->count ); in file_buff_done()
[all …]
Dlogo.c33 void android_memset16(void *_ptr, unsigned short val, unsigned count) in android_memset16() argument
36 count >>= 1; in android_memset16()
37 while(count--) in android_memset16()
110 unsigned count, max; in load_565rle_image() local
135 count = s.st_size; in load_565rle_image()
137 while (count > 3) { in load_565rle_image()
145 count -= 4; in load_565rle_image()
/system/extras/tests/bionic/libc/bionic/
Dtest_getgrouplist.c37 int count = MAX_GROUPS; in main() local
45 ret = getgrouplist( TEST_USER, TEST_GROUP, groups, &count ); in main()
48 ret, count); in main()
Dtest_cond.c78 int count = (int)(sizeof t/sizeof t[0]); in main() local
80 for (nn = 0; nn < count; nn++) { in main()
88 for (nn = 0; nn < count; nn++) { in main()
/system/core/sh/bltin/
Decho.c64 int count; in echocmd() local
98 count = 3; in echocmd()
99 while (--count >= 0 && (unsigned)(*p - '0') < 8) in echocmd()
/system/core/libsparse/
Dsparse.c194 int64_t *count = priv; in out_counter_write() local
195 *count += len; in out_counter_write()
203 int64_t count = 0; in sparse_file_len() local
206 out = output_file_open_callback(out_counter_write, &count, in sparse_file_len()
220 return count; in sparse_file_len()
226 int64_t count = 0; in move_chunks_up_to_len() local
242 out_counter = output_file_open_callback(out_counter_write, &count, in move_chunks_up_to_len()
249 count = 0; in move_chunks_up_to_len()
252 if (file_len + count > len) { in move_chunks_up_to_len()
264 file_len += count; in move_chunks_up_to_len()
/system/core/liblinenoise/
Dlinenoise.c366 int count; in linenoiseRaw() local
374 count = strlen(buf); in linenoiseRaw()
375 if (count && buf[count-1] == '\n') { in linenoiseRaw()
376 count--; in linenoiseRaw()
377 buf[count] = '\0'; in linenoiseRaw()
381 count = linenoisePrompt(fd, buf, buflen, prompt); in linenoiseRaw()
384 return count; in linenoiseRaw()
389 int count; in linenoise() local
404 count = linenoiseRaw(buf,LINENOISE_MAX_LINE,prompt); in linenoise()
405 if (count == -1) return NULL; in linenoise()
/system/media/camera/src/
Dcamera_metadata.c47 size_t count; member
289 entry->count) > 0 ) { in append_camera_metadata()
352 entry->count = data_count; in add_camera_metadata_entry_raw()
417 entry->count = buffer_entry->count; in get_camera_metadata_entry()
418 if (buffer_entry->count * in get_camera_metadata_entry()
475 entry->count); in delete_camera_metadata_entry()
489 e->type, e->count) > 0 && in delete_camera_metadata_entry()
524 entry->count); in update_camera_metadata_entry()
544 e->type, e->count) > 0 && in update_camera_metadata_entry()
570 entry->count = data_count; in update_camera_metadata_entry()
[all …]
/system/core/adb/
Dusb_linux_client.c346 size_t count = 0; in bulk_write() local
350 ret = adb_write(bulk_in, buf + count, length - count); in bulk_write()
355 count += ret; in bulk_write()
357 } while (count < length); in bulk_write()
360 return count; in bulk_write()
380 size_t count = 0; in bulk_read() local
384 ret = adb_read(bulk_out, buf + count, length - count); in bulk_read()
388 bulk_out, length, count); in bulk_read()
392 count += ret; in bulk_read()
394 } while (count < length); in bulk_read()
[all …]
/system/media/camera/tests/
Dcamera_metadata_tests.cpp245 EXPECT_EQ((size_t)1, entry.count); in TEST()
254 EXPECT_EQ((size_t)1, entry.count); in TEST()
263 EXPECT_EQ((size_t)1, entry.count); in TEST()
272 EXPECT_EQ((size_t)9, entry.count); in TEST()
273 for (unsigned int i=0; i < entry.count; i++) { in TEST()
340 EXPECT_EQ((size_t)1, entry.count); in TEST()
346 entry.count = 7890; in TEST()
353 EXPECT_EQ((size_t)7890, entry.count); in TEST()
421 EXPECT_EQ(e1.count, e2.count); in TEST()
423 j < e1.count * camera_metadata_type_size[e1.type]; in TEST()
[all …]
/system/core/include/cutils/
Duio.h38 extern int readv( int fd, struct iovec* vecs, int count );
39 extern int writev( int fd, const struct iovec* vecs, int count );

1234