Home | History | Annotate | Download | only in android

Lines Matching refs:GenericMediaPlayer

49 MediaPlayerNotificationClient::MediaPlayerNotificationClient(GenericMediaPlayer* gmp) :
86 sp<GenericMediaPlayer> genericMediaPlayer(mGenericMediaPlayer.promote());
87 if (genericMediaPlayer == NULL) {
88 SL_LOGW("MediaPlayerNotificationClient::notify after GenericMediaPlayer destroyed");
108 // We're running on a different thread than genericMediaPlayer's ALooper thread,
109 // so it would normally be racy to access fields within genericMediaPlayer.
112 if (genericMediaPlayer->mHasVideo) {
113 genericMediaPlayer->notify(PLAYEREVENT_VIDEO_SIZE_UPDATE,
119 genericMediaPlayer->seekComplete();
123 genericMediaPlayer->notify(PLAYEREVENT_ENDOFSTREAM, 1, true /*async*/);
129 genericMediaPlayer->bufferingUpdate(ext1 * 10 /*fillLevelPerMille*/);
140 genericMediaPlayer->notify(PLAYEREVENT_ERRORAFTERPREPARE, ext1, true /*async*/);
176 GenericMediaPlayer::GenericMediaPlayer(const AudioPlayback_Parameters* params, bool hasVideo) :
185 SL_LOGD("GenericMediaPlayer::GenericMediaPlayer()");
189 GenericMediaPlayer::~GenericMediaPlayer() {
190 SL_LOGD("GenericMediaPlayer::~GenericMediaPlayer()");
193 void GenericMediaPlayer::preDestroy() {
223 void GenericMediaPlayer::getPositionMsec(int* msec) {
224 SL_LOGD("GenericMediaPlayer::getPositionMsec()");
234 void GenericMediaPlayer::setVideoSurface(const sp<Surface> &surface) {
235 SL_LOGV("GenericMediaPlayer::setVideoSurface()");
247 void GenericMediaPlayer::setVideoSurfaceTexture(const sp<ISurfaceTexture> &surfaceTexture) {
248 SL_LOGV("GenericMediaPlayer::setVideoSurfaceTexture()");
265 void GenericMediaPlayer::onPrepare() {
266 SL_LOGD("GenericMediaPlayer::onPrepare()");
287 SL_LOGD("GenericMediaPlayer::onPrepare() done, mStateFlags=0x%x", mStateFlags);
291 void GenericMediaPlayer::onPlay() {
292 SL_LOGD("GenericMediaPlayer::onPlay()");
300 void GenericMediaPlayer::onPause() {
301 SL_LOGD("GenericMediaPlayer::onPause()");
309 void GenericMediaPlayer::onSeekComplete() {
310 SL_LOGV("GenericMediaPlayer::onSeekComplete()");
329 void GenericMediaPlayer::onSeek(const sp<AMessage> &msg) {
330 SL_LOGV("GenericMediaPlayer::onSeek");
363 void GenericMediaPlayer::onLoop(const sp<AMessage> &msg) {
364 SL_LOGV("GenericMediaPlayer::onLoop");
380 void GenericMediaPlayer::onVolumeUpdate() {
381 SL_LOGD("GenericMediaPlayer::onVolumeUpdate()");
391 void GenericMediaPlayer::onAttachAuxEffect(const sp<AMessage> &msg) {
392 SL_LOGD("GenericMediaPlayer::onAttachAuxEffect()");
405 void GenericMediaPlayer::onSetAuxEffectSendLevel(const sp<AMessage> &msg) {
406 SL_LOGD("GenericMediaPlayer::onSetAuxEffectSendLevel()");
419 void GenericMediaPlayer::onBufferingUpdate(const sp<AMessage> &msg) {
422 SL_LOGD("GenericMediaPlayer::onBufferingUpdate(fillLevel=%d)", fillLevel);
459 SL_LOGV("GenericMediaPlayer::onBufferingUpdate(fillLevel=unknown)");
466 * called from GenericMediaPlayer::onPrepare after the MediaPlayer mPlayer is prepared successfully
471 void GenericMediaPlayer::afterMediaPlayerPreparedSuccessfully() {
472 SL_LOGV("GenericMediaPlayer::afterMediaPlayerPrepared()");
533 void GenericMediaPlayer::getPreparedPlayer(sp<IMediaPlayer> &preparedPlayer)