Home
last modified time | relevance | path

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

/packages/apps/TV/src/com/android/tv/menu/
DMenuView.java195 int selectedPosition = mLayoutManager.getSelectedPosition(); in onRequestFocusInDescendants() local
199 if (selectedPosition >= 0 && selectedPosition < mMenuRowViews.size()) { in onRequestFocusInDescendants()
201 mMenuRowViews.get(selectedPosition) in onRequestFocusInDescendants()
203 return mMenuRowViews.get(selectedPosition).requestFocus(); in onRequestFocusInDescendants()
270 int selectedPosition = mLayoutManager.getSelectedPosition(); in getUpDownFocus() local
273 start = selectedPosition - 1; in getUpDownFocus()
276 start = selectedPosition + 1; in getUpDownFocus()
292 mMenuRows.get(selectedPosition).setIsReselected(true); in getUpDownFocus()
/packages/modules/ExtServices/java/src/android/ext/services/resolver/
DLRResolverRankerService.java89 public void onTrainRankingModel(List<ResolverTarget> targets, int selectedPosition) { in onTrainRankingModel() argument
93 if (selectedPosition < 0 || selectedPosition >= size) { in onTrainRankingModel()
95 Log.d(TAG, "Invalid Position of Selected App " + selectedPosition); in onTrainRankingModel()
99 final ArrayMap<String, Float> positive = getFeatures(targets.get(selectedPosition)); in onTrainRankingModel()
100 final float positiveProbability = targets.get(selectedPosition).getSelectProbability(); in onTrainRankingModel()
103 if (i == selectedPosition) { in onTrainRankingModel()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactBrowseListFragment.java457 final int selectedPosition = adapter.getSelectedContactPosition(); in checkSelection() local
458 if (selectedPosition != -1) { in checkSelection()
459 mLastSelectedPosition = selectedPosition; in checkSelection()
514 requestSelectionToScreen(selectedPosition); in checkSelection()
562 protected void requestSelectionToScreen(int selectedPosition) { in requestSelectionToScreen() argument
563 if (selectedPosition != -1) { in requestSelectionToScreen()
566 selectedPosition + listView.getHeaderViewsCount(), mSmoothScrollRequested); in requestSelectionToScreen()
DMultiSelectContactsListFragment.java221 public SearchState createSearchStateForSearchResultClick(int selectedPosition) { in createSearchStateForSearchResultClick() argument
222 return createSearchState(selectedPosition); in createSearchStateForSearchResultClick()
225 private SearchState createSearchState(int selectedPosition) { in createSearchState() argument
257 if (selectedPosition >= 0) { in createSearchState()
258 searchState.selectedPartition = adapter.getPartitionForPosition(selectedPosition); in createSearchState()
259 searchState.selectedIndexInPartition = adapter.getOffsetInPartition(selectedPosition); in createSearchState()
/packages/apps/ThemePicker/src/com/android/customization/picker/quickaffordance/ui/binder/
DKeyguardQuickAffordancePickerBinder.kt127 .collectIndexed { index, selectedPosition -> in <lambda>() method
129 if (selectedPosition != -1) { in <lambda>()
135 affordancesView.scrollToPosition(selectedPosition) in <lambda>()
137 affordancesView.smoothScrollToPosition(selectedPosition) in <lambda>()
/packages/apps/Calendar/src/com/android/calendar/month/
DSimpleWeekView.kt421 var selectedPosition = mSelectedDay - mWeekStart in updateSelectionPositions() variable
422 if (selectedPosition < 0) { in updateSelectionPositions()
423 selectedPosition += 7 in updateSelectionPositions()
426 selectedPosition++ in updateSelectionPositions()
428 mSelectedLeft = (selectedPosition * (mWidth - mPadding * 2) / mNumCells + in updateSelectionPositions()
430 mSelectedRight = ((selectedPosition + 1) * (mWidth - mPadding * 2) / mNumCells + in updateSelectionPositions()
DMonthWeekEventsView.kt911 var selectedPosition: Int = mSelectedDay - mWeekStart in updateSelectionPositions() variable
912 if (selectedPosition < 0) { in updateSelectionPositions()
913 selectedPosition += 7 in updateSelectionPositions()
917 mSelectedLeft = selectedPosition * effectiveWidth / mNumDays + mPadding in updateSelectionPositions()
918 mSelectedRight = (selectedPosition + 1) * effectiveWidth / mNumDays + mPadding in updateSelectionPositions()
/packages/apps/Settings/src/com/android/settings/accessibility/
DListDialogPreference.java167 final int selectedPosition = getIndexForValue(mValue); in onPrepareDialogBuilder() local
168 if (selectedPosition != AbsListView.INVALID_POSITION) { in onPrepareDialogBuilder()
169 list.setSelection(selectedPosition); in onPrepareDialogBuilder()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/binder/
DClockSettingsBinder.kt180 viewModel.selectedColorOptionPosition.collect { selectedPosition -> in <lambda>() method
181 if (selectedPosition != -1) { in <lambda>()
187 COLOR_PICKER_ITEM_PREFIX_ID + selectedPosition in <lambda>()
/packages/apps/Settings/src/com/android/settings/display/
DColorModePreferenceFragment.java114 final int selectedPosition = savedInstanceState.getInt(PAGE_VIEWER_SELECTION_INDEX); in onCreate() local
115 mViewPager.setCurrentItem(selectedPosition); in onCreate()
116 updateIndicator(selectedPosition); in onCreate()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DSuggestionsView.kt52 val selectedPosition: Int constant
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiConfigController.java881 final int selectedPosition = mProxySettingsSpinner.getSelectedItemPosition(); in ipAndProxyFieldsAreValid() local
884 if (selectedPosition == PROXY_STATIC && mProxyHostView != null) { in ipAndProxyFieldsAreValid()
903 } else if (selectedPosition == PROXY_PAC && mProxyPacView != null) { in ipAndProxyFieldsAreValid()
DWifiConfigController2.java894 final int selectedPosition = mProxySettingsSpinner.getSelectedItemPosition(); in ipAndProxyFieldsAreValid() local
897 if (selectedPosition == PROXY_STATIC && mProxyHostView != null) { in ipAndProxyFieldsAreValid()
916 } else if (selectedPosition == PROXY_PAC && mProxyPacView != null) { in ipAndProxyFieldsAreValid()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DChooserActivity.java2002 public void onTargetLongPressed(int selectedPosition) {
2007 selectedPosition, /* filtered= */ true);