/libcore/luni/src/test/java/tests/security/spec/ |
D | RSAMultiPrimePrivateCrtKeySpecTest.java | 42 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 …]
|
D | RSAPrivateCrtKeySpecTest.java | 45 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 …]
|
D | EllipticCurveTest.java | 45 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 …]
|
D | ECPointTest.java | 151 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/ |
D | RSAMultiPrimePrivateCrtKeyTest.java | 33 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/ |
D | OldAndroidEnumTest.java | 26 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()
|
D | LongTest.java | 181 BigInteger.ONE, 185 BigInteger.valueOf(0x7fff_ffff_ffff_ffffL).add(BigInteger.ONE), 186 BigInteger.valueOf(2).shiftLeft(63).subtract(BigInteger.ONE)
|
D | MathTest.java | 169 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/ |
D | OldBigIntegerTest.java | 209 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()
|
D | BigIntegerAndTest.java | 136 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/ |
D | SmallBigIntegerBenchmark.java | 48 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/ |
D | DHPrivateKeySpecTest.java | 43 BigInteger.ONE, new BigInteger("1000000000000")}; in testDHPrivateKeySpec() 45 BigInteger.ONE, new BigInteger("1000000000000")}; in testDHPrivateKeySpec() 47 BigInteger.ONE, new BigInteger("1000000000000")}; in testDHPrivateKeySpec()
|
D | DHParameterSpecTest.java | 45 BigInteger.ONE, new BigInteger("1000000000000")}; in testDHParameterSpec() 47 BigInteger.ONE, new BigInteger("1000000000000")}; in testDHParameterSpec()
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | BigIntegerTest.java | 226 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/ |
D | ComparatorTest.java | 29 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);
|
D | OldAndroidHashMapTest.java | 24 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/ |
D | EnumConstantNotPresentExceptionTest.java | 24 ONE, TWO, THREE enumConstant
|
D | EnumTest.java | 49 ONE; enumConstant 199 MockCloneEnum.ONE.callClone(); in test_clone()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | ObjectOutputStream2Test.java | 31 ONE { enumConstant
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | Signature2Test.java | 306 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/ |
D | BigInteger.java | 795 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/ |
D | ParameterMetadataTestClasses.java | 62 enum TestEnum { ONE, TWO } enumConstant
|
/libcore/ojluni/src/main/java/java/security/spec/ |
D | ECFieldF2m.java | 155 this.rp = BigInteger.ONE; in ECFieldF2m()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | FormatterTest.java | 3619 { 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/ |
D | NumberFormatTest.java | 64 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()
|