Home
last modified time | relevance | path

Searched refs:map1 (Results 1 – 11 of 11) 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
324 Log.e("test", "ArrayMap of " + map1.size() + " entries:"); in dump()
325 Set<Map.Entry> mapSet = map1.entrySet(); in dump()
327 Log.e("test", " " + map1.keyAt(i) + " -> " + map1.valueAt(i)); in dump()
457 ArrayMap<Integer, String> map1 = new ArrayMap<Integer, String>();
460 if (!compare(map1, map2) || !compare(map1, map3) || !compare(map3, map2)) {
461 Log.e("test", "ArrayMap equals failure for empty maps " + map1 + ", " +
468 map1.put(i, value);
472 if (!compare(map1, map2) || !compare(map1, map3) || !compare(map3, map2)) {
473 Log.e("test", "ArrayMap equals failure for populated maps " + map1 + ", " +
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs106 var map1 = new MapField<string, string>(); in EqualityIsOrderInsensitive()
107 map1.Add("a", "v1"); in EqualityIsOrderInsensitive()
108 map1.Add("b", "v2"); in EqualityIsOrderInsensitive()
114 EqualityTester.AssertEquality(map1, map2); in EqualityIsOrderInsensitive()
120 var map1 = new MapField<string, string>(); in EqualityIsKeySensitive()
121 map1.Add("first key", "v1"); in EqualityIsKeySensitive()
122 map1.Add("second key", "v2"); in EqualityIsKeySensitive()
128 EqualityTester.AssertInequality(map1, map2); in EqualityIsKeySensitive()
145 var map1 = new MapField<string, string>(); in EqualityIsValueSensitive()
146 map1.Add("a", "first value"); in EqualityIsValueSensitive()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobSetTest.java107 private static void assertHaveSameJobs(SparseArray<ArraySet<JobStatus>> map1, in assertHaveSameJobs() argument
112 for (int i = 0; i < map1.size(); i++) { in assertHaveSameJobs()
113 final ArraySet<JobStatus> jobs = map1.valueAt(i); in assertHaveSameJobs()
125 dump("map1", map1); in assertHaveSameJobs()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DSmallSortedMapTest.java105 SmallSortedMap<Integer, Integer> map1 = in runPutAndGetTest() local
116 assertNull(map1.put(i, i + 1)); in runPutAndGetTest()
125 assertEquals(Math.min(3, numElements), map1.getNumArrayEntries()); in runPutAndGetTest()
132 allMaps.add(map1); in runPutAndGetTest()
144 assertEquals(map1, map2); in runPutAndGetTest()
/frameworks/base/tests/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/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.java144 public int compare(Map<String, Object> map1, Map<String, Object> map2) {
145 return collator.compare(map1.get("title"), map2.get("title"));
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/internal/testdata/
Dmaps.proto44 map<string, MapM> map1 = 1; field
60 repeated Map1Entry map1 = 1; field
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dmap_unittest.proto75 map<int32, int32> map1 = 1; field
Dmap_test.cc647 std::map<int32, int32> map1; in TEST_P() local
648 map1[key1] = value1a; in TEST_P()
649 map1[key2] = value2a; in TEST_P()
651 map_.insert(map1.begin(), map1.end()); in TEST_P()
652 ExpectElements(map1); in TEST_P()
659 ExpectElements(map1); in TEST_P()
2087 const Descriptor* map1 = unittest::TestSameTypeMap::descriptor() in TEST() local
2095 MessageFactory::generated_factory()->GetPrototype(map1); in TEST()
2099 EXPECT_EQ(map1, map1_entry->GetDescriptor()); in TEST()
Dmap_unittest_proto3.proto80 map<int32, int32> map1 = 1; field