Home
last modified time | relevance | path

Searched refs:ONE (Results 1 – 25 of 43) sorted by relevance

12

/libcore/luni/src/test/java/tests/security/spec/
DRSAMultiPrimePrivateCrtKeySpecTest.java42 new RSAOtherPrimeInfo(BigInteger.ONE, BigInteger.ONE, BigInteger.ONE),
43 new RSAOtherPrimeInfo(BigInteger.ONE, BigInteger.ONE, BigInteger.ONE),
44 new RSAOtherPrimeInfo(BigInteger.ONE, BigInteger.ONE, BigInteger.ONE)
66 BigInteger.ONE, in testRSAMultiPrimePrivateCrtKeySpec01()
67 BigInteger.ONE, in testRSAMultiPrimePrivateCrtKeySpec01()
68 BigInteger.ONE, in testRSAMultiPrimePrivateCrtKeySpec01()
69 BigInteger.ONE, in testRSAMultiPrimePrivateCrtKeySpec01()
70 BigInteger.ONE, in testRSAMultiPrimePrivateCrtKeySpec01()
71 BigInteger.ONE, in testRSAMultiPrimePrivateCrtKeySpec01()
72 BigInteger.ONE, in testRSAMultiPrimePrivateCrtKeySpec01()
[all …]
DRSAPrivateCrtKeySpecTest.java45 BigInteger.ONE, in testRSAPrivateCrtKeySpec01()
46 BigInteger.ONE, in testRSAPrivateCrtKeySpec01()
47 BigInteger.ONE, in testRSAPrivateCrtKeySpec01()
48 BigInteger.ONE, in testRSAPrivateCrtKeySpec01()
49 BigInteger.ONE, in testRSAPrivateCrtKeySpec01()
50 BigInteger.ONE, in testRSAPrivateCrtKeySpec01()
51 BigInteger.ONE, in testRSAPrivateCrtKeySpec01()
52 BigInteger.ONE); in testRSAPrivateCrtKeySpec01()
63 BigInteger.ONE, in testRSAPrivateCrtKeySpec02()
64 BigInteger.ONE, in testRSAPrivateCrtKeySpec02()
[all …]
DEllipticCurveTest.java45 BigInteger a = BigInteger.ONE; in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
61 a = BigInteger.ONE; in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
79 BigInteger a = BigInteger.ONE; in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02()
102 a = BigInteger.ONE; in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02()
253 BigInteger a = BigInteger.ONE; in testEllipticCurveECFieldBigIntegerBigInteger01()
268 a = BigInteger.ONE; in testEllipticCurveECFieldBigIntegerBigInteger01()
285 BigInteger a = BigInteger.ONE; in testEllipticCurveECFieldBigIntegerBigInteger02()
306 a = BigInteger.ONE; in testEllipticCurveECFieldBigIntegerBigInteger02()
441 .valueOf(4L), BigInteger.ONE); in testEllipticCurveECFieldBigIntegerBigInteger05()
443 assertEquals("incorrect b", ec.getB(), BigInteger.ONE); in testEllipticCurveECFieldBigIntegerBigInteger05()
[all …]
DECPointTest.java151 new ECPoint(BigInteger.valueOf(-23456L), BigInteger.ONE); in testEqualsObject01()
155 p1 = new ECPoint(BigInteger.valueOf(-23456L), BigInteger.ONE); in testEqualsObject01()
174 new ECPoint(BigInteger.valueOf(-23456L), BigInteger.ONE); in testEqualsObject02()
178 p1 = new ECPoint(BigInteger.valueOf(-23457L), BigInteger.ONE); in testEqualsObject02()
183 p1 = new ECPoint(BigInteger.valueOf(-23457L), BigInteger.ONE); in testEqualsObject02()
200 ECPoint f = new ECPoint(BigInteger.valueOf(-23457L), BigInteger.ONE); in testHashCode01()
231 ECPoint p1 = new ECPoint(BigInteger.valueOf(-23456L), BigInteger.ONE); in testHashCode02()
/libcore/luni/src/test/java/tests/security/interfaces/
DRSAMultiPrimePrivateCrtKeyTest.java33 new RSAOtherPrimeInfo(BigInteger.ONE, BigInteger.ONE, BigInteger.ONE),
34 new RSAOtherPrimeInfo(BigInteger.ONE, BigInteger.ONE, BigInteger.ONE),
35 new RSAOtherPrimeInfo(BigInteger.ONE, BigInteger.ONE, BigInteger.ONE)
38 private final BigInteger publicExponent = BigInteger.ONE;
39 private final BigInteger primeExponentP = BigInteger.ONE;
40 private final BigInteger primeExponentQ = BigInteger.ONE;
41 private final BigInteger primeP = BigInteger.ONE;
42 private final BigInteger primeQ = BigInteger.ONE;
43 private final BigInteger crtCoefficient = BigInteger.ONE;
/libcore/luni/src/test/java/libcore/java/lang/
DOldAndroidEnumTest.java26 ZERO, ONE, TWO, THREE, FOUR {boolean isFour() { in isFour() enumConstant
40 assertTrue(MyEnum.ZERO.compareTo(MyEnum.ONE) < 0); in testEnum()
42 assertTrue(MyEnum.TWO.compareTo(MyEnum.ONE) > 0); in testEnum()
43 assertTrue(MyEnum.FOUR.compareTo(MyEnum.ONE) > 0); in testEnum()
45 assertEquals("ONE", MyEnum.ONE.name()); in testEnum()
46 assertSame(MyEnum.ONE.getDeclaringClass(), MyEnum.class); in testEnum()
DLongTest.java181 BigInteger.ONE,
185 BigInteger.valueOf(0x7fff_ffff_ffff_ffffL).add(BigInteger.ONE),
186 BigInteger.valueOf(2).shiftLeft(63).subtract(BigInteger.ONE)
DMathTest.java169 BigInteger expected = BigInteger.valueOf(a).add(BigInteger.ONE); in testIncrementExactL()
180 BigInteger expected = BigInteger.valueOf(a).subtract(BigInteger.ONE); in testDecrementExactL()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DOldBigIntegerTest.java209 BigInteger wpMinusOne = wp.subtract(BigInteger.ONE); in largePrimesProduct()
297 assertTrue("0+1", BigInteger.ZERO.add(BigInteger.ONE).equals(BigInteger.ONE)); in test_addLjava_math_BigInteger()
298 assertTrue("1+0", BigInteger.ONE.add(BigInteger.ZERO).equals(BigInteger.ONE)); in test_addLjava_math_BigInteger()
299 assertTrue("1+1", BigInteger.ONE.add(BigInteger.ONE).equals(two)); in test_addLjava_math_BigInteger()
303 assertTrue("1+(-1)", BigInteger.ONE.add(minusOne).equals(BigInteger.ZERO)); in test_addLjava_math_BigInteger()
304 assertTrue("(-1)+1", minusOne.add(BigInteger.ONE).equals(BigInteger.ZERO)); in test_addLjava_math_BigInteger()
319 BigInteger increment = BigInteger.ONE; in test_addLjava_math_BigInteger()
DBigIntegerAndTest.java136 BigInteger bNumber = BigInteger.ONE; in testZeroOne()
146 BigInteger aNumber = BigInteger.ONE; in testOneOne()
147 BigInteger bNumber = BigInteger.ONE; in testOneOne()
149 assertTrue(result.equals(BigInteger.ONE)); in testOneOne()
/libcore/benchmarks/src/benchmarks/
DSmallBigIntegerBenchmark.java48 if (x.and(BigInteger.ONE).equals(BigInteger.ONE)) { in main()
49 x = x.multiply(BIG_THREE).add(BigInteger.ONE); in main()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DDHPrivateKeySpecTest.java43 BigInteger.ONE, new BigInteger("1000000000000")}; in testDHPrivateKeySpec()
45 BigInteger.ONE, new BigInteger("1000000000000")}; in testDHPrivateKeySpec()
47 BigInteger.ONE, new BigInteger("1000000000000")}; in testDHPrivateKeySpec()
DDHParameterSpecTest.java45 BigInteger.ONE, new BigInteger("1000000000000")}; in testDHParameterSpec()
47 BigInteger.ONE, new BigInteger("1000000000000")}; in testDHParameterSpec()
/libcore/luni/src/test/java/libcore/java/math/
DBigIntegerTest.java226 try_gcd_variants(large, BigInteger.valueOf(5), BigInteger.ONE); in test_gcd()
242 BigInteger.ONE.shiftLeft(1000).byteValueExact(); in test_byteValueExact()
246 BigInteger.ONE.negate().shiftLeft(1000).byteValueExact(); in test_byteValueExact()
263 BigInteger.ONE.shiftLeft(1000).shortValueExact(); in test_shortValueExact()
267 BigInteger.ONE.negate().shiftLeft(1000).shortValueExact(); in test_shortValueExact()
284 BigInteger.ONE.shiftLeft(1000).intValueExact(); in test_intValueExact()
288 BigInteger.ONE.negate().shiftLeft(1000).intValueExact(); in test_intValueExact()
308 BigInteger.ONE.shiftLeft(1000).longValueExact(); in test_longValueExact()
312 BigInteger.ONE.negate().shiftLeft(1000).longValueExact(); in test_longValueExact()
/libcore/luni/src/test/java/libcore/java/util/
DComparatorTest.java29 private static final Item ONE = new Item(1); field in ComparatorTest
39 private final List<Item> orderedItems = listOf(ZERO, ONE, TWO, THREE, FOUR);
40 private final List<Item> nullsFirstItems = listOf(null, ZERO, ONE, TWO, THREE, FOUR);
41 private final List<Item> nullsLastItems = listOf(ZERO, ONE, TWO, THREE, FOUR, null);
DOldAndroidHashMapTest.java24 private static final Integer ONE = 1; field in OldAndroidHashMapTest
30 map.put("one", ONE); in addItems()
37 assertEquals(ONE, map.get("one")); in addItems()
157 if (o.equals(ONE)) { in testValueIterator()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DEnumConstantNotPresentExceptionTest.java24 ONE, TWO, THREE enumConstant
DEnumTest.java49 ONE; enumConstant
199 MockCloneEnum.ONE.callClone(); in test_clone()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DObjectOutputStream2Test.java31 ONE { enumConstant
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DSignature2Test.java306 sig.setParameter("r", BigInteger.ONE); in test_setParameterLjava_lang_StringLjava_lang_Object()
307 sig.setParameter("s", BigInteger.ONE); in test_setParameterLjava_lang_StringLjava_lang_Object()
323 DSAParameterSpec spec = new DSAParameterSpec(BigInteger.ONE, in test_setParameterLjava_security_spec_AlgorithmParameterSpec()
324 BigInteger.ONE, BigInteger.ONE); in test_setParameterLjava_security_spec_AlgorithmParameterSpec()
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java795 if ((this.signum == 0) || this.equals(ONE)) in nextProbablePrime()
798 BigInteger result = this.add(ONE); in nextProbablePrime()
805 result = result.add(ONE); in nextProbablePrime()
833 result = result.subtract(ONE); in nextProbablePrime()
906 BigInteger thisPlusOne = this.add(ONE);
982 BigInteger u = ONE; BigInteger u2;
983 BigInteger v = ONE; BigInteger v2;
1023 BigInteger thisMinusOne = this.subtract(ONE); in passesMillerRabin()
1037 } while (b.compareTo(ONE) <= 0 || b.compareTo(this) >= 0); in passesMillerRabin()
1041 while (!((j == 0 && z.equals(ONE)) || z.equals(thisMinusOne))) { in passesMillerRabin()
[all …]
/libcore/luni/src/test/parameter_metadata/src/libcore/java/lang/reflect/parameter/
DParameterMetadataTestClasses.java62 enum TestEnum { ONE, TWO } enumConstant
/libcore/ojluni/src/main/java/java/security/spec/
DECFieldF2m.java155 this.rp = BigInteger.ONE; in ECFieldF2m()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DFormatterTest.java3619 { BigDecimal.ONE, "%e", "1.000000e+00" }, in test_formatLjava_lang_String$Ljava_lang_Object_BigDecimalConversionE()
3620 { BigDecimal.ONE, "%#.0e", "1.e+00" }, in test_formatLjava_lang_String$Ljava_lang_Object_BigDecimalConversionE()
3621 { BigDecimal.ONE, "%# 9.8e", " 1.00000000e+00" }, in test_formatLjava_lang_String$Ljava_lang_Object_BigDecimalConversionE()
3622 { BigDecimal.ONE, "%#+0(8.4e", "+1.0000e+00" }, in test_formatLjava_lang_String$Ljava_lang_Object_BigDecimalConversionE()
3623 { BigDecimal.ONE, "%-+17.6e", "+1.000000e+00 " }, in test_formatLjava_lang_String$Ljava_lang_Object_BigDecimalConversionE()
3624 { BigDecimal.ONE, "% 0(20e", " 00000001.000000e+00" }, in test_formatLjava_lang_String$Ljava_lang_Object_BigDecimalConversionE()
3686 { BigDecimal.ONE, "%g", "1.00000" }, in test_formatLjava_lang_String$Ljava_lang_Object_BigDecimalConversionG()
3687 { BigDecimal.ONE, "%.5g", "1.0000" }, in test_formatLjava_lang_String$Ljava_lang_Object_BigDecimalConversionG()
3688 { BigDecimal.ONE, "%- (,9.8g", " 1.0000000" }, in test_formatLjava_lang_String$Ljava_lang_Object_BigDecimalConversionG()
3689 { BigDecimal.ONE, "%+0(,8.4g", "+001.000" }, in test_formatLjava_lang_String$Ljava_lang_Object_BigDecimalConversionG()
[all …]
/libcore/luni/src/test/java/libcore/java/text/
DNumberFormatTest.java64 assertEquals("double", nf.format(BigInteger.valueOf(Long.MAX_VALUE).add(BigInteger.ONE))); in test_small_BigInteger_gets_longValue()
66 … assertEquals("double", nf.format(BigInteger.valueOf(Long.MIN_VALUE).subtract(BigInteger.ONE))); in test_small_BigInteger_gets_longValue()

12