Home
last modified time | relevance | path

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

/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/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/Settings/src/com/android/settings/fingerprint/
DFingerprintLocationAnimationVideoView.java68 public void onPrepared(MediaPlayer mediaPlayer) { in onFinishInflate()
69 mediaPlayer.setLooping(true); in onFinishInflate()
74 public boolean onInfo(MediaPlayer mediaPlayer, int what, int extra) { in onFinishInflate()
/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/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()
DTestConnectionService.java487 MediaPlayer mediaPlayer = MediaPlayer.create(getApplicationContext(), R.raw.beep_boop); in createMediaPlayer() local
488 mediaPlayer.setLooping(true); in createMediaPlayer()
489 return mediaPlayer; in createMediaPlayer()
/packages/apps/Settings/src/com/android/settings/accessibility/
DToggleScreenMagnificationPreferenceFragment.java75 public void onPrepared(MediaPlayer mediaPlayer) { in onBindViewHolder()
76 mediaPlayer.setLooping(true); in onBindViewHolder()
/packages/apps/MusicFX/src/com/android/musicfx/
DControlPanelEffect.java182 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/apps/Dialer/src/com/android/dialer/voicemail/
DVoicemailPlaybackPresenter.java651 public void onCompletion(MediaPlayer mediaPlayer) { in onCompletion() argument