Home | History | Annotate | Download | only in media

Lines Matching defs:PLAY

34     private static final int PLAY = 1;
95 case PLAY:
96 if (mDebug) Log.d(mTag, "PLAY");
159 * @param uri The URI to play. (see {@link MediaPlayer#setDataSource(Context, Uri)})
164 * @deprecated use {@link #play(Context, Uri, boolean, AudioAttributes)} instead
166 public void play(Context context, Uri uri, boolean looping, int stream) {
167 PlayerBase.deprecateStreamTypeForPlayback(stream, "AsyncPlayer", "play()");
172 play(context, uri, looping,
175 Log.e(mTag, "Call to deprecated AsyncPlayer.play() method caused:", e);
186 * @param uri the non-null URI to play. (see {@link MediaPlayer#setDataSource(Context, Uri)})
193 public void play(@NonNull Context context, @NonNull Uri uri, boolean looping,
196 throw new IllegalArgumentException("Illegal null AsyncPlayer.play() argument");
200 cmd.code = PLAY;
207 mState = PLAY;
239 * We want to hold a wake lock while we do the prepare and play. The stop probably is
242 * sound to play, but if the CPU turns off before mThread gets to work, it won't. The
247 * This must be called before the first time play is called.