Lines Matching refs:keys

53  * A view that renders a virtual {@link Keyboard}. It handles rendering of keys and
74 * For keys that repeat, this is only called once.
82 * For keys that repeat, this is only called once.
90 * @param keyCodes the codes for all the possible alternative keys
93 * will include other characters that may be on the same key or adjacent keys.
220 private static final int REPEAT_INTERVAL = 50; // ~20 keys per second
451 List<Key> keys = mKeyboard.getKeys();
452 mKeys = keys.toArray(new Key[keys.size()]);
459 // Switching to a different keyboard should abort any pending keys so that the key up
539 * codes for adjacent keys. When disabled, only the primary key code will be
585 * Compute the average distance between adjacent keys (horizontally and vertically)
592 final Key[] keys = mKeys;
593 if (keys == null) return;
594 int length = keys.length;
597 Key key = keys[i];
645 final Key[] keys = mKeys;
660 final int keyCount = keys.length;
662 final Key key = keys[i];
736 final Key[] keys = mKeys;
744 final Key key = keys[nearestKeyIndices[i]];
816 * Handle multi-tap keys by producing the key label for the current multi-tap state.
835 final Key[] keys = mKeys;
837 if (oldKeyIndex != NOT_A_KEY && keys.length > oldKeyIndex) {
838 keys[oldKeyIndex].onReleased(mCurrentKeyIndex == NOT_A_KEY);
841 if (mCurrentKeyIndex != NOT_A_KEY && keys.length > mCurrentKeyIndex) {
842 keys[mCurrentKeyIndex].onPressed();
871 final Key[] keys = mKeys;
873 Key key = keys[keyIndex];
949 * because the keyboard renders the keys to an off-screen buffer and an invalidate() only