Home
last modified time | relevance | path

Searched refs:mPlayer (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/ex/variablespeed/tests/src/com/android/ex/variablespeed/
DMediaPlayerProxyTestCase.java71 private MediaPlayerProxy mPlayer; field in MediaPlayerProxyTestCase
79 mPlayer = createTestMediaPlayer(); in setUp()
88 mPlayer.release(); in tearDown()
89 mPlayer = null; in tearDown()
119 mPlayer.release(); in testReleaseMultipleTimesHasNoEffect()
120 mPlayer.release(); in testReleaseMultipleTimesHasNoEffect()
124 mPlayer.reset(); in testResetOnNewlyCreatedObject()
128 setDataSourceFromContentProvider(mPlayer, "quick_test_recording.mp3", "audio/mp3"); in testSetDataSource()
133 setDataSourceFromContentProvider(mPlayer, "quick_test_recording.mp3", "audio/mp3"); in testSetDataSourceTwice_ShouldFailWithIllegalState()
134 setDataSourceFromContentProvider(mPlayer, "quick_test_recording.mp3", "audio/mp3"); in testSetDataSourceTwice_ShouldFailWithIllegalState()
[all …]
/frameworks/base/media/libmediaplayerservice/
DStagefrightPlayer.cpp31 : mPlayer(new AwesomePlayer) { in StagefrightPlayer()
34 mPlayer->setListener(this); in StagefrightPlayer()
41 delete mPlayer; in ~StagefrightPlayer()
42 mPlayer = NULL; in ~StagefrightPlayer()
51 mPlayer->setUID(uid); in setUID()
58 return mPlayer->setDataSource(url, headers); in setDataSource()
65 return mPlayer->setDataSource(dup(fd), offset, length); in setDataSource()
69 return mPlayer->setDataSource(source); in setDataSource()
75 return mPlayer->setSurface(surface); in setVideoSurface()
82 return mPlayer->setSurfaceTexture(surfaceTexture); in setVideoSurfaceTexture()
[all …]
DTestPlayerStub.h79 return mPlayer->setVideoSurface(s); in setVideoSurface()
83 return mPlayer->setVideoSurfaceTexture(st); in setVideoSurfaceTexture()
85 virtual status_t prepare() {return mPlayer->prepare();} in prepare()
86 virtual status_t prepareAsync() {return mPlayer->prepareAsync();} in prepareAsync()
87 virtual status_t start() {return mPlayer->start();} in start()
88 virtual status_t stop() {return mPlayer->stop();} in stop()
89 virtual status_t pause() {return mPlayer->pause();} in pause()
90 virtual bool isPlaying() {return mPlayer->isPlaying();} in isPlaying()
91 virtual status_t seekTo(int msec) {return mPlayer->seekTo(msec);} in seekTo()
93 return mPlayer->getCurrentPosition(p); in getCurrentPosition()
[all …]
DTestPlayerStub.cpp65 mPlayer(NULL) { } in TestPlayerStub()
164 mPlayer = (*mNewPlayer)(); in setDataSource()
165 return mPlayer->setDataSource(mContentUrl, headers); in setDataSource()
178 if (mPlayer) { in resetInternal()
180 (*mDeletePlayer)(mPlayer); in resetInternal()
181 mPlayer = NULL; in resetInternal()
DStagefrightPlayer.h69 AwesomePlayer *mPlayer;
DMediaPlayerService.cpp346 if (mPlayer != NULL) { in dump()
347 mPlayer->dump(fd, args); in dump()
514 p = mPlayer; in disconnect()
518 mPlayer.clear(); in disconnect()
648 sp<MediaPlayerBase> p = mPlayer; in createPlayer()
710 mPlayer = p; in setDataSource()
758 if (mStatus == NO_ERROR) mPlayer = p; in setDataSource()
781 mPlayer = p; in setDataSource()
DMediaPlayerService.h307 sp<MediaPlayerBase> getPlayer() const { Mutex::Autolock lock(mLock); return mPlayer; } in getPlayer()
325 sp<MediaPlayerBase> mPlayer; variable
/frameworks/base/media/libmedia/
Dmediaplayer.cpp82 p = mPlayer; in disconnect()
83 mPlayer.clear(); in disconnect()
123 p = mPlayer; in attachNewPlayer()
124 mPlayer = player; in attachNewPlayer()
194 if ((mPlayer != NULL) && hasBeenInitialized) { in invoke()
196 return mPlayer->invoke(request, reply); in invoke()
206 if (mPlayer == NULL) { in setMetadataFilter()
209 return mPlayer->setMetadataFilter(filter); in setMetadataFilter()
216 if (mPlayer == NULL) { in getMetadata()
219 return mPlayer->getMetadata(update_only, apply_filter, metadata); in getMetadata()
[all …]
/frameworks/media/libvideoeditor/lvpp/
DVideoEditorPlayer.cpp32 : mPlayer(new PreviewPlayer(renderer)) { in VideoEditorPlayer()
35 mPlayer->setListener(this); in VideoEditorPlayer()
44 delete mPlayer; in ~VideoEditorPlayer()
45 mPlayer = NULL; in ~VideoEditorPlayer()
55 return mPlayer->setAudioPlayer(audioPlayer); in setAudioPlayer()
63 return mPlayer->setDataSource(url, headers); in setDataSource()
76 mPlayer->setSurface(surface); in setVideoSurface()
83 mPlayer->setSurfaceTexture(surfaceTexture); in setVideoSurfaceTexture()
89 return mPlayer->prepare(); in prepare()
93 return mPlayer->prepareAsync(); in prepareAsync()
[all …]
DVideoEditorPlayer.h151 PreviewPlayer *mPlayer;
/frameworks/base/core/java/android/webkit/
DHTML5VideoView.java53 protected MediaPlayer mPlayer; field in HTML5VideoView
82 mPlayer.start(); in start()
89 mPlayer.pause(); in pause()
103 return mPlayer.getDuration(); in getDuration()
111 return mPlayer.getCurrentPosition(); in getCurrentPosition()
118 mPlayer.seekTo(pos); in seekTo()
125 return mPlayer.isPlaying(); in isPlaying()
133 mPlayer.release(); in release()
140 mPlayer.stop(); in stopPlayback()
154 mPlayer = new MediaPlayer(); in init()
[all …]
DHTML5VideoFullScreen.java87 if (mPlayer != null && mMediaController != null
110 mPlayer.release();
137 if (mPlayer != null && mMediaController != null) { in attachMediaController()
147 mPlayer.setDisplay(mSurfaceHolder); in decideDisplayMode()
152 mPlayer.reset(); in prepareForFullScreen()
154 mPlayer.setScreenOnWhilePlaying(true); in prepareForFullScreen()
242 mPlayer.setOnBufferingUpdateListener(mBufferingUpdateListener); in enterFullScreenVideoState()
305 if (mPlayer != null) { in getBufferPercentage()
DHTML5VideoInline.java47 mPlayer.setSurface(surface); in decideDisplayMode()
61 mPlayer.setWakeMode(proxy.getContext(), PowerManager.FULL_WAKE_LOCK); in prepareDataAndDisplayMode()
/frameworks/base/media/libmediaplayerservice/nuplayer/
DNuPlayerDriver.cpp46 mPlayer = new NuPlayer; in NuPlayerDriver()
47 mLooper->registerHandler(mPlayer); in NuPlayerDriver()
49 mPlayer->setDriver(this); in NuPlayerDriver()
61 mPlayer->setUID(uid); in setUID()
70 mPlayer->setDataSource(url, headers); in setDataSource()
84 mPlayer->setDataSource(source); in setDataSource()
92 mPlayer->setVideoSurface(surface); in setVideoSurface()
99 mPlayer->setVideoSurfaceTexture(surfaceTexture); in setVideoSurfaceTexture()
120 mPlayer->start(); in start()
126 mPlayer->seekToAsync(mStartupSeekTimeUs); in start()
[all …]
DNuPlayerDriver.h88 sp<NuPlayer> mPlayer; member
/frameworks/base/core/java/android/speech/tts/
DBlockingMediaPlayer.java41 private MediaPlayer mPlayer; field in BlockingMediaPlayer
103 mPlayer = MediaPlayer.create(mContext, mUri); in startPlaying()
104 if (mPlayer == null) { in startPlaying()
110 mPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { in startPlaying()
118 mPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { in startPlaying()
125 mPlayer.setAudioStreamType(mStreamType); in startPlaying()
126 mPlayer.start(); in startPlaying()
139 mPlayer.stop(); in finish()
143 mPlayer.release(); in finish()
DAudioMessageParams.java21 private final BlockingMediaPlayer mPlayer; field in AudioMessageParams
26 mPlayer = player; in AudioMessageParams()
30 return mPlayer; in getPlayer()
DTextToSpeechService.java645 private final BlockingMediaPlayer mPlayer; field in TextToSpeechService.AudioSpeechItem
650 mPlayer = new BlockingMediaPlayer(TextToSpeechService.this, uri, getStreamType()); in AudioSpeechItem()
660 mToken = new AudioMessageParams(this, getCallingApp(), mPlayer); in playImpl()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DMediaPlayerInvokeTest.java37 private MediaPlayer mPlayer; field in MediaPlayerInvokeTest
48 mPlayer = new MediaPlayer(); in setUp()
53 mPlayer.release(); in tearDown()
61 mPlayer.setDataSource("test:invoke_mock_media_player.so?url=ping"); in testPing()
63 Parcel request = mPlayer.newRequest(); in testPing()
68 assertEquals(0, mPlayer.invoke(request, reply)); in testPing()
/frameworks/base/core/java/android/widget/
DMediaController.java71 private MediaPlayerControl mPlayer; field in MediaController
198 mPlayer = player; in setMediaPlayer()
305 if (mPauseButton != null && !mPlayer.canPause()) { in disableUnsupportedButtons()
308 if (mRewButton != null && !mPlayer.canSeekBackward()) { in disableUnsupportedButtons()
311 if (mFfwdButton != null && !mPlayer.canSeekForward()) { in disableUnsupportedButtons()
385 if (!mDragging && mShowing && mPlayer.isPlaying()) {
410 if (mPlayer == null || mDragging) { in setProgress()
413 int position = mPlayer.getCurrentPosition(); in setProgress()
414 int duration = mPlayer.getDuration(); in setProgress()
421 int percent = mPlayer.getBufferPercentage(); in setProgress()
[all …]
/frameworks/base/media/java/android/media/
DAsyncPlayer.java66 if (mPlayer != null) { in startSound()
67 mPlayer.release(); in startSound()
69 mPlayer = player; in startSound()
101 if (mPlayer != null) { in run()
106 mPlayer.stop(); in run()
107 mPlayer.release(); in run()
108 mPlayer = null; in run()
132 private MediaPlayer mPlayer; field in AsyncPlayer
/frameworks/base/services/java/com/android/server/
DNotificationPlayer.java103 if (mPlayer != null) { in run()
104 mPlayer.release(); in run()
106 mPlayer = player; in run()
174 if (mPlayer != null) { in run()
179 mPlayer.stop(); in run()
180 mPlayer.release(); in run()
181 mPlayer = null; in run()
230 private MediaPlayer mPlayer; field in NotificationPlayer
/frameworks/base/docs/html/guide/topics/media/
Daudio-capture.jd114 private MediaPlayer mPlayer = null;
133 mPlayer = new MediaPlayer();
135 mPlayer.setDataSource(mFileName);
136 mPlayer.prepare();
137 mPlayer.start();
144 mPlayer.release();
145 mPlayer = null;
247 if (mPlayer != null) {
248 mPlayer.release();
249 mPlayer = null;
/frameworks/base/media/libstagefright/timedtext/
DTimedTextPlayer.cpp43 : mPlayer(player), in TimedTextEvent()
51 (mPlayer->*mMethod)(); in fire()
55 TimedTextPlayer *mPlayer; member
/frameworks/base/include/media/
Dmediaplayer.h214 sp<IMediaPlayer> mPlayer; variable

12