/external/replicaisland/src/com/replica/replicaisland/ |
InputKeyboard.java | 24 private InputButton[] mKeys; 28 mKeys = new InputButton[count]; 30 mKeys[x] = new InputButton(); 35 assert keycode >= 0 && keycode < mKeys.length; 36 if (keycode >= 0 && keycode < mKeys.length){ 37 mKeys[keycode].press(currentTime, 1.0f); 42 assert keycode >= 0 && keycode < mKeys.length; 43 if (keycode >= 0 && keycode < mKeys.length){ 44 mKeys[keycode].release(); 49 final int count = mKeys.length [all...] |
/external/smali/dexlib/src/main/java/org/jf/dexlib/Util/ |
SparseIntArray.java | 46 mKeys = new int[initialCapacity]; 64 int i = binarySearch(mKeys, 0, mSize, key); 78 int i = binarySearch(mKeys, 0, mSize, key); 95 int i = binarySearch(mKeys, 0, mSize, key); 106 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); 117 int i = binarySearch(mKeys, 0, mSize, key); 124 if (mSize >= mKeys.length) { 125 int n = Math.max(mSize + 1, mKeys.length * 2); 130 // Log.e("SparseIntArray", "grow " + mKeys.length + " to " + n) [all...] |
SparseArray.java | 53 mKeys = new int[initialCapacity]; 71 int i = binarySearch(mKeys, 0, mSize, key); 84 int i = binarySearch(mKeys, 0, mSize, key); 106 int[] keys = mKeys; 134 int i = binarySearch(mKeys, 0, mSize, key); 142 mKeys[i] = key; 147 if (mGarbage && mSize >= mKeys.length) { 151 i = ~binarySearch(mKeys, 0, mSize, key); 154 if (mSize >= mKeys.length) { 155 int n = Math.max(mSize + 1, mKeys.length * 2) [all...] |
/frameworks/base/core/java/android/util/ |
SparseBooleanArray.java | 60 mKeys = ContainerHelpers.EMPTY_INTS; 64 mKeys = new int[initialCapacity]; 75 clone.mKeys = mKeys.clone(); 96 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 109 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 112 System.arraycopy(mKeys, i + 1, mKeys, i, mSize - (i + 1)); 124 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 131 if (mSize >= mKeys.length) [all...] |
SparseIntArray.java | 43 private int[] mKeys; 63 mKeys = ContainerHelpers.EMPTY_INTS; 67 mKeys = new int[initialCapacity]; 78 clone.mKeys = mKeys.clone(); 99 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 112 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 123 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); 134 int i = ContainerHelpers.binarySearch(mKeys, mSize, key) [all...] |
LongSparseLongArray.java | 47 private long[] mKeys; 67 mKeys = ContainerHelpers.EMPTY_LONGS; 71 mKeys = new long[initialCapacity]; 82 clone.mKeys = mKeys.clone(); 103 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 116 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 127 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); 138 int i = ContainerHelpers.binarySearch(mKeys, mSize, key) [all...] |
SparseLongArray.java | 43 private int[] mKeys; 63 mKeys = ContainerHelpers.EMPTY_INTS; 67 mKeys = new int[initialCapacity]; 78 clone.mKeys = mKeys.clone(); 99 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 112 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 123 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); 134 int i = ContainerHelpers.binarySearch(mKeys, mSize, key) [all...] |
LongSparseArray.java | 53 private long[] mKeys; 73 mKeys = ContainerHelpers.EMPTY_LONGS; 77 mKeys = new long[initialCapacity]; 89 clone.mKeys = mKeys.clone(); 111 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 124 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 156 long[] keys = mKeys; 185 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 193 mKeys[i] = key [all...] |
SparseArray.java | 53 private int[] mKeys; 73 mKeys = ContainerHelpers.EMPTY_INTS; 77 mKeys = new int[initialCapacity]; 89 clone.mKeys = mKeys.clone(); 111 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 124 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 169 int[] keys = mKeys; 198 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 206 mKeys[i] = key [all...] |
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/util/ |
SparseArray.java | 25 private final ArrayList<Integer> mKeys; 33 mKeys = CollectionUtils.newArrayList(initialCapacity); 38 return mKeys.size(); 42 mKeys.clear(); 47 final int index = Collections.binarySearch(mKeys, key); 53 mKeys.add(insertIndex, key); 62 final int index = Collections.binarySearch(mKeys, key); 70 return mKeys.indexOf(key); 78 return mKeys.get(index);
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
SparseLongArray.java | 29 private int[] mKeys; 46 mKeys = new int[initialCapacity]; 56 clone.mKeys = mKeys.clone(); 77 int i = binarySearch(mKeys, 0, mSize, key); 90 int i = binarySearch(mKeys, 0, mSize, key); 101 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); 112 int i = binarySearch(mKeys, 0, mSize, key); 119 if (mSize >= mKeys.length) [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowSparseArray.java | 60 mKeys = new int[initialCapacity]; 82 int i = binarySearch(mKeys, 0, mSize, key); 97 int i = binarySearch(mKeys, 0, mSize, key); 120 int[] keys = mKeys; 149 int i = binarySearch(mKeys, 0, mSize, key); 157 mKeys[i] = key; 162 if (mGarbage && mSize >= mKeys.length) { 166 i = ~binarySearch(mKeys, 0, mSize, key); 169 if (mSize >= mKeys.length) { 175 // Log.e("SparseArray", "grow " + mKeys.length + " to " + n) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
SparseWeakArray.java | 63 mKeys = new int[initialCapacity]; 81 int i = binarySearch(mKeys, 0, mSize, key); 94 int i = binarySearch(mKeys, 0, mSize, key); 124 int[] keys = mKeys; 146 if (newSize < mKeys.length) { 150 System.arraycopy(mKeys, 0, nkeys, 0, newSize); 153 mKeys = nkeys; 164 int i = binarySearch(mKeys, 0, mSize, key); 172 mKeys[i] = key; 177 if (mSize >= mKeys.length && (mGarbage || hasReclaimedRefs())) [all...] |
/frameworks/support/v4/java/android/support/v4/util/ |
LongSparseArray.java | 47 private long[] mKeys; 67 mKeys = ContainerHelpers.EMPTY_LONGS; 71 mKeys = new long[initialCapacity]; 83 clone.mKeys = mKeys.clone(); 105 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 118 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 150 long[] keys = mKeys; 179 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 187 mKeys[i] = key [all...] |
SparseArrayCompat.java | 27 private int[] mKeys; 47 mKeys = ContainerHelpers.EMPTY_INTS; 51 mKeys = new int[initialCapacity]; 63 clone.mKeys = mKeys.clone(); 85 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 98 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 143 int[] keys = mKeys; 172 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 180 mKeys[i] = key [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/ |
LogStatement.java | 79 // mKeys stores the names that are the attributes in the output json objects 80 private final String[] mKeys; 88 mKeys = (keys == null) ? NULL_KEYS : keys; 104 return mKeys; 117 * @param values the values corresponding to mKeys 126 if (mKeys.length != values.length) { 129 final int length = mKeys.length; 131 if (mKeys[i].equals(queryKey) && values[i].equals(queryValue)) { 146 * @param values the array of values corresponding to mKeys 154 if (mKeys.length != values.length) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
Keyboard.java | 77 private final Key[] mKeys; 102 mKeys = params.mKeys.toArray(new Key[params.mKeys.size()]); 110 mMostCommonKeyWidth, mMostCommonKeyHeight, mKeys, params.mTouchPositionCorrection); 129 mKeys = keyboard.mKeys; 155 return mKeys;
|
ProximityInfo.java | 50 private final Key[] mKeys; 72 mKeys = keys; 145 final Key[] keys = mKeys; 243 final int keyCount = mKeys.length; 262 for (final Key key : mKeys) {
|
/frameworks/base/core/java/android/app/backup/ |
WallpaperBackupHelper.java | 65 String[] mKeys; 81 mKeys = keys; 109 performBackup_checked(oldState, data, newState, mFiles, mKeys); 119 if (isKeyInList(key, mKeys)) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
KeyboardParams.java | 61 public final TreeSet<Key> mKeys = CollectionUtils.newTreeSet(); // ordered set 80 mKeys.clear(); 92 mKeys.add(key);
|
/frameworks/native/libs/input/ |
KeyCharacterMap.cpp | 96 for (size_t i = 0; i < other.mKeys.size(); i++) { 97 mKeys.add(other.mKeys.keyAt(i), new Key(*other.mKeys.valueAt(i))); 102 for (size_t i = 0; i < mKeys.size(); i++) { 103 Key* key = mKeys.editValueAt(i); 174 for (size_t i = 0; i < overlay->mKeys.size(); i++) { 175 int32_t keyCode = overlay->mKeys.keyAt(i); 176 Key* key = overlay->mKeys.valueAt(i); 177 ssize_t oldIndex = map->mKeys.indexOfKey(keyCode) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
GameControllerInput.java | 206 private final SparseIntArray mKeys; 228 mKeys = new SparseIntArray(); 248 return mKeys.size(); 252 return mKeys.keyAt(keyIndex); 256 return mKeys.valueAt(keyIndex) != 0; 264 mKeys.put(keyCode, 1); 275 int index = mKeys.indexOfKey(keyCode); 278 mKeys.put(keyCode, 0);
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
KeyboardView.java | 161 private Key[] mKeys; 466 if ((mRepeatKeyIndex != NOT_A_KEY) && (mRepeatKeyIndex < mKeys.length)) { 467 oldRepeatKeyCode = mKeys[mRepeatKeyIndex].codes[0]; 473 mKeys = keys.toArray(new Key[keys.size()]); 483 && (keyIndex < mKeys.length) 484 && (oldRepeatKeyCode == mKeys[keyIndex].codes[0])) { 645 final Key[] keys = mKeys; 696 final Key[] keys = mKeys; 800 final Key[] keys = mKeys; 849 if (index != NOT_A_KEY && index < mKeys.length) [all...] |
Keyboard.java | 138 private List<Key> mKeys; 542 mKeys = new ArrayList<Key>(); 592 mKeys.add(key); 606 return mKeys; 705 int[] indices = new int[mKeys.size()]; 711 for (int i = 0; i < mKeys.size(); i++) { 712 final Key key = mKeys.get(i); 785 mKeys.add(key); 788 mShiftKeyIndex = mKeys.size()-1;
|
/frameworks/base/core/java/android/inputmethodservice/ |
Keyboard.java | 121 private List<Key> mKeys; 170 ArrayList<Key> mKeys = new ArrayList<Key>(); 530 mKeys = new ArrayList<Key>(); 553 mKeys = new ArrayList<Key>(); 603 mKeys.add(key); 604 row.mKeys.add(key); 617 int numKeys = row.mKeys.size(); 621 Key key = row.mKeys.get(keyIndex); 631 Key key = row.mKeys.get(keyIndex); 645 return mKeys; [all...] |