Home
last modified time | relevance | path

Searched refs:ResultWithValue (Results 1 – 14 of 14) sorted by relevance

/third_party/skia/third_party/externals/oboe/src/opensles/
DAudioStreamBuffered.cpp113 ResultWithValue<int32_t> AudioStreamBuffered::transfer(void *buffer, in transfer()
119 return ResultWithValue<int32_t>(Result::ErrorNull); in transfer()
123 return ResultWithValue<int32_t>(Result::ErrorOutOfRange); in transfer()
125 return ResultWithValue<int32_t>(numFrames); in transfer()
129 return ResultWithValue<int32_t>(Result::ErrorOutOfRange); in transfer()
196 return ResultWithValue<int32_t>(static_cast<Result>(result)); in transfer()
199 return ResultWithValue<int32_t>(framesWritten); in transfer()
204 ResultWithValue<int32_t> AudioStreamBuffered::write(const void *buffer, in write()
208 return ResultWithValue<int32_t>(Result::ErrorClosed); in write()
212 … return ResultWithValue<int32_t>(Result::ErrorUnavailable); // TODO review, better error code? in write()
[all …]
DAudioStreamBuffered.h40 ResultWithValue<int32_t> write(const void *buffer,
44 ResultWithValue<int32_t> read(void *buffer,
48 ResultWithValue<int32_t> setBufferSizeInFrames(int32_t requestedFrames) override;
52 ResultWithValue<int32_t> getXRunCount() const override { in getXRunCount()
53 return ResultWithValue<int32_t>(mXRunCount); in getXRunCount()
77 ResultWithValue<int32_t> transfer(void *buffer, int32_t numFrames, int64_t timeoutNanoseconds);
/third_party/skia/third_party/externals/oboe/include/oboe/
DAudioStream.h178 virtual ResultWithValue<int32_t> setBufferSizeInFrames(int32_t /* requestedFrames */) { in setBufferSizeInFrames()
194 virtual ResultWithValue<int32_t> getXRunCount() const { in getXRunCount()
195 return ResultWithValue<int32_t>(Result::ErrorUnimplemented); in getXRunCount()
266 virtual ResultWithValue<double> calculateLatencyMillis() { in calculateLatencyMillis()
267 return ResultWithValue<double>(Result::ErrorUnimplemented); in calculateLatencyMillis()
308 virtual ResultWithValue<FrameTimestamp> getTimestamp(clockid_t /* clockId */);
323 virtual ResultWithValue<int32_t> write(const void* /* buffer */, in write()
326 return ResultWithValue<int32_t>(Result::ErrorUnimplemented); in write()
341 virtual ResultWithValue<int32_t> read(void* /* buffer */, in read()
344 return ResultWithValue<int32_t>(Result::ErrorUnimplemented); in read()
[all …]
DResultWithValue.h47 class ResultWithValue {
55 ResultWithValue(oboe::Result error) in ResultWithValue() function
64 explicit ResultWithValue(T value) in ResultWithValue() function
121 static ResultWithValue<T> createBasedOnSign(T numericResult){ in createBasedOnSign()
128 return ResultWithValue<T>(numericResult); in createBasedOnSign()
130 return ResultWithValue<T>(static_cast<Result>(numericResult)); in createBasedOnSign()
143 std::ostream& operator<<(std::ostream &strm, const ResultWithValue<T> &result) {
/third_party/skia/third_party/externals/oboe/src/common/
DAudioStream.cpp155 ResultWithValue<int32_t> AudioStream::getAvailableFrames() { in getAvailableFrames()
157 if (readCounter < 0) return ResultWithValue<int32_t>::createBasedOnSign(readCounter); in getAvailableFrames()
159 if (writeCounter < 0) return ResultWithValue<int32_t>::createBasedOnSign(writeCounter); in getAvailableFrames()
161 return ResultWithValue<int32_t>(framesAvailable); in getAvailableFrames()
164 ResultWithValue<int32_t> AudioStream::waitForAvailableFrames(int32_t numFrames, in waitForAvailableFrames()
174 ResultWithValue<int32_t> result = getAvailableFrames(); in waitForAvailableFrames()
185 ? ResultWithValue<int32_t>(Result::ErrorTimeout) in waitForAvailableFrames()
186 : ResultWithValue<int32_t>(framesAvailable); in waitForAvailableFrames()
189 ResultWithValue<FrameTimestamp> AudioStream::getTimestamp(clockid_t clockId) { in getTimestamp()
193 return ResultWithValue<FrameTimestamp>(frame); in getTimestamp()
[all …]
DFilterAudioStream.cpp58 ResultWithValue<int32_t> FilterAudioStream::write(const void *buffer, in write()
68 return ResultWithValue<int32_t>::createBasedOnSign(numRead); in write()
81 return ResultWithValue<int32_t>::createBasedOnSign(framesWritten); in write()
86 ResultWithValue<int32_t> FilterAudioStream::read(void *buffer, in read()
90 return ResultWithValue<int32_t>::createBasedOnSign(framesRead); in read()
DFilterAudioStream.h104 ResultWithValue<int32_t> read(void *buffer,
108 ResultWithValue<int32_t> write(const void *buffer,
149 ResultWithValue<int32_t> setBufferSizeInFrames(int32_t requestedFrames) override { in setBufferSizeInFrames()
158 ResultWithValue<int32_t> getXRunCount() const override { in getXRunCount()
162 ResultWithValue<double> calculateLatencyMillis() override { in calculateLatencyMillis()
/third_party/skia/third_party/externals/oboe/src/aaudio/
DAudioStreamAAudio.h60 ResultWithValue<int32_t> write(const void *buffer,
64 ResultWithValue<int32_t> read(void *buffer,
68 ResultWithValue<int32_t> setBufferSizeInFrames(int32_t requestedFrames) override;
71 ResultWithValue<int32_t> getXRunCount() const override;
74 ResultWithValue<double> calculateLatencyMillis() override;
DAudioStreamAAudio.cpp420 ResultWithValue<int32_t> AudioStreamAAudio::write(const void *buffer, in write()
427 return ResultWithValue<int32_t>::createBasedOnSign(result); in write()
429 return ResultWithValue<int32_t>(Result::ErrorClosed); in write()
433 ResultWithValue<int32_t> AudioStreamAAudio::read(void *buffer, in read()
440 return ResultWithValue<int32_t>::createBasedOnSign(result); in read()
442 return ResultWithValue<int32_t>(Result::ErrorClosed); in read()
518 ResultWithValue<int32_t> AudioStreamAAudio::setBufferSizeInFrames(int32_t requestedFrames) { in setBufferSizeInFrames()
534 return ResultWithValue<int32_t>::createBasedOnSign(newBufferSize); in setBufferSizeInFrames()
537 return ResultWithValue<int32_t>(Result::ErrorClosed); in setBufferSizeInFrames()
587 ResultWithValue<int32_t> AudioStreamAAudio::getXRunCount() const { in getXRunCount()
[all …]
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/
DFullDuplexStream.cpp35 oboe::ResultWithValue<int32_t> result = getInputStream()->read(mInputBuffer.get(), in onAudioReady()
57 oboe::ResultWithValue<int32_t> resultAvailable = getInputStream()->getAvailableFrames(); in onAudioReady()
65 …oboe::ResultWithValue<int32_t> resultRead = getInputStream()->read(mInputBuffer.get(), numFrames, … in onAudioReady()
74 oboe::ResultWithValue<int32_t> resultAvailable = getInputStream()->getAvailableFrames(); in onAudioReady()
82 …oboe::ResultWithValue<int32_t> resultRead = getInputStream()->read(mInputBuffer.get(), numFrames,… in onAudioReady()
/third_party/skia/third_party/externals/oboe/samples/LiveEffect/src/main/cpp/
DFullDuplexStream.cpp34 oboe::ResultWithValue<int32_t> result = getInputStream()->read(mInputBuffer.get(), in onAudioReady()
55 oboe::ResultWithValue<int32_t> result = getInputStream()->read(mInputBuffer.get(), in onAudioReady()
65 oboe::ResultWithValue<int32_t> result = getInputStream()->read(mInputBuffer.get(), in onAudioReady()
/third_party/skia/third_party/externals/oboe/apps/fxlab/app/src/main/cpp/
DDuplexCallback.h44 oboe::ResultWithValue<int32_t> result = inRef.read(inputBuffer.get(), numFrames, 0); in onAudioReady()
/third_party/skia/third_party/externals/oboe/docs/
DChangeLog.md22 Change `AudioStream` method return types to `ResultWithValue` where appropriate. [Full details](htt…
DFullGuide.md406 // result has type ResultWithValue<int32_t>, which for convenience is coerced