Home
last modified time | relevance | path

Searched refs:actionKey (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/android/widget/
DSearchView.java999 SearchableInfo.ActionKeyInfo actionKey = mSearchable.findActionKey(keyCode); in onKeyDown() local
1000 if ((actionKey != null) && (actionKey.getQueryActionMsg() != null)) { in onKeyDown()
1001 launchQuerySearch(keyCode, actionKey.getQueryActionMsg(), mSearchSrcTextView.getText() in onKeyDown()
1047 SearchableInfo.ActionKeyInfo actionKey = mSearchable.findActionKey(keyCode);
1048 if ((actionKey != null) && (actionKey.getQueryActionMsg() != null)) {
1049 launchQuerySearch(keyCode, actionKey.getQueryActionMsg(), mSearchSrcTextView
1106 SearchableInfo.ActionKeyInfo actionKey = mSearchable.findActionKey(keyCode); in onSuggestionsKey() local
1107 if ((actionKey != null) in onSuggestionsKey()
1108 && ((actionKey.getSuggestActionMsg() != null) || (actionKey in onSuggestionsKey()
1115 final String actionMsg = getActionKeyMessage(c, actionKey); in onSuggestionsKey()
[all …]
/frameworks/base/services/core/java/com/android/server/policy/
DLegacyGlobalActions.java279 String actionKey = defaultActions[i]; in createDialog() local
280 if (addedKeys.contains(actionKey)) { in createDialog()
284 if (GLOBAL_ACTION_KEY_POWER.equals(actionKey)) { in createDialog()
286 } else if (GLOBAL_ACTION_KEY_AIRPLANE.equals(actionKey)) { in createDialog()
288 } else if (GLOBAL_ACTION_KEY_BUGREPORT.equals(actionKey)) { in createDialog()
293 } else if (GLOBAL_ACTION_KEY_SILENT.equals(actionKey)) { in createDialog()
297 } else if (GLOBAL_ACTION_KEY_USERS.equals(actionKey)) { in createDialog()
301 } else if (GLOBAL_ACTION_KEY_SETTINGS.equals(actionKey)) { in createDialog()
303 } else if (GLOBAL_ACTION_KEY_LOCKDOWN.equals(actionKey)) { in createDialog()
305 } else if (GLOBAL_ACTION_KEY_VOICEASSIST.equals(actionKey)) { in createDialog()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsDialog.java288 String actionKey = defaultActions[i]; in createDialog() local
289 if (addedKeys.contains(actionKey)) { in createDialog()
293 if (GLOBAL_ACTION_KEY_POWER.equals(actionKey)) { in createDialog()
295 } else if (GLOBAL_ACTION_KEY_AIRPLANE.equals(actionKey)) { in createDialog()
297 } else if (GLOBAL_ACTION_KEY_BUGREPORT.equals(actionKey)) { in createDialog()
302 } else if (GLOBAL_ACTION_KEY_SILENT.equals(actionKey)) { in createDialog()
306 } else if (GLOBAL_ACTION_KEY_USERS.equals(actionKey)) { in createDialog()
310 } else if (GLOBAL_ACTION_KEY_SETTINGS.equals(actionKey)) { in createDialog()
312 } else if (GLOBAL_ACTION_KEY_LOCKDOWN.equals(actionKey)) { in createDialog()
314 } else if (GLOBAL_ACTION_KEY_VOICEASSIST.equals(actionKey)) { in createDialog()
[all …]
/frameworks/base/core/java/android/app/
DSearchDialog.java532 protected void launchQuerySearch(int actionKey, String actionMsg) { in launchQuerySearch() argument
535 Intent intent = createIntent(action, null, null, query, actionKey, actionMsg); in launchQuerySearch()
584 int actionKey, String actionMsg) { in createIntent() argument
604 if (actionKey != KeyEvent.KEYCODE_UNKNOWN) { in createIntent()
605 intent.putExtra(SearchManager.ACTION_KEY, actionKey); in createIntent()
DSearchableInfo.java874 for (ActionKeyInfo actionKey : mActionKeys.values()) { in writeToParcel()
875 actionKey.writeToParcel(dest, flags); in writeToParcel()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSearchView.java1385 boolean onItemClicked(int position, int actionKey, String actionMsg) { in onItemClicked() argument
1474 private boolean launchSuggestion(int position, int actionKey, String actionMsg) { in launchSuggestion() argument
1478 Intent intent = createIntentFromSuggestion(c, actionKey, actionMsg); in launchSuggestion()
1513 void launchQuerySearch(int actionKey, String actionMsg, String query) { in launchQuerySearch() argument
1515 Intent intent = createIntent(action, null, null, query, actionKey, actionMsg); in launchQuerySearch()
1533 int actionKey, String actionMsg) { in createIntent() argument
1553 if (actionKey != KeyEvent.KEYCODE_UNKNOWN) { in createIntent()
1554 intent.putExtra(SearchManager.ACTION_KEY, actionKey); in createIntent()
1651 private Intent createIntentFromSuggestion(Cursor c, int actionKey, String actionMsg) { in createIntentFromSuggestion() argument
1680 return createIntent(action, dataUri, extraData, query, actionKey, actionMsg); in createIntentFromSuggestion()