Lines Matching refs:position

246          * @param position the absolute position in the list of suggestions.
251 boolean onSuggestionSelect(int position);
255 * @param position the absolute position of the clicked item in the list of suggestions.
261 boolean onSuggestionClick(int position);
1052 int position = mSearchSrcTextView.getListSelection();
1053 return onItemClicked(position, KeyEvent.KEYCODE_UNKNOWN, null);
1385 boolean onItemClicked(int position, int actionKey, String actionMsg) {
1387 || !mOnSuggestionListener.onSuggestionClick(position)) {
1388 launchSuggestion(position, KeyEvent.KEYCODE_UNKNOWN, null);
1396 boolean onItemSelected(int position) {
1398 || !mOnSuggestionListener.onSuggestionSelect(position)) {
1399 rewriteQueryFromSuggestion(position);
1411 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
1412 if (DBG) Log.d(LOG_TAG, "onItemClick() position " + position);
1413 onItemClicked(position, KeyEvent.KEYCODE_UNKNOWN, null);
1423 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
1424 if (DBG) Log.d(LOG_TAG, "onItemSelected() position " + position);
1425 SearchView.this.onItemSelected(position);
1441 private void rewriteQueryFromSuggestion(int position) {
1447 if (c.moveToPosition(position)) {
1459 // We got a bad position, restore the user's query.
1467 * @param position The index of the suggestion to create the intent from.
1472 * @return true if a successful launch, false if could not (e.g. bad position).
1474 private boolean launchSuggestion(int position, int actionKey, String actionMsg) {
1476 if ((c != null) && c.moveToPosition(position)) {
1649 * @return An intent for the suggestion at the cursor's position.