Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/src/com/android/cts/verifier/tunnelmode/
DMediaCodecFlushActivity.java30 private MediaCodecTunneledPlayer mPlayer; field in MediaCodecFlushActivity
59 mPlayer = new MediaCodecTunneledPlayer(this, mHolder, true, mAudioSessionId); in onCreate()
63 mPlayer.setVideoDataSource(mediaUri, null); in onCreate()
64 mPlayer.setAudioDataSource(mediaUri, null); in onCreate()
69 mPlayer.start(); in playVideo()
70 mPlayer.prepare(); in playVideo()
71 mPlayer.startThread(); in playVideo()
80 mPlayer.pause(); in pauseStep()
89 mPlayer.flush(); in flushStep()
98 mPlayer.start(); in resumeStep()
[all …]
DVolumeLevelChangesActivity.java49 private MediaCodecTunneledPlayer mPlayer; field in VolumeLevelChangesActivity
176 if (mPlayer != null) { in restartVideo()
179 mPlayer = new MediaCodecTunneledPlayer(this, mHolder, shouldUseTunnelMode, mAudioSessionId); in restartVideo()
183 mPlayer.setVideoDataSource(mediaUri, null); in restartVideo()
184 mPlayer.setAudioDataSource(mediaUri, null); in restartVideo()
212 mPlayer.start(); in playVideo()
213 mPlayer.prepare(); in playVideo()
214 mPlayer.setLoopEnabled(true); in playVideo()
215 mPlayer.startThread(); in playVideo()
222 mPlayer.pause(); in stopVideo()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DMediaRandomTest.java56 private MediaPlayer mPlayer; field in MediaRandomTest
76 mPlayer = new MediaPlayer(); in setUp()
91 if (mPlayer != null) { in tearDown()
92 mPlayer.release(); in tearDown()
93 mPlayer = null; in tearDown()
172 mPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), in loadSource()
197 mPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { in testPlayerRandomAction()
200 if (mPlayer == mp && in testPlayerRandomAction()
209 mPlayer.setDisplay(mSurfaceHolder); in testPlayerRandomAction()
210 mPlayer.prepare(); in testPlayerRandomAction()
[all …]
DVolumeShaperTest.java280 mPlayer = createMediaPlayer(offloaded); in MediaPlayerPlayer()
285 mPlayer.start(); in start()
289 mPlayer.pause(); in pause()
293 mPlayer.stop(); in stop()
297 mPlayer.release(); in close()
302 return mPlayer.createVolumeShaper(configuration); in createVolumeShaper()
309 private final MediaPlayer mPlayer; field in VolumeShaperTest.MediaPlayerPlayer
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/duplex/
DDuplexAudioManager.java40 private Player mPlayer; field in DuplexAudioManager
60 return mPlayer; in getPlayer()
103 mPlayer = new PlayerBuilder() in setupStreams()
107 mPlayer.setRouteDevice(mPlayerSelectedDevice); in setupStreams()
108 int errorCode = mPlayer.setupStream( in setupStreams()
129 if (mPlayer != null && (result = mPlayer.startStream()) != StreamBase.OK) { in start()
138 if (mPlayer != null) { in stop()
139 int result1 = mPlayer.stopStream(); in stop()
140 int result2 = mPlayer.teardownStream(); in stop()
155 return mPlayer != null ? mPlayer.getNumBufferFrames() : 0; in getNumPlayerBufferFrames()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/streamquality/
DPlayVideoActivity.java68 private MediaPlayer mPlayer; field in PlayVideoActivity
95 mPlayer = new MediaPlayer(); in playVideo()
96 mPlayer.setDisplay(mHolder); in playVideo()
97 mPlayer.setScreenOnWhilePlaying(true); in playVideo()
98 mPlayer.setOnVideoSizeChangedListener(this); in playVideo()
99 mPlayer.setOnErrorListener(this); in playVideo()
100 mPlayer.setOnPreparedListener(this); in playVideo()
102 mPlayer.setDataSource(mStream.uri); in playVideo()
108 mPlayer.prepareAsync(); in playVideo()
150 if (mPlayer != null) {
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/display/
DModeSwitchingTestActivity.java60 private MediaCodecTunneledPlayer mPlayer; field in ModeSwitchingTestActivity
108 mPlayer = new MediaCodecTunneledPlayer(this, mHolder, true, mAudioSessionId); in onCreate()
111 mPlayer.setVideoDataSource(mediaUri, null); in onCreate()
112 mPlayer.setAudioDataSource(mediaUri, null); in onCreate()
224 mPlayer.start(); in playVideo()
225 mPlayer.prepare(); in playVideo()
226 mPlayer.setLoopEnabled(true); in playVideo()
227 mPlayer.startThread(); in playVideo()
236 if (mPlayer != null) { in onPause()
237 mPlayer.pause(); in onPause()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioOutColdStartLatencyActivity.java53 private Player mPlayer; field in AudioOutColdStartLatencyActivity
122 boolean gotTimestamp = mPlayer.getTimestamp(mPullTimestamp); in startOutTimer()
170 mPlayer = (new PlayerBuilder()) in startAudioTest()
174 mPlayer.setupStream(NUM_CHANNELS, mSampleRate, mNumBufferFrames); in startAudioTest()
185 mPlayer.startStream(); in startAudioTest()
200 mPlayer.stopStream(); in stopAudioTest()