Home
last modified time | relevance | path

Searched refs:safe_sub_overflow (Results 1 – 3 of 3) sorted by relevance

/aosp12/system/media/audio_utils/include/audio_utils/
H A Dsafe_math.h29 auto safe_sub_overflow(const T& a, const U& b) { in safe_sub_overflow() function
/aosp12/frameworks/av/media/libaudioclient/
H A DAudioTrackShared.cpp227 ssize_t filled = audio_utils::safe_sub_overflow(rear, front); in obtainBuffer()
726 ssize_t filled = audio_utils::safe_sub_overflow(rear, newFront); in flushBufferIfNeeded()
768 ssize_t filled = audio_utils::safe_sub_overflow(newRear, front); in getRear()
820 ssize_t filled = audio_utils::safe_sub_overflow(rear, front); in obtainBuffer()
944 ssize_t filled = audio_utils::safe_sub_overflow(rear, cblk->u.mStreaming.mFront); in framesReady()
970 const ssize_t filled = audio_utils::safe_sub_overflow(rear, cblk->u.mStreaming.mFront); in framesReadySafe()
1281 const ssize_t filled = audio_utils::safe_sub_overflow(rear, front); in framesReadySafe()
/aosp12/frameworks/av/services/audioflinger/
H A DThreads.cpp8555 const int32_t sharedOffset = audio_utils::safe_sub_overflow(mRsmpInRear, in shareAudioHistory_l()
8563 audio_utils::safe_sub_overflow(mRsmpInRear, (int32_t)mRsmpInFrames); in shareAudioHistory_l()
8736 mRsmpInFront = audio_utils::safe_sub_overflow(rear, static_cast<int32_t>(deltaFrames)); in reset()
8746 const ssize_t filled = audio_utils::safe_sub_overflow(rear, front); in sync()
8760 mRsmpInFront = /* front = */ audio_utils::safe_sub_overflow( in sync()
8785 ssize_t filled = audio_utils::safe_sub_overflow(rear, front); in getNextBuffer()
9217 front = audio_utils::safe_sub_overflow(front, offset); in updateFronts_l()
9289 ssize_t unread = audio_utils::safe_sub_overflow(previousRear, previousFront); in resizeInputBuffer_l()
9307 updateFronts_l(audio_utils::safe_sub_overflow(previousRear, mRsmpInRear)); in resizeInputBuffer_l()