Home | History | Annotate | Download | only in libmediaplayer2

Lines Matching refs:MediaPlayer2

28 #include <mediaplayer2/MediaPlayer2AudioOutput.h>
29 #include <mediaplayer2/mediaplayer2.h>
54 proxyListener(const wp<MediaPlayer2> &player)
61 sp<MediaPlayer2> player = mPlayer.promote();
68 wp<MediaPlayer2> mPlayer;
72 SortedVector<wp<MediaPlayer2> > *sPlayers;
76 sPlayers = new SortedVector<wp<MediaPlayer2> >();
80 void addPlayer(const wp<MediaPlayer2>& player) {
86 void removePlayer(const wp<MediaPlayer2>& player) {
100 SortedVector< sp<MediaPlayer2> > players; //to serialise the mutex unlock & client destruction.
106 sp<MediaPlayer2> p = (*sPlayers)[i].promote();
213 sp<MediaPlayer2> MediaPlayer2::Create(int32_t sessionId, jobject context) {
214 sp<MediaPlayer2> player = new MediaPlayer2(sessionId, context);
227 status_t MediaPlayer2::DumpAll(int fd, const Vector<String16>& args) {
231 MediaPlayer2::MediaPlayer2(int32_t sessionId, jobject context) {
256 MediaPlayer2::~MediaPlayer2() {
262 bool MediaPlayer2::init() {
263 // TODO: after merge with NuPlayer2Driver, MediaPlayer2 will have its own
268 void MediaPlayer2::disconnect() {
288 void MediaPlayer2::clear_l() {
296 status_t MediaPlayer2::setListener(const sp<MediaPlayer2Listener>& listener) {
303 status_t MediaPlayer2::getSrcId(int64_t *srcId) {
313 status_t MediaPlayer2::setDataSource(const sp<DataSourceDesc> &dsd) {
370 status_t MediaPlayer2::prepareNextDataSource(const sp<DataSourceDesc> &dsd) {
384 status_t MediaPlayer2::playNextDataSource(int64_t srcId) {
397 status_t MediaPlayer2::invoke(const PlayerMessage &request, PlayerMessage *reply) {
409 void MediaPlayer2::disconnectNativeWindow_l() {
422 status_t MediaPlayer2::setVideoSurfaceTexture(const sp<ANativeWindowWrapper>& nww) {
471 status_t MediaPlayer2::getBufferingSettings(BufferingSettings* buffering /* nonnull */) {
488 status_t MediaPlayer2::setBufferingSettings(const BufferingSettings& buffering) {
498 status_t MediaPlayer2::setAudioAttributes_l(const jobject attributes) {
505 status_t MediaPlayer2::prepareAsync() {
522 status_t MediaPlayer2::start() {
562 status_t MediaPlayer2::pause() {
581 bool MediaPlayer2::isPlaying() {
599 mediaplayer2_states MediaPlayer2::getState() {
619 status_t MediaPlayer2::setPlaybackSettings(const AudioPlaybackRate& rate) {
636 status_t MediaPlayer2::getPlaybackSettings(AudioPlaybackRate* rate /* nonnull */) {
651 status_t MediaPlayer2::setSyncSettings(const AVSyncSettings& sync, float videoFpsHint) {
659 status_t MediaPlayer2::getSyncSettings(
676 status_t MediaPlayer2::getVideoWidth(int *w) {
686 status_t MediaPlayer2::getVideoHeight(int *h) {
696 status_t MediaPlayer2::getCurrentPosition(int64_t *msec) {
716 status_t MediaPlayer2::getDuration(int64_t srcId, int64_t *msec) {
750 status_t MediaPlayer2::seekTo_l(int64_t msec, MediaPlayer2SeekMode mode) {
790 status_t MediaPlayer2::seekTo(int64_t msec, MediaPlayer2SeekMode mode) {
799 status_t MediaPlayer2::notifyAt(int64_t mediaTimeUs) {
808 status_t MediaPlayer2::reset_l() {
832 status_t MediaPlayer2::reset() {
842 status_t MediaPlayer2::setAudioStreamType(audio_stream_type_t type) {
843 ALOGV("MediaPlayer2::setAudioStreamType");
857 status_t MediaPlayer2::getAudioStreamType(audio_stream_type_t *type) {
864 status_t MediaPlayer2::setLooping(int loop) {
865 ALOGV("MediaPlayer2::setLooping");
874 bool MediaPlayer2::isLooping() {
884 status_t MediaPlayer2::setVolume(float volume) {
885 ALOGV("MediaPlayer2::setVolume(%f)", volume);
894 status_t MediaPlayer2::setAudioSessionId(int32_t sessionId) {
895 ALOGV("MediaPlayer2::setAudioSessionId(%d)", sessionId);
910 int32_t MediaPlayer2::getAudioSessionId() {
918 status_t MediaPlayer2::setAuxEffectSendLevel(float level) {
919 ALOGV("MediaPlayer2::setAuxEffectSendLevel(%f)", level);
928 status_t MediaPlayer2::attachAuxEffect(int effectId) {
929 ALOGV("MediaPlayer2::attachAuxEffect(%d)", effectId);
942 status_t MediaPlayer2::checkState_l() {
952 status_t MediaPlayer2::setAudioAttributes(const jobject attributes) {
953 ALOGV("MediaPlayer2::setAudioAttributes");
964 jobject MediaPlayer2::getAudioAttributes() {
965 ALOGV("MediaPlayer2::getAudioAttributes)");
970 status_t MediaPlayer2::getParameter(int key, Parcel *reply) {
971 ALOGV("MediaPlayer2::getParameter(%d)", key);
986 status_t MediaPlayer2::getMetrics(char **buffer, size_t *length) {
987 ALOGD("MediaPlayer2::getMetrics()");
1001 void MediaPlayer2::notify(int64_t srcId, int msg, int ext1, int ext2, const PlayerMessage *obj) {
1033 ALOGV("MediaPlayer2::notify() prepared, srcId=%lld", (long long)srcId);
1039 ALOGV("MediaPlayer2::notify() MEDIA2_DRM_INFO(%lld, %d, %d, %d, %p)",
1123 status_t MediaPlayer2::prepareDrm(
1159 status_t MediaPlayer2::releaseDrm(int64_t srcId) {
1187 status_t MediaPlayer2::setPreferredDevice(jobject device) {
1196 jobject MediaPlayer2::getRoutedDevice() {
1205 status_t MediaPlayer2::addAudioDeviceCallback(jobject routingDelegate) {
1214 status_t MediaPlayer2::removeAudioDeviceCallback(jobject listener) {
1223 status_t MediaPlayer2::dump(int fd, const Vector<String16>& args) {
1227 result.append(" MediaPlayer2\n");