Searched refs:selectedPosition (Results 1 – 10 of 10) sorted by relevance
193 int selectedPosition = mLayoutManager.getSelectedPosition(); in onRequestFocusInDescendants() local195 if (selectedPosition >= 0 && selectedPosition < mMenuRowViews.size()) { in onRequestFocusInDescendants()196 return mMenuRowViews.get(selectedPosition).requestFocus(); in onRequestFocusInDescendants()263 int selectedPosition = mLayoutManager.getSelectedPosition(); in getUpDownFocus() local266 start = selectedPosition - 1; in getUpDownFocus()269 start = selectedPosition + 1; in getUpDownFocus()285 mMenuRows.get(selectedPosition).setIsReselected(true); in getUpDownFocus()
89 public void onTrainRankingModel(List<ResolverTarget> targets, int selectedPosition) { in onTrainRankingModel() argument93 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()
457 final int selectedPosition = adapter.getSelectedContactPosition(); in checkSelection() local458 if (selectedPosition != -1) { in checkSelection()459 mLastSelectedPosition = selectedPosition; in checkSelection()514 requestSelectionToScreen(selectedPosition); in checkSelection()562 protected void requestSelectionToScreen(int selectedPosition) { in requestSelectionToScreen() argument563 if (selectedPosition != -1) { in requestSelectionToScreen()566 selectedPosition + listView.getHeaderViewsCount(), mSmoothScrollRequested); in requestSelectionToScreen()
217 public SearchState createSearchStateForSearchResultClick(int selectedPosition) { in createSearchStateForSearchResultClick() argument218 return createSearchState(selectedPosition); in createSearchStateForSearchResultClick()221 private SearchState createSearchState(int selectedPosition) { in createSearchState() argument253 if (selectedPosition >= 0) { in createSearchState()254 searchState.selectedPartition = adapter.getPartitionForPosition(selectedPosition); in createSearchState()255 searchState.selectedIndexInPartition = adapter.getOffsetInPartition(selectedPosition); in createSearchState()
504 int selectedPosition = mSelectedDay - mWeekStart; in updateSelectionPositions() local505 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()
1008 int selectedPosition = mSelectedDay - mWeekStart; in updateSelectionPositions() local1009 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()
111 int selectedPosition = listView.getCheckedItemPosition(); in onDialogStateRestored() local114 panel.setVisibility(checkboxVisibilityForSelectedIndex(selectedPosition, in onDialogStateRestored()151 int selectedPosition = listView.getCheckedItemPosition(); in onClick() local154 checkboxVisibilityForSelectedIndex(selectedPosition, mShowRemoteInput)); in onClick()
167 final int selectedPosition = getIndexForValue(mValue); in onPrepareDialogBuilder() local168 if (selectedPosition != AbsListView.INVALID_POSITION) { in onPrepareDialogBuilder()169 list.setSelection(selectedPosition); in onPrepareDialogBuilder()
828 final int selectedPosition = mProxySettingsSpinner.getSelectedItemPosition(); in ipAndProxyFieldsAreValid() local831 if (selectedPosition == PROXY_STATIC && mProxyHostView != null) { in ipAndProxyFieldsAreValid()850 } else if (selectedPosition == PROXY_PAC && mProxyPacView != null) { in ipAndProxyFieldsAreValid()
850 final int selectedPosition = mProxySettingsSpinner.getSelectedItemPosition(); in ipAndProxyFieldsAreValid() local853 if (selectedPosition == PROXY_STATIC && mProxyHostView != null) { in ipAndProxyFieldsAreValid()872 } else if (selectedPosition == PROXY_PAC && mProxyPacView != null) { in ipAndProxyFieldsAreValid()