Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DGallery.java315 return mSelectedPosition; in computeHorizontalScrollOffset()
604 if (newPos != mSelectedPosition) { in setSelectionToCenterChild()
664 mFirstPosition = mSelectedPosition; in layout()
665 View sel = makeAndAddView(mSelectedPosition, 0, 0, true); in layout()
683 setNextSelectedPositionInt(mSelectedPosition); in layout()
718 prevIterationView = makeAndAddView(curPosition, curPosition - mSelectedPosition, in fillToGalleryLeftRtl()
747 prevIterationView = makeAndAddView(curPosition, curPosition - mSelectedPosition, in fillToGalleryLeftLtr()
786 prevIterationView = makeAndAddView(curPosition, curPosition - mSelectedPosition, in fillToGalleryRightRtl()
819 prevIterationView = makeAndAddView(curPosition, curPosition - mSelectedPosition, in fillToGalleryRightLtr()
980 if (mShouldCallbackOnUnselectedItemClick || mDownTouchPosition == mSelectedPosition) { in onSingleTapUp()
[all …]
DListView.java562 if ((mSelectedPosition > 0) || (rectTopWithinChild > fadingEdge)) { in requestChildRectangleOnScreen()
572 if ((mSelectedPosition < mItemCount - 1) in requestChildRectangleOnScreen()
673 boolean selected = pos == mSelectedPosition; in fillDown()
707 boolean selected = pos == mSelectedPosition; in fillUp()
730 mFirstPosition = Math.min(mFirstPosition, mSelectedPosition); in fillFromTop()
807 final int selectedPosition = mSelectedPosition; in fillFromSelection()
932 final int selectedPosition = mSelectedPosition; in moveSelection()
994 fillUp(mSelectedPosition - 2, sel.getTop() - dividerHeight); in moveSelection()
996 fillDown(mSelectedPosition + 1, sel.getBottom() + dividerHeight); in moveSelection()
998 fillDown(mSelectedPosition + 1, sel.getBottom() + dividerHeight); in moveSelection()
[all …]
DAdapterView.java163 int mSelectedPosition = INVALID_POSITION; field in AdapterView
829 mSelectedPosition = INVALID_POSITION; in onInvalidated()
1029 mSelectedPosition = INVALID_POSITION; in handleDataChanged()
1042 if ((mSelectedPosition != mOldSelectedPosition) || (mSelectedRowId != mOldSelectedRowId)) { in checkSelectionChanged()
1044 mOldSelectedPosition = mSelectedPosition; in checkSelectionChanged()
1153 mSelectedPosition = position; in setSelectedPositionInt()
1181 if (mSelectedPosition >= 0) { in rememberSyncState()
1183 View v = getChildAt(mSelectedPosition - mFirstPosition); in rememberSyncState()
DGridView.java332 final int selectedPosition = mSelectedPosition; in makeRow()
411 mFirstPosition = Math.min(mFirstPosition, mSelectedPosition); in fillFromTop()
421 lastPosition = Math.max(lastPosition, mSelectedPosition); in fillFromBottom()
684 final int selectedPosition = mSelectedPosition; in fillFromSelection()
856 final int selectedPosition = mSelectedPosition; in moveSelection()
1172 delta = mNextSelectedPosition - mSelectedPosition; in layoutChildren()
1177 index = mSelectedPosition - mFirstPosition; in layoutChildren()
1237 sel = fillSpecific(mSelectedPosition, mSpecificTop); in layoutChildren()
1259 if (mSelectedPosition >= 0 && mSelectedPosition < mItemCount) { in layoutChildren()
1260 sel = fillSpecific(mSelectedPosition, oldSel == null ? in layoutChildren()
[all …]
DAbsSpinner.java295 int delta = position - mSelectedPosition; in setSelectionInt()
306 if (mItemCount > 0 && mSelectedPosition >= 0) { in getSelectedView()
307 return getChildAt(mSelectedPosition - mFirstPosition); in getSelectedView()
DAbsListView.java1804 if (gainFocus && mSelectedPosition < 0 && !isInTouchMode()) { in onFocusChanged()
2063 if (mItemCount > 0 && mSelectedPosition >= 0) { in getSelectedView()
2064 return getChildAt(mSelectedPosition - mFirstPosition); in getSelectedView()
2474 final View v = getChildAt(mSelectedPosition - mFirstPosition); in keyPressed()
2673 mResurrectToPosition = mSelectedPosition; in onWindowFocusChanged()
2780 if (isPressed() && mSelectedPosition >= 0) { in run()
2781 int index = mSelectedPosition - mFirstPosition; in run()
2787 handled = performLongPress(v, mSelectedPosition, mSelectedRowId); in run()
2885 mSelectedPosition >= 0 && mAdapter != null && in onKeyUp()
2886 mSelectedPosition < mAdapter.getCount()) { in onKeyUp()
[all …]
DSpinner.java494 mFirstPosition = mSelectedPosition; in layout()
495 View sel = makeAndAddView(mSelectedPosition); in layout()
519 setNextSelectedPositionInt(mSelectedPosition); in layout()
/frameworks/opt/mailcommon/java/com/android/mailcommon/
DMultiAdapterSpinner.java61 private int mSelectedPosition = -1; field in MultiAdapterSpinner
134 mSelectedPosition = globalPosition; in setSelectedItem()
158 mPopup.setSelection(mSelectedPosition); in onClick()
165 if (position != mSelectedPosition) { in onItemClick()
170 mSelectedPosition = position; in onItemClick()