Searched refs:toArrange (Results 1 – 2 of 2) sorted by relevance
47 ArrayList<ContactEntry> toArrange = Lists.newArrayList(getTestContactEntry(0), in testArrangeContactsByPinnedPosition_NoPinned() local49 mAdapter.arrangeContactsByPinnedPosition(toArrange); in testArrangeContactsByPinnedPosition_NoPinned()51 assertContactEntryListPositionsMatchId(toArrange, 3); in testArrangeContactsByPinnedPosition_NoPinned()55 ArrayList<ContactEntry> toArrange = Lists.newArrayList(getTestContactEntry(0), in testArrangeContactsByPinnedPosition_NoPinned_RemoveDemoted() local57 mAdapter.arrangeContactsByPinnedPosition(toArrange); in testArrangeContactsByPinnedPosition_NoPinned_RemoveDemoted()59 assertContactEntryListPositionsMatchId(toArrange, 2); in testArrangeContactsByPinnedPosition_NoPinned_RemoveDemoted()63 ArrayList<ContactEntry> toArrange = Lists.newArrayList(getTestContactEntry(1), in testArrangeContactsByPinnedPosition_OnePinned_Beginning() local65 mAdapter.arrangeContactsByPinnedPosition(toArrange); in testArrangeContactsByPinnedPosition_OnePinned_Beginning()67 assertContactEntryListPositionsMatchId(toArrange, 3); in testArrangeContactsByPinnedPosition_OnePinned_Beginning()71 ArrayList<ContactEntry> toArrange = Lists.newArrayList(getTestContactEntry(0), in testArrangeContactsByPinnedPosition_OnePinned_Middle() local[all …]
568 /* package */ void arrangeContactsByPinnedPosition(ArrayList<ContactEntry> toArrange) { in arrangeContactsByPinnedPosition() argument574 final int length = toArrange.size(); in arrangeContactsByPinnedPosition()576 final ContactEntry contact = toArrange.get(i); in arrangeContactsByPinnedPosition()591 toArrange.clear(); in arrangeContactsByPinnedPosition()596 toArrange.add(toPin); in arrangeContactsByPinnedPosition()598 toArrange.add(unpinnedContacts.remove(0)); in arrangeContactsByPinnedPosition()609 toArrange.add(entry); in arrangeContactsByPinnedPosition()614 toArrange.addAll(unpinnedContacts); in arrangeContactsByPinnedPosition()