Lines Matching refs:msg

139         sp<AMessage> msg = new AMessage(kWhatPrepare, this);  in prepare()  local
140 msg->post(); in prepare()
147 sp<AMessage> msg = new AMessage(kWhatPlay, this); in play() local
148 msg->post(); in play()
154 sp<AMessage> msg = new AMessage(kWhatPause, this); in pause() local
155 msg->post(); in pause()
174 sp<AMessage> msg = new AMessage(kWhatSeek, this); in seek() local
175 msg->setInt64(WHATPARAM_SEEK_SEEKTIME_MS, timeMsec); in seek()
176 msg->post(); in seek()
182 sp<AMessage> msg = new AMessage(kWhatLoop, this); in loop() local
183 msg->setInt32(WHATPARAM_LOOP_LOOPING, (int32_t)loop); in loop()
184 msg->post(); in loop()
190 sp<AMessage> msg = new AMessage(kWhatBuffUpdateThres, this); in setBufferingUpdateThreshold() local
191 msg->setInt32(WHATPARAM_BUFFERING_UPDATETHRESHOLD_PERCENT, (int32_t)thresholdPercent); in setBufferingUpdateThreshold()
192 msg->post(); in setBufferingUpdateThreshold()
219 sp<AMessage> msg = new AMessage(kWhatAttachAuxEffect, this); in attachAuxEffect() local
220 msg->setInt32(WHATPARAM_ATTACHAUXEFFECT, effectId); in attachAuxEffect()
221 msg->post(); in attachAuxEffect()
229 sp<AMessage> msg = new AMessage(kWhatSetAuxEffectSendLevel, this); in setAuxEffectSendLevel() local
230 msg->setFloat(WHATPARAM_SETAUXEFFECTSENDLEVEL, level); in setAuxEffectSendLevel()
231 msg->post(); in setAuxEffectSendLevel()
260 sp<AMessage> msg = new AMessage(kWhatSetPlayEvents, this); in setPlayEvents() local
261 msg->setInt32(WHATPARAM_SETPLAYEVENTS_FLAGS, eventFlags); in setPlayEvents()
262 msg->setInt32(WHATPARAM_SETPLAYEVENTS_MARKER, markerPositionMs); in setPlayEvents()
263 msg->setInt32(WHATPARAM_SETPLAYEVENTS_UPDATE, positionUpdatePeriodMs); in setPlayEvents()
264 msg->post(); in setPlayEvents()
288 sp<AMessage> msg = new AMessage(kWhatNotif, this); in notify() local
289 msg->setInt32(event, (int32_t)data); in notify()
291 msg->post(); in notify()
293 onNotify(msg); in notify()
301 sp<AMessage> msg = new AMessage(kWhatNotif, this); in notify() local
302 msg->setRect(event, 0, 0, (int32_t)data1, (int32_t)data2); in notify()
304 msg->post(); in notify()
306 onNotify(msg); in notify()
313 void GenericPlayer::onMessageReceived(const sp<AMessage> &msg) { in onMessageReceived() argument
315 switch (msg->what()) { in onMessageReceived()
323 onNotify(msg); in onMessageReceived()
338 onSeek(msg); in onMessageReceived()
343 onLoop(msg); in onMessageReceived()
358 onBufferingUpdate(msg); in onMessageReceived()
363 onSetBufferingUpdateThreshold(msg); in onMessageReceived()
368 onAttachAuxEffect(msg); in onMessageReceived()
373 onSetAuxEffectSendLevel(msg); in onMessageReceived()
378 onSetPlayEvents(msg); in onMessageReceived()
383 onOneShot(msg); in onMessageReceived()
387 SL_LOGE("GenericPlayer::onMessageReceived unknown message %d", msg->what()); in onMessageReceived()
408 void GenericPlayer::onNotify(const sp<AMessage> &msg) { in onNotify() argument
423 if (msg->findInt32(PLAYEREVENT_PREFETCHSTATUSCHANGE, &val1)) { in onNotify()
427 } else if (msg->findInt32(PLAYEREVENT_PREFETCHFILLLEVELUPDATE, &val1)) { in onNotify()
430 } else if (msg->findInt32(PLAYEREVENT_ENDOFSTREAM, &val1)) { in onNotify()
433 } else if (msg->findInt32(PLAYEREVENT_PREPARED, &val1)) { in onNotify()
436 } else if (msg->findInt32(PLAYEREVENT_CHANNEL_COUNT, &val1)) { in onNotify()
439 } else if (msg->findRect(PLAYEREVENT_VIDEO_SIZE_UPDATE, &val1, &val2, &val1, &val2)) { in onNotify()
442 } else if (msg->findInt32(PLAYEREVENT_PLAY, &val1)) { in onNotify()
445 } else if (msg->findInt32(PLAYEREVENT_ERRORAFTERPREPARE, &val1)) { in onNotify()
474 void GenericPlayer::onSeek(const sp<AMessage> &msg) { in onSeek() argument
479 void GenericPlayer::onLoop(const sp<AMessage> &msg) { in onLoop() argument
499 void GenericPlayer::onBufferingUpdate(const sp<AMessage> &msg) { in onBufferingUpdate() argument
504 void GenericPlayer::onSetBufferingUpdateThreshold(const sp<AMessage> &msg) { in onSetBufferingUpdateThreshold() argument
507 if (msg->findInt32(WHATPARAM_BUFFERING_UPDATETHRESHOLD_PERCENT, &thresholdPercent)) { in onSetBufferingUpdateThreshold()
514 void GenericPlayer::onAttachAuxEffect(const sp<AMessage> &msg) { in onAttachAuxEffect() argument
519 void GenericPlayer::onSetAuxEffectSendLevel(const sp<AMessage> &msg) { in onSetAuxEffectSendLevel() argument
524 void GenericPlayer::onSetPlayEvents(const sp<AMessage> &msg) { in onSetPlayEvents() argument
527 if (msg->findInt32(WHATPARAM_SETPLAYEVENTS_FLAGS, &eventFlags) && in onSetPlayEvents()
528 msg->findInt32(WHATPARAM_SETPLAYEVENTS_MARKER, &markerPositionMs) && in onSetPlayEvents()
529 msg->findInt32(WHATPARAM_SETPLAYEVENTS_UPDATE, &positionUpdatePeriodMs)) { in onSetPlayEvents()
538 void GenericPlayer::onOneShot(const sp<AMessage> &msg) { in onOneShot() argument
541 if (msg->findInt32(WHATPARAM_ONESHOT_GENERATION, &generation)) { in onOneShot()
568 sp<AMessage> msg = new AMessage(kWhatSeekComplete, this); in seekComplete() local
569 msg->post(); in seekComplete()
575 sp<AMessage> msg = new AMessage(kWhatBufferingUpdate, this); in bufferingUpdate() local
576 msg->setInt32(WHATPARAM_BUFFERING_UPDATE, fillLevelPerMille); in bufferingUpdate()
577 msg->post(); in bufferingUpdate()
708 sp<AMessage> msg = new AMessage(kWhatOneShot, this); in updateOneShot() local
709 msg->setInt32(WHATPARAM_ONESHOT_GENERATION, mOneShotGeneration); in updateOneShot()
710 msg->post(delayUs); in updateOneShot()