Lines Matching refs:mPrefetchStatus

805                 ap->mPrefetchStatus.mLevel = 0;  in sfplayer_handlePrefetchEvent()
806 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_UNDERFLOW; in sfplayer_handlePrefetchEvent()
807 if (!(~ap->mPrefetchStatus.mCallbackEventsMask & in sfplayer_handlePrefetchEvent()
809 callback = ap->mPrefetchStatus.mCallback; in sfplayer_handlePrefetchEvent()
810 callbackPContext = ap->mPrefetchStatus.mContext; in sfplayer_handlePrefetchEvent()
820 (*callback)(&ap->mPrefetchStatus.mItf, callbackPContext, events); in sfplayer_handlePrefetchEvent()
834 interface_lock_exclusive(&ap->mPrefetchStatus); in sfplayer_handlePrefetchEvent()
835 if (ap->mPrefetchStatus.mCallbackEventsMask & SL_PREFETCHEVENT_FILLLEVELCHANGE) { in sfplayer_handlePrefetchEvent()
836 callback = ap->mPrefetchStatus.mCallback; in sfplayer_handlePrefetchEvent()
837 callbackPContext = ap->mPrefetchStatus.mContext; in sfplayer_handlePrefetchEvent()
839 ap->mPrefetchStatus.mLevel = (SLpermille)data1; in sfplayer_handlePrefetchEvent()
840 interface_unlock_exclusive(&ap->mPrefetchStatus); in sfplayer_handlePrefetchEvent()
844 (*callback)(&ap->mPrefetchStatus.mItf, callbackPContext, in sfplayer_handlePrefetchEvent()
859 if (ap->mPrefetchStatus.mCallbackEventsMask & SL_PREFETCHEVENT_STATUSCHANGE) { in sfplayer_handlePrefetchEvent()
860 callback = ap->mPrefetchStatus.mCallback; in sfplayer_handlePrefetchEvent()
861 callbackPContext = ap->mPrefetchStatus.mContext; in sfplayer_handlePrefetchEvent()
864 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_SUFFICIENTDATA; in sfplayer_handlePrefetchEvent()
866 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_UNDERFLOW; in sfplayer_handlePrefetchEvent()
872 (*callback)(&ap->mPrefetchStatus.mItf, callbackPContext, SL_PREFETCHEVENT_STATUSCHANGE); in sfplayer_handlePrefetchEvent()
932 ap->mPrefetchStatus.mLevel = 0; in sfplayer_handlePrefetchEvent()
933 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_UNDERFLOW; in sfplayer_handlePrefetchEvent()
934 if (!(~ap->mPrefetchStatus.mCallbackEventsMask & in sfplayer_handlePrefetchEvent()
936 callback = ap->mPrefetchStatus.mCallback; in sfplayer_handlePrefetchEvent()
937 callbackPContext = ap->mPrefetchStatus.mContext; in sfplayer_handlePrefetchEvent()
947 (*callback)(&ap->mPrefetchStatus.mItf, callbackPContext, in sfplayer_handlePrefetchEvent()
1310 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_UNDERFLOW; in audioTrack_callBack_pullFromBuffQueue()
1311 ap->mPrefetchStatus.mLevel = 0; in audioTrack_callBack_pullFromBuffQueue()
1313 prefetchEvents = ap->mPrefetchStatus.mCallbackEventsMask & in audioTrack_callBack_pullFromBuffQueue()
1316 prefetchCallback = ap->mPrefetchStatus.mCallback; in audioTrack_callBack_pullFromBuffQueue()
1317 prefetchContext = ap->mPrefetchStatus.mContext; in audioTrack_callBack_pullFromBuffQueue()
1331 (*prefetchCallback)(&ap->mPrefetchStatus.mItf, prefetchContext, in audioTrack_callBack_pullFromBuffQueue()
1335 (*prefetchCallback)(&ap->mPrefetchStatus.mItf, prefetchContext, in audioTrack_callBack_pullFromBuffQueue()
2500 assert(SL_PREFETCHSTATUS_UNDERFLOW == ap->mPrefetchStatus.mStatus); in android_audioPlayer_bufferQueue_onRefilled_l()
2501 assert(0 == ap->mPrefetchStatus.mLevel); in android_audioPlayer_bufferQueue_onRefilled_l()
2502 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_SUFFICIENTDATA; in android_audioPlayer_bufferQueue_onRefilled_l()
2503 ap->mPrefetchStatus.mLevel = 1000; in android_audioPlayer_bufferQueue_onRefilled_l()
2505 SLuint32 prefetchEvents = ap->mPrefetchStatus.mCallbackEventsMask & in android_audioPlayer_bufferQueue_onRefilled_l()
2508 ap->mPrefetchStatus.mDeferredPrefetchCallback = ap->mPrefetchStatus.mCallback; in android_audioPlayer_bufferQueue_onRefilled_l()
2509 ap->mPrefetchStatus.mDeferredPrefetchContext = ap->mPrefetchStatus.mContext; in android_audioPlayer_bufferQueue_onRefilled_l()
2510 ap->mPrefetchStatus.mDeferredPrefetchEvents = prefetchEvents; in android_audioPlayer_bufferQueue_onRefilled_l()