/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() 41 assertEquals(MyEnum.ZERO, MyEnum.ZERO); in testEnum() 53 e = MyEnum.ZERO; in testEnum() 56 case ZERO: in testEnum()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | OldBigIntegerTest.java | 52 assertTrue("Random number is negative", bi.compareTo(BigInteger.ZERO) >= 0); in test_ConstructorILjava_util_Random() 57 assertTrue("Not zero", new BigInteger(0, rand).equals(BigInteger.ZERO)); in test_ConstructorILjava_util_Random() 74 assertTrue(bi1 + " is negative", bi1.compareTo(BigInteger.ZERO) >= 0); in test_ConstructorIILjava_util_Random() 76 assertTrue(bi2 + " is negative", bi2.compareTo(BigInteger.ZERO) >= 0); in test_ConstructorIILjava_util_Random() 296 assertTrue("0+0", BigInteger.ZERO.add(BigInteger.ZERO).equals(BigInteger.ZERO)); in test_addLjava_math_BigInteger() 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() 300 assertTrue("0+(-1)", BigInteger.ZERO.add(minusOne).equals(minusOne)); in test_addLjava_math_BigInteger() 301 assertTrue("(-1)+0", minusOne.add(BigInteger.ZERO).equals(minusOne)); in test_addLjava_math_BigInteger() 303 assertTrue("1+(-1)", BigInteger.ONE.add(minusOne).equals(BigInteger.ZERO)); in test_addLjava_math_BigInteger() [all …]
|
D | BigIntegerCompareTest.java | 191 BigInteger bNumber = BigInteger.ZERO; in testCompareToPosZero() 202 BigInteger aNumber = BigInteger.ZERO; in testCompareToZeroPos() 215 BigInteger bNumber = BigInteger.ZERO; in testCompareToNegZero() 226 BigInteger aNumber = BigInteger.ZERO; in testCompareToZeroNeg() 236 BigInteger aNumber = BigInteger.ZERO; in testCompareToZeroZero() 237 BigInteger bNumber = BigInteger.ZERO; in testCompareToZeroZero() 365 BigInteger bNumber = BigInteger.ZERO; in testMaxNegZero() 447 BigInteger bNumber = BigInteger.ZERO; in testMinPosZero() 496 BigInteger aNumber = BigInteger.ZERO; in testNegateZero() 530 BigInteger aNumber = BigInteger.ZERO; in testSignumZero()
|
D | BigIntegerTest.java | 100 assertTrue("Not zero", new BigInteger(0, rand).equals(BigInteger.ZERO)); in test_ConstructorILjava_util_Random() 110 assertTrue("Incorrect value for pos number", bi.equals(BigInteger.ZERO in test_Constructor$B() 124 assertTrue("Incorrect value for pos number", bi.equals(BigInteger.ZERO in test_ConstructorI$B() 127 assertTrue("Incorrect value for neg number", bi.equals(BigInteger.ZERO in test_ConstructorI$B() 383 .compareTo(BigInteger.ZERO) >= 0); in test_modInverseLjava_math_BigInteger() 404 .compareTo(BigInteger.ZERO) >= 0); in test_modInverseLjava_math_BigInteger() 420 BigInteger.ZERO)); in test_shiftRightI() 422 BigInteger.ZERO)); in test_shiftRightI() 424 BigInteger.ZERO)); in test_shiftRightI() 426 BigInteger.ZERO)); in test_shiftRightI() [all …]
|
D | BigIntegerModPowTest.java | 51 BigInteger.ZERO.modPow(new BigInteger("-1"), new BigInteger("10")); in testModPowException() 121 + ") should be " + BigInteger.ZERO, BigInteger.ZERO, in testModPowZeroExp() 286 BigInteger aNumber = BigInteger.ZERO; in testGcdFirstZERO()
|
D | BigIntegerAddTest.java | 416 BigInteger bNumber = BigInteger.ZERO; in testCase19() 433 BigInteger aNumber = BigInteger.ZERO; in testCase20() 449 BigInteger aNumber = BigInteger.ZERO; in testCase21() 450 BigInteger bNumber = BigInteger.ZERO; in testCase21()
|
D | BigIntegerSubtractTest.java | 466 BigInteger bNumber = BigInteger.ZERO; in testCase21() 484 BigInteger aNumber = BigInteger.ZERO; in testCase22() 500 BigInteger aNumber = BigInteger.ZERO; in testCase23() 501 BigInteger bNumber = BigInteger.ZERO; in testCase23()
|
D | BigIntegerNotTest.java | 116 BigInteger aNumber = BigInteger.ZERO; in testNotZero()
|
D | BigIntegerOrTest.java | 414 BigInteger r1 = x.and((BigInteger.ZERO.not()).shiftLeft(32)); in testRegression() 415 BigInteger r3 = x.and((BigInteger.ZERO.not().shiftLeft(32) ).not()); in testRegression()
|
D | BigIntegerAndTest.java | 135 BigInteger aNumber = BigInteger.ZERO; in testZeroOne() 138 assertTrue(result.equals(BigInteger.ZERO)); in testZeroOne()
|
D | BigDecimalConstructorsTest.java | 61 assertEquals("incorrect string value", oneS, BigDecimal.ZERO.toString()); in testFieldZERO() 62 assertEquals("incorrect double value", oneD, BigDecimal.ZERO.doubleValue(), 0); in testFieldZERO()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
D | DHPublicKeySpecTest.java | 42 BigInteger[] ys = {new BigInteger("-1000000000000"), BigInteger.ZERO, in testDHPrivateKeySpec() 44 BigInteger[] ps = {new BigInteger("-1000000000000"), BigInteger.ZERO, in testDHPrivateKeySpec() 46 BigInteger[] gs = {new BigInteger("-1000000000000"), BigInteger.ZERO, in testDHPrivateKeySpec()
|
D | DHPrivateKeySpecTest.java | 42 BigInteger[] xs = {new BigInteger("-1000000000000"), BigInteger.ZERO, in testDHPrivateKeySpec() 44 BigInteger[] ps = {new BigInteger("-1000000000000"), BigInteger.ZERO, in testDHPrivateKeySpec() 46 BigInteger[] gs = {new BigInteger("-1000000000000"), BigInteger.ZERO, in testDHPrivateKeySpec()
|
D | DHParameterSpecTest.java | 44 BigInteger[] ps = {new BigInteger("-1000000000000"), BigInteger.ZERO, in testDHParameterSpec() 46 BigInteger[] gs = {new BigInteger("-1000000000000"), BigInteger.ZERO, in testDHParameterSpec()
|
/libcore/luni/src/test/java/tests/security/spec/ |
D | ECPointTest.java | 47 new ECPoint(BigInteger.ZERO, BigInteger.ZERO); in testECPoint01() 64 new ECPoint(null, BigInteger.ZERO); in testECPoint02() 72 new ECPoint(BigInteger.ZERO, null); in testECPoint02() 184 p2 = new ECPoint(BigInteger.valueOf(-23456L), BigInteger.ZERO); in testEqualsObject02() 189 p2 = new ECPoint(BigInteger.valueOf(-23456L), BigInteger.ZERO); in testEqualsObject02()
|
D | RSAMultiPrimePrivateCrtKeySpecTest.java | 595 opi1[2] = new RSAOtherPrimeInfo(BigInteger.ZERO, in testIsStatePreserved1() 596 BigInteger.ZERO, in testIsStatePreserved1() 597 BigInteger.ZERO); in testIsStatePreserved1() 628 ret[2] = new RSAOtherPrimeInfo(BigInteger.ZERO, in testIsStatePreserved2() 629 BigInteger.ZERO, in testIsStatePreserved2() 630 BigInteger.ZERO); in testIsStatePreserved2()
|
D | EllipticCurveTest.java | 53 a = BigInteger.ZERO; in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01() 260 a = BigInteger.ZERO; in testEllipticCurveECFieldBigIntegerBigInteger01()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | NativePluralRules.java | 28 public static final int ZERO = 0; field in NativePluralRules
|
/libcore/luni/src/test/java/libcore/icu/ |
D | NativePluralRulesTest.java | 32 assertEquals(NativePluralRules.ZERO, ar.quantityForInt(0)); in testNegatives() 59 assertEquals(NativePluralRules.ZERO, npr.quantityForInt(0)); in testArabic()
|
/libcore/luni/src/test/java/tests/security/interfaces/ |
D | DSAParamsTest.java | 28 private final BigInteger g = BigInteger.ZERO;
|
D | DSAKeyPairGeneratorTest.java | 34 private final BigInteger g = BigInteger.ZERO;
|
/libcore/luni/src/main/java/java/security/spec/ |
D | ECParameterSpec.java | 70 if (!(this.order.compareTo(BigInteger.ZERO) > 0)) { in ECParameterSpec()
|
/libcore/luni/src/main/java/java/math/ |
D | Logical.java | 44 return BigInteger.ZERO; in not() 84 return BigInteger.ZERO; in and() 117 return BigInteger.ZERO; in andPositive() 137 return BigInteger.ZERO; in andDiffSigns() 223 return BigInteger.ZERO; in andNot() 229 return BigInteger.ZERO; in andNot() 377 return BigInteger.ZERO; in andNotNegative()
|
D | BitLevel.java | 141 return ((source.sign < 0) ? BigInteger.MINUS_ONE : BigInteger.ZERO); in shiftRight()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | FormatterTest.java | 3601 { BigDecimal.ZERO, "%e", "0.000000e+00" }, in test_formatLjava_lang_String$Ljava_lang_Object_BigDecimalConversionE() 3602 { BigDecimal.ZERO, "%#.0e", "0.e+00" }, in test_formatLjava_lang_String$Ljava_lang_Object_BigDecimalConversionE() 3603 { BigDecimal.ZERO, "%# 9.8e", " 0.00000000e+00" }, in test_formatLjava_lang_String$Ljava_lang_Object_BigDecimalConversionE() 3604 { BigDecimal.ZERO, "%#+0(8.4e", "+0.0000e+00" }, in test_formatLjava_lang_String$Ljava_lang_Object_BigDecimalConversionE() 3605 { BigDecimal.ZERO, "%-+17.6e", "+0.000000e+00 " }, in test_formatLjava_lang_String$Ljava_lang_Object_BigDecimalConversionE() 3606 { BigDecimal.ZERO, "% 0(20e", " 00000000.000000e+00" }, in test_formatLjava_lang_String$Ljava_lang_Object_BigDecimalConversionE() 3669 { BigDecimal.ZERO, "%g", "0.00000" }, in test_formatLjava_lang_String$Ljava_lang_Object_BigDecimalConversionG() 3670 { BigDecimal.ZERO, "%.5g", "0.0000" }, in test_formatLjava_lang_String$Ljava_lang_Object_BigDecimalConversionG() 3671 { BigDecimal.ZERO, "%- (,9.8g", " 0.0000000" }, in test_formatLjava_lang_String$Ljava_lang_Object_BigDecimalConversionG() 3672 { BigDecimal.ZERO, "%+0(,8.4g", "+000.000" }, in test_formatLjava_lang_String$Ljava_lang_Object_BigDecimalConversionG() [all …]
|