/frameworks/base/media/libmediaplayerservice/ |
StagefrightPlayer.h | 69 AwesomePlayer *mPlayer;
|
TestPlayerStub.h | 77 // All the methods below wrap the mPlayer instance. 79 return mPlayer->setVideoSurface(s); 83 return mPlayer->setVideoSurfaceTexture(st); 85 virtual status_t prepare() {return mPlayer->prepare();} 86 virtual status_t prepareAsync() {return mPlayer->prepareAsync();} 87 virtual status_t start() {return mPlayer->start();} 88 virtual status_t stop() {return mPlayer->stop();} 89 virtual status_t pause() {return mPlayer->pause();} 90 virtual bool isPlaying() {return mPlayer->isPlaying();} 91 virtual status_t seekTo(int msec) {return mPlayer->seekTo(msec); [all...] |
/frameworks/base/core/java/android/speech/tts/ |
BlockingMediaPlayer.java | 41 private MediaPlayer mPlayer; 103 mPlayer = MediaPlayer.create(mContext, mUri); 104 if (mPlayer == null) { 110 mPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { 118 mPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { 125 mPlayer.setAudioStreamType(mStreamType); 126 mPlayer.start(); 139 mPlayer.stop(); 143 mPlayer.release();
|
AudioMessageParams.java | 21 private final BlockingMediaPlayer mPlayer; 26 mPlayer = player; 30 return mPlayer;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/streamquality/ |
PlayVideoActivity.java | 68 private MediaPlayer mPlayer; 97 mPlayer = new MediaPlayer(); 98 mPlayer.setDisplay(mHolder); 99 mPlayer.setScreenOnWhilePlaying(true); 100 mPlayer.setOnVideoSizeChangedListener(this); 101 mPlayer.setOnErrorListener(this); 102 mPlayer.setOnPreparedListener(this); 104 mPlayer.setDataSource(mStream.uri); 110 mPlayer.prepareAsync(); 153 if (mPlayer != null) [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...] |
/packages/apps/Camera/src/com/android/camera/ |
SoundPlayer.java | 33 private MediaPlayer mPlayer; 43 if (mPlayer == null) { 50 mPlayer = player; 66 mPlayer.start(); 117 if (mPlayer != null) { 118 mPlayer.release(); 119 mPlayer = null;
|
/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...] |
/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 assertEquals(0, mPlayer.invoke(request, reply));
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
MovieActivity.java | 42 private MoviePlayer mPlayer; 58 mPlayer = new MoviePlayer(rootView, this, intent.getData(), savedInstanceState, 130 mPlayer.onPause(); 136 mPlayer.onResume(); 143 mPlayer.onSaveInstanceState(outState); 148 mPlayer.onDestroy();
|
/frameworks/base/core/java/android/webkit/ |
HTML5VideoView.java | 53 protected MediaPlayer mPlayer; 82 mPlayer.start(); 89 mPlayer.pause(); 103 return mPlayer.getDuration(); 111 return mPlayer.getCurrentPosition(); 118 mPlayer.seekTo(pos); 125 return mPlayer.isPlaying(); 133 mPlayer.release(); 140 mPlayer.stop(); 154 mPlayer = new MediaPlayer() [all...] |
HTML5VideoFullScreen.java | 87 if (mPlayer != null && mMediaController != null 110 mPlayer.release(); 137 if (mPlayer != null && mMediaController != null) { 147 mPlayer.setDisplay(mSurfaceHolder); 152 mPlayer.reset(); 154 mPlayer.setScreenOnWhilePlaying(true); 242 mPlayer.setOnBufferingUpdateListener(mBufferingUpdateListener); 305 if (mPlayer != null) {
|
/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/base/media/libmediaplayerservice/nuplayer/ |
NuPlayerDriver.h | 88 sp<NuPlayer> mPlayer;
|
/system/media/wilhelm/src/android/ |
android_StreamPlayer.h | 74 const wp<StreamPlayer> mPlayer;
|
android_GenericMediaPlayer.h | 99 sp<IMediaPlayer> mPlayer; 100 // Receives Android MediaPlayer events from mPlayer
|
/frameworks/base/media/java/android/media/ |
AsyncPlayer.java | 66 if (mPlayer != null) { 67 mPlayer.release(); 69 mPlayer = player; 101 if (mPlayer != null) { 106 mPlayer.stop(); 107 mPlayer.release(); 108 mPlayer = null; 132 private MediaPlayer mPlayer;
|
/packages/apps/Contacts/src/com/android/contacts/voicemail/ |
VoicemailPlaybackPresenter.java | 155 private final MediaPlayerProxy mPlayer; 178 mPlayer = player; 311 mPlayer.reset(); 312 mPlayer.setDataSource(mView.getDataSourceContext(), mVoicemailUri); 313 mPlayer.setAudioStreamType(PLAYBACK_STREAM); 314 mPlayer.prepare(); 343 mPlayer.setOnErrorListener(new MediaPlayerErrorListener()); 344 mPlayer.setOnCompletionListener(new MediaPlayerCompletionListener()); 348 mView.setClipPosition(0, mPlayer.getDuration()); 361 if (!mPlayer.isPlaying()) [all...] |
/frameworks/base/services/java/com/android/server/ |
NotificationPlayer.java | 103 if (mPlayer != null) { 104 mPlayer.release(); 106 mPlayer = player; 174 if (mPlayer != null) { 179 mPlayer.stop(); 180 mPlayer.release(); 181 mPlayer = null; 230 private MediaPlayer mPlayer;
|
/packages/apps/Mms/src/com/android/mms/ui/ |
SlideshowActivity.java | 322 private final SmilPlayer mPlayer; 335 mPlayer = player; 344 return mPlayer.getCurrentPosition(); 348 return mPlayer.getDuration(); 356 mPlayer.pause(); 365 mPlayer.start();
|
/frameworks/media/libvideoeditor/lvpp/ |
VideoEditorPlayer.h | 151 PreviewPlayer *mPlayer;
|
/frameworks/base/core/java/android/widget/ |
MediaController.java | 71 private MediaPlayerControl mPlayer; 198 mPlayer = player; 305 if (mPauseButton != null && !mPlayer.canPause()) { 308 if (mRewButton != null && !mPlayer.canSeekBackward()) { 311 if (mFfwdButton != null && !mPlayer.canSeekForward()) { 385 if (!mDragging && mShowing && mPlayer.isPlaying()) { 410 if (mPlayer == null || mDragging) { 413 int position = mPlayer.getCurrentPosition(); 414 int duration = mPlayer.getDuration(); 421 int percent = mPlayer.getBufferPercentage() [all...] |
/frameworks/base/include/media/ |
mediaplayer.h | 214 sp<IMediaPlayer> mPlayer;
|
/frameworks/base/media/libstagefright/timedtext/ |
TimedTextPlayer.cpp | 43 : mPlayer(player), 51 (mPlayer->*mMethod)(); 55 TimedTextPlayer *mPlayer;
|