Home
last modified time | relevance | path

Searched refs:m1 (Results 1 – 25 of 37) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/util/jar/
DOldManifestTest.java156 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/
DSystemTest.java38 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()
DConcurrentSkipListSubMapTest.java58 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 …]
DTreeSubMapTest.java63 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 …]
DTreeSubSetTest.java78 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 …]
DConcurrentSkipListSubSetTest.java81 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 …]
DCopyOnWriteArrayListTest.java165 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()
DCopyOnWriteArraySetTest.java147 a.add(m1); in testEquals()
152 b.add(m1); in testEquals()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DSystemTest.java62 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()
DConcurrentSkipListSubMapTest.java81 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 …]
DTreeSubMapTest.java86 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 …]
DTreeSubSetTest.java101 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 …]
DConcurrentSkipListSubSetTest.java104 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 …]
DCopyOnWriteArrayListTest.java203 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()
DCopyOnWriteArraySetTest.java169 a.add(m1); in testEquals()
174 b.add(m1); in testEquals()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DMethodTest.java132 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 …]
DClassLoaderReflectionTest.java138 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/
DMethodTest.java199 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/
DDatatypeConfigurationException.java156 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/
DAnnotationTest.java44 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/
DForwardBuilder.java512 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/
DBigInteger.java2729 BigInteger m1 = m.shiftRight(p); // m/2**p in modPow() local
2733 BigInteger base2 = (this.signum < 0 || this.compareTo(m1) >= 0 in modPow()
2734 ? this.mod(m1) : this); in modPow()
2737 BigInteger a1 = (m1.equals(ONE) ? ZERO : in modPow()
2738 base2.oddModPow(exponent, m1)); in modPow()
2744 BigInteger y1 = m2.modInverse(m1); in modPow()
2745 BigInteger y2 = m1.modInverse(m2); in modPow()
2748 result = a1.multiply(m2).multiply(y1).add(a2.multiply(m1).multiply(y2)).mod(m); in modPow()
2753 new MutableBigInteger(a2.multiply(m1)).multiply(new MutableBigInteger(y2), t2); in modPow()
3757 int[] m1 = mag;
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTreeMapTest.java1857 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 …]
DLinkedHashMapTest.java243 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()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DTabulatorsTest.java267 Map m1 = (Map) o1;
269 assertContentsUnordered(m1.keySet(), m2.keySet());
270 for (Object k : m1.keySet())
271 nestedMapEqualityAssertion(m1.get(k), m2.get(k));

12