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_is_linear_pcm(format) ? in Format_from_SR_C()
60 return ret; in Format_from_SR_C()
83 ssize_t ret = via(user, buffer, count); in writeVia() local
84 if (ret > 0) { in writeVia()
85 ALOG_ASSERT((size_t) ret <= count); in writeVia()
86 size_t maxRet = ret; in writeVia()
87 ret = write(buffer, maxRet); in writeVia()
88 if (ret > 0) { in writeVia()
89 ALOG_ASSERT((size_t) ret <= maxRet); in writeVia()
90 accumulator += ret; in writeVia()
94 return accumulator > 0 ? accumulator : ret; in writeVia()
119 ssize_t ret = read(buffer, count); in readVia() local
120 if (ret > 0) { in readVia()
121 ALOG_ASSERT((size_t) ret <= count); in readVia()
122 size_t maxRet = ret; in readVia()
123 ret = via(user, buffer, maxRet); in readVia()
124 if (ret > 0) { in readVia()
125 ALOG_ASSERT((size_t) ret <= maxRet); in readVia()
126 accumulator += ret; in readVia()
130 return accumulator > 0 ? accumulator : ret; in readVia()