Home
last modified time | relevance | path

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

/packages/apps/Dialer/src/com/android/dialer/calllog/
DGroupingListAdapter.java43 private SparseIntArray mGroupMetadata; field in GroupingListAdapter
111 mItemCount = mGroupMetadata.size(); in changeCursor()
124 int lastIndex = mGroupMetadata.size() - 1; in addGroup()
125 if (lastIndex < 0 || cursorPosition <= mGroupMetadata.keyAt(lastIndex)) { in addGroup()
126 mGroupMetadata.put(cursorPosition, groupSize); in addGroup()
129 mGroupMetadata.append(cursorPosition, groupSize); in addGroup()
143 if (listPosition < 0 || listPosition >= mGroupMetadata.size()) { in getGroupSize()
147 return mGroupMetadata.valueAt(listPosition); in getGroupSize()
155 if (mCursor == null || listPosition < 0 || listPosition >= mGroupMetadata.size()) { in getItem()
159 int cursorPosition = mGroupMetadata.keyAt(listPosition); in getItem()
[all …]
/packages/services/Car/car-support-lib/src/android/support/car/ui/
DGroupingCursorRecyclerViewAdapter.java57 private List<GroupMetadata> mGroupMetadata; field in GroupingCursorRecyclerViewAdapter
61 mGroupMetadata = new ArrayList<>(); in GroupingCursorRecyclerViewAdapter()
161 mGroupMetadata.add(GroupMetadata.obtain(cursorPosition, size, expanded)); in addGroup()
166 mGroupMetadata.clear(); in resetGroup()
171 for (int groupIndex = 0; groupIndex < mGroupMetadata.size(); groupIndex++) { in rebuildGroupMetadata()
172 GroupMetadata gMetadata = mGroupMetadata.get(groupIndex); in rebuildGroupMetadata()
181 int right = mGroupMetadata.size() - 1; in getPositionMetadata()
187 midItem = mGroupMetadata.get(mid); in getPositionMetadata()
DGroupingRecyclerViewAdapter.java60 private List<GroupMetadata> mGroupMetadata; field in GroupingRecyclerViewAdapter
64 mGroupMetadata = new ArrayList<>(); in GroupingRecyclerViewAdapter()
174 mGroupMetadata.add(GroupMetadata.obtain(offset, size, expanded)); in addGroup()
179 mGroupMetadata.clear(); in resetGroup()
184 for (int groupIndex = 0; groupIndex < mGroupMetadata.size(); groupIndex++) { in rebuildGroupMetadata()
185 GroupMetadata gMetadata = mGroupMetadata.get(groupIndex); in rebuildGroupMetadata()
194 int right = mGroupMetadata.size() - 1; in getPositionMetadata()
200 midItem = mGroupMetadata.get(mid); in getPositionMetadata()