/aosp12/frameworks/minikin/tests/unittest/ |
H A D | HyphenatorMapTest.cpp | 78 mMap.addInternal("as", AS_HYPHENATOR); in SetUp() 79 mMap.addInternal("bg", BG_HYPHENATOR); in SetUp() 80 mMap.addInternal("bn", BN_HYPHENATOR); in SetUp() 81 mMap.addInternal("cu", CU_HYPHENATOR); in SetUp() 82 mMap.addInternal("cy", CY_HYPHENATOR); in SetUp() 83 mMap.addInternal("da", DA_HYPHENATOR); in SetUp() 89 mMap.addInternal("es", ES_HYPHENATOR); in SetUp() 90 mMap.addInternal("et", ET_HYPHENATOR); in SetUp() 114 mMap.addAliasInternal("en", "en-GB"); in SetUp() 124 mMap.addAliasInternal("no", "nb"); in SetUp() [all …]
|
/aosp12/frameworks/base/core/java/android/content/ |
H A D | ContentValues.java | 75 mMap = new ArrayMap<>(from.mMap); in ContentValues() 86 mMap.putAll(from); in ContentValues() 100 return mMap.equals(((ContentValues) object).mMap); in equals() 105 return mMap; in getValues() 120 mMap.put(key, value); in put() 129 mMap.putAll(other.mMap); in putAll() 139 mMap.put(key, value); in put() 218 mMap.put(key, null); in putNull() 254 return mMap.size(); in size() 272 mMap.remove(key); in remove() [all …]
|
/aosp12/frameworks/base/services/core/java/com/android/server/timezonedetector/ |
H A D | ArrayMapWithHistory.java | 66 if (mMap == null) { in put() 67 mMap = new ArrayMap<>(); in put() 73 mMap.put(key, valueHolder); in put() 86 if (mMap == null) { in get() 103 return mMap == null ? 0 : mMap.size(); in size() 111 if (mMap == null) { in keyAt() 114 return mMap.keyAt(index); in keyAt() 122 if (mMap == null) { in valueAt() 138 if (mMap == null) { in dump() 165 if (mMap == null) { in getHistoryCountForKeyForTests() [all …]
|
/aosp12/frameworks/base/core/java/android/os/ |
H A D | BaseBundle.java | 120 mMap = capacity > 0 ? in BaseBundle() 302 mMap = map; in initializeFromParcelLocked() 346 return mMap; in getMap() 356 return mMap.size(); in size() 418 return mMap.equals(other.mMap); in kindofEquals() 427 mMap.clear(); in clear() 450 mMap = new ArrayMap<>(from.mMap); in copyInternal() 539 mMap.remove(key); in remove() 550 mMap.putAll(bundle.mMap); in putAll() 560 mMap.putAll(map); in putAll() [all …]
|
H A D | Bundle.java | 294 mMap.putAll(bundle.mMap); in putAll() 397 if (mMap != null) { in filterValues() 558 mMap.put(key, value); in putParcelable() 571 mMap.put(key, value); in putSize() 583 mMap.put(key, value); in putSizeF() 596 mMap.put(key, value); in putParcelableArray() 611 mMap.put(key, value); in putParcelableArrayList() 619 mMap.put(key, value); in putParcelableList() 634 mMap.put(key, value); in putSparseParcelableArray() 756 mMap.put(key, value); in putBundle() [all …]
|
/aosp12/frameworks/native/libs/gui/ |
H A D | LayerMetadata.cpp | 31 : mMap(std::move(map)) {} in LayerMetadata() 39 for (const auto& entry : other.mMap) { in merge() 40 auto it = mMap.find(entry.first); in merge() 43 mMap.erase(it); in merge() 49 mMap[entry.first] = entry.second; in merge() 59 for (const auto& entry : mMap) { in writeToParcel() 75 mMap.clear(); in readFromParcel() 87 mMap = other.mMap; in operator =() 92 mMap = std::move(other.mMap); in operator =() 97 return mMap.count(key); in has() [all …]
|
/aosp12/system/libhidl/transport/include/hidl/ |
H A D | ConcurrentMap.h | 41 const_iterator iter = mMap.find(k); in get() 42 if (iter == mMap.end()) { in get() 50 return mMap.erase(k); in erase() 55 const_iterator iter = mMap.find(k); in eraseIfEqual() 56 if (iter == mMap.end()) { in eraseIfEqual() 60 mMap.erase(iter); in eraseIfEqual() 73 const_iterator iter = mMap.find(k); in getLocked() 74 if (iter == mMap.end()) { in getLocked() 83 iterator begin() { return mMap.begin(); } in begin() 84 iterator end() { return mMap.end(); } in end() [all …]
|
/aosp12/frameworks/native/services/surfaceflinger/tests/unittests/ |
H A D | LayerMetadataTest.cpp | 54 ASSERT_EQ(0, metadata.mMap.size()); in TEST_F() 75 ASSERT_EQ(metadata.mMap, reconstructed.mMap); in TEST_F() 85 second.mMap[2] = someData; in TEST_F() 91 ASSERT_EQ(3, metadata.mMap.size()); in TEST_F() 92 ASSERT_EQ(someData, second.mMap[2]); in TEST_F() 94 ASSERT_TRUE(metadata.mMap.at(4).empty()); in TEST_F() 97 withErase.mMap[6].clear(); in TEST_F() 100 ASSERT_EQ(2, metadata.mMap.size()); in TEST_F() 101 ASSERT_EQ(someData, second.mMap[2]); in TEST_F() 106 third.mMap[2] = someData; in TEST_F() [all …]
|
/aosp12/hardware/qcom/sm7150/gps/utils/ |
H A D | LocUnorderedSetMap.h | 85 mMap.erase(iter); in trimOrRemove() 99 auto entry = mMap.find(key); in getValSetPtr() 106 auto entry = mMap.find(key); in getValSet() 113 for (auto entry : mMap) { in getKeys() 120 return mMap.erase(key) > 0; in remove() 134 auto iter = mMap.find(key); in trimOrRemove() 147 if (iter != mMap.end()) { in add() 150 mMap[key] = newVals; in add() 180 mMap.erase(key); in update() 182 auto curVals = mMap[key]; in update() [all …]
|
/aosp12/hardware/qcom/sm8150/gps/utils/ |
H A D | LocUnorderedSetMap.h | 91 mMap.erase(iter); in trimOrRemove() 107 auto entry = mMap.find(key); in getValSetPtr() 114 auto entry = mMap.find(key); in getValSet() 121 for (auto entry : mMap) { in getKeys() 128 return mMap.erase(key) > 0; in remove() 143 auto iter = mMap.find(key); in trimOrRemove() 156 if (iter != mMap.end()) { in add() 159 mMap[key] = newVals; in add() 189 mMap.erase(key); in update() 191 auto curVals = mMap[key]; in update() [all …]
|
/aosp12/hardware/qcom/sm8150p/gps/utils/ |
H A D | LocUnorderedSetMap.h | 85 mMap.erase(iter); in trimOrRemove() 99 auto entry = mMap.find(key); in getValSetPtr() 106 auto entry = mMap.find(key); in getValSet() 113 for (auto entry : mMap) { in getKeys() 120 return mMap.erase(key) > 0; in remove() 134 auto iter = mMap.find(key); in trimOrRemove() 147 if (iter != mMap.end()) { in add() 150 mMap[key] = newVals; in add() 180 mMap.erase(key); in update() 182 auto curVals = mMap[key]; in update() [all …]
|
/aosp12/hardware/qcom/sm7250/gps/utils/ |
H A D | LocUnorderedSetMap.h | 91 mMap.erase(iter); in trimOrRemove() 107 auto entry = mMap.find(key); in getValSetPtr() 114 auto entry = mMap.find(key); in getValSet() 121 for (auto entry : mMap) { in getKeys() 128 return mMap.erase(key) > 0; in remove() 143 auto iter = mMap.find(key); in trimOrRemove() 156 if (iter != mMap.end()) { in add() 159 mMap[key] = newVals; in add() 189 mMap.erase(key); in update() 191 auto curVals = mMap[key]; in update() [all …]
|
/aosp12/hardware/qcom/sdm845/gps/sdm845/utils/ |
H A D | LocUnorderedSetMap.h | 85 mMap.erase(iter); in trimOrRemove() 99 auto entry = mMap.find(key); in getValSetPtr() 106 auto entry = mMap.find(key); in getValSet() 113 for (auto entry : mMap) { in getKeys() 120 return mMap.erase(key) > 0; in remove() 134 auto iter = mMap.find(key); in trimOrRemove() 147 if (iter != mMap.end()) { in add() 150 mMap[key] = newVals; in add() 180 mMap.erase(key); in update() 182 auto curVals = mMap[key]; in update() [all …]
|
/aosp12/frameworks/av/services/mediametrics/ |
H A D | TimedAction.h | 45 if (mMap.empty() || targetTime < mMap.begin()->first) { in postAt() 46 mMap.emplace_hint(mMap.begin(), targetTime, std::move(f)); in postAt() 49 mMap.emplace(targetTime, std::move(f)); in postAt() 55 mMap.clear(); in clear() 63 mMap.clear(); in quit() 71 return mMap.size(); in size() 79 if (!mMap.empty()) { in threadLoop() 80 sleepUntilTime = mMap.begin()->first; in threadLoop() 82 auto node = mMap.extract(mMap.begin()); // removes from mMap. in threadLoop() 97 mMap GUARDED_BY(mLock); // multiple functions could execute at the same time.
|
H A D | LruSet.h | 64 return mMap.size(); in size() 69 mMap.clear(); in clear() 86 auto it = mMap.find(t); in add() 87 if (it != mMap.end()) { // already exists. in add() 92 mMap.erase(last); in add() 95 mMap[t] = mAccessOrder.begin(); in add() 105 auto it = mMap.find(t); in remove() 106 if (it == mMap.end()) return false; in remove() 108 mMap.erase(it); in remove() 114 auto it = mMap.find(t); in check() [all …]
|
H A D | HeatMap.h | 60 ++mMap[event][status]; in add() 65 return mMap.size(); in size() 80 for (const auto &eventPair : mMap) { in heatCount() 113 for (const auto &eventPair : mMap) { in dump() 144 std::map<std::string, HeatData> mMap GUARDED_BY(mLock); 158 return mMap.size(); in size() 164 return mMap.clear(); in clear() 176 return mMap.count(key) == 0 ? HeatData{} : mMap.at(key); in getData() 194 if (mMap.size() == mMaxSize && mMap.count(key) == 0) { in add() 198 mMap[key].add(suffix, event, status, uid, message, subCode); in add() [all …]
|
/aosp12/frameworks/base/core/java/com/android/internal/app/ |
H A D | ProcessMap.java | 23 final ArrayMap<String, SparseArray<E>> mMap field in ProcessMap 27 SparseArray<E> uids = mMap.get(name); in get() 33 SparseArray<E> uids = mMap.get(name); in put() 36 mMap.put(name, uids); in put() 43 SparseArray<E> uids = mMap.get(name); in remove() 47 mMap.remove(name); in remove() 55 return mMap; in getMap() 59 return mMap.size(); in size() 63 mMap.clear(); in clear() 66 public void putAll(ProcessMap<E> other) { mMap.putAll(other.mMap); } in putAll()
|
/aosp12/frameworks/av/camera/ |
H A D | CameraParameters2.cpp | 30 : mMap() in CameraParameters2() 41 size_t size = mMap.size(); in flatten() 45 k = mMap.keyAt(i); in flatten() 46 v = mMap.valueAt(i); in flatten() 65 mMap.clear(); in unflatten() 82 mMap.add(k, v); in unflatten() 87 mMap.add(k, v); in unflatten() 358 k = mMap.keyAt(i); in dump() 359 v = mMap.valueAt(i); in dump() 374 k = mMap.keyAt(i); in dump() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/ |
H A D | WeakIdentityHashMapTest.java | 37 WeakIdentityHashMap<Object, Object> mMap; field in WeakIdentityHashMapTest 41 mMap = new WeakIdentityHashMap<>(); in setup() 57 mMap.put(a1, "value1"); in testUsesIdentity() 58 mMap.put(a2, "value2"); in testUsesIdentity() 60 assertEquals("value1", mMap.get(a1)); in testUsesIdentity() 61 assertEquals("value2", mMap.get(a2)); in testUsesIdentity() 71 CollectionWaiter collectionWaiter = addObjectToMap(mMap); in testWeaklyReferences() 76 ReferenceTestUtils.waitForCondition(mMap::isEmpty); in testWeaklyReferences() 78 assertEquals(0, mMap.size()); in testWeaklyReferences() 79 assertTrue(mMap.isEmpty()); in testWeaklyReferences()
|
/aosp12/frameworks/base/services/core/java/com/android/server/utils/ |
H A D | WatchedSparseBooleanMatrix.java | 121 private int[] mMap; field in WatchedSparseBooleanMatrix 174 mMap = r.mMap.clone(); in WatchedSparseBooleanMatrix() 259 System.arraycopy(mMap, index + 1, mMap, index, mSize - (index + 1)); in removeAt() 260 mMap[mSize - 1] = 0; in removeAt() 316 int r = mMap[rowIndex]; in valueAt() 317 int c = mMap[colIndex]; in valueAt() 376 mMap = GrowingArrayUtils.insert(mMap, mSize, i, newIndex); in indexOfKey() 443 mMap = newMap; in resizeMatrix() 550 int row = mMap[i]; in hashCode() 581 int row = mMap[i]; in equals() [all …]
|
/aosp12/packages/services/Car/service/src/com/android/car/ |
H A D | SetMultimap.java | 34 private Map<K, Set<V>> mMap; field in SetMultimap 38 mMap = new HashMap<>(); in SetMultimap() 43 return Collections.unmodifiableSet(mMap.getOrDefault(key, Collections.emptySet())); in get() 48 return mMap.computeIfAbsent(key, k -> new HashSet<>()).add(value); in put() 53 Set<V> set = mMap.get(key); in containsEntry() 59 Set<V> set = mMap.get(key); in remove() 66 mMap.remove(key); in remove() 73 mMap.clear(); in clear() 78 return Collections.unmodifiableSet(mMap.keySet()); in keySet()
|
/aosp12/frameworks/base/media/java/android/media/ |
H A D | MediaFormat.java | 1388 mMap = map; in MediaFormat() 1395 mMap = new HashMap(); in MediaFormat() 1400 return mMap; in getMap() 1639 mMap.put(name, value); in setInteger() 1646 mMap.put(name, value); in setLong() 1653 mMap.put(name, value); in setFloat() 1664 mMap.put(name, value); in setString() 1675 mMap.put(name, bytes); in setByteBuffer() 1684 mMap.remove(name); in removeKey() 1868 mMap.putAll(other.mMap); in MediaFormat() [all …]
|
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/ |
H A D | ScanDetailCache.java | 42 private final HashMap<String, ScanDetail> mMap; field in ScanDetailCache 59 mMap = new HashMap(16, 0.75f); in ScanDetailCache() 64 if (mMap.size() >= mMaxSize) { in put() 68 mMap.put(scanDetail.getBSSIDString(), scanDetail); in put() 89 return mMap.get(bssid); in getScanDetail() 93 mMap.remove(bssid); in remove() 97 return mMap.size(); in size() 105 return mMap.keySet(); in keySet() 109 return mMap.values(); in values() 117 int currentSize = mMap.size(); in trim() [all …]
|
/aosp12/frameworks/ex/common/java/com/android/common/content/ |
H A D | ProjectionMap.java | 30 private ProjectionMap mMap = new ProjectionMap(); field in ProjectionMap.Builder 33 mMap.putColumn(column, column); in add() 38 mMap.putColumn(alias, expression + " AS " + alias); in add() 51 mMap.putColumn(entry.getKey(), entry.getValue()); in addAll() 57 String[] columns = new String[mMap.size()]; in build() 58 mMap.keySet().toArray(columns); in build() 60 mMap.mColumns = columns; in build() 61 return mMap; in build()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/ |
H A D | WeakIdentityHashMap.java | 32 private final HashMap<WeakReference<K>,V> mMap = new HashMap<>(); field in WeakIdentityHashMap 38 mMap.remove(ref); in cleanUp() 44 mMap.put(new CmpWeakReference<>(key, mRefQueue), value); in put() 49 return mMap.get(new CmpWeakReference<>(key)); in get() 54 return mMap.values(); in values() 58 return mMap.entrySet(); in entrySet() 63 return mMap.size(); in size() 68 return mMap.isEmpty(); in isEmpty()
|