Lines Matching defs:GenericPlayer
28 GenericPlayer::GenericPlayer(const AudioPlayback_Parameters* params) :
47 SL_LOGD("GenericPlayer::GenericPlayer()");
57 GenericPlayer::~GenericPlayer() {
58 SL_LOGV("GenericPlayer::~GenericPlayer()");
64 void GenericPlayer::init(const notif_cbf_t cbf, void* notifUser) {
65 SL_LOGD("GenericPlayer::init()");
78 void GenericPlayer::preDestroy() {
79 SL_LOGD("GenericPlayer::preDestroy()");
91 void GenericPlayer::setDataSource(const char *uri) {
92 SL_LOGV("GenericPlayer::setDataSource(uri=%s)", uri);
101 void GenericPlayer::setDataSource(int fd, int64_t offset, int64_t length, bool closeAfterUse) {
102 SL_LOGV("GenericPlayer::setDataSource(fd=%d, offset=%lld, length=%lld, closeAfterUse=%s)", fd,
111 SL_LOGE("GenericPlayer::setDataSource: fstat(%d) failed: %d, %s", fd, ret, strerror(errno));
135 void GenericPlayer::prepare() {
136 SL_LOGD("GenericPlayer::prepare()");
145 void GenericPlayer::play() {
146 SL_LOGD("GenericPlayer::play()");
152 void GenericPlayer::pause() {
153 SL_LOGD("GenericPlayer::pause()");
159 void GenericPlayer::stop() {
160 SL_LOGD("GenericPlayer::stop()");
168 void GenericPlayer::seek(int64_t timeMsec) {
169 SL_LOGV("GenericPlayer::seek %lld", timeMsec);
171 SL_LOGE("GenericPlayer::seek error, can't seek to negative time %" PRId64 "ms", timeMsec);
180 void GenericPlayer::loop(bool loop) {
181 SL_LOGV("GenericPlayer::loop %s", loop ? "true" : "false");
188 void GenericPlayer::setBufferingUpdateThreshold(int16_t thresholdPercent) {
189 SL_LOGV("GenericPlayer::setBufferingUpdateThreshold %d", thresholdPercent);
197 void GenericPlayer::getDurationMsec(int* msec) {
203 void GenericPlayer::setVolume(float leftVol, float rightVol)
216 void GenericPlayer::attachAuxEffect(int32_t effectId)
218 SL_LOGV("GenericPlayer::attachAuxEffect(id=%d)", effectId);
226 void GenericPlayer::setAuxEffectSendLevel(float level)
228 SL_LOGV("GenericPlayer::setAuxEffectSendLevel(level=%g)", level);
236 void GenericPlayer::setPlaybackRate(int32_t ratePermille) {
237 SL_LOGV("GenericPlayer::setPlaybackRate(ratePermille=%d)", ratePermille);
246 void GenericPlayer::setPlayEvents(int32_t eventFlags, int32_t markerPositionMs,
273 void GenericPlayer::resetDataLocator() {
274 SL_LOGV("GenericPlayer::resetDataLocator()");
285 void GenericPlayer::notify(const char* event, int data, bool async) {
286 SL_LOGV("GenericPlayer::notify(event=%s, data=%d, async=%s)", event, data,
298 void GenericPlayer::notify(const char* event, int data1, int data2, bool async) {
299 SL_LOGV("GenericPlayer::notify(event=%s, data1=%d, data2=%d, async=%s)", event, data1, data2,
313 void GenericPlayer::onMessageReceived(const sp<AMessage> &msg) {
314 SL_LOGV("GenericPlayer::onMessageReceived()");
387 SL_LOGE("GenericPlayer::onMessageReceived unknown message %d", msg->what());
397 void GenericPlayer::onPrepare() {
398 SL_LOGV("GenericPlayer::onPrepare()");
404 SL_LOGD("GenericPlayer::onPrepare() done, mStateFlags=0x%x", mStateFlags);
408 void GenericPlayer::onNotify(const sp<AMessage> &msg) {
409 SL_LOGV("GenericPlayer::onNotify()");
424 SL_LOGV("GenericPlayer notifying %s = %d", PLAYEREVENT_PREFETCHSTATUSCHANGE, val1);
428 SL_LOGV("GenericPlayer notifying %s = %d", PLAYEREVENT_PREFETCHFILLLEVELUPDATE, val1);
431 SL_LOGV("GenericPlayer notifying %s = %d", PLAYEREVENT_ENDOFSTREAM, val1);
434 SL_LOGV("GenericPlayer notifying %s = %d", PLAYEREVENT_PREPARED, val1);
437 SL_LOGV("GenericPlayer notifying %s = %d", PLAYEREVENT_CHANNEL_COUNT, val1);
440 SL_LOGV("GenericPlayer notifying %s = %d, %d", PLAYEREVENT_VIDEO_SIZE_UPDATE, val1, val2);
443 SL_LOGV("GenericPlayer notifying %s = %d", PLAYEREVENT_PLAY, val1);
446 SL_LOGV("GenericPlayer notifying %s = %d", PLAYEREVENT_ERRORAFTERPREPARE, val1);
449 SL_LOGV("GenericPlayer notifying unknown");
454 void GenericPlayer::onPlay() {
455 SL_LOGD("GenericPlayer::onPlay()");
464 void GenericPlayer::onPause() {
465 SL_LOGD("GenericPlayer::onPause()");
474 void GenericPlayer::onSeek(const sp<AMessage> &msg) {
475 SL_LOGV("GenericPlayer::onSeek");
479 void GenericPlayer::onLoop(const sp<AMessage> &msg) {
480 SL_LOGV("GenericPlayer::onLoop");
484 void GenericPlayer::onVolumeUpdate() {
485 SL_LOGV("GenericPlayer::onVolumeUpdate");
489 void GenericPlayer::onSeekComplete() {
490 SL_LOGD("GenericPlayer::onSeekComplete()");
499 void GenericPlayer::onBufferingUpdate(const sp<AMessage> &msg) {
500 SL_LOGV("GenericPlayer::onBufferingUpdate");
504 void GenericPlayer::onSetBufferingUpdateThreshold(const sp<AMessage> &msg) {
505 SL_LOGV("GenericPlayer::onSetBufferingUpdateThreshold");
514 void GenericPlayer::onAttachAuxEffect(const sp<AMessage> &msg) {
515 SL_LOGV("GenericPlayer::onAttachAuxEffect()");
519 void GenericPlayer::onSetAuxEffectSendLevel(const sp<AMessage> &msg) {
520 GenericPlayer::onSetAuxEffectSendLevel()");
524 void GenericPlayer::onSetPlayEvents(const sp<AMessage> &msg) {
525 SL_LOGV("GenericPlayer::onSetPlayEvents()");
538 void GenericPlayer::onOneShot(const sp<AMessage> &msg) {
539 SL_LOGV("GenericPlayer::onOneShot()");
543 SL_LOGV("GenericPlayer::onOneShot() generation %d cancelled; latest is %d",
553 void GenericPlayer::notifyStatus() {
554 SL_LOGV("GenericPlayer::notifyStatus");
559 void GenericPlayer::notifyCacheFill() {
560 SL_LOGV("GenericPlayer::notifyCacheFill");
566 void GenericPlayer::seekComplete() {
567 SL_LOGV("GenericPlayer::seekComplete");
573 void GenericPlayer::bufferingUpdate(int16_t fillLevelPerMille) {
574 SL_LOGV("GenericPlayer::bufferingUpdate");
582 void GenericPlayer::updateOneShot(int positionMs)
584 SL_LOGV("GenericPlayer::updateOneShot");