Lines Matching refs:Media
25 import android.media.AudioManager;
26 import android.media.MediaPlayer;
27 import android.media.AudioManager.OnAudioFocusChangeListener;
28 import android.media.MediaPlayer.OnCompletionListener;
29 import android.media.MediaPlayer.OnErrorListener;
30 import android.media.MediaPlayer.OnPreparedListener;
114 // catch generic Exception, since we may be called with a media
133 int titleIdx = cursor.getColumnIndex(MediaStore.Audio.Media.TITLE);
134 int artistIdx = cursor.getColumnIndex(MediaStore.Audio.Media.ARTIST);
135 int idIdx = cursor.getColumnIndex(MediaStore.Audio.Media._ID);
169 // try to get title and artist from the media content provider
171 new String[] {MediaStore.Audio.Media.TITLE, MediaStore.Audio.Media.ARTIST},
180 // check if this file is in the media database (clicking on a download
183 mAsyncQueryHandler.startQuery(0, null, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,
184 new String[] {MediaStore.Audio.Media._ID, MediaStore.Audio.Media.TITLE,
185 MediaStore.Audio.Media.ARTIST},
186 MediaStore.Audio.Media.DATA + "=?", new String[] {path}, null);
397 // TODO: if mMediaId != -1, then the playing file has an entry in the media
475 * @see android.media.MediaPlayer.OnPreparedListener#onPrepared(android.media.MediaPlayer)