Home
last modified time | relevance | path

Searched refs:toArrange (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Dialer/tests/src/com/android/dialer/list/
DPhoneFavoritesTileAdapterTest.java47 ArrayList<ContactEntry> toArrange = Lists.newArrayList(getTestContactEntry(0), in testArrangeContactsByPinnedPosition_NoPinned() local
49 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() local
57 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() local
65 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 …]
/packages/apps/Dialer/src/com/android/dialer/list/
DPhoneFavoritesTileAdapter.java568 /* package */ void arrangeContactsByPinnedPosition(ArrayList<ContactEntry> toArrange) { in arrangeContactsByPinnedPosition() argument
574 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()