Home
last modified time | relevance | path

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

/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DMpegTsPlayer.java127 private final ExoPlayer mPlayer; field in MpegTsPlayer
162 mPlayer = ExoPlayer.Factory.newInstance(RENDERER_COUNT, MIN_BUFFER_MS, MIN_REBUFFER_MS); in MpegTsPlayer()
163 mPlayer.addListener(this); in MpegTsPlayer()
189 mPlayer.sendMessage( in setCaptionServiceNumber()
240 mPlayer.stop(); in prepare()
268 mPlayer.sendMessage( in onRenderers()
272 mPlayer.prepare(renderers); in onRenderers()
293 mPlayer.setPlayWhenReady(playWhenReady); in setPlayWhenReady()
308 mPlayer.setPlayWhenReady(true); in startSmoothTrickplay()
311 mPlayer.sendMessage( in startSmoothTrickplay()
[all …]
/packages/apps/Music/src/com/android/music/
DAudioPreview.java59 private PreviewPlayer mPlayer; field in AudioPreview
109 mPlayer = new PreviewPlayer(); in onCreate()
110 mPlayer.setActivity(this); in onCreate()
112 mPlayer.setDataSourceAndPrepare(mUri); in onCreate()
124 mPlayer = player; in onCreate()
125 mPlayer.setActivity(this); in onCreate()
190 if (mPlayer.isPrepared()) { in onCreate()
209 if (mPlayer.isPrepared()) { in onResume()
216 PreviewPlayer player = mPlayer; in onRetainNonConfigurationInstance()
217 mPlayer = null; in onRetainNonConfigurationInstance()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioPlayer.java86 if (mPlayer == null) {
97 mPlayer.setVolume(1.0f, 1.0f);
101 mPlayer.start();
110 mPlayer.pause();
134 private MediaPlayer mPlayer; field in AudioPlayer
218 mPlayer = new MediaPlayer(); in doStart()
219 mPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { in doStart()
226 mPlayer.stop(); in doStart()
227 mPlayer.release(); in doStart()
228 mPlayer = null; in doStart()
[all …]
DPlayerAdapter.java58 private AudioPlayer mPlayer; field in PlayerAdapter.ViewHolder
73 mPlayer = audioPlayer; in setPlayer()
74 mUsageTextView.setText(AudioAttributes.usageToString(mPlayer.getUsage())); in setPlayer()
78 mPlayer.start(true, true, AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK, state -> { in startPlayer()
102 mPlayer.stop(); in stopPlayer()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DDtmfLocalTonePlayerTest.java44 DtmfLocalTonePlayer mPlayer; field in DtmfLocalTonePlayerTest
51 mPlayer = new DtmfLocalTonePlayer(mToneProxy); in setUp()
66 mPlayer.onForegroundCallChanged(null, mCall); in testSupportedStart()
67 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testSupportedStart()
76 mPlayer.onForegroundCallChanged(null, mCall); in testUnsupportedStart()
77 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testUnsupportedStart()
86 mPlayer.onForegroundCallChanged(null, mCall); in testPlayToneWhenUninitialized()
87 mPlayer.playTone(mCall, '9'); in testPlayToneWhenUninitialized()
88 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testPlayToneWhenUninitialized()
97 mPlayer.onForegroundCallChanged(null, mCall); in testPlayToneWhenInitialized()
[all …]
/packages/apps/Music/kotlin/src/com/android/music/
DAudioPreview.kt61 private var mPlayer: PreviewPlayer? = null variable in com.android.music.AudioPreview
100 mPlayer = PreviewPlayer() in onCreate()
101 mPlayer!!.setActivity(this) in onCreate()
103 mPlayer!!.setDataSourceAndPrepare(mUri!!) in onCreate()
115 mPlayer = player in onCreate()
116 mPlayer!!.setActivity(this) in onCreate()
172 if (mPlayer!!.isPrepared) { in onCreate()
187 if (mPlayer!!.isPrepared) { in onResume()
193 val player = mPlayer in onRetainNonConfigurationInstance()
194 mPlayer = null in onRetainNonConfigurationInstance()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerSessionWorkerExoV2.java199 private volatile MpegTsPlayerV2 mPlayer; field in TunerSessionWorkerExoV2
438 MpegTsPlayerV2 mpegTsPlayerV2 = mPlayer; in getCurrentPosition()
508 sendMessage(MSG_START_PLAYBACK, System.identityHashCode(mPlayer)); in onStateChanged()
523 sendMessage(MSG_RETRY_PLAYBACK, System.identityHashCode(mPlayer)); in onStateChanged()
542 mHandler.obtainMessage(MSG_RETRY_PLAYBACK, System.identityHashCode(mPlayer)) in onError()
590 if (mPlayer == null) { in onSmoothTrickplayForceStopped()
593 doTrickplayBySeek((int) mPlayer.getCurrentPosition()); in onSmoothTrickplayForceStopped()
598 if (mPlayer == null) { in onAudioUnplayable()
651 sendMessage(MSG_RETRY_PLAYBACK, System.identityHashCode(mPlayer)); in onDiskTooSlow()
918 if (System.identityHashCode(mPlayer) == code) { in handleMessageRetryPlayback()
[all …]
DTunerSessionWorker.java200 private volatile MpegTsPlayer mPlayer; field in TunerSessionWorker
438 MpegTsPlayer mpegTsPlayer = mPlayer; in getCurrentPosition()
505 sendMessage(MSG_START_PLAYBACK, System.identityHashCode(mPlayer)); in onStateChanged()
522 sendMessage(MSG_RETRY_PLAYBACK, System.identityHashCode(mPlayer)); in onStateChanged()
541 mHandler.obtainMessage(MSG_RETRY_PLAYBACK, System.identityHashCode(mPlayer)) in onError()
589 if (mPlayer == null || !mHandler.hasMessages(MSG_SMOOTH_TRICKPLAY_MONITOR)) { in onSmoothTrickplayForceStopped()
593 doTrickplayBySeek((int) mPlayer.getCurrentPosition()); in onSmoothTrickplayForceStopped()
598 if (mPlayer == null) { in onAudioUnplayable()
656 sendMessage(MSG_RETRY_PLAYBACK, System.identityHashCode(mPlayer)); in onDiskTooSlow()
936 if (System.identityHashCode(mPlayer) == code) { in handleMessageRetryPlayback()
[all …]
/packages/apps/Car/Notification/src/com/android/car/notification/
DBeeper.java141 private final MediaPlayer mPlayer; field in Beeper.BeepRecord
158 mPlayer = new MediaPlayer(); in BeepRecord()
159 mPlayer.setOnPreparedListener(this); in BeepRecord()
160 mPlayer.setOnCompletionListener(this); in BeepRecord()
161 mPlayer.setOnErrorListener(this); in BeepRecord()
171 mPlayer.setDataSource(getContextForForegroundUser(), mBeepUri, /* headers= */null); in play()
176 mPlayer.setAudioAttributes(mPlaybackAttributes); in play()
177 mPlayer.prepareAsync(); in play()
187 if (!mCleanedUp && mPlayer.isPlaying()) { in stop()
188 mPlayer.stop(); in stop()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/
DMpegTsPlayerV2.java116 private final SimpleExoPlayer mPlayer; field in MpegTsPlayerV2
140 mPlayer = ExoPlayerFactory.newSimpleInstance(context, mTrackSelector); in MpegTsPlayerV2()
141 mPlayer.addListener(this); in MpegTsPlayerV2()
142 mPlayer.addVideoListener(this); in MpegTsPlayerV2()
143 mPlayer.addAudioListener(this); in MpegTsPlayerV2()
144 mPlayer.addTextOutput(this); in MpegTsPlayerV2()
222 mPlayer.setVideoSurface(surface); in setSurface()
230 mPlayer.prepare(mediaSource, false, false); in prepare()
245 mPlayer.setPlayWhenReady(playWhenReady); in setPlayWhenReady()
254 mPlayer.seekTo(positionMs); in seekTo()
[all …]
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DLocalMediaBrowserService.java52 private Player mPlayer; field in LocalMediaBrowserService
65 mPlayer.onPlay();
68 mPlayer.onPause();
71 mPlayer.onSkipToNext();
74 mPlayer.onSkipToPrevious();
120 mPlayer = new Player(this, mSession, mDataModel); in onCreate()
121 mSession.setCallback(mPlayer); in onCreate()
124 mPlayer.maybeRestoreState(); in onCreate()
136 mPlayer.saveState(); in onDestroy()
137 mPlayer.destroy(); in onDestroy()
/packages/apps/TV/tuner/tests/unittests/javatests/com/android/tv/tuner/
DZappingTimeTest.java89 private MpegTsPlayer mPlayer; field in ZappingTimeTest
186 mPlayer = in setUp()
197 mPlayer.setCaptionServiceNumber( in setUp()
199 mPlayer.prepare( in setUp()
218 if (mPlayer != null) { in tearDown()
219 mPlayer.release(); in tearDown()
341 if (mPlayer != null) { in stopPlayback()
342 mPlayer.setPlayWhenReady(false); in stopPlayback()
343 mPlayer.release(); in stopPlayback()
344 mPlayer = null; in stopPlayback()
[all …]
DZappingTimeTestExoV2.java96 private MpegTsPlayerV2 mPlayer; field in ZappingTimeTestExoV2
224 mPlayer = new MpegTsPlayerV2(mTargetContext, mMpegTsPlayerListener); in handleMessageStartPlayback()
225 mPlayer.setCaptionServiceNumber( in handleMessageStartPlayback()
239 mPlayer.prepare(source, mediaSource); in handleMessageStartPlayback()
245 if (mPlayer != null) { in tearDown()
246 mPlayer.release(); in tearDown()
368 if (mPlayer != null) { in stopPlayback()
369 mPlayer.setPlayWhenReady(false); in stopPlayback()
370 mPlayer.release(); in stopPlayback()
371 mPlayer = null; in stopPlayback()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DAudioAutoStartActivity.java78 private MediaPlayer mPlayer; field in AudioAutoStartActivity
189 if (mPlayer == null) { in stopMediaPlayer()
193 mPlayer.stop(); in stopMediaPlayer()
194 mPlayer.release(); in stopMediaPlayer()
195 mPlayer = null; in stopMediaPlayer()
202 if (mPlayer == null) { in pauseMediaPlayer()
206 mPlayer.pause(); in pauseMediaPlayer()
212 if (mPlayer == null) { in startMediaPlayer()
214 mPlayer = createPlayer(); in startMediaPlayer()
220 mPlayer.start(); in startMediaPlayer()
/packages/apps/Camera2/src/com/android/camera/ui/focus/
DFocusSound.java29 private final SoundPlayer mPlayer; field in FocusSound
32 mPlayer = player; in FocusSound()
35 mPlayer.loadSound(mSoundId); in FocusSound()
43 if(!mPlayer.isReleased()) { in play()
44 mPlayer.play(mSoundId, DEFAULT_VOLUME); in play()
/packages/apps/Messaging/src/com/android/messaging/util/
DNotificationPlayer.java103 if (mPlayer != null) { in run()
104 mPlayer.release(); in run()
106 mPlayer = player; in run()
154 if (mPlayer == null) { in stopSound()
161 mPlayer.stop(); in stopSound()
162 mPlayer.release(); in stopSound()
163 mPlayer = null; in stopSound()
242 private MediaPlayer mPlayer; field in NotificationPlayer
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DMovieActivity.java62 private MoviePlayer mPlayer; field in MovieActivity
94 mPlayer = new MoviePlayer(rootView, this, intent.getData(), savedInstanceState, in onCreate()
241 mPlayer.onPause(); in onPause()
247 mPlayer.onResume(); in onResume()
254 mPlayer.onSaveInstanceState(outState); in onSaveInstanceState()
259 mPlayer.onDestroy(); in onDestroy()
265 return mPlayer.onKeyDown(keyCode, event) in onKeyDown()
271 return mPlayer.onKeyUp(keyCode, event) in onKeyUp()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DA2dpReceiver.java58 private MediaPlayer mPlayer; field in A2dpReceiver
181 mPlayer.stop(); in onReceive()
183 mPlayer.release(); in onReceive()
352 mPlayer = MediaPlayer.create(mContext, Uri.parse(musicURL)); in playMusic()
353 if (mPlayer == null) { in playMusic()
361 mPlayer.setVolume(ZERO_VOLUME, ZERO_VOLUME); in playMusic()
364 mPlayer.setVolume(NORMAL_VOLUME, NORMAL_VOLUME); in playMusic()
367 mPlayer.start(); in playMusic()
368 mPlayer.setLooping(true); in playMusic()
369 if (!mPlayer.isPlaying()) { in playMusic()
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/
DTmaBrowser.java77 private TmaPlayer mPlayer; field in TmaBrowser
102 mPlayer = new TmaPlayer(this, mLibrary, audioManager, mHandler, mSession); in onCreate()
104 mSession.setCallback(mPlayer); in onCreate()
155 mPlayer.onStop(); in updatePlaybackState()
156 mPlayer.setPlaybackState( in updatePlaybackState()
196 mPlayer.prepareMediaItem(queue.getPlayableByIndex(0)); in onLoadChildren()
/packages/apps/TV/tuner/tests/robotests/javatests/com/android/tv/tuner/tvinput/
DTunerSessionWorkerTest.java70 private MpegTsPlayer mPlayer = Mockito.mock(MpegTsPlayer.class); field in TunerSessionWorkerTest
135 return mPlayer; in setUp()
187 mPlayer.prepare( in preparePlayback_playerIsNotReady()
204 mPlayer.prepare( in preparePlayback_playerIsReady()
DTunerSessionWorkerExoV2Test.java75 private MpegTsPlayerV2 mPlayer = Mockito.mock(MpegTsPlayerV2.class); field in TunerSessionWorkerExoV2Test
163 return mPlayer; in setUp()