Lines Matching refs:item
150 PlaylistItem item = getCheckedPlaylistItem();
151 if (item != null) {
152 long pos = item.getPosition() +
153 (mPaused ? 0 : (SystemClock.elapsedRealtime() - item.getTimestamp()));
338 PlaylistItem item = getCheckedPlaylistItem(); in onCreate()
339 if (fromUser && item != null && item.getDuration() > 0) { in onCreate()
340 long pos = progress * item.getDuration() / 100; in onCreate()
341 mSessionManager.seek(item.getItemId(), pos); in onCreate()
342 item.setPosition(pos); in onCreate()
343 item.setTimestamp(SystemClock.elapsedRealtime()); in onCreate()
383 public void onItemChanged(PlaylistItem item) { in onCreate()
530 PlaylistItem item = getCheckedPlaylistItem(); in updateProgress() local
531 if (item != null) { in updateProgress()
532 int state = item.getState(); in updateProgress()
533 long duration = item.getDuration(); in updateProgress()
540 long position = item.getPosition(); in updateProgress()
542 mPaused ? 0 : (SystemClock.elapsedRealtime() - item.getTimestamp()); in updateProgress()
557 for (PlaylistItem item : mSessionManager.getPlaylist()) { in updatePlaylist()
558 mPlayListItems.add(item); in updatePlaylist()
582 PlaylistItem item = getCheckedPlaylistItem(); in updateButtons() local
583 mSeekBar.setEnabled(item != null && item.getDuration() > 0); in updateButtons()
665 final MediaItem item = getItem(position); in getView() local
668 tv.setText(item.mName); in getView()
672 b.setTag(item); in getView()
676 if (item != null) { in getView()
677 mSessionManager.add(item.mUri, item.mMime); in getView()
702 final PlaylistItem item = getItem(position); in getView() local
705 tv.setText(item.toString()); in getView()
709 b.setTag(item); in getView()
713 if (item != null) { in getView()
714 mSessionManager.remove(item.getItemId()); in getView()