/frameworks/minikin/tests/unittest/ |
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() 84 mMap.addInternal("de-1901", DE_1901_HYPHENATOR); in SetUp() 85 mMap.addInternal("de-1996", DE_1996_HYPHENATOR); in SetUp() 86 mMap.addInternal("de-CH-1901", DE_CH_1901_HYPHENATOR); in SetUp() 87 mMap.addInternal("en-GB", EN_GB_HYPHENATOR); in SetUp() [all …]
|
/frameworks/base/core/java/android/content/ |
D | ContentValues.java | 48 private final ArrayMap<String, Object> mMap; field in ContentValues 54 mMap = new ArrayMap<>(); in ContentValues() 64 mMap = new ArrayMap<>(size); in ContentValues() 74 mMap = new ArrayMap<>(from.mMap); in ContentValues() 84 mMap = new ArrayMap<>(); in ContentValues() 85 mMap.putAll(from); in ContentValues() 90 mMap = new ArrayMap<>(in.readInt()); in ContentValues() 91 in.readArrayMap(mMap, null); in ContentValues() 99 return mMap.equals(((ContentValues) object).mMap); in equals() 104 return mMap; in getValues() [all …]
|
/frameworks/base/services/core/java/com/android/server/timezonedetector/ |
D | ArrayMapWithHistory.java | 49 private ArrayMap<K, ReferenceWithHistory<V>> mMap; field in ArrayMapWithHistory 66 if (mMap == null) { in put() 67 mMap = new ArrayMap<>(); in put() 70 ReferenceWithHistory<V> valueHolder = mMap.get(key); in put() 73 mMap.put(key, valueHolder); in put() 86 if (mMap == null) { in get() 90 ReferenceWithHistory<V> valueHolder = mMap.get(key); in get() 103 return mMap == null ? 0 : mMap.size(); in size() 111 if (mMap == null) { in keyAt() 114 return mMap.keyAt(index); in keyAt() [all …]
|
/frameworks/native/libs/gui/ |
D | LayerMetadata.cpp | 28 : mMap(std::move(map)) {} in LayerMetadata() 36 for (const auto& entry : other.mMap) { in merge() 37 auto it = mMap.find(entry.first); in merge() 38 if (it != mMap.cend() && it->second != entry.second) { in merge() 40 mMap.erase(it); in merge() 45 } else if (it == mMap.cend() && !entry.second.empty()) { in merge() 46 mMap[entry.first] = entry.second; in merge() 54 parcel->writeInt32(static_cast<int>(mMap.size())); in writeToParcel() 56 for (const auto& entry : mMap) { in writeToParcel() 72 mMap.clear(); in readFromParcel() [all …]
|
/frameworks/base/core/java/android/os/ |
D | BaseBundle.java | 87 ArrayMap<String, Object> mMap = null; field in BaseBundle 120 mMap = capacity > 0 ? in BaseBundle() 194 int size = mMap.size(); in getPairValue() 201 Object o = mMap.valueAt(0); in getPairValue() 259 if (mMap == null) { in initializeFromParcelLocked() 260 mMap = new ArrayMap<>(1); in initializeFromParcelLocked() 262 mMap.erase(); in initializeFromParcelLocked() 277 ArrayMap<String, Object> map = mMap; in initializeFromParcelLocked() 302 mMap = map; in initializeFromParcelLocked() 311 + " final map: " + mMap); in initializeFromParcelLocked() [all …]
|
D | Bundle.java | 58 EMPTY.mMap = ArrayMap.EMPTY; 293 mMap.putAll(bundle.mMap); in putAll() 331 for (int i=mMap.size()-1; i>=0; i--) { in hasFileDescriptors() 332 Object obj = mMap.valueAt(i); in hasFileDescriptors() 396 if (mMap != null) { in filterValues() 397 ArrayMap<String, Object> map = mMap; in filterValues() 406 if (map == mMap) { in filterValues() 412 map = bundle.mMap; in filterValues() 422 if (map == mMap) { in filterValues() 428 map = bundle.mMap; in filterValues() [all …]
|
D | PersistableBundle.java | 53 EMPTY.mMap = ArrayMap.EMPTY; 127 final int N = mMap.size(); in PersistableBundle() 129 Object value = mMap.valueAt(i); in PersistableBundle() 132 mMap.setValueAt(i, new PersistableBundle((ArrayMap<String, Object>) value)); in PersistableBundle() 134 mMap.setValueAt(i, new PersistableBundle(((Bundle) value))); in PersistableBundle() 137 + mMap.keyAt(i) + " value=" + value); in PersistableBundle() 196 mMap.put(key, value); in putPersistableBundle() 210 Object o = mMap.get(key); in getPersistableBundle() 252 XmlUtils.writeMapXml(mMap, out, this); in saveToXml() 318 return "PersistableBundle[" + mMap.toString() + "]"; in toString() [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | LayerMetadataTest.cpp | 50 ASSERT_EQ(0, metadata.mMap.size()); in TEST_F() 62 metadata.mMap[2] = std::vector<uint8_t>{'a', 'b'}; in TEST_F() 71 ASSERT_EQ(metadata.mMap, reconstructed.mMap); in TEST_F() 77 metadata.mMap[2] = std::vector<uint8_t>{'a', 'b'}; in TEST_F() 81 second.mMap[2] = someData; in TEST_F() 83 second.mMap[4].clear(); // will not delete if eraseEmpty is false in TEST_F() 87 ASSERT_EQ(3, metadata.mMap.size()); in TEST_F() 88 ASSERT_EQ(someData, second.mMap[2]); in TEST_F() 90 ASSERT_TRUE(metadata.mMap.at(4).empty()); in TEST_F() 93 withErase.mMap[6].clear(); in TEST_F() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/ |
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()
|
/frameworks/av/camera/ |
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() 107 ssize_t res = mMap.replaceValueFor(String8(key), String8(value)); in set() 127 ssize_t idx = mMap.indexOfKey(String8(key)); in get() 131 return mMap.valueAt(idx).string(); in get() [all …]
|
D | CameraParameters.cpp | 178 : mMap() in CameraParameters() 189 size_t size = mMap.size(); in flatten() 193 k = mMap.keyAt(i); in flatten() 194 v = mMap.valueAt(i); in flatten() 211 mMap.clear(); in unflatten() 228 mMap.add(k, v); in unflatten() 233 mMap.add(k, v); in unflatten() 252 mMap.replaceValueFor(String8(key), String8(value)); in set() 271 String8 v = mMap.valueFor(String8(key)); in get() 294 mMap.removeItem(String8(key)); in remove() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ScanDetailCache.java | 40 private final HashMap<String, ScanDetail> mMap; field in ScanDetailCache 57 mMap = new HashMap(16, 0.75f); in ScanDetailCache() 62 if (mMap.size() >= mMaxSize) { in put() 66 mMap.put(scanDetail.getBSSIDString(), scanDetail); in put() 87 return mMap.get(bssid); in getScanDetail() 91 mMap.remove(bssid); in remove() 95 return mMap.size(); in size() 103 return mMap.keySet(); in keySet() 107 return mMap.values(); in values() 115 int currentSize = mMap.size(); in trim() [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
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()
|
/frameworks/base/media/java/android/media/ |
D | MediaFormat.java | 205 private Map<String, Object> mMap; field in MediaFormat 1066 mMap = map; in MediaFormat() 1073 mMap = new HashMap(); in MediaFormat() 1078 return mMap; in getMap() 1085 return mMap.containsKey(name); in containsKey() 1092 return mMap.containsKey(KEY_FEATURE_ + name); in containsFeature() 1118 Object value = mMap.get(name); in getValueTypeForKey() 1159 return ((Number)mMap.get(name)); in getNumber() 1182 return ((Integer)mMap.get(name)).intValue(); in getInteger() 1210 return ((Long)mMap.get(name)).longValue(); in getLong() [all …]
|
/frameworks/ex/common/java/com/android/common/content/ |
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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/ |
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()
|
/frameworks/base/libs/androidfw/ |
D | Asset.cpp | 402 : mStart(0), mLength(0), mOffset(0), mFp(NULL), mFileName(NULL), mMap(NULL), mBuf(NULL) in _FileAsset() 429 assert(mMap == NULL); in openChunk() 475 assert(mMap == NULL); in openChunk() 478 mMap = dataMap; in openChunk() 515 if (mMap != NULL) { in read() 518 memcpy(buf, (char*)mMap->getDataPtr() + mOffset, count); in read() 581 if (mMap != NULL) { in close() 582 delete mMap; in close() 583 mMap = NULL; in close() 616 if (mMap != NULL) { in getBuffer() [all …]
|
/frameworks/base/services/core/java/com/android/server/textservices/ |
D | LazyIntToIntMap.java | 30 private final SparseIntArray mMap = new SparseIntArray(); field in LazyIntToIntMap 47 mMap.delete(key); in delete() 56 final int index = mMap.indexOfKey(key); in get() 58 return mMap.valueAt(index); in get() 61 mMap.append(key, value); in get()
|
/frameworks/minikin/libs/minikin/ |
D | HyphenatorMap.cpp | 52 mMap[locale.getIdentifier()] = hyphenator; in addInternal() 57 mMap.clear(); in clearInternal() 64 auto it = mMap.find(toLocale.getIdentifier()); in addAliasInternal() 65 if (it == mMap.end()) { in addAliasInternal() 70 mMap[fromLocale.getIdentifier()] = it->second; in addAliasInternal() 111 mMap.insert(std::make_pair(id, result)); in lookupInternal() 116 auto it = mMap.find(id); in lookupByIdentifier() 117 return it == mMap.end() ? nullptr : it->second; in lookupByIdentifier()
|
/frameworks/base/cmds/statsd/src/packages/ |
D | UidMap.cpp | 80 auto it = mMap.find(std::make_pair(uid, packageName)); in hasApp() 81 return it != mMap.end() && !it->second.deleted; in hasApp() 97 for (const auto& kv : mMap) { in getAppNamesFromUidLocked() 108 auto it = mMap.find(std::make_pair(uid, packageName)); in getAppVersion() 109 if (it == mMap.end() || it->second.deleted) { in getAppVersion() 125 for (const auto& kv : mMap) { in updateMap() 131 mMap.clear(); in updateMap() 134 mMap[std::make_pair(uid[j], package)] = in updateMap() 140 auto mMapIt = mMap.find(kv.first); in updateMap() 141 if (mMapIt != mMap.end()) { in updateMap() [all …]
|
/frameworks/av/services/mediaresourcemanager/ |
D | ResourceManagerService.cpp | 157 mapCopy = mMap; // Shadow copy, real copy will happen on write. in dump() 320 ResourceInfos& infos = getResourceInfosForEdit(pid, mMap); in addResource() 351 ssize_t index = mMap.indexOfKey(pid); in removeResource() 356 ResourceInfos &infos = mMap.editValueAt(index); in removeResource() 399 ssize_t index = mMap.indexOfKey(pid); in removeResource() 404 ResourceInfos &infos = mMap.editValueAt(index); in removeResource() 535 for (size_t i = 0; i < mMap.size(); ++i) { in reclaimResource() 536 ResourceInfos &infos = mMap.editValueAt(i); in reclaimResource() 560 for (size_t i = 0; i < mMap.size(); ++i) { in getAllClients_l() 561 ResourceInfos &infos = mMap.editValueAt(i); in getAllClients_l() [all …]
|
/frameworks/base/drm/java/android/drm/ |
D | DrmUtils.java | 121 HashMap<String, String> mMap = new HashMap<String, String>(); field in DrmUtils.ExtendedMetadataParser 164 mMap.put(strKey, strValue); in ExtendedMetadataParser() 175 return mMap.values().iterator(); in iterator() 185 return mMap.keySet().iterator(); in keyIterator() 197 return mMap.get(key); in get()
|
/frameworks/base/core/java/android/app/ |
D | SharedPreferencesImpl.java | 75 private Map<String, Object> mMap; field in SharedPreferencesImpl 114 mMap = null; in SharedPreferencesImpl() 181 mMap = map; in loadFromDisk() 185 mMap = new HashMap<>(); in loadFromDisk() 279 return new HashMap<String, Object>(mMap); in getAll() 288 String v = (String)mMap.get(key); in getString() 298 Set<String> v = (Set<String>) mMap.get(key); in getStringSet() 307 Integer v = (Integer)mMap.get(key); in getInt() 315 Long v = (Long)mMap.get(key); in getLong() 323 Float v = (Float)mMap.get(key); in getFloat() [all …]
|
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/util/ |
D | CarHelperRegistry.java | 44 private final ConcurrentHashMap<Class<?>, Object> mMap = new ConcurrentHashMap<>(); field in CarHelperRegistry 101 return (H) mMap.get(cls); in getHelper() 122 return mMap.size(); in size() 135 mMap.put(cls, helper); in putHelper()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/ |
D | IconCache.java | 33 final ArrayMap<Icon, Drawable> mMap = new ArrayMap<>(); field in IconCache 43 Drawable drawable = mMap.get(icon); in getIcon() 52 mMap.put(icon, drawable); in updateIcon()
|