Home
last modified time | relevance | path

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

/packages/apps/TV/src/com/android/tv/menu/
DMenuView.java193 int selectedPosition = mLayoutManager.getSelectedPosition(); in onRequestFocusInDescendants() local
195 if (selectedPosition >= 0 && selectedPosition < mMenuRowViews.size()) { in onRequestFocusInDescendants()
196 return mMenuRowViews.get(selectedPosition).requestFocus(); in onRequestFocusInDescendants()
257 int selectedPosition = mLayoutManager.getSelectedPosition(); in focusSearch() local
260 for (int i = selectedPosition - 1; i >= 0; --i) { in focusSearch()
272 int selectedPosition = mLayoutManager.getSelectedPosition(); in focusSearch() local
276 for (int i = selectedPosition + 1; i < count; ++i) { in focusSearch()
/packages/modules/ExtServices/src/android/ext/services/resolver/
DLRResolverRankerService.java80 public void onTrainRankingModel(List<ResolverTarget> targets, int selectedPosition) { in onTrainRankingModel() argument
82 if (selectedPosition < 0 || selectedPosition >= size) { in onTrainRankingModel()
84 Log.d(TAG, "Invalid Position of Selected App " + selectedPosition); in onTrainRankingModel()
88 final ArrayMap<String, Float> positive = getFeatures(targets.get(selectedPosition)); in onTrainRankingModel()
89 final float positiveProbability = targets.get(selectedPosition).getSelectProbability(); in onTrainRankingModel()
92 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.java217 public SearchState createSearchStateForSearchResultClick(int selectedPosition) { in createSearchStateForSearchResultClick() argument
218 return createSearchState(selectedPosition); in createSearchStateForSearchResultClick()
221 private SearchState createSearchState(int selectedPosition) { in createSearchState() argument
253 if (selectedPosition >= 0) { in createSearchState()
254 searchState.selectedPartition = adapter.getPartitionForPosition(selectedPosition); in createSearchState()
255 searchState.selectedIndexInPartition = adapter.getOffsetInPartition(selectedPosition); in createSearchState()
/packages/apps/Calendar/src/com/android/calendar/month/
DSimpleWeekView.java504 int selectedPosition = mSelectedDay - mWeekStart; in updateSelectionPositions() local
505 if (selectedPosition < 0) { in updateSelectionPositions()
506 selectedPosition += 7; in updateSelectionPositions()
509 selectedPosition++; in updateSelectionPositions()
511 mSelectedLeft = selectedPosition * (mWidth - mPadding * 2) / mNumCells in updateSelectionPositions()
513 mSelectedRight = (selectedPosition + 1) * (mWidth - mPadding * 2) / mNumCells in updateSelectionPositions()
DMonthWeekEventsView.java1008 int selectedPosition = mSelectedDay - mWeekStart; in updateSelectionPositions() local
1009 if (selectedPosition < 0) { in updateSelectionPositions()
1010 selectedPosition += 7; in updateSelectionPositions()
1014 mSelectedLeft = selectedPosition * effectiveWidth / mNumDays + mPadding; in updateSelectionPositions()
1015 mSelectedRight = (selectedPosition + 1) * effectiveWidth / mNumDays + mPadding; in updateSelectionPositions()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationLockscreenPreference.java111 int selectedPosition = listView.getCheckedItemPosition(); in onDialogStateRestored() local
114 panel.setVisibility(checkboxVisibilityForSelectedIndex(selectedPosition, in onDialogStateRestored()
151 int selectedPosition = listView.getCheckedItemPosition(); in onClick() local
154 checkboxVisibilityForSelectedIndex(selectedPosition, mShowRemoteInput)); in onClick()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DNotificationLockscreenPreference.java111 int selectedPosition = listView.getCheckedItemPosition(); in onDialogStateRestored() local
114 panel.setVisibility(checkboxVisibilityForSelectedIndex(selectedPosition, in onDialogStateRestored()
151 int selectedPosition = listView.getCheckedItemPosition(); in onClick() local
154 checkboxVisibilityForSelectedIndex(selectedPosition, mShowRemoteInput)); in onClick()
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiConfigController.java812 final int selectedPosition = mProxySettingsSpinner.getSelectedItemPosition(); in ipAndProxyFieldsAreValid() local
815 if (selectedPosition == PROXY_STATIC && mProxyHostView != null) { in ipAndProxyFieldsAreValid()
833 } else if (selectedPosition == PROXY_PAC && mProxyPacView != null) { in ipAndProxyFieldsAreValid()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiConfigController.java842 final int selectedPosition = mProxySettingsSpinner.getSelectedItemPosition(); in ipAndProxyFieldsAreValid() local
845 if (selectedPosition == PROXY_STATIC && mProxyHostView != null) { in ipAndProxyFieldsAreValid()
863 } else if (selectedPosition == PROXY_PAC && mProxyPacView != null) { in ipAndProxyFieldsAreValid()