Lines Matching refs:mPrefetchStatus
804 ap->mPrefetchStatus.mLevel = 0; in sfplayer_handlePrefetchEvent()
805 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_UNDERFLOW; in sfplayer_handlePrefetchEvent()
806 if (!(~ap->mPrefetchStatus.mCallbackEventsMask & in sfplayer_handlePrefetchEvent()
808 callback = ap->mPrefetchStatus.mCallback; in sfplayer_handlePrefetchEvent()
809 callbackPContext = ap->mPrefetchStatus.mContext; in sfplayer_handlePrefetchEvent()
819 (*callback)(&ap->mPrefetchStatus.mItf, callbackPContext, events); in sfplayer_handlePrefetchEvent()
833 interface_lock_exclusive(&ap->mPrefetchStatus); in sfplayer_handlePrefetchEvent()
834 if (ap->mPrefetchStatus.mCallbackEventsMask & SL_PREFETCHEVENT_FILLLEVELCHANGE) { in sfplayer_handlePrefetchEvent()
835 callback = ap->mPrefetchStatus.mCallback; in sfplayer_handlePrefetchEvent()
836 callbackPContext = ap->mPrefetchStatus.mContext; in sfplayer_handlePrefetchEvent()
838 ap->mPrefetchStatus.mLevel = (SLpermille)data1; in sfplayer_handlePrefetchEvent()
839 interface_unlock_exclusive(&ap->mPrefetchStatus); in sfplayer_handlePrefetchEvent()
843 (*callback)(&ap->mPrefetchStatus.mItf, callbackPContext, in sfplayer_handlePrefetchEvent()
858 if (ap->mPrefetchStatus.mCallbackEventsMask & SL_PREFETCHEVENT_STATUSCHANGE) { in sfplayer_handlePrefetchEvent()
859 callback = ap->mPrefetchStatus.mCallback; in sfplayer_handlePrefetchEvent()
860 callbackPContext = ap->mPrefetchStatus.mContext; in sfplayer_handlePrefetchEvent()
863 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_SUFFICIENTDATA; in sfplayer_handlePrefetchEvent()
865 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_UNDERFLOW; in sfplayer_handlePrefetchEvent()
871 (*callback)(&ap->mPrefetchStatus.mItf, callbackPContext, SL_PREFETCHEVENT_STATUSCHANGE); in sfplayer_handlePrefetchEvent()
931 ap->mPrefetchStatus.mLevel = 0; in sfplayer_handlePrefetchEvent()
932 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_UNDERFLOW; in sfplayer_handlePrefetchEvent()
933 if (!(~ap->mPrefetchStatus.mCallbackEventsMask & in sfplayer_handlePrefetchEvent()
935 callback = ap->mPrefetchStatus.mCallback; in sfplayer_handlePrefetchEvent()
936 callbackPContext = ap->mPrefetchStatus.mContext; in sfplayer_handlePrefetchEvent()
946 (*callback)(&ap->mPrefetchStatus.mItf, callbackPContext, in sfplayer_handlePrefetchEvent()
1308 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_UNDERFLOW; in audioTrack_callBack_pullFromBuffQueue()
1309 ap->mPrefetchStatus.mLevel = 0; in audioTrack_callBack_pullFromBuffQueue()
1311 prefetchEvents = ap->mPrefetchStatus.mCallbackEventsMask & in audioTrack_callBack_pullFromBuffQueue()
1314 prefetchCallback = ap->mPrefetchStatus.mCallback; in audioTrack_callBack_pullFromBuffQueue()
1315 prefetchContext = ap->mPrefetchStatus.mContext; in audioTrack_callBack_pullFromBuffQueue()
1329 (*prefetchCallback)(&ap->mPrefetchStatus.mItf, prefetchContext, in audioTrack_callBack_pullFromBuffQueue()
1333 (*prefetchCallback)(&ap->mPrefetchStatus.mItf, prefetchContext, in audioTrack_callBack_pullFromBuffQueue()
2470 assert(SL_PREFETCHSTATUS_UNDERFLOW == ap->mPrefetchStatus.mStatus); in android_audioPlayer_bufferQueue_onRefilled_l()
2471 assert(0 == ap->mPrefetchStatus.mLevel); in android_audioPlayer_bufferQueue_onRefilled_l()
2472 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_SUFFICIENTDATA; in android_audioPlayer_bufferQueue_onRefilled_l()
2473 ap->mPrefetchStatus.mLevel = 1000; in android_audioPlayer_bufferQueue_onRefilled_l()
2475 SLuint32 prefetchEvents = ap->mPrefetchStatus.mCallbackEventsMask & in android_audioPlayer_bufferQueue_onRefilled_l()
2478 ap->mPrefetchStatus.mDeferredPrefetchCallback = ap->mPrefetchStatus.mCallback; in android_audioPlayer_bufferQueue_onRefilled_l()
2479 ap->mPrefetchStatus.mDeferredPrefetchContext = ap->mPrefetchStatus.mContext; in android_audioPlayer_bufferQueue_onRefilled_l()
2480 ap->mPrefetchStatus.mDeferredPrefetchEvents = prefetchEvents; in android_audioPlayer_bufferQueue_onRefilled_l()