Home
last modified time | relevance | path

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

/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DMpegTsPlayer.java126 private final ExoPlayer mPlayer; field in MpegTsPlayer
161 mPlayer = ExoPlayer.Factory.newInstance(RENDERER_COUNT, MIN_BUFFER_MS, MIN_REBUFFER_MS); in MpegTsPlayer()
162 mPlayer.addListener(this); in MpegTsPlayer()
188 mPlayer.sendMessage( in setCaptionServiceNumber()
239 mPlayer.stop(); in prepare()
267 mPlayer.sendMessage( in onRenderers()
271 mPlayer.prepare(renderers); in onRenderers()
292 mPlayer.setPlayWhenReady(playWhenReady); in setPlayWhenReady()
307 mPlayer.setPlayWhenReady(true); in startSmoothTrickplay()
310 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/Telecomm/tests/src/com/android/server/telecom/tests/
DDtmfLocalTonePlayerTest.java43 DtmfLocalTonePlayer mPlayer; field in DtmfLocalTonePlayerTest
49 mPlayer = new DtmfLocalTonePlayer(mToneProxy); in setUp()
58 mPlayer.onForegroundCallChanged(null, mCall); in testSupportedStart()
59 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testSupportedStart()
68 mPlayer.onForegroundCallChanged(null, mCall); in testUnsupportedStart()
69 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testUnsupportedStart()
78 mPlayer.onForegroundCallChanged(null, mCall); in testPlayToneWhenUninitialized()
79 mPlayer.playTone(mCall, '9'); in testPlayToneWhenUninitialized()
80 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testPlayToneWhenUninitialized()
89 mPlayer.onForegroundCallChanged(null, mCall); in testPlayToneWhenInitialized()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioPlayer.java54 if (mPlayer == null) {
60 mPlayer.setVolume(1.0f, 1.0f);
64 mPlayer.start();
75 mPlayer.pause();
91 private MediaPlayer mPlayer; field in AudioPlayer
156 mPlayer = new MediaPlayer(); in doStart()
157 mPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { in doStart()
164 mPlayer.stop(); in doStart()
165 mPlayer.release(); in doStart()
166 mPlayer = null; in doStart()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerSessionWorkerExoV2.java194 private volatile MpegTsPlayer mPlayer; field in TunerSessionWorkerExoV2
412 MpegTsPlayer mpegTsPlayer = mPlayer; in getCurrentPosition()
485 sendMessage(MSG_START_PLAYBACK, System.identityHashCode(mPlayer)); in onStateChanged()
497 sendMessage(MSG_RETRY_PLAYBACK, System.identityHashCode(mPlayer)); in onStateChanged()
516 mHandler.obtainMessage(MSG_RETRY_PLAYBACK, System.identityHashCode(mPlayer)) in onError()
563 if (mPlayer == null || !mHandler.hasMessages(MSG_SMOOTH_TRICKPLAY_MONITOR)) { in onSmoothTrickplayForceStopped()
567 doTrickplayBySeek((int) mPlayer.getCurrentPosition()); in onSmoothTrickplayForceStopped()
572 if (mPlayer == null) { in onAudioUnplayable()
630 sendMessage(MSG_RETRY_PLAYBACK, System.identityHashCode(mPlayer)); in onDiskTooSlow()
895 if (System.identityHashCode(mPlayer) == code) { in handleMessageRetryPlayback()
[all …]
DTunerSessionWorker.java195 private volatile MpegTsPlayer mPlayer; field in TunerSessionWorker
412 MpegTsPlayer mpegTsPlayer = mPlayer; in getCurrentPosition()
479 sendMessage(MSG_START_PLAYBACK, System.identityHashCode(mPlayer)); in onStateChanged()
491 sendMessage(MSG_RETRY_PLAYBACK, System.identityHashCode(mPlayer)); in onStateChanged()
510 mHandler.obtainMessage(MSG_RETRY_PLAYBACK, System.identityHashCode(mPlayer)) in onError()
555 if (mPlayer == null || !mHandler.hasMessages(MSG_SMOOTH_TRICKPLAY_MONITOR)) { in onSmoothTrickplayForceStopped()
559 doTrickplayBySeek((int) mPlayer.getCurrentPosition()); in onSmoothTrickplayForceStopped()
564 if (mPlayer == null) { in onAudioUnplayable()
622 sendMessage(MSG_RETRY_PLAYBACK, System.identityHashCode(mPlayer)); in onDiskTooSlow()
885 if (System.identityHashCode(mPlayer) == code) { in handleMessageRetryPlayback()
[all …]
/packages/apps/SoundRecorder/src/com/android/soundrecorder/
DRecorder.java59 MediaPlayer mPlayer = null; field in Recorder
214 mPlayer = new MediaPlayer(); in startPlayback()
216 mPlayer.setDataSource(mSampleFile.getAbsolutePath()); in startPlayback()
217 mPlayer.setOnCompletionListener(this); in startPlayback()
218 mPlayer.setOnErrorListener(this); in startPlayback()
219 mPlayer.prepare(); in startPlayback()
220 mPlayer.start(); in startPlayback()
223 mPlayer = null; in startPlayback()
227 mPlayer = null; in startPlayback()
236 if (mPlayer == null) // we were not in playback in stopPlayback()
[all …]
/packages/apps/Car/Notification/src/com/android/car/notification/
DBeeper.java144 private final MediaPlayer mPlayer; field in Beeper.BeepRecord
161 mPlayer = new MediaPlayer(); in BeepRecord()
162 mPlayer.setOnPreparedListener(this); in BeepRecord()
163 mPlayer.setOnCompletionListener(this); in BeepRecord()
164 mPlayer.setOnErrorListener(this); in BeepRecord()
174 mPlayer.setDataSource(getContextForForegroundUser(), mBeepUri); in play()
179 mPlayer.setAudioAttributes(mPlaybackAttributes); in play()
180 mPlayer.prepareAsync(); in play()
190 if (!mCleanedUp && mPlayer.isPlaying()) { in stop()
191 mPlayer.stop(); in stop()
[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();
124 mPlayer = new Player(this, mSession, mDataModel); in onCreate()
125 mSession.setCallback(mPlayer); in onCreate()
128 mPlayer.maybeRestoreState(); in onCreate()
140 mPlayer.saveState(); in onDestroy()
141 mPlayer.destroy(); in onDestroy()
/packages/apps/TV/tuner/tests/unittests/javatests/com/android/tv/tuner/
DZappingTimeTest.java78 private MpegTsPlayer mPlayer; field in ZappingTimeTest
153 mPlayer = in setUp()
164 mPlayer.setCaptionServiceNumber( in setUp()
166 mPlayer.prepare( in setUp()
185 if (mPlayer != null) { in tearDown()
186 mPlayer.release(); in tearDown()
308 if (mPlayer != null) { in stopPlayback()
309 mPlayer.setPlayWhenReady(false); in stopPlayback()
310 mPlayer.release(); in stopPlayback()
311 mPlayer = null; in stopPlayback()
[all …]
/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.java60 private MoviePlayer mPlayer; field in MovieActivity
91 mPlayer = new MoviePlayer(rootView, this, intent.getData(), savedInstanceState, in onCreate()
230 mPlayer.onPause(); in onPause()
236 mPlayer.onResume(); in onResume()
243 mPlayer.onSaveInstanceState(outState); in onSaveInstanceState()
248 mPlayer.onDestroy(); in onDestroy()
254 return mPlayer.onKeyDown(keyCode, event) in onKeyDown()
260 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/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/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/
DTmaBrowser.java58 private TmaPlayer mPlayer; field in TmaBrowser
73 mPlayer = new TmaPlayer(this, mLibrary, audioManager, mHandler, mSession); in onCreate()
75 mSession.setCallback(mPlayer); in onCreate()
103 mPlayer.setPlaybackState( in onAccountChanged()