Home | History | Annotate | Download | only in keyboard

Lines Matching refs:keyboard

17 package com.android.inputmethod.keyboard;
38 import com.android.inputmethod.keyboard.internal.KeyboardBuilder;
39 import com.android.inputmethod.keyboard.internal.KeyboardParams;
40 import com.android.inputmethod.keyboard.internal.KeysCache;
58 * This class represents a set of keyboard layouts. Each of them represents a different keyboard
59 * specific to a keyboard state, such as alphabet, symbols, and so on. Layouts in the same
76 private static final HashMap<KeyboardId, SoftReference<Keyboard>> sKeyboardCache =
124 public Keyboard getKeyboard(final int baseKeyboardLayoutSetElementId) {
159 private Keyboard getKeyboard(final ElementParams elementParams, final KeyboardId id) {
160 final SoftReference<Keyboard> ref = sKeyboardCache.get(id);
161 Keyboard keyboard = (ref == null) ? null : ref.get();
162 if (keyboard == null) {
175 keyboard = builder.build();
176 sKeyboardCache.put(id, new SoftReference<Keyboard>(keyboard));
179 Log.d(TAG, "keyboard cache size=" + sKeyboardCache.size() + ": "
183 Log.d(TAG, "keyboard cache size=" + sKeyboardCache.size() + ": HIT id=" + id);
186 return keyboard;
189 // Note: The keyboard for each locale, shift state, and mode are represented as
191 // which XML layout should be used for each keyboard. The KeyboardId is an internal key for
192 // Keyboard object.