Lines Matching refs:ret
54 NBAIO_Format ret; in Format_from_SR_C() local
55 ret.mSampleRate = sampleRate; in Format_from_SR_C()
56 ret.mChannelCount = channelCount; in Format_from_SR_C()
57 ret.mFormat = format; in Format_from_SR_C()
58 ret.mFrameSize = audio_bytes_per_frame(channelCount, format); in Format_from_SR_C()
59 return ret; in Format_from_SR_C()
82 ssize_t ret = via(user, buffer, count); in writeVia() local
83 if (ret > 0) { in writeVia()
84 ALOG_ASSERT((size_t) ret <= count); in writeVia()
85 size_t maxRet = ret; in writeVia()
86 ret = write(buffer, maxRet); in writeVia()
87 if (ret > 0) { in writeVia()
88 ALOG_ASSERT((size_t) ret <= maxRet); in writeVia()
89 accumulator += ret; in writeVia()
93 return accumulator > 0 ? accumulator : ret; in writeVia()
118 ssize_t ret = read(buffer, count); in readVia() local
119 if (ret > 0) { in readVia()
120 ALOG_ASSERT((size_t) ret <= count); in readVia()
121 size_t maxRet = ret; in readVia()
122 ret = via(user, buffer, maxRet); in readVia()
123 if (ret > 0) { in readVia()
124 ALOG_ASSERT((size_t) ret <= maxRet); in readVia()
125 accumulator += ret; in readVia()
129 return accumulator > 0 ? accumulator : ret; in readVia()