Searched refs:ZERO (Results 1 - 25 of 66) sorted by relevance

123

/libcore/luni/src/test/java/libcore/java/lang/
H A DOldAndroidEnumTest.java26 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 DProcessBuilderTest.java72 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", "");
454 ZERO { @Override void assertMatches(int actualResultCode) { enum constant in enum:ProcessBuilderTest.ResultCodes
/libcore/ojluni/src/test/java/time/test/java/time/
H A DTestPeriod.java85 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 DTestDuration.java85 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 DPeriodTest.java34 assertSame(IsoChronology.INSTANCE, Period.ZERO.getChronology());
H A DDurationTest.java49 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 DOldBigIntegerTest.java52 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 DBigIntegerCompareTest.java185 * 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 DBigIntegerTest.java100 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 DBigIntegerModPowTest.java51 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 DTCKPeriodSerialization.java76 assertSerializable(Period.ZERO);
H A DTCKDurationSerialization.java110 assertSerializableSame(Duration.ZERO);
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
H A DDHPrivateKeySpecTest.java42 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 DDHPublicKeySpecTest.java42 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 DDHParameterSpecTest.java44 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 DDSAParamsTest.java28 private final BigInteger g = BigInteger.ZERO;
/libcore/luni/src/test/java/tests/security/spec/
H A DECPointTest.java47 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 DRSAMultiPrimePrivateCrtKeySpecTest.java595 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 DComparatorTest.java27 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 DTCKInstantPrinterParser.java229 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 DTestFixedZoneRules.java95 assertEquals(test.getDaylightSavings(null), Duration.ZERO);
/libcore/ojluni/src/test/java/time/tck/java/time/
H A DTCKClock_Offset.java96 Clock test = Clock.offset(underlying, Duration.ZERO);
102 Clock.offset(null, Duration.ZERO);
/libcore/luni/src/test/java/libcore/java/time/zone/
H A DZoneRulesTest.java56 assertEquals(Duration.ZERO, zoneRules.getDaylightSavings(instant));
/libcore/ojluni/src/main/java/java/time/
H A DPeriod.java135 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 DDuration.java133 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) {

Completed in 328 milliseconds

123