Searched refs:Key (Results 1 - 25 of 28) sorted by relevance

12

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DKeysCache.java19 import com.android.inputmethod.keyboard.Key;
25 private final HashMap<Key, Key> mMap = CollectionUtils.newHashMap();
31 public Key get(final Key key) {
32 final Key existingKey = mMap.get(key);
H A DKeyboardParams.java21 import com.android.inputmethod.keyboard.Key;
61 public final TreeSet<Key> mKeys = CollectionUtils.newTreeSet(); // ordered set
62 public final ArrayList<Key> mShiftKeys = CollectionUtils.newArrayList();
63 public final ArrayList<Key> mAltCodeKeysWhileTyping = CollectionUtils.newArrayList();
85 public void onAddKey(final Key newKey) {
86 final Key key = (mKeysCache != null) ? mKeysCache.get(newKey) : newKey;
122 private void updateHistogram(final Key key) {
H A DKeyboardRow.java23 import com.android.inputmethod.keyboard.Key;
51 // Will be updated by {@link Key}'s constructor.
69 Key.BACKGROUND_TYPE_NORMAL);
H A DKeyboardBuilder.java30 import com.android.inputmethod.keyboard.Key;
58 * &lt;Key key_attributes* /&gt;
72 * &lt;Key key_attributes* /&gt;
81 * &lt;Key key_attributes* /&gt;
98 * You can declare Key style and specify styles within Key tags.
113 * &lt;Key keyStyle="shift-key" ... /&gt;
124 private static final String TAG_KEY = "Key";
145 private Key mRightEdgeKey = null;
427 final Key ke
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DPagedViewIconCache.java34 public static class Key { class in class:PagedViewIconCache
43 public Key(ApplicationInfo info) { method in class:PagedViewIconCache.Key
47 public Key(ResolveInfo info) { method in class:PagedViewIconCache.Key
53 public Key(AppWidgetProviderInfo info) { method in class:PagedViewIconCache.Key
67 if (o instanceof Key) {
68 Key k = (Key) o;
79 private final HashMap<Key, Bitmap> mIconOutlineCache = new HashMap<Key, Bitmap>();
82 for (Key ke
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DMoreKeysDetector.java36 public Key detectHitKey(int x, int y) {
40 Key nearestKey = null;
42 for (final Key key : getKeyboard().mKeys) {
H A DProximityInfo.java34 private static final Key[] EMPTY_KEY_ARRAY = new Key[0];
47 private final Key[] mKeys;
48 private final Key[][] mGridNeighbors;
53 final int mostCommonKeyHeight, final Key[] keys,
70 mGridNeighbors = new Key[mGridSize][];
110 final Key[][] gridNeighborKeys = mGridNeighbors;
113 final Key[] keys = mKeys;
134 final Key key = keys[i];
149 final Key ke
[all...]
H A DKeyDetector.java95 public Key detectHitKey(int x, int y) {
100 Key primaryKey = null;
101 for (final Key key: mKeyboard.getNearestKeys(touchX, touchY)) {
103 // the empty area around the key. (@see Key#markAsLeftEdge(KeyboardParams)} etc.)
120 public static String printableCode(Key key) {
H A DPointerTracker.java79 public void invalidateKey(Key key);
86 public void startTypingStateTimer(Key typedKey);
99 public void startTypingStateTimer(Key typedKey) {}
295 private Key mCurrentKey = null;
424 private boolean callListenerOnPressAndCheckKeyboardLayoutChange(final Key key) {
449 // primaryCode is different from {@link Key#mCode}.
450 private void callListenerOnCodeInput(final Key key, final int primaryCode, final int x,
481 // primaryCode is different from {@link Key#mCode}.
482 private void callListenerOnRelease(final Key key, final int primaryCode,
526 final Key newKe
[all...]
H A DMoreKeysKeyboard.java239 public void markAsEdgeKey(final Key key, final int row) {
252 private final Key mParentKey;
262 * @param parentKey the {@link Key} that invokes more keys keyboard.
265 public Builder(final View containerView, final Key parentKey,
308 private static int getMaxKeyWidth(final KeyboardView view, final Key parentKey,
340 final Key key = new Key(params, moreKeySpec, x, y,
351 final Key divider = new MoreKeyDivider(params, mDivider, dividerX, y);
359 private static class MoreKeyDivider extends Key.Spacer {
H A DMainKeyboardView.java108 private Key mSpaceKey;
137 private final WeakHashMap<Key, MoreKeysPanel> mMoreKeysPanelCache =
138 new WeakHashMap<Key, MoreKeysPanel>();
146 private Key mOldKey;
188 final Key currentKey = tracker.getKey();
205 final Key key = tracker.getKey();
247 final Key key = tracker.getKey();
296 public void startTypingStateTimer(final Key typedKey) {
548 private boolean openMoreKeysKeyboardIfRequired(final Key parentKey,
564 protected MoreKeysPanel onCreateMoreKeysPanel(final Key parentKe
[all...]
H A DKey.java55 public class Key implements Comparable<Key> { class in inherits:Comparable
56 private static final String TAG = Key.class.getSimpleName();
169 /** Key is enabled and responds on press */
175 public Key(final KeyboardParams params, final MoreKeySpec moreKeySpec, final int x, final int y, method in class:Key
184 public Key(final KeyboardParams params, final String label, final String hintLabel, method in class:Key
224 public Key(final Resources res, final KeyboardParams params, final KeyboardRow row, method in class:Key
386 private static int computeHashCode(final Key key) {
401 // Key can be distinguishable without the following members.
413 private boolean equalsInternal(final Key
[all...]
H A DKeyboardView.java139 // Key preview
178 private final HashSet<Key> mInvalidatedKeys = CollectionUtils.newHashSet();
414 for (final Key key : mInvalidatedKeys) {
436 for (final Key key : mKeyboard.mKeys) {
441 for (final Key key : mInvalidatedKeys) {
475 private void onDrawKey(final Key key, final Canvas canvas, final Paint paint) {
494 protected void onDrawKeyBackground(final Key key, final Canvas canvas) {
516 protected void onDrawKeyTopVisuals(final Key key, final Canvas canvas, final Paint paint,
673 protected void drawKeyPopupHint(final Key key, final Canvas canvas, final Paint paint,
890 final Key ke
[all...]
/packages/apps/MusicFX/src/com/android/musicfx/
H A DControlPanelEffect.java61 static enum Key { enum in class:ControlPanelEffect
167 final boolean isGlobalEnabled = prefs.getBoolean(Key.global_enabled.toString(),
169 editor.putBoolean(Key.global_enabled.toString(), isGlobalEnabled);
173 final boolean isVIEnabled = prefs.getBoolean(Key.virt_enabled.toString(),
175 final int vIStrength = prefs.getInt(Key.virt_strength.toString(),
177 editor.putBoolean(Key.virt_enabled.toString(), isVIEnabled);
178 editor.putInt(Key.virt_strength.toString(), vIStrength);
185 editor.putBoolean(Key.virt_strength_supported.toString(),
197 final boolean isBBEnabled = prefs.getBoolean(Key.bb_enabled.toString(),
199 final int bBStrength = prefs.getInt(Key
[all...]
H A DControlPanelReceiver.java69 ControlPanelEffect.Key.global_enabled.toString(),
88 ControlPanelEffect.Key.global_enabled, value);
98 audioSession, ControlPanelEffect.Key.global_enabled);
H A DActivityMusic.java271 mAudioSession, ControlPanelEffect.Key.eq_num_presets);
275 mCallingPackageName, mAudioSession, ControlPanelEffect.Key.eq_preset_name, i);
295 mAudioSession, ControlPanelEffect.Key.global_enabled, isChecked);
332 mAudioSession, ControlPanelEffect.Key.virt_strength, progress);
340 mAudioSession, ControlPanelEffect.Key.virt_enabled, true);
350 mAudioSession, ControlPanelEffect.Key.virt_enabled, false);
361 mAudioSession, ControlPanelEffect.Key.virt_enabled, isChecked);
394 mAudioSession, ControlPanelEffect.Key.bb_strength, progress);
402 mAudioSession, ControlPanelEffect.Key.bb_enabled, true);
412 mAudioSession, ControlPanelEffect.Key
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
H A DAccessibilityEntityProvider.java35 import com.android.inputmethod.keyboard.Key;
42 * {@link AccessibilityEvent}s for individual {@link Key}s.
58 /** A map of integer IDs to {@link Key}s. */
59 private final SparseArray<Key> mVirtualViewIdToKey = CollectionUtils.newSparseArray();
114 public AccessibilityEvent createAccessibilityEvent(Key key, int eventType) {
165 final Key[] keys = keyboard.mKeys;
166 for (Key key : keys) {
172 final Key key = mVirtualViewIdToKey.get(virtualViewId);
217 void simulateKeyPress(Key key) {
235 final Key ke
[all...]
H A DAccessibleKeyboardViewProxy.java28 import com.android.inputmethod.keyboard.Key;
42 private Key mLastHoverKey = null;
130 final Key previousKey = mLastHoverKey;
131 final Key key;
190 * Simulates a transition between two {@link Key}s by sending a HOVER_EXIT
199 private boolean onTransitionKey(Key currentKey, Key previousKey, MotionEvent event) {
217 * Handles a hover event on a key. If {@link Key} extended View, this would
224 private boolean onHoverKey(Key key, MotionEvent event) {
H A DKeyCodeDescriptionMapper.java25 import com.android.inputmethod.keyboard.Key;
96 public String getDescriptionForKey(Context context, Keyboard keyboard, Key key,
210 private String getDescriptionForActionKey(Context context, Keyboard keyboard, Key key) {
268 private String getDescriptionForKeyCode(Context context, Keyboard keyboard, Key key,
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DKeyboard.java53 * &lt;Key android:keyLabel="A" /&gt;
66 private static final String TAG_KEY = "Key";
116 /** Key instance for the shift key, if present */
117 private Key mShiftKey;
119 /** Key index for the shift key, if present */
138 private List<Key> mKeys;
141 private List<Key> mModifierKeys;
222 public static class Key { class in class:Keyboard
306 public Key(Row parent) { method in class:Keyboard.Key
323 public Key(Resource method in class:Keyboard.Key
[all...]
H A DKeyboardView.java50 import jp.co.omronsoft.openwnn.Keyboard.Key;
126 boolean onLongPress(Keyboard.Key key);
159 private Map<Key,View> mMiniKeyboardCache;
161 private Key[] mKeys;
211 private Key mInvalidatedKey;
369 mMiniKeyboardCache = new HashMap<Key,View>();
472 List<Key> keys = mKeyboard.getKeys();
473 mKeys = keys.toArray(new Key[keys.size()]);
645 final Key[] keys = mKeys;
650 Key ke
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
H A DMoreSuggestions.java23 import com.android.inputmethod.keyboard.Key;
151 public void markAsEdgeKey(final Key key, final int pos) {
204 final Key key = new Key(
221 private static final class Divider extends Key.Spacer {
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
H A DResearchLog.java25 import com.android.inputmethod.keyboard.Key;
217 Log.d(TAG, "Key and Value list sizes do not match. " + keys[0]);
264 } else if (value instanceof Key[]) {
265 Key[] keyboardKeys = (Key[]) value;
267 for (Key keyboardKey : keyboardKeys) {
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DWordComposer.java19 import com.android.inputmethod.keyboard.Key;
181 final Key key;
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
H A DInputTestsBase.java40 import com.android.inputmethod.keyboard.Key;
237 for (final Key key : mKeyboard.mKeys) {

Completed in 374 milliseconds

12