/packages/apps/Music/src/com/android/music/ |
D | ArtistAlbumBrowserActivity.java | 19 import com.android.music.MusicUtils.ServiceToken; 68 implements View.OnCreateContextMenuListener, MusicUtils.Defs, ServiceConnection 97 mToken = MusicUtils.bindToService(this, this); in onCreate() 107 MusicUtils.updateButtonBar(this, R.id.artisttab); in onCreate() 169 MusicUtils.unbindFromService(mToken); in onDestroy() 196 MusicUtils.setSpinnerState(this); in onResume() 203 MusicUtils.updateNowPlaying(ArtistAlbumBrowserActivity.this); 209 MusicUtils.setSpinnerState(ArtistAlbumBrowserActivity.this); 212 MusicUtils.clearAlbumArtCache(); 241 MusicUtils.displayDatabaseError(this); in init() [all …]
|
D | TrackBrowserActivity.java | 19 import com.android.music.MusicUtils.ServiceToken; 69 implements View.OnCreateContextMenuListener, MusicUtils.Defs, ServiceConnection 162 mUseLastListPos = MusicUtils.updateButtonBar(this, R.id.songtab); in onCreate() 180 mToken = MusicUtils.bindToService(this, this); in onCreate() 231 MusicUtils.updateNowPlaying(this); in onServiceConnected() 265 MusicUtils.unbindFromService(mToken); in onDestroy() 312 MusicUtils.setSpinnerState(this); in onResume() 330 MusicUtils.setSpinnerState(TrackBrowserActivity.this); 369 MusicUtils.displayDatabaseError(this); in init() 375 MusicUtils.hideDatabaseError(this); in init() [all …]
|
D | AlbumBrowserActivity.java | 19 import com.android.music.MusicUtils.ServiceToken; 69 implements View.OnCreateContextMenuListener, MusicUtils.Defs, ServiceConnection 101 mToken = MusicUtils.bindToService(this, this); in onCreate() 111 MusicUtils.updateButtonBar(this, R.id.albumtab); in onCreate() 167 MusicUtils.unbindFromService(mToken); in onDestroy() 193 MusicUtils.setSpinnerState(this); in onResume() 200 MusicUtils.updateNowPlaying(AlbumBrowserActivity.this); 206 MusicUtils.setSpinnerState(AlbumBrowserActivity.this); 209 MusicUtils.clearAlbumArtCache(); 238 MusicUtils.displayDatabaseError(this); in init() [all …]
|
D | PlaylistBrowserActivity.java | 19 import com.android.music.MusicUtils.ServiceToken; 61 implements View.OnCreateContextMenuListener, MusicUtils.Defs 98 mToken = MusicUtils.bindToService(this, new ServiceConnection() { in onCreate() 112 long[] list = MusicUtils.getAllSongs(PlaylistBrowserActivity.this); in onCreate() 114 MusicUtils.playAll(PlaylistBrowserActivity.this, list, 0); in onCreate() 117 MusicUtils.playPlaylist(PlaylistBrowserActivity.this, id); in onCreate() 126 MusicUtils.updateNowPlaying(PlaylistBrowserActivity.this); in onCreate() 141 MusicUtils.updateButtonBar(this, R.id.playlisttab); in onCreate() 195 MusicUtils.unbindFromService(mToken); in onDestroy() 216 MusicUtils.setSpinnerState(this); in onResume() [all …]
|
D | MediaPlaybackActivity.java | 19 import com.android.music.MusicUtils.ServiceToken; 69 public class MediaPlaybackActivity extends Activity implements MusicUtils.Defs, 297 Cursor c = MusicUtils.query(this, in onLongClick() 466 MusicUtils.unbindFromService(mToken); in onStop() 476 mToken = MusicUtils.bindToService(this, osc); in onStart() 518 if (MusicUtils.getCurrentAudioId() >= 0) { in onCreateOptionsMenu() 545 int shuffle = MusicUtils.getCurrentShuffleMode(); in onPrepareOptionsMenu() 558 MusicUtils.makePlaylistMenu(this, sub); in onPrepareOptionsMenu() 582 MusicUtils.setRingtone(this, mService.getAudioId()); in onOptionsItemSelected() 587 MusicUtils.togglePartyShuffle(); in onOptionsItemSelected() [all …]
|
D | QueryBrowserActivity.java | 19 import com.android.music.MusicUtils.ServiceToken; 58 implements MusicUtils.Defs, ServiceConnection 84 mToken = MusicUtils.bindToService(this, this); in onCreate() 107 MusicUtils.playAll(this, list, 0); in onServiceConnected() 201 MusicUtils.unbindFromService(mToken); in onDestroy() 227 MusicUtils.setSpinnerState(QueryBrowserActivity.this); 265 MusicUtils.displayDatabaseError(this); in init() 270 MusicUtils.hideDatabaseError(this); in init() 299 MusicUtils.playAll(this, list, 0); in onListItemClick() 310 MusicUtils.setRingtone(this, mTrackList.getSelectedItemId()); in onOptionsItemSelected() [all …]
|
D | MediaPickerActivity.java | 19 import com.android.music.MusicUtils.ServiceToken; 39 public class MediaPickerActivity extends ListActivity implements MusicUtils.Defs 63 mToken = MusicUtils.bindToService(this); in onCreate() 69 MusicUtils.unbindFromService(mToken); in onDestroy() 124 if (MusicUtils.sService != null) { in onListItemClick() 126 MusicUtils.sService.stop(); in onListItemClick() 183 c = MusicUtils.query(this, MediaStore.Video.Media.EXTERNAL_CONTENT_URI, in MakeCursor() 189 c = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in MakeCursor() 198 c = MusicUtils.query(this, MediaStore.Video.Media.EXTERNAL_CONTENT_URI, in MakeCursor()
|
D | MusicBrowserActivity.java | 19 import com.android.music.MusicUtils.ServiceToken; 30 implements MusicUtils.Defs { 43 int activeTab = MusicUtils.getIntPref(this, "activetab", R.id.artisttab); in onCreate() 50 MusicUtils.activateTab(this, activeTab); in onCreate() 54 mToken = MusicUtils.bindToService(this, autoshuffle); in onCreate() 61 MusicUtils.unbindFromService(mToken); in onDestroy()
|
D | MusicUtils.java | 72 public class MusicUtils { class 235 if (MusicUtils.sService != null) { in getCurrentArtistId() 245 if (MusicUtils.sService != null) { in getCurrentAudioId() 282 int shuffle = MusicUtils.getCurrentShuffleMode(); in setPartyShuffleMenuIcon() 298 if (MusicUtils.sService != null) { in isMusicLoaded() 907 Bitmap b = MusicUtils.getArtworkQuick(context, artIndex, w, h); in getCachedArtwork() 1245 if (true && MusicUtils.sService != null && MusicUtils.sService.getAudioId() != -1) { in updateNowPlaying() 1248 title.setText(MusicUtils.sService.getTrackName()); in updateNowPlaying() 1249 String artistName = MusicUtils.sService.getArtistName(); in updateNowPlaying()
|
D | MediaPlaybackService.java | 169 MusicUtils.debugLog("mMediaplayerHandler.handleMessage " + msg.what); 275 MusicUtils.debugLog("mIntentReceiver.onReceive " + action + " / " + cmd); 339 mCardId = MusicUtils.getCardId(this); in onCreate() 533 Cursor crsr = MusicUtils.query(this, in reloadQueue() 648 MusicUtils.debugLog("onStartCommand " + action + " / " + cmd); in onStartCommand() 758 mCardId = MusicUtils.getCardId(MediaPlaybackService.this); in registerExternalStorageListener() 812 Bitmap b = MusicUtils.getArtwork(this, getAudioId(), getAlbumId(), false); in notifyChange() 1938 MusicUtils.debugLog(new Exception("MultiPlayer.start called")); in start() 2196 MusicUtils.debugDump(writer); in dump()
|
D | WeekSelector.java | 46 int def = MusicUtils.getIntPref(this, "numweeks", 2); in onCreate() 73 MusicUtils.setIntPref(WeekSelector.this, "numweeks", numweeks);
|
D | VideoBrowserActivity.java | 33 public class VideoBrowserActivity extends ListActivity implements MusicUtils.Defs 57 MusicUtils.displayDatabaseError(this); in init()
|
D | CreatePlaylist.java | 102 Cursor c = MusicUtils.query(this, MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, in idForplaylist() 180 MusicUtils.clearPlaylist(CreatePlaylist.this, id);
|
D | RenamePlaylist.java | 122 Cursor c = MusicUtils.query(this, MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, in idForplaylist() 139 Cursor c = MusicUtils.query(this, MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, in nameForId()
|
D | MusicPicker.java | 67 MusicUtils.Defs { 241 vh.duration.setText(MusicUtils.makeTimeString(context, secs)); in bindView()
|
D | DeleteItems.java | 64 MusicUtils.deleteTracks(DeleteItems.this, mItemList);
|
D | ScanningProgress.java | 45 Cursor c = MusicUtils.query(ScanningProgress.this,
|
/packages/apps/Music/tests/src/com/android/music/functional/ |
D | TestPlaylist.java | 32 import com.android.music.MusicUtils; 75 inst.invokeContextMenuAction(getActivity(), MusicUtils.Defs.CHILD_MENU_BASE + 1, 0); in deletePlaylist() 95 inst.invokeContextMenuAction(trackBrowserActivity, MusicUtils.Defs.NEW_PLAYLIST, 0); in addNewPlaylist() 116 inst.invokeContextMenuAction(getActivity(), MusicUtils.Defs.CHILD_MENU_BASE + 3, 0); in renamePlaylist()
|
D | TestSongs.java | 39 import com.android.music.MusicUtils; 72 inst.invokeContextMenuAction(getActivity(), MusicUtils.Defs.NEW_PLAYLIST, 0); in addNewPlaylist() 155 inst.invokeContextMenuAction(getActivity(), MusicUtils.Defs.USE_AS_RINGTONE, 0); in testSetRingtone() 192 inst.invokeContextMenuAction(getActivity(), MusicUtils.Defs.DELETE_ITEM, 0); in testDeleteSong()
|
/packages/apps/Music/tests/src/com/android/music/stress/ |
D | MusicPlaybackStress.java | 33 import com.android.music.MusicUtils; 61 inst.invokeMenuActionSync(getActivity(), MusicUtils.Defs.CHILD_MENU_BASE + 3, 0); in testPlayAllSongs()
|