Lines Matching refs:position

222          * @param position the absolute position in the list of suggestions.
227 boolean onSuggestionSelect(int position);
231 * @param position the absolute position of the clicked item in the list of suggestions.
237 boolean onSuggestionClick(int position);
964 int position = mQueryTextView.getListSelection();
965 return onItemClicked(position, KeyEvent.KEYCODE_UNKNOWN, null);
998 int position = mQueryTextView.getListSelection();
999 if (position != ListView.INVALID_POSITION) {
1001 if (c.moveToPosition(position)) {
1004 return onItemClicked(position, keyCode, actionMsg);
1306 private boolean onItemClicked(int position, int actionKey, String actionMsg) {
1308 || !mOnSuggestionListener.onSuggestionClick(position)) {
1309 launchSuggestion(position, KeyEvent.KEYCODE_UNKNOWN, null);
1317 private boolean onItemSelected(int position) {
1319 || !mOnSuggestionListener.onSuggestionSelect(position)) {
1320 rewriteQueryFromSuggestion(position);
1331 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
1332 if (DBG) Log.d(LOG_TAG, "onItemClick() position " + position);
1333 onItemClicked(position, KeyEvent.KEYCODE_UNKNOWN, null);
1342 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
1343 if (DBG) Log.d(LOG_TAG, "onItemSelected() position " + position);
1344 SearchView.this.onItemSelected(position);
1364 private void rewriteQueryFromSuggestion(int position) {
1370 if (c.moveToPosition(position)) {
1382 // We got a bad position, restore the user's query.
1390 * @param position The index of the suggestion to create the intent from.
1395 * @return true if a successful launch, false if could not (e.g. bad position).
1397 private boolean launchSuggestion(int position, int actionKey, String actionMsg) {
1399 if ((c != null) && c.moveToPosition(position)) {
1573 * @return An intent for the suggestion at the cursor's position.