/developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
LocalPlayer.java | 23 import android.media.MediaPlayer; 46 * Handles playback of a single media item using MediaPlayer. 49 MediaPlayer.OnPreparedListener, 50 MediaPlayer.OnCompletionListener, 51 MediaPlayer.OnErrorListener, 52 MediaPlayer.OnSeekCompleteListener { 64 private MediaPlayer mMediaPlayer; 121 Log.e(TAG, "MediaPlayer throws IllegalStateException, uri=" + item.getUri()); 123 Log.e(TAG, "MediaPlayer throws IOException, uri=" + item.getUri()); 125 Log.e(TAG, "MediaPlayer throws IllegalArgumentException, uri=" + item.getUri()) [all...] |
/developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
LocalPlayer.java | 23 import android.media.MediaPlayer; 46 * Handles playback of a single media item using MediaPlayer. 49 MediaPlayer.OnPreparedListener, 50 MediaPlayer.OnCompletionListener, 51 MediaPlayer.OnErrorListener, 52 MediaPlayer.OnSeekCompleteListener { 64 private MediaPlayer mMediaPlayer; 121 Log.e(TAG, "MediaPlayer throws IllegalStateException, uri=" + item.getUri()); 123 Log.e(TAG, "MediaPlayer throws IOException, uri=" + item.getUri()); 125 Log.e(TAG, "MediaPlayer throws IllegalArgumentException, uri=" + item.getUri()) [all...] |
/development/samples/Support7Demos/src/com/example/android/supportv7/media/ |
LocalPlayer.java | 24 import android.media.MediaPlayer; 47 * Handles playback of a single media item using MediaPlayer. 50 MediaPlayer.OnPreparedListener, 51 MediaPlayer.OnCompletionListener, 52 MediaPlayer.OnErrorListener, 53 MediaPlayer.OnSeekCompleteListener { 60 private MediaPlayer mMediaPlayer; 117 Log.e(TAG, "MediaPlayer throws IllegalStateException, uri=" + item.getUri()); 119 Log.e(TAG, "MediaPlayer throws IOException, uri=" + item.getUri()); 121 Log.e(TAG, "MediaPlayer throws IllegalArgumentException, uri=" + item.getUri()) [all...] |
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/ |
LocalPlayer.java | 23 import android.media.MediaPlayer; 46 * Handles playback of a single media item using MediaPlayer. 49 MediaPlayer.OnPreparedListener, 50 MediaPlayer.OnCompletionListener, 51 MediaPlayer.OnErrorListener, 52 MediaPlayer.OnSeekCompleteListener { 64 private MediaPlayer mMediaPlayer; 121 Log.e(TAG, "MediaPlayer throws IllegalStateException, uri=" + item.getUri()); 123 Log.e(TAG, "MediaPlayer throws IOException, uri=" + item.getUri()); 125 Log.e(TAG, "MediaPlayer throws IllegalArgumentException, uri=" + item.getUri()) [all...] |
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/ |
PlayerActivity.java | 21 import android.media.MediaPlayer; 22 import android.media.MediaPlayer.OnCompletionListener; 23 import android.media.MediaPlayer.OnErrorListener; 24 import android.media.MediaPlayer.OnPreparedListener; 287 public boolean onError(MediaPlayer mp, int what, int extra) { 289 if (extra == MediaPlayer.MEDIA_ERROR_TIMED_OUT) { 291 } else if (what == MediaPlayer.MEDIA_ERROR_SERVER_DIED) { 306 public void onPrepared(MediaPlayer mp) { 318 public void onCompletion(MediaPlayer mp) {
|
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/ |
MusicService.java | 30 import android.media.MediaPlayer; 31 import android.media.MediaPlayer.OnCompletionListener; 32 import android.media.MediaPlayer.OnErrorListener; 33 import android.media.MediaPlayer.OnPreparedListener; 77 MediaPlayer mPlayer = null; 161 mPlayer = new MediaPlayer(); 277 relaxResources(false); // while paused, we always retain the MediaPlayer 325 * status and notification, the wake locks and possibly the MediaPlayer. 351 * Reconfigures MediaPlayer according to audio focus settings and starts/restarts it. This 352 * method starts/restarts the MediaPlayer respecting the current audio focus state. So i [all...] |
/packages/apps/Music/src/com/android/music/ |
AudioPreview.java | 26 import android.media.MediaPlayer; 28 import android.media.MediaPlayer.OnCompletionListener; 29 import android.media.MediaPlayer.OnErrorListener; 30 import android.media.MediaPlayer.OnPreparedListener; 246 public void onPrepared(MediaPlayer mp) { 281 // this activity has handed its MediaPlayer off to the next activity 372 public boolean onError(MediaPlayer mp, int what, int extra) { 378 public void onCompletion(MediaPlayer mp) { 401 // Ideally, we would hand off the currently running mediaplayer 455 * Wrapper class to help with handing off the MediaPlayer to the next instanc [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
ByodPresentMediaDialog.java | 26 import android.media.MediaPlayer; 27 import android.media.MediaPlayer.OnPreparedListener; 182 final MediaPlayer mediaPlayer = new MediaPlayer(); 188 mediaPlayer.setDataSource(getActivity(), uri); 189 mediaPlayer.prepare(); 198 mediaPlayer.setOnPreparedListener(new OnPreparedListener() { 200 public void onPrepared(MediaPlayer mp) { 204 mediaPlayer.start() [all...] |
/developers/build/prebuilts/gradle/WearSpeakerSample/wear/src/main/java/com/example/android/wearable/speaker/ |
MainActivity.java | 24 import android.media.MediaPlayer; 53 private MediaPlayer mMediaPlayer; 155 mMediaPlayer = MediaPlayer.create(this, R.raw.sound); 156 mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { 158 public void onCompletion(MediaPlayer mp) {
|
/developers/samples/android/wearable/wear/WearSpeakerSample/wear/src/main/java/com/example/android/wearable/speaker/ |
MainActivity.java | 24 import android.media.MediaPlayer; 53 private MediaPlayer mMediaPlayer; 155 mMediaPlayer = MediaPlayer.create(this, R.raw.sound); 156 mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { 158 public void onCompletion(MediaPlayer mp) {
|
/development/samples/ApiDemos/src/com/example/android/apis/media/ |
AudioFxDemo.java | 29 import android.media.MediaPlayer; 49 private MediaPlayer mMediaPlayer; 71 // Create the MediaPlayer 72 mMediaPlayer = MediaPlayer.create(this, R.raw.test_cbr); 73 Log.d(TAG, "MediaPlayer audio session ID: " + mMediaPlayer.getAudioSessionId()); 85 mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { 86 public void onCompletion(MediaPlayer mediaPlayer) {
|
/development/samples/browseable/WearSpeakerSample/src/com.example.android.wearable.speaker/ |
MainActivity.java | 24 import android.media.MediaPlayer; 53 private MediaPlayer mMediaPlayer; 155 mMediaPlayer = MediaPlayer.create(this, R.raw.sound); 156 mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { 158 public void onCompletion(MediaPlayer mp) {
|
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/ |
TerminalManager.java | 28 import android.media.MediaPlayer; 29 import android.media.MediaPlayer.OnCompletionListener; 81 private MediaPlayer mediaPlayer; 217 mediaPlayer = new MediaPlayer(); 223 mediaPlayer.setAudioStreamType(AudioManager.STREAM_NOTIFICATION); 224 mediaPlayer.setOnCompletionListener(new BeepListener()); 228 mediaPlayer.setDataSource(file.getFileDescriptor(), file.getStartOffset(), file.getLength()); 230 mediaPlayer.setVolume(volume, volume) [all...] |
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/ |
SimplePlayer.java | 38 import android.media.MediaPlayer; 57 MediaPlayer mMediaPlayer; 110 mMediaPlayer = new MediaPlayer(); 142 mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { 143 public void onCompletion(MediaPlayer mp) {
|
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/ |
ListenerBindingObject.java | 22 import android.media.MediaPlayer; 164 public void onCompletion(MediaPlayer mp) { } 166 public boolean onError(MediaPlayer mp, int what, int extra) { 170 public boolean onInfo(MediaPlayer mp, int what, int extra) { 174 public void onPrepared(MediaPlayer mp) { }
|
/packages/apps/Gallery/src/com/android/camera/ |
MovieViewControl.java | 31 import android.media.MediaPlayer; 40 public class MovieViewControl implements MediaPlayer.OnErrorListener, 41 MediaPlayer.OnCompletionListener { 230 public boolean onError(MediaPlayer player, int arg1, int arg2) { 236 public void onCompletion(MediaPlayer mp) {
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
TestVideoProvider.java | 36 import android.media.MediaPlayer; 64 private MediaPlayer mIncomingMediaPlayer; 220 * @return The {@code MediaPlayer}. 222 private MediaPlayer createMediaPlayer(Surface surface, int videoResource) { 223 MediaPlayer mediaPlayer = MediaPlayer.create(mContext.getApplicationContext(), 225 mediaPlayer.setSurface(surface); 226 mediaPlayer.setLooping(true); 227 return mediaPlayer; [all...] |
/frameworks/base/media/java/android/media/ |
MediaPlayer.java | 79 * MediaPlayer class can be used to control playback 93 * <p>For more information about how to use MediaPlayer, read the 94 * <a href="{@docRoot}guide/topics/media/mediaplayer.html">Media Playback</a> developer guide.</p> 102 * MediaPlayer object driven by the supported playback control operations. 103 * The ovals represent the states a MediaPlayer object may reside 110 * alt="MediaPlayer State diagram" 113 * <p>From this state diagram, one can see that a MediaPlayer object has the 116 * <li>When a MediaPlayer object is just created using <code>new</code> or 119 * two states is the life cycle of the MediaPlayer object. 122 * MediaPlayer object and the MediaPlayer object after {@link #reset() [all...] |
AsyncPlayer.java | 59 MediaPlayer player = new MediaPlayer(); 131 private MediaPlayer mPlayer; 158 * @param uri The URI to play. (see {@link MediaPlayer#setDataSource(Context, Uri)}) 160 * (see {@link MediaPlayer#setLooping(boolean)}) 162 * (see {@link MediaPlayer#setAudioStreamType(int)}) 184 * @param uri the non-null URI to play. (see {@link MediaPlayer#setDataSource(Context, Uri)}) 186 * (see {@link MediaPlayer#setLooping(boolean)}) 188 * (see {@link MediaPlayer#setAudioAttributes(AudioAttributes)})
|
Ringtone.java | 24 import android.media.MediaPlayer.OnCompletionListener; 73 private MediaPlayer mLocalPlayer; 291 mLocalPlayer = new MediaPlayer(); 423 mLocalPlayer = new MediaPlayer(); 466 class MyOnCompletionListener implements MediaPlayer.OnCompletionListener { 467 public void onCompletion(MediaPlayer mp)
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
SoundPlayerObject.java | 23 import android.media.MediaPlayer; 34 private MediaPlayer mMediaPlayer; 118 mMediaPlayer = new MediaPlayer();
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
MediaFrameworkTest.java | 24 import android.media.MediaPlayer; 58 private MediaPlayer mpmidi; 59 private MediaPlayer mpmp3;
|
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/ |
AudioRecordViewTest.java | 18 import android.media.MediaPlayer; 37 @Mock MediaPlayer mockMediaPlayer;
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
MediaRecorderStressTest.java | 32 import android.media.MediaPlayer; 149 MediaPlayer mp = new MediaPlayer(); 250 MediaPlayer mp = new MediaPlayer(); 353 MediaPlayer mp = new MediaPlayer();
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
MoviePlayer.java | 29 import android.media.MediaPlayer; 54 MediaPlayer.OnErrorListener, MediaPlayer.OnCompletionListener, 154 mVideoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() { 156 public void onPrepared(MediaPlayer player) { 351 public boolean onError(MediaPlayer player, int arg1, int arg2) { 360 public void onCompletion(MediaPlayer mp) {
|