Home
last modified time | relevance | path

Searched refs:avail (Results 1 – 4 of 4) sorted by relevance

/system/media/alsa_utils/
Dalsa_device_proxy.c215 unsigned int avail; in proxy_get_presentation_position() local
217 && pcm_get_htimestamp(proxy->pcm, &avail, timestamp) == 0) { in proxy_get_presentation_position()
220 if (avail > kernel_buffer_size) { in proxy_get_presentation_position()
221 ALOGE("available frames(%u) > buffer size(%zu)", avail, kernel_buffer_size); in proxy_get_presentation_position()
223 int64_t signed_frames = proxy->transferred - kernel_buffer_size + avail; in proxy_get_presentation_position()
240 unsigned int avail; in proxy_get_capture_position() local
244 && pcm_get_htimestamp(proxy->pcm, &avail, &timestamp) == 0) { in proxy_get_capture_position()
247 if (avail > kernel_buffer_size) { in proxy_get_capture_position()
248 ALOGE("available frames(%u) > buffer size(%zu)", avail, kernel_buffer_size); in proxy_get_capture_position()
250 *frames = proxy->transferred + avail; in proxy_get_capture_position()
/system/extras/sound/
Dplaywav.c126 static unsigned avail; variable
130 if (sz > avail) in fill_buffer()
134 avail -= sz; in fill_buffer()
150 avail = count; in play_file()
/system/core/adb/
Dsockets.cpp157 size_t avail = max_payload; in local_socket_flush_outgoing() local
161 while (avail > 0) { in local_socket_flush_outgoing()
162 r = adb_read(s->fd, x, avail); in local_socket_flush_outgoing()
164 r < 0 ? errno : 0, avail); in local_socket_flush_outgoing()
170 avail -= r; in local_socket_flush_outgoing()
182 if (avail != max_payload && s->peer) { in local_socket_flush_outgoing()
183 data.resize(max_payload - avail); in local_socket_flush_outgoing()
/system/libhwbinder/
DParcel.cpp1111 const size_t avail = mDataSize-mDataPos; in readCString() local
1114 const char* eos = reinterpret_cast<const char*>(memchr(str, 0, avail)); in readCString()