/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/ |
D | NewVoicemailAdapter.java | 119 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 …]
|
D | NewVoicemailMediaPlayerView.java | 76 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 …]
|
D | NewVoicemailMediaPlayer.java | 36 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 …]
|
D | NewVoicemailViewHolder.java | 111 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/app/voicemail/ |
D | VoicemailPlaybackPresenter.java | 127 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/Dialer/java/com/android/dialer/voicemail/settings/ |
D | CurrentVoicemailGreetingActivity.java | 51 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/Settings/src/com/android/settings/accessibility/ |
D | VideoPlayer.java | 42 private MediaPlayer mediaPlayer; field in VideoPlayer 70 mediaPlayer.pause(); in pause() 78 mediaPlayer.start(); in resume() 89 mediaPlayer.release(); in release() 90 mediaPlayer = null; in release() 103 mediaPlayer = MediaPlayer.create(context, videoRes); in onSurfaceTextureAvailable() 105 mediaPlayer.setSurface(animationSurface); in onSurfaceTextureAvailable() 106 mediaPlayer.setLooping(true); in onSurfaceTextureAvailable() 107 mediaPlayer.start(); in onSurfaceTextureAvailable()
|
D | ToggleScreenMagnificationPreferenceFragment.java | 84 public void onPrepared(MediaPlayer mediaPlayer) { in onBindViewHolder() 85 mediaPlayer.setLooping(true); in onBindViewHolder()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | MediaUtilImpl.java | 38 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/apps/Messaging/src/com/android/messaging/ui/ |
D | VideoThumbnailView.java | 100 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/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | TestVideoProvider.java | 223 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()
|
D | SelfManagedConnection.java | 250 MediaPlayer mediaPlayer = MediaPlayer.create(context, audioToPlay); in createMediaPlayer() local 251 mediaPlayer.setLooping(true); in createMediaPlayer() 252 return mediaPlayer; in createMediaPlayer()
|
D | TestConnectionService.java | 597 … MediaPlayer mediaPlayer = MediaPlayer.create(getApplicationContext(), R.raw.beep_boop, attributes, 599 mediaPlayer.setLooping(true); 600 return mediaPlayer;
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/fingerprint/ |
D | FingerprintLocationAnimationVideoView.java | 86 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/apps/Settings/src/com/android/settings/biometrics/fingerprint/ |
D | FingerprintLocationAnimationVideoView.java | 86 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/Telephony/src/com/android/phone/ |
D | PhoneUtils.java | 529 MediaPlayer mediaPlayer = new MediaPlayer(); in playSound() local 530 mediaPlayer.setDataSource(context, notificationUri); in playSound() 535 mediaPlayer.setAudioAttributes(aa); in playSound() 536 mediaPlayer.setLooping(false); in playSound() 537 mediaPlayer.prepare(); in playSound() 538 mediaPlayer.start(); in playSound()
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | Beeper.java | 203 public void onPrepared(MediaPlayer mediaPlayer) { in onPrepared() argument 224 public void onCompletion(MediaPlayer mediaPlayer) { in onCompletion() argument 230 public boolean onError(MediaPlayer mediaPlayer, int what, int extra) { in onError() argument
|
/packages/apps/Messaging/tests/src/com/android/messaging/util/ |
D | FakeMediaUtil.java | 23 public FakeMediaUtil(final MediaPlayer mediaPlayer) { in FakeMediaUtil() argument 24 mMediaPlayer = mediaPlayer; in FakeMediaUtil()
|
/packages/apps/MusicFX/src/com/android/musicfx/ |
D | ControlPanelEffect.java | 182 final MediaPlayer mediaPlayer = new MediaPlayer(); in initEffectsPreferences() local 183 final int session = mediaPlayer.getAudioSessionId(); in initEffectsPreferences() 194 mediaPlayer.release(); in initEffectsPreferences() 211 final MediaPlayer mediaPlayer = new MediaPlayer(); in initEffectsPreferences() local 212 final int session = mediaPlayer.getAudioSessionId(); in initEffectsPreferences() 250 mediaPlayer.release(); in initEffectsPreferences()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | VideoPreference.java | 228 mMediaPlayer.setOnPreparedListener(mediaPlayer -> mediaPlayer.setLooping(true)); in initMediaPlayer()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | VideoPreference.java | 237 mMediaPlayer.setOnPreparedListener(mediaPlayer -> mediaPlayer.setLooping(true)); in initMediaPlayer()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/ |
D | ToggleScreenMagnificationPreferenceFragment.java | 75 public void onPrepared(MediaPlayer mediaPlayer) { in onBindViewHolder() 76 mediaPlayer.setLooping(true); in onBindViewHolder()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | InCallTonePlayer.java | 100 public MediaPlayerAdapterImpl(@Nullable MediaPlayer mediaPlayer) { in MediaPlayerAdapterImpl() argument 101 mMediaPlayer = mediaPlayer; in MediaPlayerAdapterImpl()
|
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/ |
D | Player.java | 610 public void onCompletion(MediaPlayer mediaPlayer) {
|