/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 | 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 | 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 | 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()
|
D | CopyOnWriteArraySetTest.java | 147 a.add(m1); in testEquals() 152 b.add(m1); in testEquals()
|
D | ConcurrentHashMap8Test.java | 369 a.add(m1); in testEquals() 372 b.add(m1); in testEquals()
|
D | JSR166TestCase.java | 1076 public static final Integer m1 = new Integer(-1);
|
/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/luni/src/main/java/javax/xml/datatype/ |
D | DatatypeConfigurationException.java | 156 Method m1 = this.getClass().getMethod("getCause", new Class[] {}); in readObject() local 157 Throwable cause = (Throwable) m1.invoke(this, new Object[] {}); in readObject()
|
/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/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 …]
|
D | LinkedHashMapTest.java | 243 Map<String, String> m1 = new LinkedHashMap<String, String>(); in entrySetRemoveHelper() local 244 m1.put(key, value); in entrySetRemoveHelper() 245 m1.put("jumbo", "shrimp"); in entrySetRemoveHelper() 246 LinkedHashMap<String, String> m2 = new LinkedHashMap<String, String>(m1); in entrySetRemoveHelper() 247 Set<Map.Entry<String, String>> s1 = m1.entrySet(); in entrySetRemoveHelper()
|
D | HashMapTest.java | 516 Map<Integer,Integer> m1 = new HashMap<Integer, Integer>(); in test_putAllLjava_util_Map_Resize() local 520 m1.put(j, j); in test_putAllLjava_util_Map_Resize() 530 m1.putAll(m2); in test_putAllLjava_util_Map_Resize() 535 assertEquals(j, m1.get(j)); in test_putAllLjava_util_Map_Resize()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | TabulatorsTest.java | 267 Map m1 = (Map) o1; 269 assertContentsUnordered(m1.keySet(), m2.keySet()); 270 for (Object k : m1.keySet()) 271 nestedMapEqualityAssertion(m1.get(k), m2.get(k));
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
D | Pattern2Test.java | 33 Matcher m1 = p.matcher("foo123"); in testSimpleMatch() local 34 assertTrue(m1.matches()); in testSimpleMatch() 35 assertTrue(m1.find(0)); in testSimpleMatch() 36 assertTrue(m1.lookingAt()); in testSimpleMatch()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | Collectors.java | 318 return (m1, m2) -> { 320 m1.merge(e.getKey(), e.getValue(), mergeFunction); 321 return m1;
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ |
D | ObjectInputStreamTest.java | 1290 HashMap m1 = (HashMap) in.readObject(); in test_readClassDescriptor_1() local 1291 assertEquals("Incorrectly read the field of A", a.name, ((A) m1.get("0")).name); in test_readClassDescriptor_1() 1292 assertEquals("Incorrectly read the field of A1", a1.name, ((A) m1.get("1")).name); in test_readClassDescriptor_1()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatterBuilder.java | 3565 int m1 = getDigit(text, pos++); in parse() local 3567 if (m1 < 0 || m2 < 0) { in parse() 3570 m = m1 * 10 + m2; in parse() 3592 int m1 = getDigit(text, pos + 1); in parse() local 3594 if (m1 >= 0 && m2 >= 0) { in parse() 3595 m = m1 * 10 + m2; in parse()
|
/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 527 LocalDate start = LocalDate.of(y1, m1, d1); in factory_between_LocalDate()
|