/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | OldAndroidEnumTest.java | 26 ZERO, ONE, TWO, THREE, FOUR {boolean isFour() { enum constant in enum:OldAndroidEnumTest.MyEnum 40 assertTrue(MyEnum.ZERO.compareTo(MyEnum.ONE) < 0); 41 assertEquals(MyEnum.ZERO, MyEnum.ZERO); 53 e = MyEnum.ZERO; 56 case ZERO:
|
H A D | ProcessBuilderTest.java | 72 checkProcessExecution(pb, ResultCodes.ZERO, 139 checkProcessExecution(pb, ResultCodes.ZERO, /* processInput */ "", 148 checkProcessExecution(pb, ResultCodes.ZERO, processInput, 180 checkProcessExecution(pb, ResultCodes.ZERO, testString, testString, ""); 186 checkProcessExecution(pb, ResultCodes.ZERO, testString, testString, ""); 193 checkProcessExecution(pb, ResultCodes.ZERO, "", testString + "\n", ""); 242 checkProcessExecution(pb, ResultCodes.ZERO, "", "android\n", ""); 455 ZERO { @Override void assertMatches(int actualResultCode) { enum constant in enum:ProcessBuilderTest.ResultCodes
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
H A D | TestPeriod.java | 85 assertSame(Period.ZERO, Period.ZERO); 86 assertSame(Period.ofYears(0), Period.ZERO); 87 assertSame(Period.ofMonths(0), Period.ZERO); 88 assertSame(Period.ofDays(0), Period.ZERO); 89 assertSame(Period.of(0, 0, 0), Period.ZERO);
|
H A D | TestDuration.java | 85 assertSame(t.plus(Duration.ZERO), t); 91 assertSame(t.plus(Duration.ofSeconds(1)), Duration.ZERO); 103 assertSame(t.plusSeconds(1), Duration.ZERO); 115 assertSame(t.plusMillis(998), Duration.ZERO); 127 assertSame(t.plusNanos(998000000), Duration.ZERO); 133 assertSame(t.minus(Duration.ZERO), t); 139 assertSame(t.minus(Duration.ofSeconds(1)), Duration.ZERO); 151 assertSame(t.minusSeconds(1), Duration.ZERO); 163 assertSame(t.minusMillis(1002), Duration.ZERO); 175 assertSame(t.minusNanos(1002000000), Duration.ZERO); [all...] |
/libcore/luni/src/test/java/libcore/java/time/ |
H A D | PeriodTest.java | 34 assertSame(IsoChronology.INSTANCE, Period.ZERO.getChronology());
|
H A D | DurationTest.java | 49 assertSame(Instant.EPOCH, Duration.ZERO.addTo(Instant.EPOCH)); 63 assertSame(Instant.EPOCH, Duration.ZERO.subtractFrom(Instant.EPOCH)); 142 assertSame(temporal, Duration.ZERO.addTo(temporal)); 143 assertSame(temporal, Duration.ZERO.subtractFrom(temporal));
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
H A D | OldBigIntegerTest.java | 52 assertTrue("Random number is negative", bi.compareTo(BigInteger.ZERO) >= 0); 57 assertTrue("Not zero", new BigInteger(0, rand).equals(BigInteger.ZERO)); 74 assertTrue(bi1 + " is negative", bi1.compareTo(BigInteger.ZERO) >= 0); 76 assertTrue(bi2 + " is negative", bi2.compareTo(BigInteger.ZERO) >= 0); 296 assertTrue("0+0", BigInteger.ZERO.add(BigInteger.ZERO).equals(BigInteger.ZERO)); 297 assertTrue("0+1", BigInteger.ZERO.add(BigInteger.ONE).equals(BigInteger.ONE)); 298 assertTrue("1+0", BigInteger.ONE.add(BigInteger.ZERO).equals(BigInteger.ONE)); 300 assertTrue("0+(-1)", BigInteger.ZERO [all...] |
H A D | BigIntegerCompareTest.java | 185 * Compare a positive number to ZERO. 191 BigInteger bNumber = BigInteger.ZERO; 197 * Compare ZERO to a positive number. 202 BigInteger aNumber = BigInteger.ZERO; 209 * Compare a negative number to ZERO. 215 BigInteger bNumber = BigInteger.ZERO; 221 * Compare ZERO to a negative number. 226 BigInteger aNumber = BigInteger.ZERO; 233 * Compare ZERO to ZERO [all...] |
H A D | BigIntegerTest.java | 100 assertTrue("Not zero", new BigInteger(0, rand).equals(BigInteger.ZERO)); 110 assertTrue("Incorrect value for pos number", bi.equals(BigInteger.ZERO 124 assertTrue("Incorrect value for pos number", bi.equals(BigInteger.ZERO 127 assertTrue("Incorrect value for neg number", bi.equals(BigInteger.ZERO 383 .compareTo(BigInteger.ZERO) >= 0); 404 .compareTo(BigInteger.ZERO) >= 0); 420 BigInteger.ZERO)); 422 BigInteger.ZERO)); 424 BigInteger.ZERO)); 426 BigInteger.ZERO)); [all...] |
H A D | BigIntegerModPowTest.java | 51 BigInteger.ZERO.modPow(new BigInteger("-1"), new BigInteger("10")); 121 + ") should be " + BigInteger.ZERO, BigInteger.ZERO, 280 * gcd: the first number is ZERO 286 BigInteger aNumber = BigInteger.ZERO;
|
/libcore/ojluni/src/test/java/time/tck/java/time/serial/ |
H A D | TCKPeriodSerialization.java | 76 assertSerializable(Period.ZERO);
|
H A D | TCKDurationSerialization.java | 110 assertSerializableSame(Duration.ZERO);
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
H A D | DHPrivateKeySpecTest.java | 42 BigInteger[] xs = {new BigInteger("-1000000000000"), BigInteger.ZERO, 44 BigInteger[] ps = {new BigInteger("-1000000000000"), BigInteger.ZERO, 46 BigInteger[] gs = {new BigInteger("-1000000000000"), BigInteger.ZERO,
|
H A D | DHPublicKeySpecTest.java | 42 BigInteger[] ys = {new BigInteger("-1000000000000"), BigInteger.ZERO, 44 BigInteger[] ps = {new BigInteger("-1000000000000"), BigInteger.ZERO, 46 BigInteger[] gs = {new BigInteger("-1000000000000"), BigInteger.ZERO,
|
H A D | DHParameterSpecTest.java | 44 BigInteger[] ps = {new BigInteger("-1000000000000"), BigInteger.ZERO, 46 BigInteger[] gs = {new BigInteger("-1000000000000"), BigInteger.ZERO,
|
/libcore/luni/src/test/java/tests/security/interfaces/ |
H A D | DSAParamsTest.java | 28 private final BigInteger g = BigInteger.ZERO;
|
/libcore/luni/src/test/java/tests/security/spec/ |
H A D | ECPointTest.java | 47 new ECPoint(BigInteger.ZERO, BigInteger.ZERO); 64 new ECPoint(null, BigInteger.ZERO); 72 new ECPoint(BigInteger.ZERO, null); 184 p2 = new ECPoint(BigInteger.valueOf(-23456L), BigInteger.ZERO); 189 p2 = new ECPoint(BigInteger.valueOf(-23456L), BigInteger.ZERO);
|
H A D | RSAMultiPrimePrivateCrtKeySpecTest.java | 595 opi1[2] = new RSAOtherPrimeInfo(BigInteger.ZERO, 596 BigInteger.ZERO, 597 BigInteger.ZERO); 628 ret[2] = new RSAOtherPrimeInfo(BigInteger.ZERO, 629 BigInteger.ZERO, 630 BigInteger.ZERO);
|
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | ComparatorTest.java | 27 private static final Item ZERO = new Item(0); field in class:ComparatorTest 38 private static final Item[] orderedItems = new Item[]{ZERO, ONE, TWO, THREE, FOUR}; 39 private static final Item[] nullsFirstItems = new Item[]{null, ZERO, ONE, TWO, THREE, FOUR}; 40 private static final Item[] nullsLastItems = new Item[]{ZERO, ONE, TWO, THREE, FOUR, null};
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
H A D | TCKInstantPrinterParser.java | 229 assertEquals(f.parse(input).query(DateTimeFormatter.parsedExcessDays()), Period.ZERO); 239 assertEquals(f.parse(input).query(DateTimeFormatter.parsedExcessDays()), Period.ZERO); 258 assertEquals(parsed.query(DateTimeFormatter.parsedExcessDays()), Period.ZERO); 270 assertEquals(parsed.query(DateTimeFormatter.parsedExcessDays()), Period.ZERO);
|
/libcore/ojluni/src/test/java/time/test/java/time/zone/ |
H A D | TestFixedZoneRules.java | 95 assertEquals(test.getDaylightSavings(null), Duration.ZERO);
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
H A D | TCKClock_Offset.java | 96 Clock test = Clock.offset(underlying, Duration.ZERO); 102 Clock.offset(null, Duration.ZERO);
|
/libcore/luni/src/test/java/libcore/java/time/zone/ |
H A D | ZoneRulesTest.java | 56 assertEquals(Duration.ZERO, zoneRules.getDaylightSavings(instant));
|
/libcore/ojluni/src/main/java/java/time/ |
H A D | Period.java | 135 public static final Period ZERO = new Period(0, 0, 0); field in class:Period 393 return ZERO; 479 return (this == ZERO); 783 if (this == ZERO || scalar == 1) { 1016 if (this == ZERO) {
|
H A D | Duration.java | 133 public static final Duration ZERO = new Duration(0, 0); field in class:Duration 302 return ZERO.plus(amount, unit); 328 Duration duration = ZERO; 494 return ZERO; 952 return ZERO; 1261 if (this == ZERO) {
|