Home
last modified time | relevance | path

Searched refs:selectedPosition (Results 1 – 10 of 10) 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()
263 int selectedPosition = mLayoutManager.getSelectedPosition(); in getUpDownFocus() local
266 start = selectedPosition - 1; in getUpDownFocus()
269 start = selectedPosition + 1; in getUpDownFocus()
285 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.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/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/Settings/src/com/android/settings/wifi/
DWifiConfigController2.java828 final int selectedPosition = mProxySettingsSpinner.getSelectedItemPosition(); in ipAndProxyFieldsAreValid() local
831 if (selectedPosition == PROXY_STATIC && mProxyHostView != null) { in ipAndProxyFieldsAreValid()
850 } else if (selectedPosition == PROXY_PAC && mProxyPacView != null) { in ipAndProxyFieldsAreValid()
DWifiConfigController.java850 final int selectedPosition = mProxySettingsSpinner.getSelectedItemPosition(); in ipAndProxyFieldsAreValid() local
853 if (selectedPosition == PROXY_STATIC && mProxyHostView != null) { in ipAndProxyFieldsAreValid()
872 } else if (selectedPosition == PROXY_PAC && mProxyPacView != null) { in ipAndProxyFieldsAreValid()