Lines Matching refs:ResultWithValue
445 ResultWithValue<int32_t> AudioStreamAAudio::write(const void *buffer, in write()
452 return ResultWithValue<int32_t>::createBasedOnSign(result); in write()
454 return ResultWithValue<int32_t>(Result::ErrorClosed); in write()
458 ResultWithValue<int32_t> AudioStreamAAudio::read(void *buffer, in read()
465 return ResultWithValue<int32_t>::createBasedOnSign(result); in read()
467 return ResultWithValue<int32_t>(Result::ErrorClosed); in read()
543 ResultWithValue<int32_t> AudioStreamAAudio::setBufferSizeInFrames(int32_t requestedFrames) { in setBufferSizeInFrames()
559 return ResultWithValue<int32_t>::createBasedOnSign(newBufferSize); in setBufferSizeInFrames()
562 return ResultWithValue<int32_t>(Result::ErrorClosed); in setBufferSizeInFrames()
612 ResultWithValue<int32_t> AudioStreamAAudio::getXRunCount() const { in getXRunCount()
615 return ResultWithValue<int32_t>::createBasedOnSign(mLibLoader->stream_getXRunCount(stream)); in getXRunCount()
617 return ResultWithValue<int32_t>(Result::ErrorNull); in getXRunCount()
636 ResultWithValue<double> AudioStreamAAudio::calculateLatencyMillis() { in calculateLatencyMillis()
639 return ResultWithValue<double>(Result::ErrorClosed); in calculateLatencyMillis()
649 return ResultWithValue<double>(static_cast<Result>(result)); in calculateLatencyMillis()
675 return ResultWithValue<double>(latencyMillis); in calculateLatencyMillis()