Home | History | Annotate | Download | only in inputmethodservice

Lines Matching refs:Keyboard

30 import android.inputmethodservice.Keyboard.Key;
53 * A view that renders a virtual {@link Keyboard}. It handles rendering of keys and
68 * Listener for virtual keyboard events.
128 private static final int[] KEY_DELETE = { Keyboard.KEYCODE_DELETE };
131 private Keyboard mKeyboard;
235 /** Whether the keyboard bitmap needs to be redrawn before it's blitted. **/
237 /** The dirty region in the keyboard bitmap */
239 /** The keyboard bitmap for faster updates */
241 /** Notes if the keyboard just changed, so that we could possibly reallocate the mBuffer. */
243 /** The canvas for the above mutable keyboard bitmap */
379 int travelX = getWidth() / 2; // Half the keyboard width
380 int travelY = getHeight() / 2; // Half the keyboard height
431 * @return the listener attached to this keyboard
438 * Attaches a keyboard to this view. The keyboard can be switched at any time and the
439 * view will re-layout itself to accommodate the keyboard.
440 * @see Keyboard
442 * @param keyboard the keyboard to display in this view
444 public void setKeyboard(Keyboard keyboard) {
450 mKeyboard = keyboard;
457 computeProximityThreshold(keyboard);
459 // Switching to a different keyboard should abort any pending keys so that the key up
460 // doesn't get delivered to the old or new keyboard
465 * Returns the current keyboard being displayed by this view.
466 * @return the currently attached keyboard
467 * @see #setKeyboard(Keyboard)
469 public Keyboard getKeyboard() {
474 * Sets the state of the shift key of the keyboard, if any.
482 // The whole keyboard probably needs to be redrawn
491 * Returns the state of the shift key of the keyboard, if any.
493 * no shift key on the keyboard or there is no keyboard attached, it returns false.
555 * Popup keyboard close button clicked.
588 * @param keyboard
590 private void computeProximityThreshold(Keyboard keyboard) {
591 if (keyboard == null) return;
714 // Overlay a dark rectangle to dim the keyboard
801 mKeyboardActionListener.onKey(Keyboard.KEYCODE_DELETE, KEY_DELETE);
925 // If the key you're pressing is on the left side of the keyboard, show the popup on
948 * Requests a redraw of the entire keyboard. Calling {@link #invalidate} is not sufficient
949 * because the keyboard renders the keys to an off-screen buffer and an invalidate() only
963 * @param keyIndex the index of the key in the attached {@link Keyboard}.
999 * Called when a key is long pressed. By default this will open any popup keyboard associated
1042 Keyboard keyboard;
1044 keyboard = new Keyboard(getContext(), popupKeyboardId,
1047 keyboard = new Keyboard(getContext(), popupKeyboardId);
1049 mMiniKeyboard.setKeyboard(keyboard);
1156 // displayed the mini keyboard