Home
last modified time | relevance | path

Searched refs:mKeys (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/core/java/android/view/inputmethod/
DSparseRectFArray.java41 private final int[] mKeys; field in SparseRectFArray
59 mKeys = source.createIntArray(); in SparseRectFArray()
72 dest.writeIntArray(mKeys); in writeToParcel()
80 if (mKeys == null || mKeys.length == 0) { in hashCode()
83 int hash = mKeys.length; in hashCode()
107 return Arrays.equals(mKeys, that.mKeys) && Arrays.equals(mCoordinates, that.mCoordinates) in equals()
113 if (mKeys == null || mCoordinates == null || mFlagsArray == null) { in toString()
118 for (int i = 0; i < mKeys.length; i++) { in toString()
123 sb.append(mKeys[i]); in toString()
152 if (mKeys[mCount - 1] >= key) { in checkIndex()
[all …]
/frameworks/base/core/java/android/util/
DSparseBooleanArray.java65 mKeys = EmptyArray.INT; in SparseBooleanArray()
68 mKeys = ArrayUtils.newUnpaddedIntArray(initialCapacity); in SparseBooleanArray()
69 mValues = new boolean[mKeys.length]; in SparseBooleanArray()
79 clone.mKeys = mKeys.clone(); in clone()
100 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
113 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
116 System.arraycopy(mKeys, i + 1, mKeys, i, mSize - (i + 1)); in delete()
128 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
139 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
146 mKeys = GrowingArrayUtils.insert(mKeys, mSize, i, key); in put()
[all …]
DLongSparseLongArray.java53 private long[] mKeys; field in LongSparseLongArray
75 mKeys = EmptyArray.LONG; in LongSparseLongArray()
78 mKeys = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongSparseLongArray()
79 mValues = new long[mKeys.length]; in LongSparseLongArray()
89 clone.mKeys = mKeys.clone(); in clone()
110 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
123 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
134 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
145 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
152 mKeys = GrowingArrayUtils.insert(mKeys, mSize, i, key); in put()
[all …]
DSparseIntArray.java51 private int[] mKeys; field in SparseIntArray
73 mKeys = EmptyArray.INT; in SparseIntArray()
76 mKeys = ArrayUtils.newUnpaddedIntArray(initialCapacity); in SparseIntArray()
77 mValues = new int[mKeys.length]; in SparseIntArray()
87 clone.mKeys = mKeys.clone(); in clone()
108 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
121 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
132 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
143 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
150 mKeys = GrowingArrayUtils.insert(mKeys, mSize, i, key); in put()
[all …]
DSparseLongArray.java46 private int[] mKeys; field in SparseLongArray
66 mKeys = EmptyArray.INT; in SparseLongArray()
70 mKeys = new int[mValues.length]; in SparseLongArray()
80 clone.mKeys = mKeys.clone(); in clone()
101 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
114 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
133 System.arraycopy(mKeys, index + size, mKeys, index, mSize - (index + size)); in removeAtRange()
142 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
153 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
160 mKeys = GrowingArrayUtils.insert(mKeys, mSize, i, key); in put()
[all …]
DLongSparseArray.java64 private long[] mKeys; field in LongSparseArray
84 mKeys = EmptyArray.LONG; in LongSparseArray()
87 mKeys = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongSparseArray()
99 clone.mKeys = mKeys.clone(); in clone()
121 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
134 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
156 if (mValues[i] != DELETED && filter.test(mKeys[i], (E) mValues[i])) { in removeIf()
188 long[] keys = mKeys; in gc()
217 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
225 mKeys[i] = key; in put()
[all …]
DSparseArray.java61 private int[] mKeys; field in SparseArray
83 mKeys = EmptyArray.INT; in SparseArray()
87 mKeys = new int[mValues.length]; in SparseArray()
98 clone.mKeys = mKeys.clone(); in clone()
131 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
144 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
159 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in removeReturnOld()
220 int[] keys = mKeys; in gc()
249 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
257 mKeys[i] = key; in put()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DSparseWeakArray.java63 mKeys = ArrayUtils.newUnpaddedLongArray(initialCapacity); in SparseWeakArray()
64 mValues = new WeakReference[mKeys.length]; in SparseWeakArray()
81 int i = binarySearch(mKeys, 0, mSize, key); in get()
94 int i = binarySearch(mKeys, 0, mSize, key); in delete()
124 long[] keys = mKeys; in gc()
152 int i = binarySearch(mKeys, 0, mSize, key); in put()
160 mKeys[i] = key; in put()
165 if (mSize >= mKeys.length && (mGarbage || hasReclaimedRefs())) { in put()
169 i = ~binarySearch(mKeys, 0, mSize, key); in put()
172 mKeys = GrowingArrayUtils.insert(mKeys, mSize, i, key); in put()
[all …]
/frameworks/base/core/java/android/os/health/
DHealthKeys.java86 private final int[][] mKeys = new int[TYPE_COUNT][]; field in HealthKeys.Constants
103 final SortedIntArray[] keys = new SortedIntArray[mKeys.length]; in Constants()
127 mKeys[i] = keys[i].getArray(); in Constants()
149 return mKeys[type].length; in getSize()
163 final int index = Arrays.binarySearch(mKeys[type], key); in getIndex()
176 return mKeys[type]; in getKeys()
/frameworks/native/services/inputflinger/tests/
DUinputDevice.cpp78 : UinputDevice(UinputKeyboard::KEYBOARD_NAME), mKeys(keys.begin(), keys.end()) {} in UinputKeyboard()
87 std::for_each(mKeys.begin(), mKeys.end(), [fd](int key) { in configureDevice()
100 if (mKeys.find(key) == mKeys.end()) { in pressKey()
108 if (mKeys.find(key) == mKeys.end()) { in releaseKey()
DUinputDevice.h93 std::set<int> mKeys; variable
/frameworks/base/core/tests/coretests/src/android/util/
DSparseLongArrayTest.java43 private int[] mKeys; field in SparseLongArrayTest
64 mSparseLongArray.get(mKeys[i], Long.MIN_VALUE)); in assertRemoved()
67 mSparseLongArray.get(mKeys[i])); in assertRemoved()
92 mKeys = generateRandomKeys(TEST_SIZE); in setUp()
96 mSparseLongArray.put(mKeys[i], mValues[i]); in setUp()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java131 private List<Key> mKeys; field in Keyboard
181 ArrayList<Key> mKeys = new ArrayList<Key>(); field in Keyboard.Row
553 mKeys = new ArrayList<Key>(); in Keyboard()
576 mKeys = new ArrayList<Key>(); in Keyboard()
626 mKeys.add(key); in Keyboard()
627 row.mKeys.add(key); in Keyboard()
641 int numKeys = row.mKeys.size(); in resize()
645 Key key = row.mKeys.get(keyIndex); in resize()
655 Key key = row.mKeys.get(keyIndex); in resize()
669 return mKeys; in getKeys()
[all …]
DKeyboardView.java168 private Key[] mKeys; field in KeyboardView
487 mKeys = keys.toArray(new Key[keys.size()]); in setKeyboard()
627 final Key[] keys = mKeys; in computeProximityThreshold()
685 final Key[] keys = mKeys; in onBufferDraw()
776 final Key[] keys = mKeys; in getKeyIndices()
827 if (index != NOT_A_KEY && index < mKeys.length) { in detectAndSendKey()
828 final Key key = mKeys[index]; in detectAndSendKey()
875 final Key[] keys = mKeys; in showPreview()
926 final Key[] keys = mKeys; in showKey()
927 if (keyIndex < 0 || keyIndex >= mKeys.length) return; in showKey()
[all …]
/frameworks/native/libs/input/
DKeyCharacterMap.cpp97 for (size_t i = 0; i < other.mKeys.size(); i++) { in KeyCharacterMap()
98 mKeys.add(other.mKeys.keyAt(i), new Key(*other.mKeys.valueAt(i))); in KeyCharacterMap()
103 for (size_t i = 0; i < mKeys.size(); i++) { in ~KeyCharacterMap()
104 Key* key = mKeys.editValueAt(i); in ~KeyCharacterMap()
175 for (size_t i = 0; i < overlay->mKeys.size(); i++) { in combine()
176 int32_t keyCode = overlay->mKeys.keyAt(i); in combine()
177 Key* key = overlay->mKeys.valueAt(i); in combine()
178 ssize_t oldIndex = map->mKeys.indexOfKey(keyCode); in combine()
180 delete map->mKeys.valueAt(oldIndex); in combine()
181 map->mKeys.editValueAt(oldIndex) = new Key(*key); in combine()
[all …]
/frameworks/base/core/java/android/app/backup/
DWallpaperBackupHelper.java52 private final String[] mKeys; field in WallpaperBackupHelper
66 mKeys = keys; in WallpaperBackupHelper()
93 if (isKeyInList(key, mKeys)) { in restoreEntity()
DBlobBackupHelper.java47 private final String[] mKeys; field in BlobBackupHelper
51 mKeys = keys; in BlobBackupHelper()
249 for (String key : mKeys) { in performBackup()
291 for (which = 0; which < mKeys.length; which++) { in restoreEntity()
292 if (key.equals(mKeys[which])) { in restoreEntity()
296 if (which >= mKeys.length) { in restoreEntity()
/frameworks/base/services/core/java/com/android/server/accounts/
DTokenCache.java86 private final List<Key> mKeys; field in TokenCache.TokenLruCache.Evictor
89 mKeys = new ArrayList<>(); in Evictor()
93 mKeys.add(k); in add()
97 for (Key k : mKeys) { in evict()
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DTestService.java1133 String[] mKeys; field in TestService.GenericMapOp
1142 mKeys = new String[mSize]; in onInit()
1151 mKeys[i] = builder.toString(); in onInit()
1169 map.put(mKeys[i], mValues[i]); in onRun()
1183 map.put(mKeys[i], mValues[i]); in onRun()
1197 map.put(mKeys[i], mValues[i]); in onRun()
1211 map.put(mKeys[i], mValues[i]); in onRun()
1225 map.put(mKeys[i], mValues[i]); in onRun()
1239 map.put(mKeys[i], mValues[i]); in onRun()
1272 mHashMap.put(mKeys[i], mValues[i]); in onInit()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationListenerServiceTest.java101 for (int i = 0; i < mKeys.length; i++) { in testRanking()
102 String key = mKeys[i]; in testRanking()
154 Ranking ranking = generateUpdate().getRankingMap().getRawRankingObject(mKeys[0]); in testRanking_parcel()
170 Ranking tweak = nru2.getRankingMap().getRawRankingObject(mKeys[0]); in testRankingUpdate_equals()
244 private String[] mKeys = new String[] { "key", "key1", "key2", "key3", "key4"}; field in NotificationListenerServiceTest
247 Ranking[] rankings = new Ranking[mKeys.length]; in generateUpdate()
248 for (int i = 0; i < mKeys.length; i++) { in generateUpdate()
249 final String key = mKeys[i]; in generateUpdate()
/frameworks/base/media/java/android/media/
DMediaFormat.java1482 private Set<String> mKeys; field in MediaFormat.FilteredMappedKeySet
1494 mKeys = mMap.keySet(); in FilteredMappedKeySet()
1503 return keepKey(key) && mKeys.contains(key); in contains()
1512 if (keepKey(key) && mKeys.remove(key)) { in remove()
1529 mKeys.stream().filter(k -> keepKey(k)).collect(Collectors.toList()).iterator(); in KeyIterator()
1557 return (int) mKeys.stream().filter(this::keepKey).count(); in size()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiScoreCardTest.java97 final ArrayList<String> mKeys = new ArrayList<>(); field in WifiScoreCardTest
119 mKeys.clear(); in setUp()
690 mKeys.add(key);
710 assertEquals(2, mKeys.size());
738 mKeys.add(key);
759 assertTrue(mKeys.size() > 0);
762 String writtenHex = hexStringFromByteArray(mBlobs.get(mKeys.size() - 1));
769 final int beforeSize = mKeys.size();
771 assertEquals(beforeSize, mKeys.size());
DWifiHealthMonitorTest.java105 private final ArrayList<String> mKeys = new ArrayList<>(); field in WifiHealthMonitorTest
137 mKeys.clear(); in setUp()
350 mKeys.add(key); in makeSwBuildChangeExample()
389 String writtenHex = hexStringFromByteArray(mBlobs.get(mKeys.size() - 1)); in testReadWriteAndSWChange()
720 mKeys.add(key); in testPostBootAbnormalScanDetection()
/frameworks/base/core/java/android/hardware/camera2/
DCameraCharacteristics.java198 private List<CameraCharacteristics.Key<?>> mKeys; field in CameraCharacteristics
270 if (mKeys != null) { in getKeys()
271 return mKeys; in getKeys()
280 mKeys = Collections.unmodifiableList( in getKeys()
282 return mKeys; in getKeys()
/frameworks/native/include/input/
DKeyCharacterMap.h229 KeyedVector<int32_t, Key*> mKeys; variable

12