Home
last modified time | relevance | path

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

/cts/tests/tests/media/player/src/android/media/player/cts/
DMediaPlayerRandomTest.java63 private MediaPlayer mPlayer; field in MediaPlayerRandomTest
81 mPlayer = new MediaPlayer(); in setUp()
93 if (mPlayer != null) { in tearDown()
94 mPlayer.release(); in tearDown()
95 mPlayer = null; in tearDown()
107 mPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), in loadSource()
141 mPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { in testPlayerRandomAction()
144 if (mPlayer == mp && in testPlayerRandomAction()
153 mPlayer.setDisplay(mSurfaceHolder); in testPlayerRandomAction()
154 mPlayer.prepare(); in testPlayerRandomAction()
[all …]
/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.prepare(); in playVideo()
70 mPlayer.startCodec(); in playVideo()
71 mPlayer.play(); in playVideo()
80 mPlayer.pause(); in pauseStep()
89 mPlayer.flush(); in flushStep()
98 mPlayer.resume(); 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.prepare(); in playVideo()
213 mPlayer.setLoopEnabled(true); in playVideo()
214 mPlayer.startCodec(); in playVideo()
215 mPlayer.play(); in playVideo()
222 mPlayer.pause(); in stopVideo()
[all …]
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/duplex/
DDuplexAudioManager.java45 private Player mPlayer; field in DuplexAudioManager
83 return mPlayer; in getPlayer()
139 return mPlayer != null ? mPlayer.getChannelCount() : -1; in getPlayerChannelCount()
199 mPlayer = builder.build(); in buildStreams()
217 if (mPlayer != null && (result = mPlayer.startStream()) != StreamBase.OK) { in start()
245 if (mPlayer != null) { in stop()
246 int result1 = mPlayer.stopStream(); in stop()
247 int result2 = mPlayer.teardownStream(); in stop()
267 return mPlayer != null ? mPlayer.getSystemBurstFrames() : 0; in getNumPlayerBufferFrames()
275 return mPlayer != null ? mPlayer.getAudioSource() : null; in getAudioSource()
[all …]
/cts/tests/tests/mediacujtest/common/src/android/media/cujcommon/cts/
DMainActivity.java47 protected ExoPlayer mPlayer; field in MainActivity
70 mPlayer = new ExoPlayer.Builder(this).build(); in buildPlayer()
75 mExoplayerView.setPlayer(mPlayer); in buildPlayer()
88 mPlayer.addMediaItem(mediaItem); in prepareMediaItems()
98 mPlayer.prepare(); in onStart()
99 mPlayer.play(); in onStart()
108 ImmutableList<Group> currentTrackGroups = mPlayer.getCurrentTracks().getGroups(); in onStop()
113 mPlayer.stop(); in onStop()
124 mPlayer.release(); in onDestroy()
162 assertTrue(mPlayer.isPlaying()); in onPictureInPictureModeChanged()
[all …]
DMessageNotificationTestPlayerListener.java46 mActivity.mPlayer.setAudioAttributes(mActivity.mPlayer.getAudioAttributes(), true); in onEventsPlaybackStateChanged()
53 mActivity.mPlayer.createMessage((messageType, payload) -> { in onEventsMediaItemTransition()
DCallNotificationTestPlayerListener.java92 mActivity.mPlayer.setAudioAttributes(mActivity.mPlayer.getAudioAttributes(), true); in onEventsPlaybackStateChanged()
102 mActivity.mPlayer.createMessage((messageType, payload) -> { in onEventsMediaItemTransition()
120 if (!mActivity.mPlayer.isPlaying()) { in onPlaybackSuppressionReasonChanged()
DLockPlaybackControllerTestPlayerListener.java74 mActivity.mPlayer.createMessage((messageType, payload) -> { in onEventsMediaItemTransition()
81 mActivity.mPlayer.createMessage((messageType, payload) -> { in onEventsMediaItemTransition()
91 mActivity.mPlayer.createMessage((messageType, payload) -> { in onEventsMediaItemTransition()
100 mActivity.mPlayer.createMessage((messageType, payload) -> { in onEventsMediaItemTransition()
DSeekTestPlayerListener.java68 mActivity.mPlayer.seekTo(mActivity.mPlayer.getCurrentPosition() + mSeekTimeUs); in seek()
100 mActivity.mPlayer.createMessage((messageType, payload) -> { in onEventsMediaItemTransition()
DAdaptivePlaybackTestPlayerListener.java111 mActivity.mPlayer.createMessage((messageType, payload) -> { in createAdaptivePlaybackMessage()
113 mActivity.mPlayer.getTrackSelectionParameters(); in createAdaptivePlaybackMessage()
120 mActivity.mPlayer.setTrackSelectionParameters(newParameters); in createAdaptivePlaybackMessage()
147 Tracks currentTracks = mActivity.mPlayer.getCurrentTracks(); in getVideoFormatList()
DSpeedChangeTestPlayerListener.java73 mActivity.mPlayer.createMessage((messageType, payload) -> { in onEventsMediaItemTransition()
75 mActivity.mPlayer.setPlaybackParameters(newParameters); in onEventsMediaItemTransition()
DPipModeTestPlayerListener.java53 mActivity.mPlayer.createMessage((messageType, payload) -> { in onEventsMediaItemTransition()
60 mActivity.mPlayer.createMessage((messageType, payload) -> { in onEventsMediaItemTransition()
DSplitScreenTestPlayerListener.java52 mActivity.mPlayer.createMessage((messageType, payload) -> { in onEventsMediaItemTransition()
61 mActivity.mPlayer.createMessage((messageType, payload) -> { in onEventsMediaItemTransition()
DSwitchSubtitleTrackTestPlayerListener.java42 mActivity.mPlayer.getTrackSelectionParameters(); in selectFirstSubtitleTrack()
48 mActivity.mPlayer.setTrackSelectionParameters(newParameters); in selectFirstSubtitleTrack()
DDeviceLockTestPlayerListener.java72 mActivity.mPlayer.createMessage((messageType, payload) -> { in onEventsMediaItemTransition()
81 mActivity.mPlayer.createMessage((messageType, payload) -> { in onEventsMediaItemTransition()
DPlayerListener.java270 mActivity.mPlayer.createMessage((messageType, payload) -> { in createSwitchTrackMessage()
272 mActivity.mPlayer.getTrackSelectionParameters(); in createSwitchTrackMessage()
280 mActivity.mPlayer.setTrackSelectionParameters(newParameters); in createSwitchTrackMessage()
320 Tracks currentTracks = mActivity.mPlayer.getCurrentTracks(); in getTrackGroups()
DPinchToZoomTestPlayerListener.java86 mActivity.mPlayer.createMessage((messageType, payload) -> { in onEventsMediaItemTransition()
92 mActivity.mPlayer.createMessage((messageType, payload) -> { in onEventsMediaItemTransition()
DOrientationTestPlayerListener.java115 mActivity.mPlayer.createMessage((messageType, payload) -> { in onEventsMediaItemTransition()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/streamquality/
DPlayVideoActivity.java70 private MediaPlayer mPlayer; field in PlayVideoActivity
102 mPlayer = new MediaPlayer(); in playVideo()
103 mPlayer.setDisplay(mHolder); in playVideo()
104 mPlayer.setScreenOnWhilePlaying(true); in playVideo()
105 mPlayer.setOnVideoSizeChangedListener(this); in playVideo()
106 mPlayer.setOnErrorListener(this); in playVideo()
107 mPlayer.setOnPreparedListener(this); in playVideo()
109 mPlayer.setDataSource(UrlReplacement.getFinalUri(mStream.uri)); in playVideo()
115 mPlayer.prepareAsync(); in playVideo()
151 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.prepare(); in playVideo()
225 mPlayer.setLoopEnabled(true); in playVideo()
226 mPlayer.startCodec(); in playVideo()
227 mPlayer.play(); in playVideo()
236 if (mPlayer != null) { in onPause()
237 mPlayer.pause(); in onPause()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioOutColdStartLatencyActivity.java50 private Player mPlayer; field in AudioOutColdStartLatencyActivity
116 boolean gotTimestamp = mPlayer.getTimestamp(mPullTimestamp); in startOutTimer()
172 mPlayer = builder.build(); in runAudioTest()
183 mPlayer.startStream(); in runAudioTest()
198 mPlayer.stopStream(); in stopAudio()
199 mPlayer.teardownStream(); in stopAudio()
DAudioDisconnectActivity.java63 private OboePlayer mPlayer; field in AudioDisconnectActivity
560 mPlayer = (OboePlayer) playerBuilder.build(); in startAudio()
561 mPlayer.startStream(); in startAudio()
563 mStream = mPlayer; in startAudio()
609 if (mPlayer != null) { in stopAudio()
610 mPlayer.stopStream(); in stopAudio()
611 mPlayer.teardownStream(); in stopAudio()
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/
DVirtualCameraUtils.java280 private final MediaPlayer mPlayer; field in VideoRenderer
286 mPlayer = MediaPlayer.create(getApplicationContext(), Uri.parse(path)); in VideoRenderer()
289 mPlayer.setOnInfoListener((mp, what, extra) -> { in VideoRenderer()
300 mPlayer.setSurface(surface); in accept()
301 mPlayer.seekTo(1000); in accept()
302 mPlayer.start(); in accept()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DVolumeShaperTest.java326 mPlayer = createMediaPlayer(offloaded); in MediaPlayerPlayer()
332 mPlayer.start(); in start()
337 mPlayer.pause(); in pause()
344 mPlayer.seekTo(0 /* msec */, MediaPlayer.SEEK_PREVIOUS_SYNC); in flush()
349 mPlayer.stop(); in stop()
354 mPlayer.release(); in close()
360 return mPlayer.createVolumeShaper(configuration); in createVolumeShaper()
367 private final MediaPlayer mPlayer; field in VolumeShaperTest.MediaPlayerPlayer