/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/av/media/libmediaplayerservice/ |
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...] |
StagefrightPlayer.cpp | 31 : mPlayer(new AwesomePlayer) { 34 mPlayer->setListener(this); 41 delete mPlayer; 42 mPlayer = NULL; 51 mPlayer->setUID(uid); 58 return mPlayer->setDataSource(url, headers); 65 return mPlayer->setDataSource(dup(fd), offset, length); 69 return mPlayer->setDataSource(source); 76 return mPlayer->setSurfaceTexture(bufferProducer); 80 return mPlayer->prepare() [all...] |
TestPlayerStub.cpp | 65 mPlayer(NULL) { } 164 mPlayer = (*mNewPlayer)(); 165 return mPlayer->setDataSource(mContentUrl, headers); 178 if (mPlayer) { 180 (*mDeletePlayer)(mPlayer); 181 mPlayer = NULL;
|
/frameworks/base/core/java/android/speech/tts/ |
AudioPlaybackQueueItem.java | 33 private MediaPlayer mPlayer; 46 mPlayer = null; 54 mPlayer = MediaPlayer.create(mContext, mUri); 55 if (mPlayer == null) { 61 mPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { 69 mPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { 76 mPlayer.setAudioStreamType(mStreamType); 77 mPlayer.start(); 94 mPlayer.stop(); 98 mPlayer.release() [all...] |
/frameworks/av/libvideoeditor/lvpp/ |
VideoEditorPlayer.cpp | 32 : mPlayer(new PreviewPlayer(renderer)) { 35 mPlayer->setListener(this); 44 delete mPlayer; 45 mPlayer = NULL; 55 return mPlayer->setAudioPlayer(audioPlayer); 67 return mPlayer->setDataSource(url); 80 mPlayer->setSurface(surface); 87 mPlayer->setSurfaceTexture(bufferProducer); 93 return mPlayer->prepare(); 97 return mPlayer->prepareAsync() [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...] |
/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(), 177 mPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { 180 if (mPlayer == mp && 189 mPlayer.setDisplay(mSurfaceHolder); 190 mPlayer.prepare() [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/wilhelm/src/android/ |
android_LocAVPlayer.cpp | 49 mPlayer = mediaPlayerService->create(mPlayerClient /*IMediaPlayerClient*/, 51 if (mPlayer == NULL) { 53 } else if (mPlayer->setDataSource(mDataLocator.uriRef, NULL /*headers*/) != NO_ERROR) { 55 mPlayer.clear(); 59 mPlayer = mediaPlayerService->create(mPlayerClient /*IMediaPlayerClient*/, 61 if (mPlayer == NULL) { 63 } else if (mPlayer->setDataSource(mDataLocator.fdi.fd, mDataLocator.fdi.offset, 66 mPlayer.clear(); 83 if (mPlayer == NULL) { 86 // blocks until mPlayer is prepare [all...] |
android_GenericMediaPlayer.cpp | 246 mPlayer(0), 259 // FIXME can't access mPlayer from outside the looper (no mutex!) so using mPreparedPlayer 271 //mPlayer.clear(); 305 if ((mStateFlags & kFlagPrepared) && (mPlayer != 0)) { 306 mPlayer->setVideoSurfaceTexture(bufferProducer); 329 // blocks until mPlayer is prepared 333 if (!(mStateFlags & (kFlagPrepared | kFlagPreparedUnsuccessfully)) && (mPlayer != 0)) { 336 mPlayer->setVideoSurfaceTexture(mVideoSurfaceTexture); 339 mPlayer->setAudioStreamType(mPlaybackParams.streamType); 341 mPlayer->prepareAsync() [all...] |
/frameworks/av/media/libmedia/ |
mediaplayer.cpp | 80 p = mPlayer; 81 mPlayer.clear(); 121 p = mPlayer; 122 mPlayer = player; 195 if ((mPlayer != NULL) && hasBeenInitialized) { 197 return mPlayer->invoke(request, reply); 207 if (mPlayer == NULL) { 210 return mPlayer->setMetadataFilter(filter); 217 if (mPlayer == NULL) { 220 return mPlayer->getMetadata(update_only, apply_filter, metadata) [all...] |
/frameworks/av/media/libstagefright/timedtext/ |
TimedTextDriver.cpp | 50 mPlayer = new TimedTextPlayer(listener); 51 mLooper->registerHandler(mPlayer); 66 mPlayer->setDataSource(source); 82 mPlayer->start(); 86 mPlayer->resume(); 102 mPlayer->pause(); 126 mPlayer->pause(); 131 mPlayer->start(); 150 mPlayer->setDataSource(NULL); 170 mPlayer->seekToAsync(timeUs) [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(); 151 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...] |
/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...] |
SampleMediaRouteControllerDialog.java | 55 private final Player mPlayer; 68 mPlayer = player; 108 String trackInfo = mPlayer.getDescription(); 109 Bitmap snapshot = mPlayer.getSnapshot(); 110 if (mPlayer.isRemotePlayback() && !trackInfo.isEmpty() && snapshot != null) {
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
NuPlayerDriver.cpp | 52 mPlayer = new NuPlayer; 53 mLooper->registerHandler(mPlayer); 55 mPlayer->setDriver(this); 67 mPlayer->setUID(uid); 82 mPlayer->setDataSourceAsync(url, headers); 100 mPlayer->setDataSourceAsync(fd, offset, length); 118 mPlayer->setDataSourceAsync(source); 146 mPlayer->setVideoSurfaceTextureAsync(bufferProducer); 169 mPlayer->prepareAsync(); 186 mPlayer->prepareAsync() [all...] |
/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/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)
|
/frameworks/base/docs/html/guide/topics/media/ |
audio-capture.jd | 113 private MediaPlayer mPlayer = null; 132 mPlayer = new MediaPlayer(); 134 mPlayer.setDataSource(mFileName); 135 mPlayer.prepare(); 136 mPlayer.start(); 143 mPlayer.release(); 144 mPlayer = null; 246 if (mPlayer != null) { 247 mPlayer.release(); 248 mPlayer = null [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/av/include/media/ |
JetPlayer.h | 100 JetPlayerThread(JetPlayer *player) : mPlayer(player) { 107 JetPlayer *mPlayer; 111 result = mPlayer->render();
|
/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;
|
/external/replicaisland/src/com/replica/replicaisland/ |
GameObjectManager.java | 40 private GameObject mPlayer; 145 if (object == mPlayer) { 146 mPlayer = null; 172 mPlayer = null; 176 mPlayer = player; 180 return mPlayer;
|