Home
last modified time | relevance | path

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

/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DPersistentFocusWrapper.java41 private int mSelectedPosition = -1; field in PersistentFocusWrapper
66 mSelectedPosition = -1; in clearSelection()
110 mSelectedPosition = view == null ? -1 : ((ViewGroup) child).indexOfChild(view); in requestChildFocus()
111 …UG) Log.v(TAG, "requestChildFocus focused " + focused + " mSelectedPosition " + mSelectedPosition); in requestChildFocus()
116 if (DEBUG) Log.v(TAG, "requestFocus mSelectedPosition " + mSelectedPosition); in requestFocus()
118 if (wrapper != null && mSelectedPosition >= 0 && mSelectedPosition < getGrandChildCount()) { in requestFocus()
119 if (wrapper.getChildAt(mSelectedPosition).requestFocus( in requestFocus()
129 int mSelectedPosition; field in PersistentFocusWrapper.SavedState
133 mSelectedPosition = in.readInt(); in SavedState()
143 dest.writeInt(mSelectedPosition); in writeToParcel()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DBaseRowSupportFragment.java41 private int mSelectedPosition = -1; field in BaseRowSupportFragment
52 mSelectedPosition = position;
80 mSelectedPosition = savedInstanceState.getInt(CURRENT_SELECTED_POSITION, -1); in onViewCreated()
111 mVerticalGridView.setSelectedPosition(mSelectedPosition); in performLateSelection()
126 boolean lateSelection = mBridgeAdapter.getItemCount() == 0 && mSelectedPosition >= 0; in setAdapterAndSelection()
129 } else if (mSelectedPosition >= 0) { in setAdapterAndSelection()
130 mVerticalGridView.setSelectedPosition(mSelectedPosition); in setAdapterAndSelection()
144 outState.putInt(CURRENT_SELECTED_POSITION, mSelectedPosition); in onSaveInstanceState()
196 return mSelectedPosition; in getSelectedPosition()
203 if (mSelectedPosition == position) { in setSelectedPosition()
[all …]
DBaseRowFragment.java39 private int mSelectedPosition = -1; field in BaseRowFragment
50 mSelectedPosition = position;
78 mSelectedPosition = savedInstanceState.getInt(CURRENT_SELECTED_POSITION, -1); in onViewCreated()
109 mVerticalGridView.setSelectedPosition(mSelectedPosition); in performLateSelection()
124 boolean lateSelection = mBridgeAdapter.getItemCount() == 0 && mSelectedPosition >= 0; in setAdapterAndSelection()
127 } else if (mSelectedPosition >= 0) { in setAdapterAndSelection()
128 mVerticalGridView.setSelectedPosition(mSelectedPosition); in setAdapterAndSelection()
142 outState.putInt(CURRENT_SELECTED_POSITION, mSelectedPosition); in onSaveInstanceState()
194 return mSelectedPosition; in getSelectedPosition()
201 if (mSelectedPosition == position) { in setSelectedPosition()
[all …]
DVerticalGridFragment.java49 private int mSelectedPosition = -1; field in VerticalGridFragment
120 if (position != mSelectedPosition) { in gridOnItemSelected()
121 mSelectedPosition = position; in gridOnItemSelected()
127 if (mGridViewHolder.getGridView().findViewHolderForAdapterPosition(mSelectedPosition) in showOrHideTitle()
131 if (!mGridViewHolder.getGridView().hasPreviousViewInSameRow(mSelectedPosition)) { in showOrHideTitle()
209 mSelectedPosition = position; in setSelectedPosition()
218 if (mSelectedPosition != -1) { in updateAdapter()
219 mGridViewHolder.getGridView().setSelectedPosition(mSelectedPosition); in updateAdapter()
DVerticalGridSupportFragment.java51 private int mSelectedPosition = -1; field in VerticalGridSupportFragment
122 if (position != mSelectedPosition) { in gridOnItemSelected()
123 mSelectedPosition = position; in gridOnItemSelected()
129 if (mGridViewHolder.getGridView().findViewHolderForAdapterPosition(mSelectedPosition) in showOrHideTitle()
133 if (!mGridViewHolder.getGridView().hasPreviousViewInSameRow(mSelectedPosition)) { in showOrHideTitle()
211 mSelectedPosition = position; in setSelectedPosition()
220 if (mSelectedPosition != -1) { in updateAdapter()
221 mGridViewHolder.getGridView().setSelectedPosition(mSelectedPosition); in updateAdapter()
DBrowseFragment.java502 mSelectedPosition = position; in createMainFragment()
636 private int mSelectedPosition = -1; field in BrowseFragment
753 replaceMainFragment(mSelectedPosition); in setAdapter()
1029 outState.putInt(CURRENT_SELECTED_POSITION, mSelectedPosition); in onSaveInstanceState()
1093 createMainFragment(mAdapter, mSelectedPosition); in onCreateView()
1121 mSelectedPosition = savedInstanceState != null ? in onCreateView()
1255 showTitleView = isFirstRowWithContent(mSelectedPosition); in updateTitleViewVisibility()
1269 showBranding = isFirstRowWithContent(mSelectedPosition); in updateTitleViewVisibility()
1271 showSearch = isFirstRowWithContentOrPageRow(mSelectedPosition); in updateTitleViewVisibility()
1395 if (position != mSelectedPosition) { in onRowSelected()
[all …]
DBrowseSupportFragment.java504 mSelectedPosition = position; in createMainFragment()
638 private int mSelectedPosition = -1; field in BrowseSupportFragment
755 replaceMainFragment(mSelectedPosition); in setAdapter()
1031 outState.putInt(CURRENT_SELECTED_POSITION, mSelectedPosition); in onSaveInstanceState()
1095 createMainFragment(mAdapter, mSelectedPosition); in onCreateView()
1123 mSelectedPosition = savedInstanceState != null ? in onCreateView()
1257 showTitleView = isFirstRowWithContent(mSelectedPosition); in updateTitleViewVisibility()
1271 showBranding = isFirstRowWithContent(mSelectedPosition); in updateTitleViewVisibility()
1273 showSearch = isFirstRowWithContentOrPageRow(mSelectedPosition); in updateTitleViewVisibility()
1397 if (position != mSelectedPosition) { in onRowSelected()
[all …]
/frameworks/base/core/java/android/widget/
DGallery.java326 return mSelectedPosition; in computeHorizontalScrollOffset()
615 if (newPos != mSelectedPosition) { in setSelectionToCenterChild()
675 mFirstPosition = mSelectedPosition; in layout()
676 View sel = makeAndAddView(mSelectedPosition, 0, 0, true); in layout()
694 setNextSelectedPositionInt(mSelectedPosition); in layout()
729 prevIterationView = makeAndAddView(curPosition, curPosition - mSelectedPosition, in fillToGalleryLeftRtl()
758 prevIterationView = makeAndAddView(curPosition, curPosition - mSelectedPosition, in fillToGalleryLeftLtr()
797 prevIterationView = makeAndAddView(curPosition, curPosition - mSelectedPosition, in fillToGalleryRightRtl()
830 prevIterationView = makeAndAddView(curPosition, curPosition - mSelectedPosition, in fillToGalleryRightLtr()
991 if (mShouldCallbackOnUnselectedItemClick || mDownTouchPosition == mSelectedPosition) { in onSingleTapUp()
[all …]
DAdapterView.java165 int mSelectedPosition = INVALID_POSITION; field in AdapterView
856 mSelectedPosition = INVALID_POSITION; in onInvalidated()
1075 mSelectedPosition = INVALID_POSITION; in handleDataChanged()
1091 if ((mSelectedPosition != mOldSelectedPosition) || (mSelectedRowId != mOldSelectedRowId)) { in checkSelectionChanged()
1093 mOldSelectedPosition = mSelectedPosition; in checkSelectionChanged()
1208 mSelectedPosition = position; in setSelectedPositionInt()
1236 if (mSelectedPosition >= 0) { in rememberSyncState()
1238 View v = getChildAt(mSelectedPosition - mFirstPosition); in rememberSyncState()
1271 encoder.addProperty("list:selectedPosition", mSelectedPosition); in encodeProperties()
DListView.java592 if ((mSelectedPosition > 0) || (rectTopWithinChild > fadingEdge)) { in requestChildRectangleOnScreen()
602 if ((mSelectedPosition < mItemCount - 1) in requestChildRectangleOnScreen()
703 boolean selected = pos == mSelectedPosition; in fillDown()
737 boolean selected = pos == mSelectedPosition; in fillUp()
760 mFirstPosition = Math.min(mFirstPosition, mSelectedPosition); in fillFromTop()
837 final int selectedPosition = mSelectedPosition; in fillFromSelection()
962 final int selectedPosition = mSelectedPosition; in moveSelection()
1024 fillUp(mSelectedPosition - 2, sel.getTop() - dividerHeight); in moveSelection()
1026 fillDown(mSelectedPosition + 1, sel.getBottom() + dividerHeight); in moveSelection()
1028 fillDown(mSelectedPosition + 1, sel.getBottom() + dividerHeight); in moveSelection()
[all …]
DGridView.java356 final int selectedPosition = mSelectedPosition; in makeRow()
436 mFirstPosition = Math.min(mFirstPosition, mSelectedPosition); in fillFromTop()
446 lastPosition = Math.max(lastPosition, mSelectedPosition); in fillFromBottom()
709 final int selectedPosition = mSelectedPosition; in fillFromSelection()
881 final int selectedPosition = mSelectedPosition; in moveSelection()
1199 delta = mNextSelectedPosition - mSelectedPosition; in layoutChildren()
1204 index = mSelectedPosition - mFirstPosition; in layoutChildren()
1291 sel = fillSpecific(mSelectedPosition, mSpecificTop); in layoutChildren()
1313 if (mSelectedPosition >= 0 && mSelectedPosition < mItemCount) { in layoutChildren()
1314 sel = fillSpecific(mSelectedPosition, oldSel == null ? in layoutChildren()
[all …]
DAbsSpinner.java294 int delta = position - mSelectedPosition; in setSelectionInt()
305 if (mItemCount > 0 && mSelectedPosition >= 0) { in getSelectedView()
306 return getChildAt(mSelectedPosition - mFirstPosition); in getSelectedView()
DAbsListView.java1973 if (gainFocus && mSelectedPosition < 0 && !isInTouchMode()) { in onFocusChanged()
2262 if (mItemCount > 0 && mSelectedPosition >= 0) { in getSelectedView()
2263 return getChildAt(mSelectedPosition - mFirstPosition); in getSelectedView()
2818 final View v = getChildAt(mSelectedPosition - mFirstPosition); in keyPressed()
3023 mResurrectToPosition = mSelectedPosition; in onWindowFocusChanged()
3174 if (isPressed() && mSelectedPosition >= 0) { in run()
3175 int index = mSelectedPosition - mFirstPosition; in run()
3181 handled = performLongPress(v, mSelectedPosition, mSelectedRowId); in run()
3343 mSelectedPosition >= 0 && mAdapter != null && in onKeyUp()
3344 mSelectedPosition < mAdapter.getCount()) { in onKeyUp()
[all …]
DDropDownListView.java135 if (position != INVALID_POSITION && position != mSelectedPosition) { in onHoverEvent()
DSpinner.java647 mFirstPosition = mSelectedPosition; in layout()
650 View sel = makeView(mSelectedPosition, true); in layout()
675 setNextSelectedPositionInt(mSelectedPosition); in layout()
/frameworks/support/design/src/android/support/design/widget/
DTabLayout.java1803 private int mSelectedPosition = -1; field in TabLayout.SlidingTabStrip
1846 mSelectedPosition = position; in setIndicatorPositionFromTabPosition()
1852 return mSelectedPosition + mSelectionOffset; in getIndicatorPosition()
1921 animateIndicatorToPosition(mSelectedPosition, in onLayout()
1930 final View selectedTitle = getChildAt(mSelectedPosition); in updateIndicatorPosition()
1937 if (mSelectionOffset > 0f && mSelectedPosition < getChildCount() - 1) { in updateIndicatorPosition()
1939 View nextTitle = getChildAt(mSelectedPosition + 1); in updateIndicatorPosition()
1981 if (Math.abs(position - mSelectedPosition) <= 1) { in animateIndicatorToPosition()
1988 if (position < mSelectedPosition) { in animateIndicatorToPosition()
2022 mSelectedPosition = position; in animateIndicatorToPosition()