Home
last modified time | relevance | path

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

/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripView.java246 public int getAdapterIndex() { in getAdapterIndex() method in FilmstripView.ViewItem
736 int index = mViewItems[BUFFER_CENTER].getAdapterIndex(); in zoomAtIndexChanged()
750 if (mViewItems[BUFFER_CENTER].getAdapterIndex() == index in isItemAtIndexCentered()
758 int index = item.getAdapterIndex(); in measureViewItem()
888 mViewItems[bufferIndex].getAdapterIndex()); in removeItem()
914 mViewItems[BUFFER_CENTER].getAdapterIndex()); in stepIfNeeded()
929 mViewItems[k] = buildViewItemAt(mViewItems[k - 1].getAdapterIndex() + 1); in stepIfNeeded()
946 mViewItems[k] = buildViewItemAt(mViewItems[k + 1].getAdapterIndex() - 1); in stepIfNeeded()
953 .getAdapterIndex()); in stepIfNeeded()
954 final int firstVisible = mViewItems[BUFFER_CENTER].getAdapterIndex() - 2; in stepIfNeeded()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollAdapterView.java256 saveViewUnchecked(getChildAt(i), getAdapterIndex(i)); in saveVisibleViewsUnchecked()
625 return lastExpandableIndex() == first ? -1 : getAdapterIndex(first);
631 return firstExpandableIndex() == last ? -1 : getAdapterIndex(last - 1);
657 int adapterIndex = getAdapterIndex(currentExpandableIndex);
665 if (index < getAdapterIndex(lastExpandableIndex())) {
672 if (index >= getAdapterIndex(firstExpandableIndex())) {
753 return getAdapterIndex(findViewIndexContainingScrollCenter());
1013 ExpandedView v = findExpandedView(mExpandedViews, getAdapterIndex(expandableViewIndex));
1354 int gridPos = getAdapterIndex(childIndex) % mItemsOnOffAxis;
1357 int adapterIndex = getAdapterIndex(i);
[all …]