Lines Matching defs:position

232          * @param position the absolute position in the list of suggestions.
237 boolean onSuggestionSelect(int position);
241 * @param position the absolute position of the clicked item in the list of suggestions.
247 boolean onSuggestionClick(int position);
1036 int position = mSearchSrcTextView.getListSelection();
1037 return onItemClicked(position, KeyEvent.KEYCODE_UNKNOWN, null);
1070 int position = mSearchSrcTextView.getListSelection();
1071 if (position != ListView.INVALID_POSITION) {
1073 if (c.moveToPosition(position)) {
1076 return onItemClicked(position, keyCode, actionMsg);
1356 private boolean onItemClicked(int position, int actionKey, String actionMsg) {
1358 || !mOnSuggestionListener.onSuggestionClick(position)) {
1359 launchSuggestion(position, KeyEvent.KEYCODE_UNKNOWN, null);
1367 private boolean onItemSelected(int position) {
1369 || !mOnSuggestionListener.onSuggestionSelect(position)) {
1370 rewriteQueryFromSuggestion(position);
1381 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
1382 if (DBG) Log.d(LOG_TAG, "onItemClick() position " + position);
1383 onItemClicked(position, KeyEvent.KEYCODE_UNKNOWN, null);
1392 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
1393 if (DBG) Log.d(LOG_TAG, "onItemSelected() position " + position);
1394 SearchView.this.onItemSelected(position);
1409 private void rewriteQueryFromSuggestion(int position) {
1415 if (c.moveToPosition(position)) {
1427 // We got a bad position, restore the user's query.
1435 * @param position The index of the suggestion to create the intent from.
1440 * @return true if a successful launch, false if could not (e.g. bad position).
1442 private boolean launchSuggestion(int position, int actionKey, String actionMsg) {
1444 if ((c != null) && c.moveToPosition(position)) {
1618 * @return An intent for the suggestion at the cursor's position.