Lines Matching refs:mPrefetchStatus

806                 ap->mPrefetchStatus.mLevel = 0;  in sfplayer_handlePrefetchEvent()
807 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_UNDERFLOW; in sfplayer_handlePrefetchEvent()
808 if (!(~ap->mPrefetchStatus.mCallbackEventsMask & in sfplayer_handlePrefetchEvent()
810 callback = ap->mPrefetchStatus.mCallback; in sfplayer_handlePrefetchEvent()
811 callbackPContext = ap->mPrefetchStatus.mContext; in sfplayer_handlePrefetchEvent()
821 (*callback)(&ap->mPrefetchStatus.mItf, callbackPContext, events); in sfplayer_handlePrefetchEvent()
835 interface_lock_exclusive(&ap->mPrefetchStatus); in sfplayer_handlePrefetchEvent()
836 if (ap->mPrefetchStatus.mCallbackEventsMask & SL_PREFETCHEVENT_FILLLEVELCHANGE) { in sfplayer_handlePrefetchEvent()
837 callback = ap->mPrefetchStatus.mCallback; in sfplayer_handlePrefetchEvent()
838 callbackPContext = ap->mPrefetchStatus.mContext; in sfplayer_handlePrefetchEvent()
840 ap->mPrefetchStatus.mLevel = (SLpermille)data1; in sfplayer_handlePrefetchEvent()
841 interface_unlock_exclusive(&ap->mPrefetchStatus); in sfplayer_handlePrefetchEvent()
845 (*callback)(&ap->mPrefetchStatus.mItf, callbackPContext, in sfplayer_handlePrefetchEvent()
860 if (ap->mPrefetchStatus.mCallbackEventsMask & SL_PREFETCHEVENT_STATUSCHANGE) { in sfplayer_handlePrefetchEvent()
861 callback = ap->mPrefetchStatus.mCallback; in sfplayer_handlePrefetchEvent()
862 callbackPContext = ap->mPrefetchStatus.mContext; in sfplayer_handlePrefetchEvent()
865 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_SUFFICIENTDATA; in sfplayer_handlePrefetchEvent()
867 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_UNDERFLOW; in sfplayer_handlePrefetchEvent()
873 (*callback)(&ap->mPrefetchStatus.mItf, callbackPContext, SL_PREFETCHEVENT_STATUSCHANGE); in sfplayer_handlePrefetchEvent()
933 ap->mPrefetchStatus.mLevel = 0; in sfplayer_handlePrefetchEvent()
934 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_UNDERFLOW; in sfplayer_handlePrefetchEvent()
935 if (!(~ap->mPrefetchStatus.mCallbackEventsMask & in sfplayer_handlePrefetchEvent()
937 callback = ap->mPrefetchStatus.mCallback; in sfplayer_handlePrefetchEvent()
938 callbackPContext = ap->mPrefetchStatus.mContext; in sfplayer_handlePrefetchEvent()
948 (*callback)(&ap->mPrefetchStatus.mItf, callbackPContext, in sfplayer_handlePrefetchEvent()
1292 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_UNDERFLOW; in audioTrack_handleMoreData_lockPlay()
1293 ap->mPrefetchStatus.mLevel = 0; in audioTrack_handleMoreData_lockPlay()
1295 prefetchEvents = ap->mPrefetchStatus.mCallbackEventsMask & in audioTrack_handleMoreData_lockPlay()
1298 prefetchCallback = ap->mPrefetchStatus.mCallback; in audioTrack_handleMoreData_lockPlay()
1299 prefetchContext = ap->mPrefetchStatus.mContext; in audioTrack_handleMoreData_lockPlay()
1313 (*prefetchCallback)(&ap->mPrefetchStatus.mItf, prefetchContext, in audioTrack_handleMoreData_lockPlay()
1317 (*prefetchCallback)(&ap->mPrefetchStatus.mItf, prefetchContext, in audioTrack_handleMoreData_lockPlay()
2461 assert(SL_PREFETCHSTATUS_UNDERFLOW == ap->mPrefetchStatus.mStatus); in android_audioPlayer_bufferQueue_onRefilled_l()
2462 assert(0 == ap->mPrefetchStatus.mLevel); in android_audioPlayer_bufferQueue_onRefilled_l()
2463 ap->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_SUFFICIENTDATA; in android_audioPlayer_bufferQueue_onRefilled_l()
2464 ap->mPrefetchStatus.mLevel = 1000; in android_audioPlayer_bufferQueue_onRefilled_l()
2466 SLuint32 prefetchEvents = ap->mPrefetchStatus.mCallbackEventsMask & in android_audioPlayer_bufferQueue_onRefilled_l()
2469 ap->mPrefetchStatus.mDeferredPrefetchCallback = ap->mPrefetchStatus.mCallback; in android_audioPlayer_bufferQueue_onRefilled_l()
2470 ap->mPrefetchStatus.mDeferredPrefetchContext = ap->mPrefetchStatus.mContext; in android_audioPlayer_bufferQueue_onRefilled_l()
2471 ap->mPrefetchStatus.mDeferredPrefetchEvents = prefetchEvents; in android_audioPlayer_bufferQueue_onRefilled_l()