Home
last modified time | relevance | path

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

/hardware/interfaces/media/bufferpool/aidl/default/
DBufferStatus.cpp74 size_t avail = it->second->availableToRead(); in getBufferStatusChanges() local
75 while (avail > 0) { in getBufferStatusChanges()
85 --avail; in getBufferStatusChanges()
107 size_t avail = mBufferStatusQueue->availableToWrite(); in needsSync() local
108 return avail + kMinElementsToSyncInQueue < kNumElementsInQueue; in needsSync()
117 size_t avail = mBufferStatusQueue->availableToWrite(); in postBufferRelease() local
118 avail = std::min(avail, pending.size()); in postBufferRelease()
120 for (size_t i = 0 ; i < avail; ++i) { in postBufferRelease()
143 size_t avail = mBufferStatusQueue->availableToWrite(); in postBufferInvalidateAck() local
144 if (avail > 0) { in postBufferInvalidateAck()
[all …]
/hardware/qcom/display/msm8226/liboverlay/
Doverlay.h263 int avail = 0; in availablePipes() local
273 avail++; in availablePipes()
276 return avail; in availablePipes()
280 int avail = 0; in availablePipes() local
288 avail++; in availablePipes()
291 return avail; in availablePipes()
295 int avail = 0; in availablePipes() local
301 avail++; in availablePipes()
304 return avail; in availablePipes()
/hardware/qcom/display/msm8084/liboverlay/
Doverlay.h255 int avail = 0; in availablePipes() local
265 avail++; in availablePipes()
268 return avail; in availablePipes()
272 int avail = 0; in availablePipes() local
280 avail++; in availablePipes()
283 return avail; in availablePipes()
287 int avail = 0; in availablePipes() local
293 avail++; in availablePipes()
296 return avail; in availablePipes()
/hardware/qcom/display/msm8994/liboverlay/
Doverlay.h282 int avail = 0; in availablePipes() local
292 avail++; in availablePipes()
295 return avail; in availablePipes()
299 int avail = 0; in availablePipes() local
307 avail++; in availablePipes()
310 return avail; in availablePipes()
314 int avail = 0; in availablePipes() local
320 avail++; in availablePipes()
323 return avail; in availablePipes()
/hardware/google/aemu/base/include/aemu/base/testing/
DTestInputBufferSocketServerThread.h84 size_t avail = capacity - size; in main() local
85 ssize_t len = android::base::socketRecv(fd, &mString[size], avail); in main()
/hardware/google/aemu/host-common/
Daddress_space_graphics_unittests.cpp230 uint32_t avail = get_available_for_write(); in advanceWrite() local
232 while (avail < mContext.ring_config->flush_interval) { in advanceWrite()
234 avail = get_available_for_write(); in advanceWrite()
469 void type1Read(uint32_t avail) { in type1Read() argument
470 uint32_t xferTotal = avail / 8; in type1Read()
501 void type2Read(uint32_t avail) { in type2Read() argument
502 uint32_t xferTotal = avail / 16; in type2Read()
523 int type3Read(uint32_t avail) { in type3Read() argument
524 (void)avail; in type3Read()
525 ensureReadBuffer(avail); in type3Read()
[all …]
DAndroidPipe.cpp153 size_t avail = kBufferSize - mPos; in onGuestSend() local
155 for (; !foundZero && avail > 0 && numBuffers > 0; in onGuestSend()
158 size_t count = std::min(avail, buffers[0].size); in onGuestSend()
170 avail -= n; in onGuestSend()
176 if (avail == 0) { in onGuestSend()
/hardware/qcom/audio/legacy/alsa_sound/
DAudioUsbALSA.cpp387 unsigned avail, bufsize; in RecordingThreadEntry() local
481 avail = pcm_avail(musbRecordingHandle); in RecordingThreadEntry()
482 if (avail < musbRecordingHandle->sw_p->avail_min) { in RecordingThreadEntry()
492 if (x.frames > avail) in RecordingThreadEntry()
493 frames = avail; in RecordingThreadEntry()
517 avail = pcm_avail(mproxyRecordingHandle); in RecordingThreadEntry()
518 if (avail < mproxyRecordingHandle->sw_p->avail_min) { in RecordingThreadEntry()
776 unsigned avail, xfer, bufsize; in PlaybackThreadEntry() local
896 avail = pcm_avail(mproxyPlaybackHandle); in PlaybackThreadEntry()
898 if (avail < mproxyPlaybackHandle->sw_p->avail_min && !mkillPlayBackThread) { in PlaybackThreadEntry()
[all …]
/hardware/qcom/display/msm8960/liboverlay/
Doverlay.h161 int avail = 0; in availablePipes() local
165 avail++; in availablePipes()
168 return avail; in availablePipes()
/hardware/qcom/audio/legacy/libalsa-intf/
Darec.c181 int r, avail; in record_file() local
298 avail = pcm_avail(pcm); in record_file()
300 fprintf(stderr, "Arec:avail 1 = %d frames = %ld\n",avail, frames); in record_file()
301 if (avail < 0) in record_file()
302 return avail; in record_file()
303 if (avail < pcm->sw_p->avail_min) { in record_file()
307 if (x.frames > avail) in record_file()
308 frames = avail; in record_file()
Dalsa_pcm.c403 long avail = sync_ptr->s.status.hw_ptr - sync_ptr->c.control.appl_ptr; in pcm_avail() local
404 if (avail < 0) in pcm_avail()
405 avail += pcm->sw_p->boundary; in pcm_avail()
406 return avail; in pcm_avail()
408 …long avail = sync_ptr->s.status.hw_ptr - sync_ptr->c.control.appl_ptr + ((pcm->flags & PCM_MONO) ?… in pcm_avail() local
409 if (avail < 0) in pcm_avail()
410 avail += pcm->sw_p->boundary; in pcm_avail()
411 else if ((unsigned long) avail >= pcm->sw_p->boundary) in pcm_avail()
412 avail -= pcm->sw_p->boundary; in pcm_avail()
413 return avail; in pcm_avail()
Daplay.c172 long avail; in play_file() local
306 avail = pcm_avail(pcm); in play_file()
307 if (avail < 0) { in play_file()
310 return avail; in play_file()
312 if (avail < pcm->sw_p->avail_min) { in play_file()
325 fprintf(stderr, "Aplay:avail = %d frames = %d\n",avail, frames); in play_file()
/hardware/qcom/audio/hal/audio_extn/
Dsndmonitor.c107 off_t avail = buf.st_size - pos; in read_state() local
108 if (avail <= 0) { in read_state()
109 ALOGD("avail %ld", avail); in read_state()
113 char * state = (char *)calloc(avail+1, sizeof(char)); in read_state()
117 ssize_t bytes=read(fd, state, avail); in read_state()
/hardware/qcom/audio/hal/
Daudio_hw.c3270 int avail = sizeof(value) - cursor; in stream_get_parameter_rates() local
3271 ret = snprintf(value + cursor, avail, "%s%d", in stream_get_parameter_rates()
3274 if (ret < 0 || ret >= avail) { in stream_get_parameter_rates()
3569 unsigned int avail; in out_write() local
3571 ret = compress_get_hpointer(out->compr, &avail, &tstamp); in out_write()
3574 avail = bytes; in out_write()
3576 if (avail == 0) { in out_write()
3581 if (!was_in_standby && avail == out->kernel_buffer_size) { in out_write()
3586 if (avail > bytes) { in out_write()
3587 avail = bytes; in out_write()
[all …]
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/proto/
Dp2p.h206 uint8 avail[2]; /* availibility period */ member