Home
last modified time | relevance | path

Searched refs:mediaPlayer (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/
DNewVoicemailAdapter.java119 private final NewVoicemailMediaPlayer mediaPlayer = field in NewVoicemailAdapter
201 mediaPlayer.setOnCompletionListener(onCompletionListener); in initializeMediaPlayerListeners()
202 mediaPlayer.setOnPreparedListener(onPreparedListener); in initializeMediaPlayerListeners()
203 mediaPlayer.setOnErrorListener(onErrorListener); in initializeMediaPlayerListeners()
307 cursor, fragmentManager, mediaPlayer, position, currentlyExpandedViewHolderId); in onBindViewHolder()
329 if (newVoicemailViewHolder.isViewHolderExpanded() && mediaPlayer.isPlaying()) { in onBindViewHolder()
341 .equals(mediaPlayer.getLastPlayedOrPlayingVoicemailUri()), in onBindViewHolder()
347 .equals(mediaPlayer.getLastPlayedOrPlayingVoicemailUri())); in onBindViewHolder()
507 if (mediaPlayer.isPlaying() in expandViewHolderFirstTimeAndCollapseAllOtherVisibleViewHolders()
509 mediaPlayer.getLastPlayedOrPlayingVoicemailUri(), in expandViewHolderFirstTimeAndCollapseAllOtherVisibleViewHolders()
[all …]
DNewVoicemailMediaPlayer.java36 private final MediaPlayer mediaPlayer; field in NewVoicemailMediaPlayer
47 mediaPlayer = Assert.isNotNull(player); in NewVoicemailMediaPlayer()
66 mediaPlayer.setDataSource(context, uri); in prepareMediaPlayerAndPlayVoicemailWhenReady()
80 StrictModeUtils.bypass(() -> mediaPlayer.prepareAsync()); in prepareMediaPlayerAndPlayVoicemailWhenReady()
121 mediaPlayer.start(); in start()
129 mediaPlayer.reset(); in reset()
144 mediaPlayer.pause(); in pauseMediaPlayer()
148 mediaPlayer.seekTo(progress); in seekTo()
152 mediaPlayer.setOnErrorListener(onErrorListener); in setOnErrorListener()
157 mediaPlayer.setOnPreparedListener(onPreparedListener); in setOnPreparedListener()
[all …]
DNewVoicemailMediaPlayerView.java76 private NewVoicemailMediaPlayer mediaPlayer; field in NewVoicemailMediaPlayerView
179 mediaPlayer = mp; in bindValuesFromAdapterOfExpandedViewHolderMediaPlayerView()
220 } else if (mediaPlayer.isPaused() && mp.getLastPausedVoicemailUri().equals(voicemailUri)) { in bindValuesFromAdapterOfExpandedViewHolderMediaPlayerView()
277 mediaPlayer.seekTo(progress);
305 Assert.checkArgument(mediaPlayer != null);
307 mediaPlayer.getLastPlayedOrPlayingVoicemailUri().equals((voicemailUri)),
310 mediaPlayer.getLastPlayedOrPlayingVoicemailUri().toString(),
338 if (mediaPlayer.getLastPausedVoicemailUri() != null
339 && mediaPlayer
405 Assert.checkArgument(mediaPlayer != null, "media player should not have been null"); in prepareMediaPlayer()
[all …]
DNewVoicemailViewHolder.java111 NewVoicemailMediaPlayer mediaPlayer, in bindViewHolderValuesFromAdapter() argument
161 voicemailEntryOfViewHolder, fragmentManager, mediaPlayer, voicemailViewHolderListener); in bindViewHolderValuesFromAdapter()
274 NewVoicemailMediaPlayer mediaPlayer, in expandAndBindViewHolderAndMediaPlayerViewWithAdapterValues() argument
318 this, voicemailEntry, fragmentManager, mediaPlayer, voicemailViewHolderListener); in expandAndBindViewHolderAndMediaPlayerViewWithAdapterValues()
405 NewVoicemailMediaPlayer mediaPlayer) { in setMediaPlayerViewToResetState() argument
407 mediaPlayerView.setToResetState(currentlyExpandedViewHolderOnScreen, mediaPlayer); in setMediaPlayerViewToResetState()
410 public void setPausedStateOfMediaPlayerView(Uri uri, NewVoicemailMediaPlayer mediaPlayer) { in setPausedStateOfMediaPlayerView() argument
414 mediaPlayerView.setToPausedState(uri, mediaPlayer); in setPausedStateOfMediaPlayerView()
/packages/apps/Dialer/java/com/android/dialer/voicemail/settings/
DCurrentVoicemailGreetingActivity.java51 private MediaPlayer mediaPlayer; field in CurrentVoicemailGreetingActivity
97 mediaPlayer = new MediaPlayer(); in onStart()
99 mediaPlayer.setDataSource(voicemailGreetingFilePath); in onStart()
100 mediaPlayer.prepare(); in onStart()
111 if (mediaPlayer.isPlaying()) { in onPause()
112 mediaPlayer.release(); in onPause()
113 mediaPlayer = null; in onPause()
142 if (mediaPlayer == null) { in isGreetingRecorded()
143 mediaPlayer = new MediaPlayer(); in isGreetingRecorded()
146 mediaPlayer.setDataSource(filePathProxy); in isGreetingRecorded()
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DVoicemailPlaybackPresenter.java127 protected MediaPlayer mediaPlayer; field in VoicemailPlaybackPresenter
212 if (mediaPlayer == null) { in init()
272 if (mediaPlayer != null && isPrepared && voicemailUri.equals(this.voicemailUri)) { in setPlaybackView()
276 position = mediaPlayer.getCurrentPosition(); in setPlaybackView()
277 onPrepared(mediaPlayer); in setPlaybackView()
331 if (mediaPlayer != null) { in pausePresenter()
332 mediaPlayer.release(); in pausePresenter()
333 mediaPlayer = null; in pausePresenter()
510 if (mediaPlayer != null) { in prepareContent()
511 mediaPlayer.release(); in prepareContent()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DMediaUtilImpl.java38 final MediaPlayer mediaPlayer = new MediaPlayer(); in playSound() local
39 mediaPlayer.setAudioStreamType(AudioManager.STREAM_NOTIFICATION); in playSound()
41 mediaPlayer.setDataSource( in playSound()
44 mediaPlayer.prepare(); in playSound()
45 mediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { in playSound()
55 mediaPlayer.seekTo(0); in playSound()
56 mediaPlayer.start(); in playSound()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DNoWakeLockPermissionTest.java77 final MediaPlayer mediaPlayer = new MediaPlayer(); in testMediaPlayerWakeLock() local
78 mediaPlayer.setWakeMode(mContext, PowerManager.FULL_WAKE_LOCK); in testMediaPlayerWakeLock()
80 mediaPlayer.start(); in testMediaPlayerWakeLock()
86 mediaPlayer.stop(); in testMediaPlayerWakeLock()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DAudioAutoStartActivity.java175 MediaPlayer mediaPlayer = new MediaPlayer(); in createPlayer() local
177 mediaPlayer.setAudioAttributes(MUSIC_AUDIO_ATTRIBUTES); in createPlayer()
178 mediaPlayer.setDataSource(afd); in createPlayer()
179 mediaPlayer.setLooping(true); in createPlayer()
180 mediaPlayer.setVolume(1.0f, 1.0f); in createPlayer()
181 mediaPlayer.prepare(); in createPlayer()
182 return mediaPlayer; in createPlayer()
/packages/apps/Messaging/src/com/android/messaging/ui/
DVideoThumbnailView.java100 public void onPrepared(final MediaPlayer mediaPlayer) { in VideoThumbnailView()
102 mVideoWidth = mediaPlayer.getVideoWidth(); in VideoThumbnailView()
103 mVideoHeight = mediaPlayer.getVideoHeight(); in VideoThumbnailView()
104 mediaPlayer.setLooping(loop); in VideoThumbnailView()
110 public void onCompletion(final MediaPlayer mediaPlayer) { in VideoThumbnailView()
116 public boolean onError(final MediaPlayer mediaPlayer, final int i, final int i2) { in VideoThumbnailView()
/packages/apps/Messaging/tests/src/com/android/messaging/util/
DFakeMediaUtil.java23 public FakeMediaUtil(final MediaPlayer mediaPlayer) { in FakeMediaUtil() argument
24 mMediaPlayer = mediaPlayer; in FakeMediaUtil()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/
DFingerprintLocationAnimationVideoView.java86 public void onPrepared(MediaPlayer mediaPlayer) { in onFinishInflate()
87 mediaPlayer.setLooping(true); in onFinishInflate()
92 public boolean onInfo(MediaPlayer mediaPlayer, int what, int extra) { in onFinishInflate()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audiorecorder/
DAudioRecorderTestFragment.java266 MediaPlayer mediaPlayer = new MediaPlayer(); in startPlayback() local
269 mediaPlayer.setDataSource(mFileName); in startPlayback()
270 mediaPlayer.setOnCompletionListener(mediaPlayer1 -> stopPlayback()); in startPlayback()
271 mediaPlayer.prepare(); in startPlayback()
272 mediaPlayer.start(); in startPlayback()
277 mMediaPlayer = mediaPlayer; in startPlayback()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestVideoProvider.java223 MediaPlayer mediaPlayer = MediaPlayer.create(mContext.getApplicationContext(), in createMediaPlayer() local
225 mediaPlayer.setSurface(surface); in createMediaPlayer()
226 mediaPlayer.setLooping(true); in createMediaPlayer()
227 return mediaPlayer; in createMediaPlayer()
DSelfManagedConnection.java250 MediaPlayer mediaPlayer = MediaPlayer.create(context, audioToPlay); in createMediaPlayer() local
251 mediaPlayer.setLooping(true); in createMediaPlayer()
252 return mediaPlayer; in createMediaPlayer()
DTestConnectionService.java597 … MediaPlayer mediaPlayer = MediaPlayer.create(getApplicationContext(), R.raw.beep_boop, attributes,
599 mediaPlayer.setLooping(true);
600 return mediaPlayer;
/packages/services/Telecomm/testapps/transactionalVoipApp/src/com/android/server/telecom/transactionalVoipApp/
DUtils.java126 MediaPlayer mediaPlayer = MediaPlayer.create(context, audioToPlay); in createMediaPlayer() local
127 mediaPlayer.setLooping(true); in createMediaPlayer()
128 return mediaPlayer; in createMediaPlayer()
/packages/apps/Car/Notification/src/com/android/car/notification/
DBeeper.java200 public void onPrepared(MediaPlayer mediaPlayer) { in onPrepared() argument
221 public void onCompletion(MediaPlayer mediaPlayer) { in onCompletion() argument
227 public boolean onError(MediaPlayer mediaPlayer, int what, int extra) { in onError() argument
/packages/services/Telephony/src/com/android/phone/
DPhoneUtils.java531 MediaPlayer mediaPlayer = new MediaPlayer(); in playSound() local
532 mediaPlayer.setDataSource(context, notificationUri); in playSound()
537 mediaPlayer.setAudioAttributes(aa); in playSound()
538 mediaPlayer.setLooping(false); in playSound()
539 mediaPlayer.prepare(); in playSound()
540 mediaPlayer.start(); in playSound()
/packages/services/Telecomm/testapps/callaudiotest/src/com/android/server/telecom/callaudiotest/
DCallAudioTestInCallService.java93 mMediaPlayer.setOnCompletionListener(mediaPlayer -> Log.w(this, "startPlaying: done")); in startPlaying()
95 (mediaPlayer, what, extra) -> { in startPlaying() argument
/packages/apps/Settings/src/com/android/settings/widget/
DMediaAnimationController.java49 mMediaPlayer.setOnPreparedListener(mediaPlayer -> mediaPlayer.setLooping(true)); in MediaAnimationController()
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/
DBeeperTest.java105 public void onCreate(MediaPlayer mediaPlayer, ShadowMediaPlayer shadowMediaPlayer) { in onCreate() argument
106 this.mMediaPlayer = mediaPlayer; in onCreate()
/packages/apps/MusicFX/src/com/android/musicfx/
DControlPanelEffect.java201 final MediaPlayer mediaPlayer = new MediaPlayer(); in initEffectsPreferences() local
202 final int session = mediaPlayer.getAudioSessionId(); in initEffectsPreferences()
213 mediaPlayer.release(); in initEffectsPreferences()
230 final MediaPlayer mediaPlayer = new MediaPlayer(); in initEffectsPreferences() local
231 final int session = mediaPlayer.getAudioSessionId(); in initEffectsPreferences()
269 mediaPlayer.release(); in initEffectsPreferences()
/packages/services/Telecomm/src/com/android/server/telecom/
DInCallTonePlayer.java101 public MediaPlayerAdapterImpl(@Nullable MediaPlayer mediaPlayer) { in MediaPlayerAdapterImpl() argument
102 mMediaPlayer = mediaPlayer; in MediaPlayerAdapterImpl()
/packages/modules/StatsD/tests/apps/statsdapp/src/com/android/server/cts/device/statsd/
DAtomTests.java99 MediaPlayer mediaPlayer = MediaPlayer.create(context, R.raw.good); in testAudioState() local
100 mediaPlayer.start(); in testAudioState()
102 mediaPlayer.stop(); in testAudioState()

12