/frameworks/support/app-toolkit/common/src/test/java/android/arch/core/internal/ |
D | SafeIterableMapTest.java | 36 SafeIterableMap<Integer, String> map = from(1, 2, 3, 4).to("a", "b", "c", "d"); in testToString() local 37 assertThat(map.toString(), is("[1=a, 2=b, 3=c, 4=d]")); in testToString() 42 SafeIterableMap<Integer, Boolean> map = mapOf(); in testEmptyToString() local 43 assertThat(map.toString(), is("[]")); in testEmptyToString() 48 SafeIterableMap<Integer, Boolean> map = mapOf(1); in testOneElementToString() local 49 assertThat(map.toString(), is("[1=true]")); in testOneElementToString() 62 SafeIterableMap<Integer, Boolean> map = mapOf(1, 2, 3, 4); in testEquality2() local 64 assertThat(map.equals(null), is(false)); in testEquality2() 69 SafeIterableMap<Integer, Boolean> map = mapOf(1, 2, 3, 4); in testEquality3() local 71 assertThat(map.equals(new ArrayList<>()), is(false)); in testEquality3() [all …]
|
D | FastSafeIterableMapTest.java | 31 FastSafeIterableMap<Integer, Boolean> map = new FastSafeIterableMap<>(); in testCeil() local 32 assertThat(map.ceil(1), nullValue()); in testCeil() 33 map.putIfAbsent(1, false); in testCeil() 34 assertThat(map.ceil(1), nullValue()); in testCeil() 35 map.putIfAbsent(2, false); in testCeil() 36 assertThat(map.ceil(2).getKey(), is(1)); in testCeil() 37 map.remove(1); in testCeil() 38 assertThat(map.ceil(2), nullValue()); in testCeil() 43 FastSafeIterableMap<Integer, Integer> map = new FastSafeIterableMap<>(); in testPut() local 44 map.putIfAbsent(10, 20); in testPut() [all …]
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
D | h264bsd_slice_group_map.c | 59 u32 *map, 65 u32 *map, 71 u32 *map, 79 u32 *map, 86 u32 *map, 92 u32 *map, 121 u32 *map, in DecodeInterleavedMap() argument 133 ASSERT(map); in DecodeInterleavedMap() 145 map[i+j] = group; in DecodeInterleavedMap() 175 u32 *map, in DecodeDispersedMap() argument [all …]
|
/frameworks/base/packages/InputDevices/res/raw/ |
D | keyboard_layout_english_us_dvorak.kcm | 23 map key 12 LEFT_BRACKET 24 map key 13 RIGHT_BRACKET 25 map key 16 APOSTROPHE 26 map key 17 COMMA 27 map key 18 PERIOD 28 map key 19 P 29 map key 20 Y 30 map key 21 F 31 map key 22 G 32 map key 23 C [all …]
|
D | keyboard_layout_english_us_workman.kcm | 23 map key 17 D 24 map key 18 R 25 map key 19 W 26 map key 20 B 27 map key 21 J 28 map key 22 F 29 map key 23 U 30 map key 24 P 31 map key 25 SEMICOLON 32 map key 32 H [all …]
|
D | keyboard_layout_english_us_colemak.kcm | 23 map key 18 F 24 map key 19 P 25 map key 20 G 26 map key 21 J 27 map key 22 L 28 map key 23 U 29 map key 24 Y 30 map key 25 SEMICOLON 31 map key 31 R 32 map key 32 S [all …]
|
/frameworks/base/core/jni/ |
D | android_view_KeyCharacterMap.cpp | 50 NativeKeyCharacterMap(int32_t deviceId, const sp<KeyCharacterMap>& map) : in NativeKeyCharacterMap() argument 51 mDeviceId(deviceId), mMap(map) { in NativeKeyCharacterMap() 73 NativeKeyCharacterMap* map = new NativeKeyCharacterMap(deviceId, in android_view_KeyCharacterMap_create() local 75 if (!map) { in android_view_KeyCharacterMap_create() 80 reinterpret_cast<jlong>(map)); in android_view_KeyCharacterMap_create() 99 NativeKeyCharacterMap* map = new NativeKeyCharacterMap(deviceId, kcm); in nativeReadFromParcel() local 100 return reinterpret_cast<jlong>(map); in nativeReadFromParcel() 104 NativeKeyCharacterMap* map = reinterpret_cast<NativeKeyCharacterMap*>(ptr); in nativeWriteToParcel() local 107 parcel->writeInt32(map->getDeviceId()); in nativeWriteToParcel() 108 map->getMap()->writeToParcel(parcel); in nativeWriteToParcel() [all …]
|
/frameworks/av/drm/libdrmframework/plugins/common/util/include/ |
D | SessionMap.h | 53 map.add(key, value); in addValue() 78 return map.size(); in getSize() 92 if (map.size() > index) { in getValueAt() 93 value = map.valueAt(index); in getValueAt() 107 map.removeItem(key); in removeValue() 126 map = objectCopy.map; 131 KeyedVector<int, TValue> map; 152 int size = map.size(); in destroyMap() 155 deleteValue(map.valueAt(i)); in destroyMap() 157 map.clear(); in destroyMap() [all …]
|
/frameworks/base/core/java/android/os/health/ |
D | HealthStatsWriter.java | 120 ArrayMap<String,HealthStatsWriter> map = mStatsValues[index]; in addStats() local 121 if (map == null) { in addStats() 122 map = mStatsValues[index] = new ArrayMap<String,HealthStatsWriter>(1); in addStats() 124 map.put(name, value); in addStats() 135 ArrayMap<String,TimerStat> map = mTimersValues[index]; in addTimers() local 136 if (map == null) { in addTimers() 137 map = mTimersValues[index] = new ArrayMap<String,TimerStat>(1); in addTimers() 139 map.put(name, value); in addTimers() 148 ArrayMap<String,Long> map = mMeasurementsValues[index]; in addMeasurements() local 149 if (map == null) { in addMeasurements() [all …]
|
/frameworks/base/tools/aapt2/unflatten/ |
D | BinaryResourceParser.h | 71 const android::ResTable_map_entry* map); 75 const android::ResTable_map_entry* map); 79 const android::ResTable_map_entry* map); 83 const android::ResTable_map_entry* map); 87 const android::ResTable_map_entry* map); 121 std::map<ResourceId, ResourceName> id_index_; 132 inline const ResTable_map* begin(const ResTable_map_entry* map) { in begin() argument 133 return (const ResTable_map*)((const uint8_t*)map + in begin() 134 aapt::util::DeviceToHost32(map->size)); in begin() 137 inline const ResTable_map* end(const ResTable_map_entry* map) { in end() argument [all …]
|
/frameworks/base/tools/validatekeymaps/ |
D | Main.cpp | 81 sp<KeyLayoutMap> map; in validateFile() local 82 status_t status = KeyLayoutMap::load(String8(filename), &map); in validateFile() 91 sp<KeyCharacterMap> map; in validateFile() local 93 KeyCharacterMap::FORMAT_ANY, &map); in validateFile() 102 PropertyMap* map; in validateFile() local 103 status_t status = PropertyMap::load(String8(filename), &map); in validateFile() 108 delete map; in validateFile() 113 VirtualKeyMap* map; in validateFile() local 114 status_t status = VirtualKeyMap::load(String8(filename), &map); in validateFile() 119 delete map; in validateFile()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | ArrayMapTest.java | 29 ArrayMap<String, String> map = new ArrayMap<>(); field in ArrayMapTest 47 while (map != null) { in testConcurrentModificationException() 49 map.put(String.format("key %d", i++), "B_DONT_DO_THAT"); in testConcurrentModificationException() 58 + " size=" + (map == null ? "??" : String.valueOf(map.size())) + "]"); in testConcurrentModificationException() 68 map.clear(); in testConcurrentModificationException() 80 + i + " size=" + map.size() + "]"); in testConcurrentModificationException() 83 map = null; // will stop other thread in testConcurrentModificationException() 94 map.put(String.format("key %d", i++), "B_DONT_DO_THAT"); in testNonConcurrentAccesses() 99 map.clear(); in testNonConcurrentAccesses()
|
D | LongSparseLongArrayTest.java | 77 final HashMap<Long, Long> map = new HashMap<Long, Long>(); in testFuzz() local 84 map.put(key, value); in testFuzz() 87 if (r.nextBoolean() && map.size() > 0) { in testFuzz() 88 final int index = r.nextInt(map.size()); in testFuzz() 89 final long key = getKeyAtIndex(map, index); in testFuzz() 90 map.remove(key); in testFuzz() 95 Log.d(TAG, "verifying a map with " + map.size() + " entries"); in testFuzz() 97 for (Map.Entry<Long, Long> e : map.entrySet()) { in testFuzz() 104 private static <E> E getKeyAtIndex(Map<E, ?> map, int index) { in getKeyAtIndex() argument 105 final Iterator<E> keys = map.keySet().iterator(); in getKeyAtIndex()
|
/frameworks/base/core/java/android/bluetooth/le/ |
D | BluetoothLeUtils.java | 57 static <T> String toString(Map<T, byte[]> map) { in toString() argument 58 if (map == null) { in toString() 61 if (map.isEmpty()) { in toString() 66 Iterator<Map.Entry<T, byte[]>> it = map.entrySet().iterator(); in toString() 70 buffer.append(key).append("=").append(Arrays.toString(map.get(key))); in toString() 106 static <T> boolean equals(Map<T, byte[]> map, Map<T, byte[]> otherMap) { in equals() argument 107 if (map == otherMap) { in equals() 110 if (map == null || otherMap == null) { in equals() 113 if (map.size() != otherMap.size()) { in equals() 116 Set<T> keys = map.keySet(); in equals() [all …]
|
/frameworks/support/compat/java/android/support/v4/util/ |
D | LruCache.java | 31 private final LinkedHashMap<K, V> map; field in LruCache 53 this.map = new LinkedHashMap<K, V>(0, 0.75f, true); in LruCache() 85 mapValue = map.get(key); in get() 107 mapValue = map.put(key, createdValue); in get() 111 map.put(key, mapValue); in get() 141 previous = map.put(key, value); in put() 167 if (size < 0 || (map.isEmpty() && size != 0)) { in trimToSize() 172 if (size <= maxSize || map.isEmpty()) { in trimToSize() 176 Map.Entry<K, V> toEvict = map.entrySet().iterator().next(); in trimToSize() 179 map.remove(key); in trimToSize() [all …]
|
/frameworks/support/compat/tests/java/android/support/v4/util/ |
D | ArrayMapCompatTest.java | 42 Map<String, String> map = new ArrayMap<>(); in testCanNotIteratePastEnd_entrySetIterator() local 43 map.put("key 1", "value 1"); in testCanNotIteratePastEnd_entrySetIterator() 44 map.put("key 2", "value 2"); in testCanNotIteratePastEnd_entrySetIterator() 49 Iterator<Map.Entry<String, String>> iterator = map.entrySet().iterator(); in testCanNotIteratePastEnd_entrySetIterator() 79 Map<String, String> map = new ArrayMap<>(); in testCanNotIteratePastEnd_keySetIterator() local 80 map.put("key 1", "value 1"); in testCanNotIteratePastEnd_keySetIterator() 81 map.put("key 2", "value 2"); in testCanNotIteratePastEnd_keySetIterator() 83 Iterator<String> iterator = map.keySet().iterator(); in testCanNotIteratePastEnd_keySetIterator() 105 Map<String, String> map = new ArrayMap<>(); in testCanNotIteratePastEnd_valuesIterator() local 106 map.put("key 1", "value 1"); in testCanNotIteratePastEnd_valuesIterator() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | AttributeCache.java | 93 final ArrayMap<int[], Entry> map = pkg.mMap.valueAt(i); in removePackage() local 94 for (int j = 0; j < map.size(); j++) { in removePackage() 95 map.valueAt(j).recycle(); in removePackage() 122 ArrayMap<int[], Entry> map = null; in get() local 125 map = pkg.mMap.get(resId); in get() 126 if (map != null) { in get() 127 ent = map.get(styleable); in get() 147 if (map == null) { in get() 148 map = new ArrayMap<>(); in get() 149 pkg.mMap.put(resId, map); in get() [all …]
|
/frameworks/layoutlib/bridge/src/android/util/ |
D | LruCache.java | 67 private final LinkedHashMap<K, V> map; field in LruCache 89 this.map = new LinkedHashMap<K, V>(0, 0.75f, true); in LruCache() 122 mapValue = map.get(key); in get() 144 mapValue = map.put(key, createdValue); in get() 148 map.put(key, mapValue); in get() 178 previous = map.put(key, value); in put() 201 if (size < 0 || (map.isEmpty() && size != 0)) { in trimToSize() 215 for (Map.Entry<K, V> entry : map.entrySet()) { in trimToSize() 226 map.remove(key); in trimToSize() 247 previous = map.remove(key); in remove() [all …]
|
/frameworks/base/core/java/android/util/ |
D | LruCache.java | 63 private final LinkedHashMap<K, V> map; field in LruCache 85 this.map = new LinkedHashMap<K, V>(0, 0.75f, true); in LruCache() 117 mapValue = map.get(key); in get() 139 mapValue = map.put(key, createdValue); in get() 143 map.put(key, mapValue); in get() 173 previous = map.put(key, value); in put() 199 if (size < 0 || (map.isEmpty() && size != 0)) { in trimToSize() 208 Map.Entry<K, V> toEvict = map.eldest(); in trimToSize() 215 map.remove(key); in trimToSize() 236 previous = map.remove(key); in remove() [all …]
|
/frameworks/av/services/mediadrm/tests/ |
D | DrmSessionManager_test.cpp | 100 const PidSessionInfosMap& map = sessionMap(); in addSession() local 101 EXPECT_EQ(2u, map.size()); in addSession() 102 ssize_t index1 = map.indexOfKey(kTestPid1); in addSession() 104 const SessionInfos& infos1 = map[index1]; in addSession() 108 ssize_t index2 = map.indexOfKey(kTestPid2); in addSession() 110 const SessionInfos& infos2 = map[index2]; in addSession() 175 const PidSessionInfosMap& map = sessionMap(); in TEST_F() local 176 const SessionInfos& infos1 = map.valueFor(kTestPid1); in TEST_F() 177 const SessionInfos& infos2 = map.valueFor(kTestPid2); in TEST_F() 187 const PidSessionInfosMap& map = sessionMap(); in TEST_F() local [all …]
|
/frameworks/av/media/libmediaplayerservice/tests/ |
D | DrmSessionManager_test.cpp | 104 const PidSessionInfosMap& map = sessionMap(); in addSession() local 105 EXPECT_EQ(2u, map.size()); in addSession() 106 ssize_t index1 = map.indexOfKey(kTestPid1); in addSession() 108 const SessionInfos& infos1 = map[index1]; in addSession() 112 ssize_t index2 = map.indexOfKey(kTestPid2); in addSession() 114 const SessionInfos& infos2 = map[index2]; in addSession() 179 const PidSessionInfosMap& map = sessionMap(); in TEST_F() local 180 const SessionInfos& infos1 = map.valueFor(kTestPid1); in TEST_F() 181 const SessionInfos& infos2 = map.valueFor(kTestPid2); in TEST_F() 191 const PidSessionInfosMap& map = sessionMap(); in TEST_F() local [all …]
|
/frameworks/native/libs/binder/include/binder/ |
D | PersistableBundle.h | 115 std::map<String16, bool> mBoolMap; 116 std::map<String16, int32_t> mIntMap; 117 std::map<String16, int64_t> mLongMap; 118 std::map<String16, double> mDoubleMap; 119 std::map<String16, String16> mStringMap; 120 std::map<String16, std::vector<bool>> mBoolVectorMap; 121 std::map<String16, std::vector<int32_t>> mIntVectorMap; 122 std::map<String16, std::vector<int64_t>> mLongVectorMap; 123 std::map<String16, std::vector<double>> mDoubleVectorMap; 124 std::map<String16, std::vector<String16>> mStringVectorMap; [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | FileObserverTest.java | 47 Map<String, Object> map = Maps.newHashMap(); in onEvent() local 49 map.put("event", event); in onEvent() 50 map.put("path", path); in onEvent() 52 events.add(map); in onEvent() 113 Map map = it.next(); in waitForEvent() local 114 ….i("FileObserverTest", "event: " + getEventString((Integer)map.get("event")) + " path: " + map.get… in waitForEvent()
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | SmsProviderTest.java | 56 ContentValues map = new ContentValues(); in testProvider() local 57 map.put("address", "+15045551337"); in testProvider() 58 map.put("read", 0); in testProvider() 63 map.put("body", "Test " + i + " !"); in testProvider() 64 map.put("date", dates[i]); in testProvider() 65 urls[i] = contentResolver.insert(Sms.Inbox.CONTENT_URI, map); in testProvider()
|
/frameworks/base/lowpan/java/android/net/lowpan/ |
D | LowpanProperty.java | 27 public void putInMap(Map map, T value) { in putInMap() argument 28 map.put(getName(), value); in putInMap() 31 public T getFromMap(Map map) { in getFromMap() argument 32 return (T) map.get(getName()); in getFromMap()
|