/packages/apps/Launcher2/src/com/android/launcher2/ |
D | PagedViewIconCache.java | 34 public static class Key { class in PagedViewIconCache 43 public Key(ApplicationInfo info) { in Key() method in PagedViewIconCache.Key 47 public Key(ResolveInfo info) { in Key() method in PagedViewIconCache.Key 53 public Key(AppWidgetProviderInfo info) { in Key() method in PagedViewIconCache.Key 67 if (o instanceof Key) { in equals() 68 Key k = (Key) o; in equals() 79 private final HashMap<Key, Bitmap> mIconOutlineCache = new HashMap<Key, Bitmap>(); 82 for (Key key : mIconOutlineCache.keySet()) { in clear() 87 private void retainAll(HashSet<Key> keysToKeep, Key.Type t) { in retainAll() 88 HashSet<Key> keysToRemove = new HashSet<Key>(mIconOutlineCache.keySet()); in retainAll() [all …]
|
/packages/apps/MusicFX/src/com/android/musicfx/ |
D | ControlPanelEffect.java | 61 static enum Key { enum in ControlPanelEffect 162 final boolean isGlobalEnabled = prefs.getBoolean(Key.global_enabled.toString(), in initEffectsPreferences() 164 editor.putBoolean(Key.global_enabled.toString(), isGlobalEnabled); in initEffectsPreferences() 168 final boolean isVIEnabled = prefs.getBoolean(Key.virt_enabled.toString(), in initEffectsPreferences() 170 final int vIStrength = prefs.getInt(Key.virt_strength.toString(), in initEffectsPreferences() 172 editor.putBoolean(Key.virt_enabled.toString(), isVIEnabled); in initEffectsPreferences() 173 editor.putInt(Key.virt_strength.toString(), vIStrength); in initEffectsPreferences() 176 final boolean isBBEnabled = prefs.getBoolean(Key.bb_enabled.toString(), in initEffectsPreferences() 178 final int bBStrength = prefs.getInt(Key.bb_strength.toString(), in initEffectsPreferences() 180 editor.putBoolean(Key.bb_enabled.toString(), isBBEnabled); in initEffectsPreferences() [all …]
|
D | ActivityMusic.java | 266 mAudioSession, ControlPanelEffect.Key.eq_num_presets); in onCreate() 270 mCallingPackageName, mAudioSession, ControlPanelEffect.Key.eq_preset_name, i); in onCreate() 290 mAudioSession, ControlPanelEffect.Key.global_enabled, isChecked); in onCreate() 327 mAudioSession, ControlPanelEffect.Key.virt_strength, progress); in onCreate() 335 mAudioSession, ControlPanelEffect.Key.virt_enabled, true); in onCreate() 345 mAudioSession, ControlPanelEffect.Key.virt_enabled, false); in onCreate() 379 mAudioSession, ControlPanelEffect.Key.bb_strength, progress); in onCreate() 387 mAudioSession, ControlPanelEffect.Key.bb_enabled, true); in onCreate() 397 mAudioSession, ControlPanelEffect.Key.bb_enabled, false); in onCreate() 407 mAudioSession, ControlPanelEffect.Key.eq_current_preset); in onCreate() [all …]
|
D | ControlPanelReceiver.java | 69 ControlPanelEffect.Key.global_enabled.toString(), in onReceive() 88 ControlPanelEffect.Key.global_enabled, value); in onReceive() 98 audioSession, ControlPanelEffect.Key.global_enabled); in onReceive()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | ProximityInfo.java | 33 private static final Key[] EMPTY_KEY_ARRAY = new Key[0]; 45 private final Key[] mKeys; 47 private final Key[][] mGridNeighbors; 51 int mostCommonKeyWidth, int mostCommonKeyHeight, final Key[] keys, in ProximityInfo() 69 mGridNeighbors = new Key[mGridSize][]; in ProximityInfo() 94 mGridNeighbors = new Key[mGridSize][]; in ProximityInfo() 129 final Key[][] gridNeighborKeys = mGridNeighbors; in createNativeProximityInfo() 132 final Key[] keys = mKeys; in createNativeProximityInfo() 154 final Key key = keys[i]; in createNativeProximityInfo() 167 final Key key = keys[i]; in createNativeProximityInfo() [all …]
|
D | PointerTracker.java | 67 public void invalidateKey(Key key); in invalidateKey() 133 private Key mCurrentKey = null; 238 private boolean callListenerOnPressAndCheckKeyboardLayoutChange(Key key) { in callListenerOnPressAndCheckKeyboardLayoutChange() 266 private void callListenerOnCodeInput(Key key, int primaryCode, int x, int y) { in callListenerOnCodeInput() 295 private void callListenerOnRelease(Key key, int primaryCode, boolean withSliding) { in callListenerOnRelease() 334 public Key getKey() { in getKey() 342 public Key getKeyOn(int x, int y) { in getKeyOn() 346 private void setReleasedKeyGraphics(Key key) { in setReleasedKeyGraphics() 356 for (final Key shiftKey : mKeyboard.mShiftKeys) { in setReleasedKeyGraphics() 365 final Key altKey = mKeyboard.getKey(altCode); in setReleasedKeyGraphics() [all …]
|
D | KeyDetector.java | 85 public Key detectHitKey(int x, int y) { in detectHitKey() 90 Key primaryKey = null; in detectHitKey() 91 for (final Key key: mKeyboard.getNearestKeys(touchX, touchY)) { in detectHitKey() 104 public static String printableCode(Key key) { in printableCode()
|
D | MoreKeysDetector.java | 36 public Key detectHitKey(int x, int y) { in detectHitKey() 40 Key nearestKey = null; in detectHitKey() 42 for (final Key key : getKeyboard().mKeys) { in detectHitKey()
|
D | Keyboard.java | 130 public final Key[] mKeys; 131 public final Key[] mShiftKeys; 132 public final Key[] mAltCodeKeysWhileTyping; 135 private final HashMap<Integer, Key> mKeyCache = new HashMap<Integer, Key>(); 153 mKeys = params.mKeys.toArray(new Key[params.mKeys.size()]); in Keyboard() 154 mShiftKeys = params.mShiftKeys.toArray(new Key[params.mShiftKeys.size()]); in Keyboard() 156 new Key[params.mAltCodeKeysWhileTyping.size()]); in Keyboard() 181 public Key getKey(int code) { in getKey() 190 for (final Key key : mKeys) { in getKey() 200 public boolean hasKey(Key aKey) { in hasKey() [all …]
|
D | MoreKeysKeyboard.java | 41 private final Key mParentKey; 243 public void markAsEdgeKey(Key key, int row) { in markAsEdgeKey() 261 public Builder(View containerView, Key parentKey, KeyboardView parentKeyboardView) { in Builder() 303 private static int getMaxKeyWidth(KeyboardView view, Key parentKey, int minKeyWidth) { in getMaxKeyWidth() 325 private static class MoreKeyDivider extends Key.Spacer { 353 final Key key = new Key(params, moreKeySpec, x, y, in build() 364 final Key divider = new MoreKeyDivider(params, mDivider, dividerX, y); in build()
|
D | LatinKeyboardView.java | 78 private Key mSpaceKey; 108 private final WeakHashMap<Key, MoreKeysPanel> mMoreKeysPanelCache = 109 new WeakHashMap<Key, MoreKeysPanel>(); 118 private Key mOldKey; 202 final Key key = tracker.getKey(); in startLongPressTimer() 512 private boolean openMoreKeysKeyboardIfRequired(Key parentKey, PointerTracker tracker) { in openMoreKeysKeyboardIfRequired() 527 protected MoreKeysPanel onCreateMoreKeysPanel(Key parentKey) { in onCreateMoreKeysPanel() 553 protected boolean onLongPress(Key parentKey, PointerTracker tracker) { in onLongPress() 591 private boolean openMoreKeysPanel(Key parentKey, PointerTracker tracker) { in openMoreKeysPanel() 730 final Key newKey = tracker.getKeyOn(x, y); in processMotionEvent() [all …]
|
D | Key.java | 50 public class Key { class 51 private static final String TAG = Key.class.getSimpleName(); 156 public Key(Keyboard.Params params, MoreKeySpec moreKeySpec, int x, int y, int width, int height, in Key() method in Key 165 public Key(Keyboard.Params params, String label, String hintLabel, int iconId, in Key() method in Key 204 public Key(Resources res, Keyboard.Params params, Keyboard.Builder.Row row, in Key() method in Key 361 private static int computeHashCode(Key key) { in computeHashCode() 388 private boolean equals(Key o) { in equals() 412 return o instanceof Key && equals((Key)o); in equals() 714 public static class Spacer extends Key {
|
D | KeyboardLayoutSet.java | 86 private final HashMap<Key, Key> mMap; 89 mMap = new HashMap<Key, Key>(); in KeysCache() 96 public Key get(Key key) { in get() 97 final Key existingKey = mMap.get(key); in get()
|
D | KeyboardView.java | 118 private final HashSet<Key> mInvalidatedKeys = new HashSet<Key>(); 480 for (final Key key : mKeyboard.mKeys) { in onBufferDraw() 488 for (final Key key : mInvalidatedKeys) { in onBufferDraw() 517 private void onDrawKey(Key key, Canvas canvas, Paint paint, KeyDrawParams params) { in onDrawKey() 532 protected void onDrawKeyBackground(Key key, Canvas canvas, KeyDrawParams params) { in onDrawKeyBackground() 554 protected void onDrawKeyTopVisuals(Key key, Canvas canvas, Paint paint, KeyDrawParams params) { in onDrawKeyTopVisuals() 730 protected void drawKeyPopupHint(Key key, Canvas canvas, Paint paint, KeyDrawParams params) { in drawKeyPopupHint() 888 final Key key = tracker.getKey(); in showKeyPreview() 982 public void invalidateKey(Key key) { in invalidateKey()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
D | AccessibilityEntityProvider.java | 35 import com.android.inputmethod.keyboard.Key; 58 private final SparseArray<Key> mVirtualViewIdToKey = new SparseArray<Key>(); 113 public AccessibilityEvent createAccessibilityEvent(Key key, int eventType) { in createAccessibilityEvent() 164 final Key[] keys = keyboard.mKeys; in createAccessibilityNodeInfo() 165 for (Key key : keys) { in createAccessibilityNodeInfo() 171 final Key key = mVirtualViewIdToKey.get(virtualViewId); in createAccessibilityNodeInfo() 217 void simulateKeyPress(Key key) { in simulateKeyPress() 232 final Key key = mVirtualViewIdToKey.get(virtualViewId); in performAction() 250 boolean performActionForKey(Key key, int action, Bundle arguments) { in performActionForKey() 284 void sendAccessibilityEventForKey(Key key, int eventType) { in sendAccessibilityEventForKey() [all …]
|
D | AccessibleKeyboardViewProxy.java | 29 import com.android.inputmethod.keyboard.Key; 43 private Key mLastHoverKey = null; 117 final Key key = tracker.getKeyOn(x, y); in dispatchHoverEvent() 118 final Key previousKey = mLastHoverKey; in dispatchHoverEvent() 180 private boolean onTransitionKey(Key currentKey, Key previousKey, MotionEvent event) { in onTransitionKey() 205 private boolean onHoverKey(Key key, MotionEvent event) { in onHoverKey()
|
D | KeyCodeDescriptionMapper.java | 24 import com.android.inputmethod.keyboard.Key; 94 public String getDescriptionForKey(Context context, Keyboard keyboard, Key key, in getDescriptionForKey() 208 private String getDescriptionForActionKey(Context context, Keyboard keyboard, Key key) { in getDescriptionForActionKey() 266 private String getDescriptionForKeyCode(Context context, Keyboard keyboard, Key key, in getDescriptionForKeyCode()
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | Keyboard.java | 117 private Key mShiftKey; 138 private List<Key> mKeys; 141 private List<Key> mModifierKeys; 222 public static class Key { class in Keyboard 306 public Key(Row parent) { in Key() method in Keyboard.Key 323 public Key(Resources res, Row parent, int x, int y, XmlResourceParser parser) { in Key() method in Keyboard.Key 542 mKeys = new ArrayList<Key>(); in Keyboard() 543 mModifierKeys = new ArrayList<Key>(); in Keyboard() 585 final Key key = new Key(row); in Keyboard() 605 public List<Key> getKeys() { in getKeys() [all …]
|
D | KeyboardView.java | 50 import jp.co.omronsoft.openwnn.Keyboard.Key; 126 boolean onLongPress(Keyboard.Key key); in onLongPress() 159 private Map<Key,View> mMiniKeyboardCache; 161 private Key[] mKeys; 211 private Key mInvalidatedKey; 369 mMiniKeyboardCache = new HashMap<Key,View>(); in KeyboardView() 472 List<Key> keys = mKeyboard.getKeys(); in setKeyboard() 473 mKeys = keys.toArray(new Key[keys.size()]); in setKeyboard() 645 final Key[] keys = mKeys; in computeProximityThreshold() 650 Key key = keys[i]; in computeProximityThreshold() [all …]
|
D | DefaultSoftKeyboard.java | 340 public boolean onLongPress(Keyboard.Key key) { 820 public boolean onLongPress(Keyboard.Key key) { in onLongPress()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
D | MoreSuggestions.java | 23 import com.android.inputmethod.keyboard.Key; 150 public void markAsEdgeKey(Key key, int pos) { in markAsEdgeKey() 186 private static class Divider extends Key.Spacer { 215 final Key key = new Key( in build()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | ResearchLogger.java | 33 import com.android.inputmethod.keyboard.Key; 658 for (Key key : keyboard.mKeys) { in latinKeyboardView_setKeyboard() 696 public static void pointerTracker_callListenerOnCodeInput(final Key key, final int x, in pointerTracker_callListenerOnCodeInput() 709 final Key key, final boolean ignoreModifierKey) { in pointerTracker_callListenerOnPressAndCheckKeyboardLayoutChange() 718 public static void pointerTracker_callListenerOnRelease(final Key key, final int primaryCode, in pointerTracker_callListenerOnRelease()
|
D | WordComposer.java | 19 import com.android.inputmethod.keyboard.Key; 178 for (final Key key : keyboard.mKeys) { in addKeyInfo()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | InputTestsBase.java | 40 import com.android.inputmethod.keyboard.Key; 217 for (final Key key : mKeyboard.mKeys) { in type()
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/ |
D | DefaultSoftKeyboardJAJP.java | 312 private Keyboard.Key mChangeModeKey = null; 461 List<Keyboard.Key> keys = keyboard.getKeys(); in changeKeyboard()
|