/libcore/jsr166-tests/src/test/java/jsr166/ |
D | SystemTest.java | 34 long m2 = System.currentTimeMillis(); in testNanoTime1() local 35 long millis = m2 - m1; in testNanoTime1() 52 long m2 = System.currentTimeMillis(); in testNanoTime2() local 55 long millis = m2 - m1; in testNanoTime2()
|
D | TreeSubMapTest.java | 47 map.put(m2, "B"); in dmap5() 655 assertTrue(s.contains(m2)); 745 (e.getKey().equals(m2) && e.getValue().equals("B")) || 761 assertTrue(empty.containsKey(m2)); 783 assertEquals(m2, e1.getKey()); 858 assertEquals(m2, e.getKey()); 892 map.remove(m2); 967 SortedMap sm = map.subMap(m2, m4); 968 assertEquals(m2, sm.firstKey()); 972 assertTrue(sm.containsKey(m2)); [all …]
|
D | ConcurrentSkipListSubMapTest.java | 43 map.put(m2, "B"); in dmap5() 821 assertTrue(s.contains(m2)); 911 (e.getKey().equals(m2) && e.getValue().equals("B")) || 927 assertTrue(empty.containsKey(m2)); 1019 assertEquals(m2, e1.getKey()); 1094 assertEquals(m2, e.getKey()); 1128 map.remove(m2); 1280 SortedMap sm = map.subMap(m2, m4); 1281 assertEquals(m2, sm.firstKey()); 1285 assertTrue(sm.containsKey(m2)); [all …]
|
D | ConcurrentSkipListSubSetTest.java | 76 q.add(m2); in dset5() 839 assertEquals(m2, e1); in testDescendingLower() 1009 SortedSet sm = set.subSet(m2, m4); in testDescendingSubSetContents() 1010 assertEquals(m2, sm.first()); in testDescendingSubSetContents() 1014 assertTrue(sm.contains(m2)); in testDescendingSubSetContents() 1021 assertEquals(m2, k); in testDescendingSubSetContents() 1028 assertFalse(set.contains(m2)); in testDescendingSubSetContents() 1040 SortedSet sm = set.subSet(m2, m3); in testDescendingSubSetContents2() 1042 assertEquals(m2, sm.first()); in testDescendingSubSetContents2() 1043 assertEquals(m2, sm.last()); in testDescendingSubSetContents2() [all …]
|
D | TreeSubSetTest.java | 68 q.add(m2); in dset5() 820 assertEquals(m2, e1); in testDescendingLower() 991 SortedSet sm = set.subSet(m2, m4); in testDescendingSubSetContents() 992 assertEquals(m2, sm.first()); in testDescendingSubSetContents() 996 assertTrue(sm.contains(m2)); in testDescendingSubSetContents() 1003 assertEquals(m2, k); in testDescendingSubSetContents() 1010 assertFalse(set.contains(m2)); in testDescendingSubSetContents() 1022 SortedSet sm = set.subSet(m2, m3); in testDescendingSubSetContents2() 1024 assertEquals(m2, sm.first()); in testDescendingSubSetContents2() 1025 assertEquals(m2, sm.last()); in testDescendingSubSetContents2() [all …]
|
D | CopyOnWriteArrayListTest.java | 162 full.add(2, m2); in testAddIndex() 164 assertEquals(m2, full.get(2)); in testAddIndex()
|
D | JSR166TestCase.java | 495 public static final Integer m2 = new Integer(-2); field in JSR166TestCase
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | MethodTest.java | 166 Method m2 = MethodTestHelper.class.getMethod("m1"); in testEqualMethodEqualsAndHashCode() local 167 assertEquals(m1, m2); in testEqualMethodEqualsAndHashCode() 168 assertEquals(m1.hashCode(), m2.hashCode()); in testEqualMethodEqualsAndHashCode() 179 Method m2 = MethodTestHelper.class.getMethod("m2", Object.class); in testDifferentMethodEqualsAndHashCode() local 180 assertFalse(m1.equals(m2)); in testDifferentMethodEqualsAndHashCode() 181 assertFalse(m1.hashCode() == m2.hashCode()); in testDifferentMethodEqualsAndHashCode() 204 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/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/luni/src/test/java/libcore/java/util/jar/ |
D | OldManifestTest.java | 163 Manifest m2 = new Manifest(); in doRoundTrip() local 164 m2.read(is); in doRoundTrip() 165 return (String) m2.getMainAttributes().get(Attributes.Name.CONTENT_TYPE); in doRoundTrip()
|
/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/main/java/java/util/ |
D | UUID.java | 191 long m2 = Long.parsePositiveLong(parts[1], 16); in fromString() local 197 long msb = (m1 << 32) | (m2 << 16) | m3; in fromString()
|
/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | HashMapTest.java | 301 Map<String, String> m2 = new HashMap<String, String>(); in test_removeFromViews() local 302 m2.put("B", null); in test_removeFromViews() 303 assertTrue(hm.entrySet().remove(m2.entrySet().iterator().next())); in test_removeFromViews() 518 Map<Integer,Integer> m2 = new HashMap<Integer, Integer>(); in test_putAllLjava_util_Map_Resize() local 522 m2.put(j, j); in test_putAllLjava_util_Map_Resize() 525 m1.putAll(m2); in test_putAllLjava_util_Map_Resize()
|
D | TreeMapTest.java | 1854 Map m2 = new TreeMap(); in test_equals() local 1857 m2.put(new Integer(1), "val1"); in test_equals() 1858 m2.put(new Integer(2), "val2"); in test_equals() 1859 assertFalse("Maps should not be equal 1", m1.equals(m2)); in test_equals() 1860 assertFalse("Maps should not be equal 2", m2.equals(m1)); in test_equals() 1864 m2 = new HashMap(); in test_equals() 1866 m2.put(new Object(), "val"); in test_equals() 1867 assertFalse("Maps should not be equal 3", m1.equals(m2)); in test_equals() 1868 assertFalse("Maps should not be equal 4", m2.equals(m1)); in test_equals()
|
D | LinkedHashMapTest.java | 240 LinkedHashMap<String, String> m2 = new LinkedHashMap<String, String>(m1); in entrySetRemoveHelper() local 242 s1.remove(m2.entrySet().iterator().next()); in entrySetRemoveHelper()
|
/libcore/luni/src/main/java/java/io/ |
D | ObjectStreamClass.java | 569 public int compare(Method m1, Method m2) { in computeSerialVersionUID() 570 int result = m1.getName().compareTo(m2.getName()); in computeSerialVersionUID() 575 getMethodSignature(m2)); in computeSerialVersionUID()
|
/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()
|