Lines Matching refs:mPrefetchStatus
766 ap->mPrefetchStatus.mLevel = 0; in sfplayer_handlePrefetchEvent()
767 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_UNDERFLOW; in sfplayer_handlePrefetchEvent()
768 if (!(~ap->mPrefetchStatus.mCallbackEventsMask & in sfplayer_handlePrefetchEvent()
770 callback = ap->mPrefetchStatus.mCallback; in sfplayer_handlePrefetchEvent()
771 callbackPContext = ap->mPrefetchStatus.mContext; in sfplayer_handlePrefetchEvent()
781 (*callback)(&ap->mPrefetchStatus.mItf, callbackPContext, events); in sfplayer_handlePrefetchEvent()
795 interface_lock_exclusive(&ap->mPrefetchStatus); in sfplayer_handlePrefetchEvent()
796 if (ap->mPrefetchStatus.mCallbackEventsMask & SL_PREFETCHEVENT_FILLLEVELCHANGE) { in sfplayer_handlePrefetchEvent()
797 callback = ap->mPrefetchStatus.mCallback; in sfplayer_handlePrefetchEvent()
798 callbackPContext = ap->mPrefetchStatus.mContext; in sfplayer_handlePrefetchEvent()
800 ap->mPrefetchStatus.mLevel = (SLpermille)data1; in sfplayer_handlePrefetchEvent()
801 interface_unlock_exclusive(&ap->mPrefetchStatus); in sfplayer_handlePrefetchEvent()
805 (*callback)(&ap->mPrefetchStatus.mItf, callbackPContext, in sfplayer_handlePrefetchEvent()
820 if (ap->mPrefetchStatus.mCallbackEventsMask & SL_PREFETCHEVENT_STATUSCHANGE) { in sfplayer_handlePrefetchEvent()
821 callback = ap->mPrefetchStatus.mCallback; in sfplayer_handlePrefetchEvent()
822 callbackPContext = ap->mPrefetchStatus.mContext; in sfplayer_handlePrefetchEvent()
825 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_SUFFICIENTDATA; in sfplayer_handlePrefetchEvent()
827 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_UNDERFLOW; in sfplayer_handlePrefetchEvent()
833 (*callback)(&ap->mPrefetchStatus.mItf, callbackPContext, SL_PREFETCHEVENT_STATUSCHANGE); in sfplayer_handlePrefetchEvent()
892 ap->mPrefetchStatus.mLevel = 0; in sfplayer_handlePrefetchEvent()
893 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_UNDERFLOW; in sfplayer_handlePrefetchEvent()
894 if (!(~ap->mPrefetchStatus.mCallbackEventsMask & in sfplayer_handlePrefetchEvent()
896 callback = ap->mPrefetchStatus.mCallback; in sfplayer_handlePrefetchEvent()
897 callbackPContext = ap->mPrefetchStatus.mContext; in sfplayer_handlePrefetchEvent()
907 (*callback)(&ap->mPrefetchStatus.mItf, callbackPContext, in sfplayer_handlePrefetchEvent()
1269 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_UNDERFLOW; in audioTrack_callBack_pullFromBuffQueue()
1270 ap->mPrefetchStatus.mLevel = 0; in audioTrack_callBack_pullFromBuffQueue()
1272 prefetchEvents = ap->mPrefetchStatus.mCallbackEventsMask & in audioTrack_callBack_pullFromBuffQueue()
1275 prefetchCallback = ap->mPrefetchStatus.mCallback; in audioTrack_callBack_pullFromBuffQueue()
1276 prefetchContext = ap->mPrefetchStatus.mContext; in audioTrack_callBack_pullFromBuffQueue()
1290 (*prefetchCallback)(&ap->mPrefetchStatus.mItf, prefetchContext, in audioTrack_callBack_pullFromBuffQueue()
1294 (*prefetchCallback)(&ap->mPrefetchStatus.mItf, prefetchContext, in audioTrack_callBack_pullFromBuffQueue()
2402 assert(SL_PREFETCHSTATUS_UNDERFLOW == ap->mPrefetchStatus.mStatus); in android_audioPlayer_bufferQueue_onRefilled_l()
2403 assert(0 == ap->mPrefetchStatus.mLevel); in android_audioPlayer_bufferQueue_onRefilled_l()
2404 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_SUFFICIENTDATA; in android_audioPlayer_bufferQueue_onRefilled_l()
2405 ap->mPrefetchStatus.mLevel = 1000; in android_audioPlayer_bufferQueue_onRefilled_l()
2407 SLuint32 prefetchEvents = ap->mPrefetchStatus.mCallbackEventsMask & in android_audioPlayer_bufferQueue_onRefilled_l()
2410 ap->mPrefetchStatus.mDeferredPrefetchCallback = ap->mPrefetchStatus.mCallback; in android_audioPlayer_bufferQueue_onRefilled_l()
2411 ap->mPrefetchStatus.mDeferredPrefetchContext = ap->mPrefetchStatus.mContext; in android_audioPlayer_bufferQueue_onRefilled_l()
2412 ap->mPrefetchStatus.mDeferredPrefetchEvents = prefetchEvents; in android_audioPlayer_bufferQueue_onRefilled_l()