/libcore/ojluni/src/test/java/util/Collection/ |
D | BiggernYours.java | 81 static void compareMaps(Map m1, Map m2) { in compareMaps() argument 82 compareCollections(m1.keySet(), in compareMaps() 84 compareCollections(m1.values(), in compareMaps() 86 compareCollections(m1.entrySet(), in compareMaps() 90 static void compareNavigableMaps(NavigableMap m1, NavigableMap m2) { in compareNavigableMaps() argument 91 compareMaps(m1, m2); in compareNavigableMaps() 92 compareMaps(m1.descendingMap(), in compareNavigableMaps() 94 compareMaps(m1.tailMap(Integer.MIN_VALUE), in compareNavigableMaps() 96 compareMaps(m1.headMap(Integer.MAX_VALUE), in compareNavigableMaps() 168 static void testMaps(Map m1, Map m2) { [all …]
|
/libcore/ojluni/src/test/java/util/Map/ |
D | LockStep.java | 56 void mapsEqual(Map m1, Map m2) { in mapsEqual() argument 57 Assert.assertEquals(m1, m2); in mapsEqual() 58 Assert.assertEquals(m2, m1); in mapsEqual() 59 Assert.assertEquals(m1.size(), m2.size()); in mapsEqual() 60 Assert.assertEquals(m1.isEmpty(), m2.isEmpty()); in mapsEqual() 61 Assert.assertEquals(m1.keySet(), m2.keySet()); in mapsEqual() 62 Assert.assertEquals(m2.keySet(), m1.keySet()); in mapsEqual()
|
/libcore/luni/src/test/java/libcore/java/util/jar/ |
D | OldManifestTest.java | 156 Manifest m1 = new Manifest(); in doRoundTrip() local 157 m1.getMainAttributes().put(Attributes.Name.CONTENT_TYPE, "image/pr0n"); in doRoundTrip() 159 m1.getMainAttributes().putValue(versionName.toString(), "1.2.3"); in doRoundTrip() 162 m1.write(os); in doRoundTrip() 172 Manifest m1 = new Manifest(); in test_write_two_versions() local 173 m1.getMainAttributes().put(Attributes.Name.MANIFEST_VERSION, "1.0"); in test_write_two_versions() 174 m1.getMainAttributes().put(Attributes.Name.SIGNATURE_VERSION, "2.0"); in test_write_two_versions() 175 m1.getMainAttributes().putValue("Aardvark-Version", "3.0"); in test_write_two_versions() 177 m1.write(os); in test_write_two_versions()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | SystemTest.java | 38 long m1 = System.currentTimeMillis(); in testNanoTime1() local 45 long millis = m2 - m1; in testNanoTime1() 60 long m1 = System.currentTimeMillis(); in testNanoTime2() local 65 long millis = m2 - m1; in testNanoTime2()
|
D | ConcurrentSkipListSubMapTest.java | 58 map.put(m1, "A"); in dmap5() 781 assertTrue(map.containsKey(m1)); 800 assertEquals("A", (String)map.get(m1)); 802 assertNull(empty.get(m1)); 820 assertEquals(m1, map.firstKey()); 838 assertTrue(s.contains(m1)); 853 assertEquals(last, m1); 928 (e.getKey().equals(m1) && e.getValue().equals("A")) || 944 assertTrue(empty.containsKey(m1)); 965 assertEquals("A", map.putIfAbsent(m1, "Z")); [all …]
|
D | TreeSubMapTest.java | 63 map.put(m1, "A"); in dmap5() 616 assertTrue(map.containsKey(m1)); 635 assertEquals("A", (String)map.get(m1)); 637 assertNull(empty.get(m1)); 655 assertEquals(m1, map.firstKey()); 673 assertTrue(s.contains(m1)); 688 assertEquals(last, m1); 763 (e.getKey().equals(m1) && e.getValue().equals("A")) || 779 assertTrue(empty.containsKey(m1)); 807 Map.Entry e3 = map.lowerEntry(m1); [all …]
|
D | ConcurrentSkipListSubSetTest.java | 81 q.add(m1); in dset5() 94 return set.tailSet(m1, true); in set0() 840 Object e3 = q.lower(m1); in testDescendingLower() 856 assertEquals(m1, e2); in testDescendingHigher() 876 Object e3 = q.floor(m1); in testDescendingFloor() 877 assertEquals(m1, e3); in testDescendingFloor() 892 assertEquals(m1, e2); in testDescendingCeiling() 1009 assertFalse(sm.contains(m1)); in testDescendingSubSetContents() 1040 assertFalse(sm.contains(m1)); in testDescendingSubSetContents2() 1067 assertTrue(sm.contains(m1)); in testDescendingHeadSetContents() [all …]
|
D | TreeSubSetTest.java | 78 q.add(m1); in dset5() 91 return set.tailSet(m1, false); in set0() 826 Object e3 = q.lower(m1); in testDescendingLower() 842 assertEquals(m1, e2); in testDescendingHigher() 862 Object e3 = q.floor(m1); in testDescendingFloor() 863 assertEquals(m1, e3); in testDescendingFloor() 878 assertEquals(m1, e2); in testDescendingCeiling() 996 assertFalse(sm.contains(m1)); in testDescendingSubSetContents() 1027 assertFalse(sm.contains(m1)); in testDescendingSubSetContents2() 1054 assertTrue(sm.contains(m1)); in testDescendingHeadSetContents() [all …]
|
D | CopyOnWriteArrayListTest.java | 165 full.add(0, m1); in testAddIndex() 167 assertEquals(m1, full.get(0)); in testAddIndex() 187 a.add(m1); in testEquals() 192 b.add(m1); in testEquals() 507 s.set(2, m1); in testSubList() 508 assertEquals(a.get(4), m1); in testSubList()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | SystemTest.java | 62 long m1 = System.currentTimeMillis(); in testNanoTime1() local 69 long millis = m2 - m1; in testNanoTime1() 84 long m1 = System.currentTimeMillis(); in testNanoTime2() local 89 long millis = m2 - m1; in testNanoTime2()
|
D | ConcurrentSkipListSubMapTest.java | 81 map.put(m1, "A"); in dmap5() 804 assertTrue(map.containsKey(m1)); 823 assertEquals("A", (String)map.get(m1)); 825 assertNull(empty.get(m1)); 843 assertEquals(m1, map.firstKey()); 861 assertTrue(s.contains(m1)); 876 assertEquals(last, m1); 951 (e.getKey().equals(m1) && e.getValue().equals("A")) || 967 assertTrue(empty.containsKey(m1)); 988 assertEquals("A", map.putIfAbsent(m1, "Z")); [all …]
|
D | TreeSubMapTest.java | 86 map.put(m1, "A"); in dmap5() 639 assertTrue(map.containsKey(m1)); 658 assertEquals("A", (String)map.get(m1)); 660 assertNull(empty.get(m1)); 678 assertEquals(m1, map.firstKey()); 696 assertTrue(s.contains(m1)); 711 assertEquals(last, m1); 786 (e.getKey().equals(m1) && e.getValue().equals("A")) || 802 assertTrue(empty.containsKey(m1)); 830 Map.Entry e3 = map.lowerEntry(m1); [all …]
|
D | TreeSubSetTest.java | 101 q.add(m1); in dset5() 114 return set.tailSet(m1, false); in set0() 849 Object e3 = q.lower(m1); in testDescendingLower() 865 assertEquals(m1, e2); in testDescendingHigher() 885 Object e3 = q.floor(m1); in testDescendingFloor() 886 assertEquals(m1, e3); in testDescendingFloor() 901 assertEquals(m1, e2); in testDescendingCeiling() 1019 assertFalse(sm.contains(m1)); in testDescendingSubSetContents() 1050 assertFalse(sm.contains(m1)); in testDescendingSubSetContents2() 1077 assertTrue(sm.contains(m1)); in testDescendingHeadSetContents() [all …]
|
D | ConcurrentSkipListSubSetTest.java | 104 q.add(m1); in dset5() 117 return set.tailSet(m1, true); in set0() 863 Object e3 = q.lower(m1); in testDescendingLower() 879 assertEquals(m1, e2); in testDescendingHigher() 899 Object e3 = q.floor(m1); in testDescendingFloor() 900 assertEquals(m1, e3); in testDescendingFloor() 915 assertEquals(m1, e2); in testDescendingCeiling() 1032 assertFalse(sm.contains(m1)); in testDescendingSubSetContents() 1063 assertFalse(sm.contains(m1)); in testDescendingSubSetContents2() 1090 assertTrue(sm.contains(m1)); in testDescendingHeadSetContents() [all …]
|
D | CopyOnWriteArrayListTest.java | 203 full.add(0, m1); in testAddIndex() 205 assertEquals(m1, full.get(0)); in testAddIndex() 225 a.add(m1); in testEquals() 230 b.add(m1); in testEquals() 545 s.set(2, m1); in testSubList() 546 assertEquals(a.get(4), m1); in testSubList()
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | CheckedIdentityMap.java | 46 Map<Integer, Integer> m1 = checkedMap( in testHashCode() local 53 m1.put(new Integer(1), new Integer(1)); in testHashCode() 56 Map.Entry<Integer, Integer> e1 = m1.entrySet().iterator().next(); in testHashCode()
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | MethodTest.java | 132 Method m1 = MethodTestHelper.class.getMethod("m1", (Class[]) null); in testGetMethodWithNullArgumentsArray() local 133 assertEquals(0, m1.getParameterTypes().length); in testGetMethodWithNullArgumentsArray() 210 Method m1 = MethodTestHelper.class.getMethod("m1"); in testEqualMethodEqualsAndHashCode() local 212 assertEquals(m1, m2); in testEqualMethodEqualsAndHashCode() 213 assertEquals(m1.hashCode(), m2.hashCode()); in testEqualMethodEqualsAndHashCode() 214 assertEquals(MethodTestHelper.class.getName().hashCode() ^ "m1".hashCode(), m1.hashCode()); in testEqualMethodEqualsAndHashCode() 218 Method m1 = MethodTestHelper.class.getMethod("m1"); in testHashCodeSpec() local 219 assertEquals(MethodTestHelper.class.getName().hashCode() ^ "m1".hashCode(), m1.hashCode()); in testHashCodeSpec() 223 Method m1 = MethodTestHelper.class.getMethod("m1"); in testDifferentMethodEqualsAndHashCode() local 225 assertFalse(m1.equals(m2)); in testDifferentMethodEqualsAndHashCode() [all …]
|
D | ClassLoaderReflectionTest.java | 138 Method m1 = E.class.getMethod("call"); in testMethodsOfDifferentClassLoadersAreNotEqual() local 140 assertFalse(m1.equals(m2)); in testMethodsOfDifferentClassLoadersAreNotEqual()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | MethodTest.java | 199 Method m1 = null, m2 = null; in test_equalsLjava_lang_Object() local 201 m1 = TestMethod.class.getMethod("invokeInstanceTest", new Class[0]); in test_equalsLjava_lang_Object() 207 assertTrue("Overriden method returned equal", !m1.equals(m2)); in test_equalsLjava_lang_Object() 208 assertTrue("Same method returned not-equal", m1.equals(m1)); in test_equalsLjava_lang_Object() 210 m1 = TestMethod.class.getMethod("invokeStaticTest", new Class[0]); in test_equalsLjava_lang_Object() 216 assertTrue("Inherited method returned not-equal", m1.equals(m2)); in test_equalsLjava_lang_Object() 224 Method m1 = TestMethod.class.getMethod("invokeInstanceTest", new Class[0]); in test_getMethod() local 226 assertEquals(m1, m2); in test_getMethod() 234 Method m1 = TestMethod.class.getDeclaredMethod("invokeInstanceTest", new Class[0]); in test_getDeclaredMethod() local 236 assertEquals(m1, m2); in test_getDeclaredMethod()
|
/libcore/ojluni/src/test/java/lang/StackWalker/ |
D | Basic.java | 188 m1(); in build() 191 void m1() { in m1() method in Basic.StackBuilder 209 m1(); in m4()
|
/libcore/luni/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
D | AnnotationTest.java | 44 Method m1 = AnnotatedClass2.class in test_equals() local 49 m1.getDeclaredAnnotations()[0].equals(m2 in test_equals() 107 Method m1 = AnnotatedClass.class.getDeclaredMethod("e34c", new Class[] {}); in test_hashCode() local 121 m1.getDeclaredAnnotations()[0].hashCode()); in test_hashCode()
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | ForwardBuilder.java | 512 boolean m1 = trustedSubjectDNs.contains(cIssuer1); in compare() 515 debug.println(METHOD_NME + " m1: " + m1); in compare() 518 if (m1 && m2) { in compare() 520 } else if (m1) { in compare()
|
/libcore/ojluni/src/main/java/java/math/ |
D | BigInteger.java | 2928 BigInteger m1 = m.shiftRight(p); // m/2**p in modPow() local 2932 BigInteger base2 = (this.signum < 0 || this.compareTo(m1) >= 0 in modPow() 2933 ? this.mod(m1) : this); in modPow() 2936 BigInteger a1 = (m1.equals(ONE) ? ZERO : in modPow() 2937 base2.oddModPow(exponent, m1)); in modPow() 2943 BigInteger y1 = m2.modInverse(m1); in modPow() 2944 BigInteger y2 = m1.modInverse(m2); in modPow() 2947 result = a1.multiply(m2).multiply(y1).add(a2.multiply(m1).multiply(y2)).mod(m); in modPow() 2952 new MutableBigInteger(a2.multiply(m1)).multiply(new MutableBigInteger(y2), t2); in modPow() 3973 int[] m1 = mag; [all …]
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | Collectors.java | 152 return (m1, m2) -> { in uniqKeysMapMerger() 156 V u = m1.putIfAbsent(k, v); in uniqKeysMapMerger() 159 return m1; in uniqKeysMapMerger() 431 return (m1, m2) -> { 433 m1.merge(e.getKey(), e.getValue(), mergeFunction); 434 return m1;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | TreeMapTest.java | 1857 Map m1 = new TreeMap(); in test_equals() local 1859 m1.put("key1", "val1"); in test_equals() 1860 m1.put("key2", "val2"); in test_equals() 1863 assertFalse("Maps should not be equal 1", m1.equals(m2)); in test_equals() 1864 assertFalse("Maps should not be equal 2", m2.equals(m1)); in test_equals() 1867 m1 = new TreeMap(); in test_equals() 1869 m1.put("key", "val"); in test_equals() 1871 assertFalse("Maps should not be equal 3", m1.equals(m2)); in test_equals() 1872 assertFalse("Maps should not be equal 4", m2.equals(m1)); in test_equals() 1877 TreeMap m1 = new TreeMap(); in test_invalidKeys() local [all …]
|