Home | History | Annotate | Download | only in media

Lines Matching defs:PLAY

44     private static final int PLAY = 1;
227 case PLAY:
228 if (DEBUG) Log.d(mTag, "PLAY");
287 // if there are no more sounds to play, end the Looper to listen for media completion
350 * @param uri The URI to play. (see {@link MediaPlayer#setDataSource(Context, Uri)})
355 * @deprecated use {@link #play(Context, Uri, boolean, AudioAttributes)} instead.
358 public void play(Context context, Uri uri, boolean looping, int stream) {
359 if (DEBUG) { Log.d(mTag, "play uri=" + uri.toString()); }
360 PlayerBase.deprecateStreamTypeForPlayback(stream, "NotificationPlayer", "play");
363 cmd.code = PLAY;
370 mState = PLAY;
381 * @param uri The URI to play. (see {@link MediaPlayer#setDataSource(Context, Uri)})
387 public void play(Context context, Uri uri, boolean looping, AudioAttributes attributes) {
388 if (DEBUG) { Log.d(mTag, "play uri=" + uri.toString()); }
391 cmd.code = PLAY;
398 mState = PLAY;
432 * We want to hold a wake lock while we do the prepare and play. The stop probably is
435 * sound to play, but if the CPU turns off before mThread gets to work, it won't. The
440 * This must be called before the first time play is called.