Home
last modified time | relevance | path

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

/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactSectionIndexer.java37 private ArrayList<Integer> mSectionStartingPositions; field in ContactSectionIndexer
51 if (mSectionStartingPositions.isEmpty()) { in getPositionForSection()
55 return mSectionStartingPositions.get( in getPositionForSection()
56 Math.max(Math.min(sectionIndex, mSectionStartingPositions.size() - 1), 0)); in getPositionForSection()
61 if (mSectionStartingPositions.isEmpty()) { in getSectionForPosition()
68 int right = mSectionStartingPositions.size() - 1; in getSectionForPosition()
72 if (position <= mSectionStartingPositions.get(left)) { in getSectionForPosition()
74 } else if (position >= mSectionStartingPositions.get(right)) { in getSectionForPosition()
80 final int startingPos = mSectionStartingPositions.get(mid); in getSectionForPosition()
81 final int nextStartingPos = mSectionStartingPositions.get(mid + 1); in getSectionForPosition()
[all …]