Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DGridView.java374 final int selectedPosition = mSelectedPosition; in makeRow() local
380 boolean selected = pos == selectedPosition; in makeRow()
475 final int selectedPosition = reconcileSelectedPosition(); in fillSelection() local
483 rowStart = selectedPosition - (selectedPosition % numColumns); in fillSelection()
485 final int invertedSelection = mItemCount - 1 - selectedPosition; in fillSelection()
728 final int selectedPosition = mSelectedPosition; in fillFromSelection() local
736 rowStart = selectedPosition - (selectedPosition % numColumns); in fillFromSelection()
738 int invertedSelection = mItemCount - 1 - selectedPosition; in fillFromSelection()
900 final int selectedPosition = mSelectedPosition; in moveSelection() local
909 oldRowStart = (selectedPosition - delta) - ((selectedPosition - delta) % numColumns); in moveSelection()
[all …]
DAbsSpinner.java200 int selectedPosition = getSelectedItemPosition(); in onMeasure() local
201 if (selectedPosition >= 0 && mAdapter != null && selectedPosition < mAdapter.getCount()) { in onMeasure()
203 View view = mRecycler.get(selectedPosition); in onMeasure()
206 view = mAdapter.getView(selectedPosition, null, this); in onMeasure()
215 mRecycler.put(selectedPosition, view); in onMeasure()
DListView.java927 final int selectedPosition = mSelectedPosition; in fillFromSelection() local
932 selectedPosition); in fillFromSelection()
934 selectedPosition); in fillFromSelection()
936 sel = makeAndAddView(selectedPosition, selectedTop, true, mListPadding.left, true); in fillFromSelection()
967 fillAboveAndBelow(sel, selectedPosition); in fillFromSelection()
987 int selectedPosition) { in getBottomSelectionPixel() argument
989 if (selectedPosition != mItemCount - 1) { in getBottomSelectionPixel()
1003 private int getTopSelectionPixel(int childrenTop, int fadingEdgeLength, int selectedPosition) { in getTopSelectionPixel() argument
1006 if (selectedPosition > 0) { in getTopSelectionPixel()
1052 final int selectedPosition = mSelectedPosition; in moveSelection() local
[all …]
DCalendarViewLegacyDelegate.java1553 int selectedPosition = mSelectedDay - mFirstDayOfWeek; in updateSelectionPositions() local
1554 if (selectedPosition < 0) { in updateSelectionPositions()
1555 selectedPosition += 7; in updateSelectionPositions()
1558 selectedPosition++; in updateSelectionPositions()
1561 mSelectedLeft = (mDaysPerWeek - 1 - selectedPosition) * mWidth / mNumCells; in updateSelectionPositions()
1564 mSelectedLeft = selectedPosition * mWidth / mNumCells; in updateSelectionPositions()
/frameworks/base/core/java/android/service/resolver/
DResolverRankerService.java104 final List<ResolverTarget> targets, final int selectedPosition) {} in onTrainRankingModel() argument
172 public void train(final List<ResolverTarget> targets, final int selectedPosition) in train() argument
181 onTrainRankingModel(targets, selectedPosition); in train()
DIResolverRankerService.aidl28 void train(in List<ResolverTarget> targets, int selectedPosition); in train() argument
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java1678 final int selectedPosition = getListSelection(); in commitChip() local
1679 if (selectedPosition == -1 || !isEntryAtPositionTypePerson(selectedPosition)) { in commitChip()
1683 submitItemAtPosition(selectedPosition); in commitChip()