Home
last modified time | relevance | path

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

/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripView.java89 private static final int BUFFER_CENTER = (BUFFER_SIZE - 1) / 2; field in FilmstripView
667 final ViewItem currentItem = mViewItems[BUFFER_CENTER]; in init()
718 return mViewItems[BUFFER_CENTER].getDrawAreaLeft(); in getCurrentItemLeft()
733 if (mViewItems[BUFFER_CENTER] == null) { in zoomAtIndexChanged()
736 int index = mViewItems[BUFFER_CENTER].getAdapterIndex(); in zoomAtIndexChanged()
747 if (mViewItems[BUFFER_CENTER] == null) { in isItemAtIndexCentered()
750 if (mViewItems[BUFFER_CENTER].getAdapterIndex() == index in isItemAtIndexCentered()
910 if (nearestBufferIndex == -1 || nearestBufferIndex == BUFFER_CENTER) { in stepIfNeeded()
913 int prevIndex = (mViewItems[BUFFER_CENTER] == null ? -1 : in stepIfNeeded()
914 mViewItems[BUFFER_CENTER].getAdapterIndex()); in stepIfNeeded()
[all …]