Lines Matching refs:rank
176 int rank = getItemCount(); in allocateRankForNewItem() local
178 views.add(rank, null); in allocateRankForNewItem()
180 setCurrentPage(rank / mMaxItemsPerPage); in allocateRankForNewItem()
181 return rank; in allocateRankForNewItem()
184 public View createAndAddViewForRank(ShortcutInfo item, int rank) { in createAndAddViewForRank() argument
186 addViewForRank(icon, item, rank); in createAndAddViewForRank()
194 public void addViewForRank(View view, ShortcutInfo item, int rank) { in addViewForRank() argument
195 int pagePos = rank % mMaxItemsPerPage; in addViewForRank()
196 int pageNo = rank / mMaxItemsPerPage; in addViewForRank()
198 item.rank = rank; in addViewForRank()
299 int newX, newY, rank; in arrangeChildren() local
301 rank = 0; in arrangeChildren()
319 if (info.cellX != newX || info.cellY != newY || info.rank != rank) { in arrangeChildren()
322 info.rank = rank; in arrangeChildren()
333 if (rank < FolderIcon.NUM_ITEMS_IN_PREVIEW && v instanceof BubbleTextView) { in arrangeChildren()
338 rank ++; in arrangeChildren()
507 public boolean rankOnCurrentPage(int rank) { in rankOnCurrentPage() argument
508 int p = rank / mMaxItemsPerPage; in rankOnCurrentPage()
653 ((ItemInfo) v.getTag()).rank -= direction; in realTimeReorder()