Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DGallery.java319 return mSelectedPosition; in computeHorizontalScrollOffset()
608 if (newPos != mSelectedPosition) { in setSelectionToCenterChild()
668 mFirstPosition = mSelectedPosition; in layout()
669 View sel = makeAndAddView(mSelectedPosition, 0, 0, true); in layout()
687 setNextSelectedPositionInt(mSelectedPosition); in layout()
722 prevIterationView = makeAndAddView(curPosition, curPosition - mSelectedPosition, in fillToGalleryLeftRtl()
751 prevIterationView = makeAndAddView(curPosition, curPosition - mSelectedPosition, in fillToGalleryLeftLtr()
790 prevIterationView = makeAndAddView(curPosition, curPosition - mSelectedPosition, in fillToGalleryRightRtl()
823 prevIterationView = makeAndAddView(curPosition, curPosition - mSelectedPosition, in fillToGalleryRightLtr()
984 if (mShouldCallbackOnUnselectedItemClick || mDownTouchPosition == mSelectedPosition) { in onSingleTapUp()
[all …]
DListView.java586 if ((mSelectedPosition > 0) || (rectTopWithinChild > fadingEdge)) { in requestChildRectangleOnScreen()
596 if ((mSelectedPosition < mItemCount - 1) in requestChildRectangleOnScreen()
697 boolean selected = pos == mSelectedPosition; in fillDown()
731 boolean selected = pos == mSelectedPosition; in fillUp()
754 mFirstPosition = Math.min(mFirstPosition, mSelectedPosition); in fillFromTop()
831 final int selectedPosition = mSelectedPosition; in fillFromSelection()
956 final int selectedPosition = mSelectedPosition; in moveSelection()
1018 fillUp(mSelectedPosition - 2, sel.getTop() - dividerHeight); in moveSelection()
1020 fillDown(mSelectedPosition + 1, sel.getBottom() + dividerHeight); in moveSelection()
1022 fillDown(mSelectedPosition + 1, sel.getBottom() + dividerHeight); in moveSelection()
[all …]
DAdapterView.java162 int mSelectedPosition = INVALID_POSITION; field in AdapterView
839 mSelectedPosition = INVALID_POSITION; in onInvalidated()
1051 mSelectedPosition = INVALID_POSITION; in handleDataChanged()
1067 if ((mSelectedPosition != mOldSelectedPosition) || (mSelectedRowId != mOldSelectedRowId)) { in checkSelectionChanged()
1069 mOldSelectedPosition = mSelectedPosition; in checkSelectionChanged()
1184 mSelectedPosition = position; in setSelectedPositionInt()
1212 if (mSelectedPosition >= 0) { in rememberSyncState()
1214 View v = getChildAt(mSelectedPosition - mFirstPosition); in rememberSyncState()
DYearPickerView.java44 private int mSelectedPosition = -1; field in YearPickerView
123 if (position != mSelectedPosition) { in onItemClick()
124 mSelectedPosition = position; in onItemClick()
DGridView.java351 final int selectedPosition = mSelectedPosition; in makeRow()
431 mFirstPosition = Math.min(mFirstPosition, mSelectedPosition); in fillFromTop()
441 lastPosition = Math.max(lastPosition, mSelectedPosition); in fillFromBottom()
704 final int selectedPosition = mSelectedPosition; in fillFromSelection()
876 final int selectedPosition = mSelectedPosition; in moveSelection()
1192 delta = mNextSelectedPosition - mSelectedPosition; in layoutChildren()
1197 index = mSelectedPosition - mFirstPosition; in layoutChildren()
1284 sel = fillSpecific(mSelectedPosition, mSpecificTop); in layoutChildren()
1306 if (mSelectedPosition >= 0 && mSelectedPosition < mItemCount) { in layoutChildren()
1307 sel = fillSpecific(mSelectedPosition, oldSel == null ? in layoutChildren()
[all …]
DAbsSpinner.java297 int delta = position - mSelectedPosition; in setSelectionInt()
308 if (mItemCount > 0 && mSelectedPosition >= 0) { in getSelectedView()
309 return getChildAt(mSelectedPosition - mFirstPosition); in getSelectedView()
DAbsListView.java1963 if (gainFocus && mSelectedPosition < 0 && !isInTouchMode()) { in onFocusChanged()
2252 if (mItemCount > 0 && mSelectedPosition >= 0) { in getSelectedView()
2253 return getChildAt(mSelectedPosition - mFirstPosition); in getSelectedView()
2750 final View v = getChildAt(mSelectedPosition - mFirstPosition); in keyPressed()
2951 mResurrectToPosition = mSelectedPosition; in onWindowFocusChanged()
3086 if (isPressed() && mSelectedPosition >= 0) { in run()
3087 int index = mSelectedPosition - mFirstPosition; in run()
3093 handled = performLongPress(v, mSelectedPosition, mSelectedRowId); in run()
3189 mSelectedPosition >= 0 && mAdapter != null && in onKeyUp()
3190 mSelectedPosition < mAdapter.getCount()) { in onKeyUp()
[all …]
DSpinner.java562 mFirstPosition = mSelectedPosition; in layout()
565 View sel = makeView(mSelectedPosition, true); in layout()
590 setNextSelectedPositionInt(mSelectedPosition); in layout()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DBaseRowSupportFragment.java39 private int mSelectedPosition = -1; field in BaseRowSupportFragment
69 if (mSelectedPosition != -1) { in onViewCreated()
70 mVerticalGridView.setSelectedPosition(mSelectedPosition); in onViewCreated()
130 mSelectedPosition = position; in setSelectedPosition()
153 if (mBridgeAdapter != null && mSelectedPosition != -1) { in updateAdapter()
154 mVerticalGridView.setSelectedPosition(mSelectedPosition); in updateAdapter()
DBaseRowFragment.java37 private int mSelectedPosition = -1; field in BaseRowFragment
67 if (mSelectedPosition != -1) { in onViewCreated()
68 mVerticalGridView.setSelectedPosition(mSelectedPosition); in onViewCreated()
128 mSelectedPosition = position; in setSelectedPosition()
151 if (mBridgeAdapter != null && mSelectedPosition != -1) { in updateAdapter()
152 mVerticalGridView.setSelectedPosition(mSelectedPosition); in updateAdapter()
DVerticalGridFragment.java64 private int mSelectedPosition = -1; field in VerticalGridFragment
187 if (position != mSelectedPosition) { in onRowSelected()
198 mSelectedPosition = position; in onRowSelected()
398 mSelectedPosition = position; in setSelectedPosition()
407 if (mSelectedPosition != -1) { in updateAdapter()
408 mGridViewHolder.getGridView().setSelectedPosition(mSelectedPosition); in updateAdapter()
DVerticalGridSupportFragment.java66 private int mSelectedPosition = -1; field in VerticalGridSupportFragment
189 if (position != mSelectedPosition) { in onRowSelected()
200 mSelectedPosition = position; in onRowSelected()
400 mSelectedPosition = position; in setSelectedPosition()
409 if (mSelectedPosition != -1) { in updateAdapter()
410 mGridViewHolder.getGridView().setSelectedPosition(mSelectedPosition); in updateAdapter()
DDetailsSupportFragment.java58 private int mSelectedPosition = -1; field in DetailsSupportFragment
DDetailsFragment.java56 private int mSelectedPosition = -1; field in DetailsFragment
DBrowseFragment.java203 private int mSelectedPosition = -1; field in BrowseFragment
863 if (position != mSelectedPosition) { in onRowSelected()
895 mSelectedPosition = position; in setSelection()
DBrowseSupportFragment.java205 private int mSelectedPosition = -1; field in BrowseSupportFragment
865 if (position != mSelectedPosition) { in onRowSelected()
897 mSelectedPosition = position; in setSelection()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DAdapterViewCompat.java166 int mSelectedPosition = INVALID_POSITION; field in AdapterViewCompat
834 mSelectedPosition = INVALID_POSITION; in onInvalidated()
887 if (mSelectedPosition != ListView.INVALID_POSITION && isShown() && !isInTouchMode()) { in selectionChanged()
975 mSelectedPosition = INVALID_POSITION; in handleDataChanged()
985 if ((mSelectedPosition != mOldSelectedPosition) || (mSelectedRowId != mOldSelectedRowId)) { in checkSelectionChanged()
987 mOldSelectedPosition = mSelectedPosition; in checkSelectionChanged()
1096 mSelectedPosition = position; in setSelectedPositionInt()
1124 if (mSelectedPosition >= 0) { in rememberSyncState()
1126 View v = getChildAt(mSelectedPosition - mFirstPosition); in rememberSyncState()
DAbsSpinnerCompat.java275 int delta = position - mSelectedPosition; in setSelectionInt()
286 if (mItemCount > 0 && mSelectedPosition >= 0) { in getSelectedView()
287 return getChildAt(mSelectedPosition - mFirstPosition); in getSelectedView()
DSpinnerCompat.java484 mFirstPosition = mSelectedPosition; in layout()
486 View sel = makeView(mSelectedPosition, true); in layout()
511 setNextSelectedPositionInt(mSelectedPosition); in layout()