Home
last modified time | relevance | path

Searched refs:map2 (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DArrayMapTests.java323 private static void dump(ArrayMap map1, ArrayMap map2) { in dump() argument
326 for (int i=0; i<map2.size(); i++) { in dump()
329 Log.e("test", "ArrayMap of " + map2.size() + " entries:"); in dump()
330 for (int i=0; i<map2.size(); i++) { in dump()
331 Log.e("test", " " + map2.keyAt(i) + " -> " + map2.valueAt(i)); in dump()
458 ArrayMap<Integer, String> map2 = new ArrayMap<Integer, String>();
460 if (!compare(map1, map2) || !compare(map1, map3) || !compare(map3, map2)) {
462 map2 + ", " + map3);
469 map2.put(i, value);
472 if (!compare(map1, map2) || !compare(map1, map3) || !compare(map3, map2)) {
[all …]
/frameworks/native/libs/cputimeinstate/
Dtesttimeinstate.cpp192 auto map2 = getUidsUpdatedCpuFreqTimes(&lastUpdate); in TEST_F() local
193 ASSERT_TRUE(map2.has_value()); in TEST_F()
194 ASSERT_FALSE(map2->empty()); in TEST_F()
199 if (map2->find(uid) == map2->end()) { in TEST_F()
206 for (const auto &[uid, newTimes] : *map2) { in TEST_F()
294 auto map2 = getUidsUpdatedConcurrentTimes(&lastUpdate); in TEST_F() local
295 ASSERT_TRUE(map2.has_value()); in TEST_F()
296 ASSERT_FALSE(map2->empty()); in TEST_F()
301 if (map2->find(uid) == map2->end()) { in TEST_F()
308 for (const auto &[uid, newTimes] : *map2) { in TEST_F()
[all …]
/frameworks/base/services/core/java/com/android/server/inputmethod/
DInputMethodMap.java113 static boolean areSame(@NonNull InputMethodMap map1, @NonNull InputMethodMap map2) { in areSame() argument
114 if (map1 == map2) { in areSame()
118 if (size != map2.size()) { in areSame()
124 final var imi2 = map2.get(imeId); in areSame()
/frameworks/native/libs/ftl/
Dsmall_map_test.cpp106 const SmallMap map2 = ftl::init::map('T', "tera"s)('P', "peta"s); in TEST() local
108 map1 = map2; in TEST()
109 EXPECT_EQ(map1, map2); in TEST()
114 const SmallMap map2 = ftl::init::map('T', "tera"sv)('P', "peta"sv); in TEST() local
116 map1 = map2; in TEST()
117 EXPECT_EQ(map1, map2); in TEST()
122 const SmallMap<char, std::string, 0> map2 = ftl::init::map('T', "tera")('P', "peta"); in TEST() local
124 map1 = map2; in TEST()
125 EXPECT_EQ(map1, map2); in TEST()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobSetTest.java108 SparseArray<ArraySet<JobStatus>> map2) { in assertHaveSameJobs() argument
118 for (int i = 0; i < map2.size(); i++) { in assertHaveSameJobs()
119 final ArraySet<JobStatus> jobs = map2.valueAt(i); in assertHaveSameJobs()
126 dump("map2", map2); in assertHaveSameJobs()
/frameworks/base/core/jni/
Dandroid_view_KeyCharacterMap.cpp237 const std::unique_ptr<KeyCharacterMap>& map2 = in nativeEquals() local
239 if (map1 == nullptr || map2 == nullptr) { in nativeEquals()
240 return map1 == map2; in nativeEquals()
242 return static_cast<jboolean>(*map1 == *map2); in nativeEquals()
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DHwTests.java120 public int compare(Map<String, Object> map1, Map<String, Object> map2) {
121 return collator.compare(map1.get("title"), map2.get("title"));
/frameworks/base/tests/graphics/VectorDrawableTest/src/com/android/test/dynamic/
DVectorDrawableTest.java119 public int compare(Map<String, Object> map1, Map<String, Object> map2) {
120 return collator.compare(map1.get("title"), map2.get("title"));
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DMainActivity.java150 public int compare(Map<String, Object> map1, Map<String, Object> map2) {
151 return collator.compare(map1.get("title"), map2.get("title"));