/libcore/jsr166-tests/src/test/java/jsr166/ |
D | SystemTest.java | 44 long m2 = System.currentTimeMillis(); in testNanoTime1() local 45 long millis = m2 - m1; in testNanoTime1() 62 long m2 = System.currentTimeMillis(); in testNanoTime2() local 65 long millis = m2 - m1; in testNanoTime2()
|
D | TreeSubMapTest.java | 66 map.put(m2, "B"); in dmap5() 674 assertTrue(s.contains(m2)); 764 (e.getKey().equals(m2) && e.getValue().equals("B")) || 780 assertTrue(empty.containsKey(m2)); 802 assertEquals(m2, e1.getKey()); 877 assertEquals(m2, e.getKey()); 911 map.remove(m2); 986 SortedMap sm = map.subMap(m2, m4); 987 assertEquals(m2, sm.firstKey()); 991 assertTrue(sm.containsKey(m2)); [all …]
|
D | ConcurrentSkipListSubMapTest.java | 61 map.put(m2, "B"); in dmap5() 839 assertTrue(s.contains(m2)); 929 (e.getKey().equals(m2) && e.getValue().equals("B")) || 945 assertTrue(empty.containsKey(m2)); 1037 assertEquals(m2, e1.getKey()); 1112 assertEquals(m2, e.getKey()); 1146 map.remove(m2); 1298 SortedMap sm = map.subMap(m2, m4); 1299 assertEquals(m2, sm.firstKey()); 1303 assertTrue(sm.containsKey(m2)); [all …]
|
D | TreeSubSetTest.java | 79 q.add(m2); in dset5() 821 assertEquals(m2, e1); in testDescendingLower() 992 SortedSet sm = set.subSet(m2, m4); in testDescendingSubSetContents() 993 assertEquals(m2, sm.first()); in testDescendingSubSetContents() 997 assertTrue(sm.contains(m2)); in testDescendingSubSetContents() 1004 assertEquals(m2, k); in testDescendingSubSetContents() 1011 assertFalse(set.contains(m2)); in testDescendingSubSetContents() 1023 SortedSet sm = set.subSet(m2, m3); in testDescendingSubSetContents2() 1025 assertEquals(m2, sm.first()); in testDescendingSubSetContents2() 1026 assertEquals(m2, sm.last()); in testDescendingSubSetContents2() [all …]
|
D | ConcurrentSkipListSubSetTest.java | 82 q.add(m2); in dset5() 835 assertEquals(m2, e1); in testDescendingLower() 1005 SortedSet sm = set.subSet(m2, m4); in testDescendingSubSetContents() 1006 assertEquals(m2, sm.first()); in testDescendingSubSetContents() 1010 assertTrue(sm.contains(m2)); in testDescendingSubSetContents() 1017 assertEquals(m2, k); in testDescendingSubSetContents() 1024 assertFalse(set.contains(m2)); in testDescendingSubSetContents() 1036 SortedSet sm = set.subSet(m2, m3); in testDescendingSubSetContents2() 1038 assertEquals(m2, sm.first()); in testDescendingSubSetContents2() 1039 assertEquals(m2, sm.last()); in testDescendingSubSetContents2() [all …]
|
D | CopyOnWriteArrayListTest.java | 170 full.add(2, m2); in testAddIndex() 172 assertEquals(m2, full.get(2)); in testAddIndex()
|
D | JSR166TestCase.java | 1077 public static final Integer m2 = new Integer(-2);
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | DatatypeConfigurationException.java | 162 Method m2 = this.getClass().getMethod("initCause", new Class[] {Throwable.class}); in readObject() local 163 m2.invoke(this, new Object[] {causeOnJDK13OrBelow}); in readObject()
|
/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 202 m2 = TestMethodSub.class.getMethod("invokeInstanceTest", in test_equalsLjava_lang_Object() 207 assertTrue("Overriden method returned equal", !m1.equals(m2)); in test_equalsLjava_lang_Object() 211 m2 = TestMethodSub.class in test_equalsLjava_lang_Object() 216 assertTrue("Inherited method returned not-equal", m1.equals(m2)); in test_equalsLjava_lang_Object() 225 Method m2 = TestMethod.class.getMethod("invokeInstanceTest", (Class[]) null); in test_getMethod() local 226 assertEquals(m1, m2); in test_getMethod() 235 Method m2 = TestMethod.class.getDeclaredMethod("invokeInstanceTest", (Class[]) null); in test_getDeclaredMethod() local 236 assertEquals(m1, m2); in test_getDeclaredMethod()
|
/libcore/luni/src/test/java/libcore/java/util/jar/ |
D | OldManifestTest.java | 165 Manifest m2 = new Manifest(); in doRoundTrip() local 166 m2.read(is); in doRoundTrip() 167 return (String) m2.getMainAttributes().get(Attributes.Name.CONTENT_TYPE); in doRoundTrip()
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | MethodTest.java | 211 Method m2 = MethodTestHelper.class.getMethod("m1"); in testEqualMethodEqualsAndHashCode() local 212 assertEquals(m1, m2); in testEqualMethodEqualsAndHashCode() 213 assertEquals(m1.hashCode(), m2.hashCode()); in testEqualMethodEqualsAndHashCode() 224 Method m2 = MethodTestHelper.class.getMethod("m2", Object.class); in testDifferentMethodEqualsAndHashCode() local 225 assertFalse(m1.equals(m2)); in testDifferentMethodEqualsAndHashCode() 226 assertFalse(m1.hashCode() == m2.hashCode()); in testDifferentMethodEqualsAndHashCode() 330 public void m2(Object o) { } in m2() method in MethodTest.MethodTestHelper
|
D | ClassLoaderReflectionTest.java | 139 Method m2 = eClass.getMethod("call"); in testMethodsOfDifferentClassLoadersAreNotEqual() local 140 assertFalse(m1.equals(m2)); in testMethodsOfDifferentClassLoadersAreNotEqual()
|
/libcore/luni/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
D | AnnotationTest.java | 46 Method m2 = AnnotatedClass2.class in test_equals() local 49 m1.getDeclaredAnnotations()[0].equals(m2 in test_equals() 123 Method m2 = AnnotatedClass3.class.getDeclaredMethod("a", new Class[] {}); in test_hashCode() local 126 m2.getDeclaredAnnotations()[0].hashCode()); in test_hashCode()
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | ForwardBuilder.java | 513 boolean m2 = trustedSubjectDNs.contains(cIssuer2); in compare() 516 debug.println(METHOD_NME + " m2: " + m2); in compare() 518 if (m1 && m2) { in compare() 522 } else if (m2) { in compare()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | HashMapTest.java | 306 Map<String, String> m2 = new HashMap<String, String>(); in test_removeFromViews() local 307 m2.put("B", null); in test_removeFromViews() 308 assertTrue(hm.entrySet().remove(m2.entrySet().iterator().next())); in test_removeFromViews() 523 Map<Integer,Integer> m2 = new HashMap<Integer, Integer>(); in test_putAllLjava_util_Map_Resize() local 527 m2.put(j, j); in test_putAllLjava_util_Map_Resize() 530 m1.putAll(m2); in test_putAllLjava_util_Map_Resize()
|
D | TreeMapTest.java | 1858 Map m2 = new TreeMap(); in test_equals() local 1861 m2.put(new Integer(1), "val1"); in test_equals() 1862 m2.put(new Integer(2), "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() 1868 m2 = new HashMap(); in test_equals() 1870 m2.put(new Object(), "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()
|
D | LinkedHashMapTest.java | 246 LinkedHashMap<String, String> m2 = new LinkedHashMap<String, String>(m1); in entrySetRemoveHelper() local 248 s1.remove(m2.entrySet().iterator().next()); in entrySetRemoveHelper()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
D | Pattern2Test.java | 38 Matcher m2 = p.matcher("fox"); in testSimpleMatch() local 39 assertFalse(m2.matches()); in testSimpleMatch() 40 assertFalse(m2.find(0)); in testSimpleMatch() 41 assertFalse(m2.lookingAt()); in testSimpleMatch()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | TabulatorsTest.java | 268 Map m2 = (Map) o2; 269 assertContentsUnordered(m1.keySet(), m2.keySet()); 271 nestedMapEqualityAssertion(m1.get(k), m2.get(k));
|
/libcore/ojluni/src/main/java/sun/net/ftp/impl/ |
D | FtpClient.java | 270 Matcher m2 = linkp.matcher(filename); in parseLine() local 271 if (m2.find()) { in parseLine() 273 filename = m2.group(1); in parseLine()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatterBuilder.java | 3566 int m2 = getDigit(text, pos++); in parse() local 3567 if (m1 < 0 || m2 < 0) { in parse() 3570 m = m1 * 10 + m2; in parse() 3593 int m2 = getDigit(text, pos + 2); in parse() local 3594 if (m1 >= 0 && m2 >= 0) { in parse() 3595 m = m1 * 10 + m2; in parse()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | Collectors.java | 318 return (m1, m2) -> { 319 for (Map.Entry<K,V> e : m2.entrySet())
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKPeriod.java | 526 …public void factory_between_LocalDate(int y1, int m1, int d1, int y2, int m2, int d2, int ye, int … in factory_between_LocalDate() argument 528 LocalDate end = LocalDate.of(y2, m2, d2); in factory_between_LocalDate()
|
D | TCKLocalDate.java | 1866 …public void test_periodUntil_LocalDate(int y1, int m1, int d1, int y2, int m2, int d2, int ye, int… 1868 LocalDate end = LocalDate.of(y2, m2, d2);
|