/frameworks/base/media/libmediaplayerservice/ |
StagefrightPlayer.h | 68 AwesomePlayer *mPlayer;
|
TestPlayerStub.h | 77 // All the methods below wrap the mPlayer instance. 80 return mPlayer->setVideoSurfaceTexture(st); 82 virtual status_t prepare() {return mPlayer->prepare();} 83 virtual status_t prepareAsync() {return mPlayer->prepareAsync();} 84 virtual status_t start() {return mPlayer->start();} 85 virtual status_t stop() {return mPlayer->stop();} 86 virtual status_t pause() {return mPlayer->pause();} 87 virtual bool isPlaying() {return mPlayer->isPlaying();} 88 virtual status_t seekTo(int msec) {return mPlayer->seekTo(msec);} 90 return mPlayer->getCurrentPosition(p) [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/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...] |
MediaPlaybackService.java | 110 private MultiPlayer mPlayer; 175 mPlayer.setVolume(mCurrentVolume); 184 mPlayer.setVolume(mCurrentVolume); 236 mPlayer.setVolume(mCurrentVolume); 324 mPlayer = new MultiPlayer(); 325 mPlayer.setHandler(mMediaplayerHandler); 360 mPlayer.release(); 361 mPlayer = null; 447 if (mPlayer.isInitialized()) { 448 ed.putLong("seekpos", mPlayer.position()) [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));
|
/frameworks/base/core/java/android/hardware/ |
CameraSound.java | 114 private MediaPlayer mPlayer; 148 mPlayer = new MediaPlayer(); 150 mPlayer.setAudioStreamType(mAudioStreamType); 151 mPlayer.setDataSource(soundFilePath); 152 mPlayer.setLooping(false); 153 mPlayer.prepare(); 173 mPlayer.start(); 212 if (mPlayer != null) { 213 mPlayer.release(); 214 mPlayer = null [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
MovieActivity.java | 46 private MoviePlayer mPlayer; 63 mPlayer = new MoviePlayer(rootView, this, intent.getData(), savedInstanceState, 153 mPlayer.onPause(); 159 mPlayer.onResume(); 166 mPlayer.onSaveInstanceState(outState); 171 mPlayer.onDestroy(); 177 return mPlayer.onKeyDown(keyCode, event) 183 return mPlayer.onKeyUp(keyCode, event)
|
/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...] |
/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 | 116 sp<IMediaPlayer> mPlayer; 117 // 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;
|
/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...] |
/packages/apps/Contacts/src/com/android/contacts/voicemail/ |
VoicemailPlaybackPresenter.java | 155 private final MediaPlayerProxy mPlayer; 179 mPlayer = player; 312 mPlayer.reset(); 313 mPlayer.setDataSource(mView.getDataSourceContext(), mVoicemailUri); 314 mPlayer.setAudioStreamType(PLAYBACK_STREAM); 315 mPlayer.prepare(); 344 mPlayer.setOnErrorListener(new MediaPlayerErrorListener()); 345 mPlayer.setOnCompletionListener(new MediaPlayerCompletionListener()); 349 mView.setClipPosition(0, mPlayer.getDuration()); 362 if (!mPlayer.isPlaying()) [all...] |
/frameworks/base/include/media/ |
mediaplayer.h | 213 sp<IMediaPlayer> mPlayer;
|
/frameworks/base/media/libstagefright/timedtext/ |
TimedTextPlayer.cpp | 43 : mPlayer(player), 51 (mPlayer->*mMethod)(); 55 TimedTextPlayer *mPlayer;
|