Lines Matching refs:GenericPlayer
27 GenericPlayer::GenericPlayer(const AudioPlayback_Parameters* params) :
45 SL_LOGD("GenericPlayer::GenericPlayer()");
54 GenericPlayer::~GenericPlayer() {
55 SL_LOGV("GenericPlayer::~GenericPlayer()");
61 void GenericPlayer::init(const notif_cbf_t cbf, void* notifUser) {
62 SL_LOGD("GenericPlayer::init()");
75 void GenericPlayer::preDestroy() {
76 SL_LOGD("GenericPlayer::preDestroy()");
88 void GenericPlayer::setDataSource(const char *uri) {
89 SL_LOGV("GenericPlayer::setDataSource(uri=%s)", uri);
98 void GenericPlayer::setDataSource(int fd, int64_t offset, int64_t length, bool closeAfterUse) {
99 SL_LOGV("GenericPlayer::setDataSource(fd=%d, offset=%lld, length=%lld, closeAfterUse=%s)", fd,
108 SL_LOGE("GenericPlayer::setDataSource: fstat(%d) failed: %d, %s", fd, ret, strerror(errno));
132 void GenericPlayer::prepare() {
133 SL_LOGD("GenericPlayer::prepare()");
142 void GenericPlayer::play() {
143 SL_LOGD("GenericPlayer::play()");
149 void GenericPlayer::pause() {
150 SL_LOGD("GenericPlayer::pause()");
156 void GenericPlayer::stop() {
157 SL_LOGD("GenericPlayer::stop()");
165 void GenericPlayer::seek(int64_t timeMsec) {
166 SL_LOGV("GenericPlayer::seek %lld", timeMsec);
168 SL_LOGE("GenericPlayer::seek error, can't seek to negative time %lldms", timeMsec);
177 void GenericPlayer::loop(bool loop) {
178 SL_LOGV("GenericPlayer::loop %s", loop ? "true" : "false");
185 void GenericPlayer::setBufferingUpdateThreshold(int16_t thresholdPercent) {
186 SL_LOGV("GenericPlayer::setBufferingUpdateThreshold %d", thresholdPercent);
194 void GenericPlayer::getDurationMsec(int* msec) {
199 void GenericPlayer::setVolume(float leftVol, float rightVol)
212 void GenericPlayer::attachAuxEffect(int32_t effectId)
214 SL_LOGV("GenericPlayer::attachAuxEffect(id=%d)", effectId);
222 void GenericPlayer::setAuxEffectSendLevel(float level)
224 SL_LOGV("GenericPlayer::setAuxEffectSendLevel(level=%g)", level);
233 void GenericPlayer::setPlayEvents(int32_t eventFlags, int32_t markerPositionMs,
260 void GenericPlayer::resetDataLocator() {
261 SL_LOGV("GenericPlayer::resetDataLocator()");
272 void GenericPlayer::notify(const char* event, int data, bool async) {
273 SL_LOGV("GenericPlayer::notify(event=%s, data=%d, async=%s)", event, data,
285 void GenericPlayer::notify(const char* event, int data1, int data2, bool async) {
286 SL_LOGV("GenericPlayer::notify(event=%s, data1=%d, data2=%d, async=%s)", event, data1, data2,
300 void GenericPlayer::onMessageReceived(const sp<AMessage> &msg) {
301 SL_LOGV("GenericPlayer::onMessageReceived()");
374 SL_LOGE("GenericPlayer::onMessageReceived unknown message %d", msg->what());
384 void GenericPlayer::onPrepare() {
385 SL_LOGV("GenericPlayer::onPrepare()");
391 SL_LOGD("GenericPlayer::onPrepare() done, mStateFlags=0x%x", mStateFlags);
395 void GenericPlayer::onNotify(const sp<AMessage> &msg) {
396 SL_LOGV("GenericPlayer::onNotify()");
411 SL_LOGV("GenericPlayer notifying %s = %d", PLAYEREVENT_PREFETCHSTATUSCHANGE, val1);
414 SL_LOGV("GenericPlayer notifying %s = %d", PLAYEREVENT_PREFETCHFILLLEVELUPDATE, val1);
417 SL_LOGV("GenericPlayer notifying %s = %d", PLAYEREVENT_ENDOFSTREAM, val1);
420 SL_LOGV("GenericPlayer notifying %s = %d", PLAYEREVENT_PREPARED, val1);
423 SL_LOGV("GenericPlayer notifying %s = %d", PLAYEREVENT_CHANNEL_COUNT, val1);
426 SL_LOGV("GenericPlayer notifying %s = %d, %d", PLAYEREVENT_VIDEO_SIZE_UPDATE, val1, val2);
429 SL_LOGV("GenericPlayer notifying %s = %d", PLAYEREVENT_PLAY, val1);
432 SL_LOGV("GenericPlayer notifying %s = %d", PLAYEREVENT_ERRORAFTERPREPARE, val1);
435 SL_LOGV("GenericPlayer notifying unknown");
440 void GenericPlayer::onPlay() {
441 SL_LOGD("GenericPlayer::onPlay()");
450 void GenericPlayer::onPause() {
451 SL_LOGD("GenericPlayer::onPause()");
460 void GenericPlayer::onSeek(const sp<AMessage> &msg) {
461 SL_LOGV("GenericPlayer::onSeek");
465 void GenericPlayer::onLoop(const sp<AMessage> &msg) {
466 SL_LOGV("GenericPlayer::onLoop");
470 void GenericPlayer::onVolumeUpdate() {
471 SL_LOGV("GenericPlayer::onVolumeUpdate");
475 void GenericPlayer::onSeekComplete() {
476 SL_LOGD("GenericPlayer::onSeekComplete()");
485 void GenericPlayer::onBufferingUpdate(const sp<AMessage> &msg) {
486 SL_LOGV("GenericPlayer::onBufferingUpdate");
490 void GenericPlayer::onSetBufferingUpdateThreshold(const sp<AMessage> &msg) {
491 SL_LOGV("GenericPlayer::onSetBufferingUpdateThreshold");
500 void GenericPlayer::onAttachAuxEffect(const sp<AMessage> &msg) {
501 SL_LOGV("GenericPlayer::onAttachAuxEffect()");
505 void GenericPlayer::onSetAuxEffectSendLevel(const sp<AMessage> &msg) {
506 SL_LOGV("GenericPlayer::onSetAuxEffectSendLevel()");
510 void GenericPlayer::onSetPlayEvents(const sp<AMessage> &msg) {
511 SL_LOGV("GenericPlayer::onSetPlayEvents()");
524 void GenericPlayer::onOneShot(const sp<AMessage> &msg) {
525 SL_LOGV("GenericPlayer::onOneShot()");
529 SL_LOGV("GenericPlayer::onOneShot() generation %d cancelled; latest is %d",
539 void GenericPlayer::notifyStatus() {
540 SL_LOGV("GenericPlayer::notifyStatus");
545 void GenericPlayer::notifyCacheFill() {
546 SL_LOGV("GenericPlayer::notifyCacheFill");
552 void GenericPlayer::seekComplete() {
553 SL_LOGV("GenericPlayer::seekComplete");
559 void GenericPlayer::bufferingUpdate(int16_t fillLevelPerMille) {
560 SL_LOGV("GenericPlayer::bufferingUpdate");
568 void GenericPlayer::updateOneShot(int positionMs)
570 SL_LOGV("GenericPlayer::updateOneShot");