Searched defs:count (Results 1 - 25 of 119) sorted by relevance

12345

/system/core/include/cutils/
H A Daref.h32 volatile int32_t count; member in struct:aref
37 r->count = 1;
42 return r->count;
47 android_atomic_inc(&r->count);
52 if (android_atomic_dec(&r->count) == 1)
/system/core/libsysutils/src/
H A DNetlinkListener.cpp47 ssize_t count; local
55 count = TEMP_FAILURE_RETRY(uevent_kernel_recv(socket,
57 if (count < 0) {
65 if (evt->decode(mBuffer, count, mFormat)) {
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) {
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
H A Dqueue.c55 static unsigned long long count; variable
74 if (++count > Bflag) {
91 --count;
/system/extras/ext4_utils/
H A Dsha1.h32 uint32_t count[2]; member in struct:__anon1508
/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/audio_utils/
H A Dformat.c25 const void *src, audio_format_t src_format, size_t count)
36 memcpy(dst, src, count * audio_bytes_per_sample(dst_format));
46 memcpy_to_i16_from_float((int16_t*)dst, (float*)src, count);
49 memcpy_to_i16_from_u8((int16_t*)dst, (uint8_t*)src, count);
52 memcpy_to_i16_from_p24((int16_t*)dst, (uint8_t*)src, count);
55 memcpy_to_i16_from_i32((int16_t*)dst, (int32_t*)src, count);
58 memcpy_to_i16_from_q8_23((int16_t*)dst, (int32_t*)src, count);
67 memcpy_to_float_from_i16((float*)dst, (int16_t*)src, count);
70 memcpy_to_float_from_u8((float*)dst, (uint8_t*)src, count);
73 memcpy_to_float_from_p24((float*)dst, (uint8_t*)src, count);
24 memcpy_by_audio_format(void *dst, audio_format_t dst_format, const void *src, audio_format_t src_format, size_t count) argument
[all...]
H A Dfifo.c82 ssize_t audio_utils_fifo_write(struct audio_utils_fifo *fifo, const void *buffer, size_t count) argument
87 if (availToWrite > count) {
88 availToWrite = count;
109 ssize_t audio_utils_fifo_read(struct audio_utils_fifo *fifo, void *buffer, size_t count) argument
114 if (availToRead > count) {
115 availToRead = count;
/system/media/private/radio/include/
H A Dradio_metadata_hidden.h49 * | count | number of entries
81 unsigned int count; /* number of meta data entries */ member in struct:radio_metadata_buffer
/system/core/include/mincrypt/
H A Dhash-internal.h48 uint64_t count; member in struct:HASH_CTX
/system/core/libcutils/arch-arm64/
H A Dandroid_memset.S42 #define count x2 define
80 cmp count, #64
83 cmp count, #15
86 ands tmp1, count, #0x30
99 and count, count, #15
100 add dst, dst, count
107 tbz count, #3, 1f
110 tbz count, #2, 1f
113 tbz count, #
[all...]
/system/core/liblog/tests/
H A Dlibc_test.cpp51 int count = 0; local
87 ++count;
91 EXPECT_EQ(1, count);
112 int count = 0; local
131 ++count;
135 EXPECT_EQ(1, count);
/system/core/logcat/tests/
H A Dlogcat_benchmark.cpp82 int count = 0; local
107 ++count;
122 next_lt_last, count);
127 EXPECT_LT(100, count);
/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/bt/embdrv/sbc/decoder/srce/
H A Dframing.c177 OI_UINT count = (frame->nrof_subbands * frame->nrof_channels / 2u) + 4; local
180 count++;
183 for (i = 1; i < count; i++) {
/system/bt/stack/avrc/
H A Davrc_sdp.c227 UINT16 count = 1; local
242 count = 2;
249 count = 2;
253 result &= SDP_AddServiceClassIdList(sdp_handle, count, class_list);
/system/core/include/utils/
H A DFlattenable.h96 inline status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
105 inline status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
118 void*& buffer, size_t& size, int*& fds, size_t& count) const {
119 return static_cast<T const*>(this)->T::flatten(buffer, size, fds, count);
123 void const*& buffer, size_t& size, int const*& fds, size_t& count) {
124 return static_cast<T*>(this)->T::unflatten(buffer, size, fds, count);
122 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument
/system/core/libbacktrace/
H A DGetPss.cpp78 uint64_t count; local
79 if (ReadData(pagecount_fd, PAGEMAP_PFN(data), &count)) {
80 total_pss += (count >= 1) ? pagesize / count : 0;
/system/core/libsync/
H A Dsync.c97 int sw_sync_timeline_inc(int fd, unsigned count) argument
99 __u32 arg = count;
/system/extras/tests/suspend_stress/
H A Dsuspend_stress.cpp45 " -c,--count=<count> number of times to suspend (default infinite)\n"
53 int count = -1; local
59 {"count", required_argument, 0, 'c'},
72 count = strtoul(optarg, NULL, 0);
118 while (count != 0) {
155 fprintf(stderr, "unexpected timer fd fired count: %" PRIu64 "\n", fired);
191 if (count > 0)
192 count--;
/system/media/alsa_utils/
H A Dalsa_device_proxy.c193 int proxy_write(alsa_device_proxy * proxy, const void *data, unsigned int count) argument
195 int ret = pcm_write(proxy->pcm, data, count);
197 proxy->transferred += count / proxy->frame_size;
202 int proxy_read(const alsa_device_proxy * proxy, void *data, unsigned int count) argument
204 return pcm_read(proxy->pcm, data, count);
/system/bt/osi/src/
H A Dsocket.c141 ssize_t socket_read(const socket_t *socket, void *buf, size_t count) { argument
145 return recv(socket->fd, buf, count, MSG_DONTWAIT);
148 ssize_t socket_write(const socket_t *socket, const void *buf, size_t count) { argument
152 return send(socket->fd, buf, count, MSG_DONTWAIT);
155 ssize_t socket_write_and_transfer_fd(const socket_t *socket, const void *buf, size_t count, int fd) { argument
160 return socket_write(socket, buf, count);
167 iov.iov_len = count;
H A Dthread.c215 size_t count = 0; local
217 while (item && count <= fixed_queue_capacity(thread->work_queue)) {
221 ++count;
224 if (count > fixed_queue_capacity(thread->work_queue))
/system/bt/stack/a2dp/
H A Da2d_api.c359 UINT8 count; local
365 count = (num & (num - 1));
366 res = ((count==0)?A2D_SET_ONE_BIT:A2D_SET_MULTL_BIT);
/system/bt/stack/rfcomm/
H A Dport_utils.c494 void port_flow_control_peer(tPORT *p_port, BOOLEAN enable, UINT16 count) argument
506 if (count > p_port->credit_rx)
512 p_port->credit_rx -= count;
515 /* If credit count is less than low credit watermark, and user */
538 /* if queue count reached credit rx max, set peer fc */

Completed in 8060 milliseconds

12345