Home | History | Annotate | Download | only in accessibility

Lines Matching refs:keyboard

25 import com.android.inputmethod.keyboard.Key;
26 import com.android.inputmethod.keyboard.Keyboard;
27 import com.android.inputmethod.keyboard.KeyboardId;
63 // Special non-character codes defined in Keyboard
64 mKeyCodeMap.put(Keyboard.CODE_SPACE, R.string.spoken_description_space);
65 mKeyCodeMap.put(Keyboard.CODE_DELETE, R.string.spoken_description_delete);
66 mKeyCodeMap.put(Keyboard.CODE_ENTER, R.string.spoken_description_return);
67 mKeyCodeMap.put(Keyboard.CODE_SETTINGS, R.string.spoken_description_settings);
68 mKeyCodeMap.put(Keyboard.CODE_SHIFT, R.string.spoken_description_shift);
69 mKeyCodeMap.put(Keyboard.CODE_SHORTCUT, R.string.spoken_description_mic);
70 mKeyCodeMap.put(Keyboard.CODE_SWITCH_ALPHA_SYMBOL, R.string.spoken_description_to_symbol);
71 mKeyCodeMap.put(Keyboard.CODE_TAB, R.string.spoken_description_tab);
72 mKeyCodeMap.put(Keyboard.CODE_LANGUAGE_SWITCH, R.string.spoken_description_language_switch);
73 mKeyCodeMap.put(Keyboard.CODE_ACTION_NEXT, R.string.spoken_description_action_next);
74 mKeyCodeMap.put(Keyboard.CODE_ACTION_PREVIOUS, R.string.spoken_description_action_previous);
79 * key based on the current keyboard state.
90 * @param keyboard The keyboard on which the key resides.
96 public String getDescriptionForKey(Context context, Keyboard keyboard, Key key,
100 if (code == Keyboard.CODE_SWITCH_ALPHA_SYMBOL) {
101 final String description = getDescriptionForSwitchAlphaSymbol(context, keyboard);
106 if (code == Keyboard.CODE_SHIFT) {
107 return getDescriptionForShiftKey(context, keyboard);
110 if (code == Keyboard.CODE_ACTION_ENTER) {
111 return getDescriptionForActionKey(context, keyboard, key);
124 if (key.mCode != Keyboard.CODE_UNSPECIFIED) {
125 return getDescriptionForKeyCode(context, keyboard, key, shouldObscure);
134 * current keyboard context.
137 * @param keyboard The keyboard on which the key resides.
141 private String getDescriptionForSwitchAlphaSymbol(Context context, Keyboard keyboard) {
142 final KeyboardId keyboardId = keyboard.mId;
165 Log.e(TAG, "Missing description for keyboard element ID:" + elementId);
176 * @param keyboard The keyboard on which the key resides.
179 private String getDescriptionForShiftKey(Context context, Keyboard keyboard) {
180 final KeyboardId keyboardId = keyboard.mId;
205 * @param keyboard The keyboard on which the key resides.
210 private String getDescriptionForActionKey(Context context, Keyboard keyboard, Key key) {
211 final KeyboardId keyboardId = keyboard.mId;
262 * @param keyboard The keyboard on which the key resides.
268 private String getDescriptionForKeyCode(Context context, Keyboard keyboard, Key key,