Home
last modified time | relevance | path

Searched refs:m2 (Results 1 – 25 of 35) sorted by relevance

12

/libcore/jsr166-tests/src/test/java/jsr166/
DSystemTest.java44 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()
DTreeSubMapTest.java66 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 …]
DConcurrentSkipListSubMapTest.java61 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 …]
DTreeSubSetTest.java79 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 …]
DConcurrentSkipListSubSetTest.java82 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 …]
DCopyOnWriteArrayListTest.java170 full.add(2, m2); in testAddIndex()
172 assertEquals(m2, full.get(2)); in testAddIndex()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DSystemTest.java68 long m2 = System.currentTimeMillis(); in testNanoTime1() local
69 long millis = m2 - m1; in testNanoTime1()
86 long m2 = System.currentTimeMillis(); in testNanoTime2() local
89 long millis = m2 - m1; in testNanoTime2()
DTreeSubMapTest.java89 map.put(m2, "B"); in dmap5()
697 assertTrue(s.contains(m2));
787 (e.getKey().equals(m2) && e.getValue().equals("B")) ||
803 assertTrue(empty.containsKey(m2));
825 assertEquals(m2, e1.getKey());
900 assertEquals(m2, e.getKey());
934 map.remove(m2);
1009 SortedMap sm = map.subMap(m2, m4);
1010 assertEquals(m2, sm.firstKey());
1014 assertTrue(sm.containsKey(m2));
[all …]
DTreeSubSetTest.java102 q.add(m2); in dset5()
844 assertEquals(m2, e1); in testDescendingLower()
1015 SortedSet sm = set.subSet(m2, m4); in testDescendingSubSetContents()
1016 assertEquals(m2, sm.first()); in testDescendingSubSetContents()
1020 assertTrue(sm.contains(m2)); in testDescendingSubSetContents()
1027 assertEquals(m2, k); in testDescendingSubSetContents()
1034 assertFalse(set.contains(m2)); in testDescendingSubSetContents()
1046 SortedSet sm = set.subSet(m2, m3); in testDescendingSubSetContents2()
1048 assertEquals(m2, sm.first()); in testDescendingSubSetContents2()
1049 assertEquals(m2, sm.last()); in testDescendingSubSetContents2()
[all …]
DConcurrentSkipListSubSetTest.java105 q.add(m2); in dset5()
858 assertEquals(m2, e1); in testDescendingLower()
1028 SortedSet sm = set.subSet(m2, m4); in testDescendingSubSetContents()
1029 assertEquals(m2, sm.first()); in testDescendingSubSetContents()
1033 assertTrue(sm.contains(m2)); in testDescendingSubSetContents()
1040 assertEquals(m2, k); in testDescendingSubSetContents()
1047 assertFalse(set.contains(m2)); in testDescendingSubSetContents()
1059 SortedSet sm = set.subSet(m2, m3); in testDescendingSubSetContents2()
1061 assertEquals(m2, sm.first()); in testDescendingSubSetContents2()
1062 assertEquals(m2, sm.last()); in testDescendingSubSetContents2()
[all …]
DConcurrentSkipListSubMapTest.java84 map.put(m2, "B"); in dmap5()
862 assertTrue(s.contains(m2));
952 (e.getKey().equals(m2) && e.getValue().equals("B")) ||
968 assertTrue(empty.containsKey(m2));
1060 assertEquals(m2, e1.getKey());
1135 assertEquals(m2, e.getKey());
1169 map.remove(m2);
1321 SortedMap sm = map.subMap(m2, m4);
1322 assertEquals(m2, sm.firstKey());
1326 assertTrue(sm.containsKey(m2));
[all …]
/libcore/ojluni/src/test/java/lang/StrictMath/
DExactArithTests.java135 long m2 = (long) x * (long) y; in testIntegerExact() local
136 if ((int) m2 != m2) { in testIntegerExact()
137 …il("FAIL: int StrictMath.multiplyExact(" + x + " * " + y + ") = " + product + "; expected: " + m2); in testIntegerExact()
140 long m2 = (long) x * (long) y; in testIntegerExact()
141 if ((int) m2 == m2) { in testIntegerExact()
/libcore/ojluni/src/test/java/lang/Math/
DExactArithTests.java111 long m2 = (long) x * (long) y; in testIntegerExact() local
112 if ((int) m2 != m2) { in testIntegerExact()
113 … fail("FAIL: int Math.multiplyExact(" + x + " * " + y + ") = " + product + "; expected: " + m2); in testIntegerExact()
116 long m2 = (long) x * (long) y; in testIntegerExact()
117 if ((int) m2 == m2) { in testIntegerExact()
/libcore/luni/src/main/java/javax/xml/datatype/
DDatatypeConfigurationException.java162 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/
DMethodTest.java199 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/
DOldManifestTest.java165 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/
DMethodTest.java211 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
DClassLoaderReflectionTest.java139 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/
DAnnotationTest.java46 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/
DForwardBuilder.java513 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/
DHashMapTest.java306 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()
DTreeMapTest.java1858 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()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DPattern2Test.java38 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/
DTabulatorsTest.java268 Map m2 = (Map) o2;
269 assertContentsUnordered(m1.keySet(), m2.keySet());
271 nestedMapEqualityAssertion(m1.get(k), m2.get(k));
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java2730 BigInteger m2 = ONE.shiftLeft(p); // 2**p in modPow() local
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()
2751 new MutableBigInteger(a1.multiply(m2)).multiply(new MutableBigInteger(y1), t1); in modPow()
3759 int[] m2 = val.mag;
3760 int len2 = m2.length;
3767 int b = m2[i];

12