Home | History | Annotate | Download | only in latin

Lines Matching refs:Keyboard

32 import android.inputmethodservice.Keyboard;
33 import android.inputmethodservice.Keyboard.Key;
183 // Main keyboard
184 private Keyboard mKeyboard;
186 // TODO this attribute should be gotten from Keyboard.
204 // Popup mini keyboard
236 /** Whether the keyboard bitmap needs to be redrawn before it's blitted. **/
238 /** The dirty region in the keyboard bitmap */
240 /** The keyboard bitmap for faster updates */
242 /** Notes if the keyboard just changed, so that we could possibly reallocate the mBuffer. */
245 /** The canvas for the above mutable keyboard bitmap */
530 int travelX = getWidth() / 2; // Half the keyboard width
531 int travelY = getHeight() / 2; // Half the keyboard height
578 * @return the listener attached to this keyboard
585 * Attaches a keyboard to this view. The keyboard can be switched at any time and the
586 * view will re-layout itself to accommodate the keyboard.
587 * @see Keyboard
589 * @param keyboard the keyboard to display in this view
591 public void setKeyboard(Keyboard keyboard) {
598 mKeyboard = keyboard;
599 LatinImeLogger.onSetKeyboard(keyboard);
600 mKeys = mKeyDetector.setKeyboard(keyboard, -getPaddingLeft(),
610 computeProximityThreshold(keyboard);
615 * Returns the current keyboard being displayed by this view.
616 * @return the currently attached keyboard
617 * @see #setKeyboard(Keyboard)
619 public Keyboard getKeyboard() {
632 * Sets the state of the shift key of the keyboard, if any.
639 // The whole keyboard probably needs to be redrawn
648 * Returns the state of the shift key of the keyboard, if any.
650 * no shift key on the keyboard or there is no keyboard attached, it returns false.
745 * @param keyboard
747 private void computeProximityThreshold(Keyboard keyboard) {
748 if (keyboard == null) return;
899 // Overlay a dark rectangle to dim the keyboard
1010 // If the key you're pressing is on the left side of the keyboard, show the popup on
1028 // Record popup preview position to display mini-keyboard later at the same positon
1034 * Requests a redraw of the entire keyboard. Calling {@link #invalidate} is not sufficient
1035 * because the keyboard renders the keys to an off-screen buffer and an invalidate() only
1049 * @param key key in the attached {@link Keyboard}.
1127 // Remove gesture detector on mini-keyboard
1130 Keyboard keyboard;
1132 keyboard = new Keyboard(getContext(), popupKeyboardId, popupKey.popupCharacters,
1135 keyboard = new Keyboard(getContext(), popupKeyboardId);
1137 miniKeyboard.setKeyboard(keyboard);
1149 // HACK: The first key of mini keyboard which was inflated from xml and has multiple rows,
1151 // the first key of mini keyboard that was created with popupCharacters must have both top
1153 // When you want to use one row mini-keyboard from xml file, make sure that the row has
1155 return (edgeFlags & Keyboard.EDGE_TOP) != 0 && (edgeFlags & Keyboard.EDGE_BOTTOM) != 0;
1159 * Called when a key is long pressed. By default this will open any popup keyboard associated
1167 // mini keyboard.
1183 // Get width of a key in the mini popup keyboard = "miniKeyWidth".
1184 // On the other hand, "popupKey.width" is width of the pressed key on the main keyboard.
1185 // We adjust the position of mini popup keyboard with the edge key in it:
1186 // a) When we have the leftmost key in popup keyboard directly above the pressed key
1188 // b) When we have the rightmost key in popup keyboard directly above the pressed key
1223 // Mini keyboard needs no pop-up key preview displayed.
1230 // Inject down event on the key to mini keyboard.
1344 // Gesture detector must be enabled only when mini-keyboard is not on the screen.
1359 // displayed the mini keyboard