Home
last modified time | relevance | path

Searched refs:p2 (Results 1 – 17 of 17) sorted by relevance

/libcore/luni/src/test/java/tests/security/spec/
DECPointTest.java150 ECPoint p2=null, p1 = in testEqualsObject01() local
156 p2 = new ECPoint(BigInteger.valueOf(-23456L), BigInteger.valueOf(1L)); in testEqualsObject01()
157 assertTrue(p1.equals(p2) && p2.equals(p1)); in testEqualsObject01()
161 p2 = ECPoint.POINT_INFINITY; in testEqualsObject01()
162 assertTrue(p1.equals(p2) && p2.equals(p1)); in testEqualsObject01()
173 ECPoint p2=null, p1 = in testEqualsObject02() local
175 assertFalse(p1.equals(p2)); in testEqualsObject02()
179 p2 = new ECPoint(BigInteger.valueOf(-23456L), BigInteger.valueOf(1L)); in testEqualsObject02()
180 assertFalse(p1.equals(p2) || p2.equals(p1)); in testEqualsObject02()
184 p2 = new ECPoint(BigInteger.valueOf(-23456L), BigInteger.ZERO); in testEqualsObject02()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DFDBigInteger.java250 public static FDBigInteger valueOfPow52(int p5, int p2) { in valueOfPow52() argument
252 if (p2 == 0) { in valueOfPow52()
256 int wordcount = p2 >> 5; in valueOfPow52()
257 int bitcount = p2 & 0x1f; in valueOfPow52()
267 return big5pow(p5).leftShift(p2); in valueOfPow52()
270 return valueOfPow2(p2); in valueOfPow52()
288 public static FDBigInteger valueOfMulPow52(long value, int p5, int p2) { in valueOfMulPow52() argument
290 assert p2 >= 0 : p2; in valueOfMulPow52()
293 int wordcount = p2 >> 5; in valueOfMulPow52()
294 int bitcount = p2 & 0x1f; in valueOfMulPow52()
[all …]
DFloatingDecimal.java851 private static int insignificantDigitsForPow2(int p2) {
852 if(p2>1 && p2 < insignificantDigitsNumber.length) {
853 return insignificantDigitsNumber[p2];
/libcore/luni/src/test/resources/
Dmath_important_numbers.csv647 ceil,-0x1.8p2,-0x1.921fb54442d18p2,-6.283185307179586
648 ceil,-0x1.8p2,-0x1.815e630c155e1p2,-6.021385919380436
649 ceil,-0x1.4p2,-0x1.709d10d3e7eabp2,-5.759586531581287
650 ceil,-0x1.4p2,-0x1.5fdbbe9bba775p2,-5.497787143782138
651 ceil,-0x1.4p2,-0x1.4f1a6c638d03fp2,-5.235987755982989
652 ceil,-0x1.0p2,-0x1.3e591a2b5f908p2,-4.974188368183839
653 ceil,-0x1.0p2,-0x1.2d97c7f3321d2p2,-4.71238898038469
654 ceil,-0x1.0p2,-0x1.1cd675bb04a9cp2,-4.4505895925855405
655 ceil,-0x1.0p2,-0x1.0c152382d7365p2,-4.1887902047863905
683 ceil,0x1.0p2,0x1.921fb54442d18p1,3.141592653589793
[all …]
Dmath_java_only.csv428 expm1,-0x1.fbfdbe07160d3p-1,-0x1.3663949103991p2
1072 nextAfter,0x1.2486672587039p2,0x1.248667258703ap2,0x1.20e4c8a83353fp0
1346 atan2,-0x1.985b3b66967cfp0,-0x1.02a40ab498803p8,-0x1.9313481211377p2
1749 ceil,0x1.0p2,0x1.d5c53dc486547p1
1799 ceil,0x1.0p2,0x1.feb52d333684dp1
1808 ceil,-0x1.8p2,-0x1.b3d4537ae5063p2
1832 ceil,0x1.8p2,0x1.7eed6e5ec8f76p2
1837 ceil,0x1.4p2,0x1.3d89f980914b3p2
1852 ceil,0x1.0p2,0x1.ad5ee9acacce9p1
1869 ceil,0x1.4p2,0x1.18426a14825adp2
[all …]
Dmath_tests.csv206 tan,-0x1.acd9302d72de4p-1,0x1.658p2
207 tan,0x1.acd9302d72de4p-1,-0x1.658p2
1189 tan,0x1.2866f9be4de14p0,0x1.0p2
1190 tan,-0x1.2866f9be4de14p0,-0x1.0p2
1191 tan,0x1.2866f9be4de1dp0,0x1.0000000000001p2
1192 tan,-0x1.2866f9be4de1dp0,-0x1.0000000000001p2
1587 log,0x1.62e42fefa39efp0,0x1.0p2
1588 log,0x1.62e42fefa39fp0,0x1.0000000000001p2
2043 sin,0x1.812a5da3777cdp-8,0x1.928p2
2044 sin,-0x1.812a5da3777cdp-8,-0x1.928p2
[all …]
/libcore/luni/src/test/java/libcore/java/nio/file/
DLinuxPathTest.java279 Path p2 = Paths.get("t1/t2"); in test_relativize() local
280 assertEquals(Paths.get(".."), p1.relativize(p2)); in test_relativize()
281 assertEquals(Paths.get(".."), p1.toAbsolutePath().relativize(p2.toAbsolutePath())); in test_relativize()
282 assertEquals(Paths.get("t3"), p2.relativize(p1)); in test_relativize()
286 p1.relativize(p2.toAbsolutePath()); in test_relativize()
291 p1.toAbsolutePath().relativize(p2); in test_relativize()
521 Path p2 = Paths.get("d/b"); in test_compareTo() local
522 assertTrue(p1.compareTo(p2) < 0); in test_compareTo()
523 assertTrue(p2.compareTo(p1) > 0); in test_compareTo()
535 Path p2 = Paths.get("a/../a/b"); in test_equals() local
[all …]
/libcore/support/src/test/java/tests/support/
DSupport_TimeZone.java74 public int getOffset(int p1, int p2, int p3, int p4, int p5, int p6) { in getOffset() argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLSessionTest.java82 Principal p2 = cert.getSubjectX500Principal(); in test_getPeerPrincipal() local
83 assertEquals(p1, p2); in test_getPeerPrincipal()
172 Principal p2 = cert.getSubjectX500Principal(); in test_getLocalPrincipal() local
173 assertEquals(p1, p2); in test_getLocalPrincipal()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DDatagramSocketTest.java186 private static void assertPacketDataEquals(DatagramPacket p1, DatagramPacket p2) in assertPacketDataEquals() argument
188 assertEquals(p1.getLength(), p2.getLength()); in assertPacketDataEquals()
190 final byte[] p2Bytes = p2.getData(); in assertPacketDataEquals()
193 if (p1Bytes[p1.getOffset() + i] != p2Bytes[p2.getOffset() + i]) { in assertPacketDataEquals()
196 String actual = new String(p2Bytes, p2.getOffset(), p2.getLength(), in assertPacketDataEquals()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DProviderTest.java400 Provider p2 = pp[0]; in testService2() local
401 String old = p2.getProperty("MessageDigest.ASH-1"); in testService2()
402 p2.put("MessageDigest.ASH-1", "AnotherClassName"); in testService2()
403 Provider.Service s = p2.getService("MessageDigest", "ASH-1"); in testService2()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest4.java217 public StringBuffer format(Object p1, StringBuffer p2, in test_writeObject_Format()
222 public Object parseObject(String p1, java.text.ParsePosition p2) { in test_writeObject_Format()
426 public void add(int p1, int p2) { in test_writeObject_Calendar()
451 public void roll(int p1, boolean p2) { in test_writeObject_Calendar()
579 public StringBuffer format(Date p1, StringBuffer p2, in test_writeObject_DateFormat()
586 public Date parse(String p1, java.text.ParsePosition p2) { in test_writeObject_DateFormat()
712 public StringBuffer format(double p1, StringBuffer p2, in test_writeObject_NumberFormat()
717 public StringBuffer format(long p1, StringBuffer p2, in test_writeObject_NumberFormat()
724 public Number parse(String p1, java.text.ParsePosition p2) { in test_writeObject_NumberFormat()
768 public int getOffset(int p1, int p2, int p3, int p4, int p5, in test_writeObject_TimeZone()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
DAbstractPreferencesTest.java137 Preferences p2 = new MockAbstractPreferences(null, ""); in testConstructor() local
138 assertNotSame(p2, Preferences.systemRoot()); in testConstructor()
139 assertNotSame(p2, Preferences.userRoot()); in testConstructor()
140 assertFalse(p2.isUserNode()); in testConstructor()
142 p2 = new MockAbstractPreferences((AbstractPreferences) Preferences in testConstructor()
144 assertNotSame(p2, pref); in testConstructor()
145 p2.removeNode(); in testConstructor()
/libcore/luni/src/test/java/libcore/java/lang/reflect/parameter/
DParameterMetadataTestClasses$TestEnum.smali107 invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
/libcore/luni/src/test/java/tests/security/cert/
DX509CertSelectorTest.java571 HashSet<String> p2 = new HashSet<String>(Arrays.asList(policies2)); in test_getPolicy() local
581 selector.setPolicy(p2); in test_getPolicy()
582 assertEquals("The returned date should be equal to specified", p2, selector.getPolicy()); in test_getPolicy()
1207 HashSet<String> p2 = new HashSet<String>(Arrays.asList(policies2)); in test_setPolicyLjava_util_Set() local
1225 selector.setPolicy(p2); in test_setPolicyLjava_util_Set()
/libcore/luni/src/test/java/libcore/java/util/prefs/
DOldPreferencesTest.java122 Preferences p2 = Preferences.systemRoot(); in testToString() local
123 assertNotNull(p2.toString()); in testToString()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DMathTest.java1128 double p2 = 2.0; in test_powDD() local
1143 double[] values = { p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, in test_powDD()