Lines Matching refs:position
42 private int position = ListView.INVALID_POSITION;
48 position = ListView.INVALID_POSITION;
107 * @return relative position of the section in the indexed partition
118 * @param position relative position in the indexed partition
120 public int getSectionForPosition(int position) {
125 return mIndexer.getSectionForPosition(position);
162 int position = listPosition - listView.getHeaderViewsCount();
165 int partition = getPartitionForPosition(position);
167 int offset = getOffsetInPartition(position);
183 // Compute the item position where the current partition begins
189 // Compute the item position where the next section begins
191 boolean isLastInSection = position == nextSectionPosition - 1;
202 public Placement getItemPlacementInSection(int position) {
203 if (mPlacementCache.position == position) {
207 mPlacementCache.position = position;
209 int section = getSectionForPosition(position);
210 if (section != -1 && getPositionForSection(section) == position) {
218 mPlacementCache.lastInSection = (getPositionForSection(section + 1) - 1 == position);