/frameworks/av/media/libmediaplayerservice/ |
StagefrightPlayer.h | 70 AwesomePlayer *mPlayer;
|
TestPlayerStub.h | 79 // All the methods below wrap the mPlayer instance. 82 return mPlayer->setVideoSurfaceTexture(st); 84 virtual status_t prepare() {return mPlayer->prepare();} 85 virtual status_t prepareAsync() {return mPlayer->prepareAsync();} 86 virtual status_t start() {return mPlayer->start();} 87 virtual status_t stop() {return mPlayer->stop();} 88 virtual status_t pause() {return mPlayer->pause();} 89 virtual bool isPlaying() {return mPlayer->isPlaying();} 90 virtual status_t seekTo(int msec) {return mPlayer->seekTo(msec);} 92 return mPlayer->getCurrentPosition(p) [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
MediaRandomTest.java | 53 private MediaPlayer mPlayer; 75 mPlayer = new MediaPlayer(); 90 if (mPlayer != null) { 91 mPlayer.release(); 92 mPlayer = null; 167 mPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), 182 mPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { 185 if (mPlayer == mp && 194 mPlayer.setDisplay(mSurfaceHolder); 195 mPlayer.prepare() [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/streamquality/ |
PlayVideoActivity.java | 68 private MediaPlayer mPlayer; 95 mPlayer = new MediaPlayer(); 96 mPlayer.setDisplay(mHolder); 97 mPlayer.setScreenOnWhilePlaying(true); 98 mPlayer.setOnVideoSizeChangedListener(this); 99 mPlayer.setOnErrorListener(this); 100 mPlayer.setOnPreparedListener(this); 102 mPlayer.setDataSource(mStream.uri); 108 mPlayer.prepareAsync(); 150 if (mPlayer != null) [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
MediaPlayerInvokeTest.java | 37 private MediaPlayer mPlayer; 48 mPlayer = new MediaPlayer(); 53 mPlayer.release(); 61 mPlayer.setDataSource("test:invoke_mock_media_player.so?url=ping"); 63 Parcel request = mPlayer.newRequest(); 68 mPlayer.invoke(request, reply);
|
/frameworks/base/core/java/android/speech/tts/ |
AudioPlaybackQueueItem.java | 36 private MediaPlayer mPlayer; 49 mPlayer = null; 59 mPlayer = MediaPlayer.create( 62 if (mPlayer == null) { 68 mPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { 76 mPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { 84 setupVolume(mPlayer, mAudioParams.mVolume, mAudioParams.mPan); 85 mPlayer.start(); 119 mPlayer.stop(); 123 mPlayer.release() [all...] |
/developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
SessionManager.java | 47 private Player mPlayer; 70 return mPlayer.getStatistics(); 86 mPlayer.updateStatistics(); 91 } else if (mPlayer.isQueuingSupported()) { 97 mPlayer.getStatus(item, (i == mPlaylist.size() - 1) /* update */); 102 mPlayer.getStatus(getCurrentItem(), true /* update */); 125 if (mPlayer.isQueuingSupported()) { 126 mPlayer.enqueue(item); 153 mPlayer.seek(item); 164 if (mPlayer.isRemotePlayback()) [all...] |
/developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
SessionManager.java | 47 private Player mPlayer; 70 return mPlayer.getStatistics(); 86 mPlayer.updateStatistics(); 91 } else if (mPlayer.isQueuingSupported()) { 97 mPlayer.getStatus(item, (i == mPlaylist.size() - 1) /* update */); 102 mPlayer.getStatus(getCurrentItem(), true /* update */); 125 if (mPlayer.isQueuingSupported()) { 126 mPlayer.enqueue(item); 153 mPlayer.seek(item); 164 if (mPlayer.isRemotePlayback()) [all...] |
/development/samples/Support7Demos/src/com/example/android/supportv7/media/ |
SessionManager.java | 45 private Player mPlayer; 82 mPlayer.updateTrackInfo(); 87 } else if (mPlayer.isQueuingSupported()) { 93 mPlayer.getStatus(item, (i == mPlaylist.size() - 1) /* update */); 98 mPlayer.getStatus(getCurrentItem(), true /* update */); 121 if (mPlayer.isQueuingSupported()) { 122 mPlayer.enqueue(item); 149 mPlayer.seek(item); 160 if (mPlayer.isRemotePlayback()) { 168 mPlayer.getStatus(item, false) [all...] |
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/ |
SessionManager.java | 47 private Player mPlayer; 70 return mPlayer.getStatistics(); 86 mPlayer.updateStatistics(); 91 } else if (mPlayer.isQueuingSupported()) { 97 mPlayer.getStatus(item, (i == mPlaylist.size() - 1) /* update */); 102 mPlayer.getStatus(getCurrentItem(), true /* update */); 125 if (mPlayer.isQueuingSupported()) { 126 mPlayer.enqueue(item); 153 mPlayer.seek(item); 164 if (mPlayer.isRemotePlayback()) [all...] |
/packages/apps/SoundRecorder/src/com/android/soundrecorder/ |
Recorder.java | 59 MediaPlayer mPlayer = null; 214 mPlayer = new MediaPlayer(); 216 mPlayer.setDataSource(mSampleFile.getAbsolutePath()); 217 mPlayer.setOnCompletionListener(this); 218 mPlayer.setOnErrorListener(this); 219 mPlayer.prepare(); 220 mPlayer.start(); 223 mPlayer = null; 227 mPlayer = null; 236 if (mPlayer == null) // we were not in playbac [all...] |
/frameworks/ex/variablespeed/tests/src/com/android/ex/variablespeed/ |
MediaPlayerProxyTestCase.java | 71 private MediaPlayerProxy mPlayer; 79 mPlayer = createTestMediaPlayer(); 88 mPlayer.release(); 89 mPlayer = null; 119 mPlayer.release(); 120 mPlayer.release(); 124 mPlayer.reset(); 128 setDataSourceFromContentProvider(mPlayer, "quick_test_recording.mp3", "audio/mp3"); 133 setDataSourceFromContentProvider(mPlayer, "quick_test_recording.mp3", "audio/mp3"); 134 setDataSourceFromContentProvider(mPlayer, "quick_test_recording.mp3", "audio/mp3") [all...] |
/frameworks/base/tests/OneMedia/src/com/android/onemedia/ |
OnePlayerActivity.java | 49 protected PlayerController mPlayer; 68 mPlayer = new PlayerController(this, OnePlayerService.getServiceIntent(this)); 99 mPlayer.onResume(); 100 mPlayer.setListener(mListener); 105 mPlayer.setListener(null); 106 mPlayer.onPause(); 130 mPlayer.setArt(mAlbumArtBitmap); 149 mPlayer.play(); 151 mPlayer.pause(); 156 mPlayer.setContent(mContentText.getText().toString()) [all...] |
/packages/apps/Music/src/com/android/music/ |
AudioPreview.java | 59 private PreviewPlayer mPlayer; 108 mPlayer = new PreviewPlayer(); 109 mPlayer.setActivity(this); 111 mPlayer.setDataSourceAndPrepare(mUri); 123 mPlayer = player; 124 mPlayer.setActivity(this); 125 if (mPlayer.isPrepared()) { 192 if (mPlayer.isPrepared()) { 200 PreviewPlayer player = mPlayer; 201 mPlayer = null [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
MovieActivity.java | 60 private MoviePlayer mPlayer; 91 mPlayer = new MoviePlayer(rootView, this, intent.getData(), savedInstanceState, 230 mPlayer.onPause(); 236 mPlayer.onResume(); 243 mPlayer.onSaveInstanceState(outState); 248 mPlayer.onDestroy(); 254 return mPlayer.onKeyDown(keyCode, event) 260 return mPlayer.onKeyUp(keyCode, event)
|
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/ |
MusicService.java | 77 MediaPlayer mPlayer = null; 160 if (mPlayer == null) { 161 mPlayer = new MediaPlayer(); 168 mPlayer.setWakeMode(getApplicationContext(), PowerManager.PARTIAL_WAKE_LOCK); 172 mPlayer.setOnPreparedListener(this); 173 mPlayer.setOnCompletionListener(this); 174 mPlayer.setOnErrorListener(this); 177 mPlayer.reset(); 276 mPlayer.pause(); 290 mPlayer.seekTo(0) [all...] |
/frameworks/av/include/media/stagefright/timedtext/ |
TimedTextDriver.h | 81 sp<TimedTextPlayer> mPlayer;
|
/frameworks/wilhelm/src/android/ |
android_StreamPlayer.h | 74 const wp<StreamPlayer> mPlayer;
|
android_GenericMediaPlayer.h | 117 sp<IMediaPlayer> mPlayer; 118 // Receives Android MediaPlayer events from mPlayer
|
/frameworks/base/media/java/android/media/ |
AsyncPlayer.java | 64 if (mPlayer != null) { 65 mPlayer.release(); 67 mPlayer = player; 99 if (mPlayer != null) { 104 mPlayer.stop(); 105 mPlayer.release(); 106 mPlayer = null; 130 private MediaPlayer mPlayer;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
NotificationPlayer.java | 116 if (mPlayer != null) { 117 mPlayer.release(); 119 mPlayer = player; 186 if (mPlayer != null) { 191 mPlayer.stop(); 192 mPlayer.release(); 193 mPlayer = null; 252 private MediaPlayer mPlayer;
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
NotificationPlayer.java | 107 if (mPlayer != null) { 108 mPlayer.release(); 110 mPlayer = player; 179 if (mPlayer != null) { 184 mPlayer.stop(); 185 mPlayer.release(); 186 mPlayer = null; 236 private MediaPlayer mPlayer;
|
/packages/apps/Dialer/src/com/android/dialer/voicemail/ |
VoicemailPlaybackPresenter.java | 154 private final MediaPlayerProxy mPlayer; 178 mPlayer = player; 311 mPlayer.reset(); 312 mPlayer.setDataSource(mView.getDataSourceContext(), mVoicemailUri); 313 mPlayer.setAudioStreamType(PLAYBACK_STREAM); 314 mPlayer.prepare(); 315 mDuration.set(mPlayer.getDuration()); 344 mPlayer.setOnErrorListener(new MediaPlayerErrorListener()); 345 mPlayer.setOnCompletionListener(new MediaPlayerCompletionListener()); 362 if (!mPlayer.isPlaying()) [all...] |
/packages/apps/Mms/src/com/android/mms/ui/ |
SlideshowActivity.java | 339 private final SmilPlayer mPlayer; 352 mPlayer = player; 361 return mPlayer.getCurrentPosition(); 365 return mPlayer.getDuration(); 373 mPlayer.pause(); 382 mPlayer.start();
|
/frameworks/av/include/media/ |
JetPlayer.h | 100 JetPlayerThread(JetPlayer *player) : mPlayer(player) { 107 JetPlayer *mPlayer; 111 result = mPlayer->render();
|