Lines Matching refs:Key
21 import com.android.inputmethod.keyboard.Key;
68 public final SortedSet<Key> mSortedKeys = new TreeSet<>(ROW_COLUMN_COMPARATOR);
70 public final ArrayList<Key> mShiftKeys = new ArrayList<>();
72 public final ArrayList<Key> mAltCodeKeysWhileTyping = new ArrayList<>();
93 // Comparator to sort {@link Key}s from top-left to bottom-right order.
94 private static final Comparator<Key> ROW_COLUMN_COMPARATOR = new Comparator<Key>() {
96 public int compare(final Key lhs, final Key rhs) {
119 public void onAddKey(@Nonnull final Key newKey) {
120 final Key key = mUniqueKeysCache.getUniqueKey(newKey);
145 for (final Key key : mSortedKeys) {
148 final ArrayList<Key> allKeys = new ArrayList<>(mSortedKeys);
150 for (final Key key : allKeys) {
151 final Key filteredKey = Key.removeRedundantMoreKeys(key, lettersOnBaseLayout);
178 private void updateHistogram(final Key key) {