Home
last modified time | relevance | path

Searched refs:MIN_VALUE (Results 1 – 25 of 277) sorted by relevance

12345678910>>...12

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DStringTokenizerTest.java643 int[] invalid = {UnicodeSet.MIN_VALUE-1, UnicodeSet.MIN_VALUE-2, in TestIndexOf()
645 int[] valid = {UnicodeSet.MIN_VALUE, UnicodeSet.MIN_VALUE+1, in TestIndexOf()
690 int[] invalid = {UnicodeSet.MIN_VALUE-1, UnicodeSet.MIN_VALUE-2, in TestAdd_int_int()
706 us.add(UnicodeSet.MIN_VALUE, invalid[i]); in TestAdd_int_int()
714 if(!(us.add(UnicodeSet.MIN_VALUE+1, UnicodeSet.MIN_VALUE).equals(us))) in TestAdd_int_int()
716 + "the same object because start of value " + (UnicodeSet.MIN_VALUE+1) in TestAdd_int_int()
717 + " is greater than end of value " + UnicodeSet.MIN_VALUE); in TestAdd_int_int()
732 int[] invalid = {UnicodeSet.MIN_VALUE-1, UnicodeSet.MIN_VALUE-2, in TestAdd_int()
802 int[] invalid = {UnicodeSet.MIN_VALUE-1, UnicodeSet.MIN_VALUE-2, in TestRetain_int_int()
818 us.retain(UnicodeSet.MIN_VALUE, invalid[i]); in TestRetain_int_int()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DStringTokenizerTest.java642 int[] invalid = {UnicodeSet.MIN_VALUE-1, UnicodeSet.MIN_VALUE-2, in TestIndexOf()
644 int[] valid = {UnicodeSet.MIN_VALUE, UnicodeSet.MIN_VALUE+1, in TestIndexOf()
689 int[] invalid = {UnicodeSet.MIN_VALUE-1, UnicodeSet.MIN_VALUE-2, in TestAdd_int_int()
705 us.add(UnicodeSet.MIN_VALUE, invalid[i]); in TestAdd_int_int()
713 if(!(us.add(UnicodeSet.MIN_VALUE+1, UnicodeSet.MIN_VALUE).equals(us))) in TestAdd_int_int()
715 + "the same object because start of value " + (UnicodeSet.MIN_VALUE+1) in TestAdd_int_int()
716 + " is greater than end of value " + UnicodeSet.MIN_VALUE); in TestAdd_int_int()
731 int[] invalid = {UnicodeSet.MIN_VALUE-1, UnicodeSet.MIN_VALUE-2, in TestAdd_int()
801 int[] invalid = {UnicodeSet.MIN_VALUE-1, UnicodeSet.MIN_VALUE-2, in TestRetain_int_int()
817 us.retain(UnicodeSet.MIN_VALUE, invalid[i]); in TestRetain_int_int()
[all …]
/external/r8/src/test/examples/constants/
DConstants.java28 printInt(Short.MIN_VALUE); in testConst16()
45 printInt(Short.MIN_VALUE - 1); in testConst()
58 printLong((long) Short.MIN_VALUE); in testConstWide16()
66 printLong((long) Short.MIN_VALUE - 1); in testConstWide32()
67 printLong((long) Integer.MIN_VALUE); in testConstWide32()
84 printLong((long) Integer.MIN_VALUE - 1); in testConstWide()
/external/r8/src/test/java/com/android/tools/r8/smali/
DSwitchRewritingTest.java104 runSingleCaseDexTest(packed, Integer.MIN_VALUE); in singleCaseDex()
163 runTwoCaseSparseToPackedDexTest(Integer.MIN_VALUE, Integer.MIN_VALUE + delta); in twoCaseSparseToPackedDex()
169 runTwoCaseSparseToPackedDexTest(Integer.MIN_VALUE, Integer.MAX_VALUE); in twoCaseSparseToPackedDex()
170 runTwoCaseSparseToPackedDexTest(Integer.MIN_VALUE + 1, Integer.MAX_VALUE); in twoCaseSparseToPackedDex()
171 runTwoCaseSparseToPackedDexTest(Integer.MIN_VALUE, Integer.MAX_VALUE - 1); in twoCaseSparseToPackedDex()
239 Integer.MIN_VALUE, (int) ((-(long)Integer.MIN_VALUE) / 16), 32, Integer.MAX_VALUE); in twoMonsterSparseToPackedDex()
306 runSingleCaseJarTest(packed, Integer.MIN_VALUE); in singleCaseJar()
364 runTwoCaseSparseToPackedJarTest(Integer.MIN_VALUE, Integer.MIN_VALUE + delta); in twoCaseSparseToPackedJar()
370 runTwoCaseSparseToPackedJarTest(Integer.MIN_VALUE, Integer.MAX_VALUE); in twoCaseSparseToPackedJar()
371 runTwoCaseSparseToPackedJarTest(Integer.MIN_VALUE + 1, Integer.MAX_VALUE); in twoCaseSparseToPackedJar()
[all …]
/external/r8/src/main/java/com/android/tools/r8/utils/
DNumberUtils.java16 return Byte.MIN_VALUE <= value && value <= Byte.MAX_VALUE; in is8Bit()
20 return Byte.MIN_VALUE <= -value && -value <= Byte.MAX_VALUE; in negativeIs8Bit()
24 return Short.MIN_VALUE <= value && value <= Short.MAX_VALUE; in is16Bit()
28 return Short.MIN_VALUE <= -value && -value <= Short.MAX_VALUE; in negativeIs16Bit()
32 return Integer.MIN_VALUE <= value && value <= Integer.MAX_VALUE; in is32Bit()
/external/r8/src/test/examples/filledarray/
DFilledArray.java12 Byte.MAX_VALUE, Byte.MIN_VALUE };
14 Character.MAX_VALUE, 'a', 'b', 'c', 'd', Character.MIN_VALUE };
15 private static int[] ints = new int[] { Integer.MAX_VALUE, 0, -42, 42, Integer.MIN_VALUE };
16 private static short[] shorts = new short[] { Short.MAX_VALUE, 0, -42, 42, Short.MIN_VALUE };
18 Long.MAX_VALUE, 0x1234123412341234L, -0x1234123412341234L, Long.MIN_VALUE };
20 Float.MAX_VALUE, 23.23F, -43.123F, Float.MIN_VALUE, Float.MIN_NORMAL };
22 Double.MAX_VALUE, 123123123.123, -43333.123, Double.MIN_VALUE, Double.MIN_NORMAL };
30 int[] localInts = new int[] { Integer.MAX_VALUE, 0, -42, 42, Integer.MIN_VALUE }; in filledArrays()
31 short[] localShorts = new short[] { Short.MAX_VALUE, 0, -42, 42, Short.MIN_VALUE }; in filledArrays()
/external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/
DLongsTest.java20 import static java.lang.Long.MIN_VALUE;
50 { MIN_VALUE, (long) -1, (long) 0, (long) 1, MAX_VALUE };
144 assertEquals(MIN_VALUE, Longs.max(MIN_VALUE)); in testMax()
160 assertEquals(MIN_VALUE, Longs.min(MIN_VALUE)); in testMin()
272 new long[] {MIN_VALUE}, in testLexicographicalComparator()
273 new long[] {MIN_VALUE, MIN_VALUE}, in testLexicographicalComparator()
274 new long[] {MIN_VALUE, (long) 1}, in testLexicographicalComparator()
276 new long[] {(long) 1, MIN_VALUE}, in testLexicographicalComparator()
424 tryParseAndAssertEquals(MIN_VALUE, Long.toString(MIN_VALUE)); in testTryParse()
434 Longs.tryParse(BigInteger.valueOf(MIN_VALUE).subtract(BigInteger.ONE).toString())); in testTryParse()
[all …]
DSignedBytesTest.java39 private static final byte LEAST = Byte.MIN_VALUE;
52 assertCastFails(Long.MIN_VALUE); in testCheckedCast()
62 assertEquals(LEAST, SignedBytes.saturatedCast(Long.MIN_VALUE)); in testSaturatedCast()
/external/smali/smali/src/test/java/org/jf/smali/
DLongLiteralTest.java45 Assert.assertTrue(LiteralTools.parseLong("0x8000000000000000L") == Long.MIN_VALUE); in SuccessHexTests()
51 Assert.assertTrue(LiteralTools.parseLong("-0x8000000000000000L") == Long.MIN_VALUE); in SuccessHexTests()
76 Assert.assertTrue(LiteralTools.parseLong("9223372036854775808") == Long.MIN_VALUE); in SuccessDecTests()
83 Assert.assertTrue(LiteralTools.parseLong("-9223372036854775808") == Long.MIN_VALUE); in SuccessDecTests()
112 Assert.assertTrue(LiteralTools.parseLong("01000000000000000000000") == Long.MIN_VALUE); in SuccessOctTests()
119 Assert.assertTrue(LiteralTools.parseLong("-01000000000000000000000") == Long.MIN_VALUE); in SuccessOctTests()
DByteLiteralTest.java47 Assert.assertTrue(LiteralTools.parseByte("0x80t") == Byte.MIN_VALUE); in SuccessHexTests()
53 Assert.assertTrue(LiteralTools.parseByte("-0x80") == Byte.MIN_VALUE); in SuccessHexTests()
80 Assert.assertTrue(LiteralTools.parseByte("128") == Byte.MIN_VALUE); in SuccessDecTests()
88 Assert.assertTrue(LiteralTools.parseByte("-128") == Byte.MIN_VALUE); in SuccessDecTests()
118 Assert.assertTrue(LiteralTools.parseByte("0200T") == Byte.MIN_VALUE); in SuccessOctTests()
126 Assert.assertTrue(LiteralTools.parseByte("-0200") == Byte.MIN_VALUE); in SuccessOctTests()
DShortLiteralTest.java47 Assert.assertTrue(LiteralTools.parseShort("0x8000") == Short.MIN_VALUE); in SuccessHexTests()
53 Assert.assertTrue(LiteralTools.parseShort("-0x8000") == Short.MIN_VALUE); in SuccessHexTests()
80 Assert.assertTrue(LiteralTools.parseShort("32768") == Short.MIN_VALUE); in SuccessDecTests()
88 Assert.assertTrue(LiteralTools.parseShort("-32768") == Short.MIN_VALUE); in SuccessDecTests()
118 Assert.assertTrue(LiteralTools.parseShort("0100000") == Short.MIN_VALUE); in SuccessOctTests()
126 Assert.assertTrue(LiteralTools.parseShort("-0100000") == Short.MIN_VALUE); in SuccessOctTests()
DIntLiteralTest.java46 Assert.assertTrue(LiteralTools.parseInt("0x80000000") == Integer.MIN_VALUE); in SuccessHexTests()
52 Assert.assertTrue(LiteralTools.parseInt("-0x80000000") == Integer.MIN_VALUE); in SuccessHexTests()
79 Assert.assertTrue(LiteralTools.parseInt("2147483648") == Integer.MIN_VALUE); in SuccessDecTests()
87 Assert.assertTrue(LiteralTools.parseInt("-2147483648") == Integer.MIN_VALUE); in SuccessDecTests()
122 Assert.assertTrue(LiteralTools.parseInt("020000000000") == Integer.MIN_VALUE); in SuccessOctTests()
130 Assert.assertTrue(LiteralTools.parseInt("-020000000000") == Integer.MIN_VALUE); in SuccessOctTests()
/external/guava/guava-tests/test/com/google/common/primitives/
DLongsTest.java20 import static java.lang.Long.MIN_VALUE;
53 { MIN_VALUE, (long) -1, (long) 0, (long) 1, MAX_VALUE };
155 assertEquals(MIN_VALUE, Longs.max(MIN_VALUE)); in testMax()
171 assertEquals(MIN_VALUE, Longs.min(MIN_VALUE)); in testMin()
283 new long[] {MIN_VALUE}, in testLexicographicalComparator()
284 new long[] {MIN_VALUE, MIN_VALUE}, in testLexicographicalComparator()
285 new long[] {MIN_VALUE, (long) 1}, in testLexicographicalComparator()
287 new long[] {(long) 1, MIN_VALUE}, in testLexicographicalComparator()
457 tryParseAndAssertEquals(MIN_VALUE, Long.toString(MIN_VALUE)); in testTryParse()
467 Longs.tryParse(BigInteger.valueOf(MIN_VALUE).subtract(BigInteger.ONE).toString())); in testTryParse()
[all …]
/external/guava/guava/src/com/google/common/collect/
DDiscreteDomain.java68 return (i == Integer.MIN_VALUE) ? null : i - 1; in previous()
76 return Integer.MIN_VALUE; in minValue()
115 return (l == Long.MIN_VALUE) ? null : l - 1; in previous()
124 return Long.MIN_VALUE; in distance()
130 return Long.MIN_VALUE; in minValue()
163 BigInteger.valueOf(Long.MIN_VALUE);
/external/guava/guava-tests/test/com/google/common/math/
DMathPreconditionsTest.java46 MathPreconditions.checkPositive("int", Integer.MIN_VALUE); in testCheckPositive_minInt()
75 MathPreconditions.checkPositive("long", Long.MIN_VALUE); in testCheckPositive_minLong()
119 MathPreconditions.checkNonNegative("int", Integer.MIN_VALUE); in testCheckNonNegative_minInt()
145 MathPreconditions.checkNonNegative("long", Long.MIN_VALUE); in testCheckNonNegative_minLong()
185 MathPreconditions.checkNonNegative("float", Float.MIN_VALUE); in testCheckNonNegative_minFloat()
215 MathPreconditions.checkNonNegative("double", Double.MIN_VALUE); in testCheckNonNegative_minDouble()
/external/apache-xml/src/main/java/org/apache/xml/utils/
DIntVector.java238 m_map[i] = java.lang.Integer.MIN_VALUE; in removeAllElements()
265 m_map[i] = java.lang.Integer.MIN_VALUE; in removeElement()
290 m_map[i] = java.lang.Integer.MIN_VALUE; in removeElementAt()
361 return java.lang.Integer.MIN_VALUE; in indexOf()
383 return java.lang.Integer.MIN_VALUE; in indexOf()
405 return java.lang.Integer.MIN_VALUE; in lastIndexOf()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ClassType/
DSetValuesTest.java70 testField(classID, fieldInfo, Value.createByte(Byte.MIN_VALUE)); in testField()
76 testField(classID, fieldInfo, Value.createChar(Character.MIN_VALUE)); in testField()
79 testField(classID, fieldInfo, Value.createFloat(Float.MIN_VALUE)); in testField()
87 testField(classID, fieldInfo, Value.createDouble(Double.MIN_VALUE)); in testField()
95 testField(classID, fieldInfo, Value.createInt(Integer.MIN_VALUE)); in testField()
100 testField(classID, fieldInfo, Value.createLong(Long.MIN_VALUE)); in testField()
105 testField(classID, fieldInfo, Value.createShort(Short.MIN_VALUE)); in testField()
/external/libmojo/mojo/android/javatests/src/org/chromium/mojo/system/impl/
DCoreImplTest.java588 private int mResult = Integer.MIN_VALUE;
633 assertEquals(Integer.MIN_VALUE, asyncWaiterResult.getResult()); in testAsyncWaiterCorrectResult()
638 assertEquals(Integer.MIN_VALUE, asyncWaiterResult.getResult()); in testAsyncWaiterCorrectResult()
660 assertEquals(Integer.MIN_VALUE, asyncWaiterResult.getResult()); in testAsyncWaiterClosingPeerHandle()
665 assertEquals(Integer.MIN_VALUE, asyncWaiterResult.getResult()); in testAsyncWaiterClosingPeerHandle()
669 assertEquals(Integer.MIN_VALUE, asyncWaiterResult.getResult()); in testAsyncWaiterClosingPeerHandle()
690 assertEquals(Integer.MIN_VALUE, asyncWaiterResult.getResult()); in testAsyncWaiterClosingWaitingHandle()
695 assertEquals(Integer.MIN_VALUE, asyncWaiterResult.getResult()); in testAsyncWaiterClosingWaitingHandle()
699 assertEquals(Integer.MIN_VALUE, asyncWaiterResult.getResult()); in testAsyncWaiterClosingWaitingHandle()
721 assertEquals(Integer.MIN_VALUE, asyncWaiterResult.getResult()); in testAsyncWaiterWaitingOnInvalidHandle()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DContiguousSetTest.java73 ContiguousSet.create(Range.closed(Integer.MIN_VALUE, Integer.MAX_VALUE), integers()), in testEquals()
76 ContiguousSet.create(Range.closed(Integer.MIN_VALUE, Integer.MAX_VALUE), integers()), in testEquals()
77 ContiguousSet.create(Range.atLeast(Integer.MIN_VALUE), integers())); in testEquals()
79 ContiguousSet.create(Range.closed(Integer.MIN_VALUE, Integer.MAX_VALUE), integers()), in testEquals()
103 ContiguousSet.create(Range.lessThan(Integer.MIN_VALUE), integers())); in testCreate_empty()
128 assertThat(set.tailSet(Integer.MIN_VALUE)).has().exactly(1, 2, 3).inOrder(); in testTailSet()
132 assertThat(set.tailSet(Integer.MIN_VALUE, false)).has().exactly(1, 2, 3).inOrder(); in testTailSet()
152 assertThat(set.subSet(Integer.MIN_VALUE, Integer.MAX_VALUE)).has().exactly(1, 2, 3).inOrder(); in testSubSet()
178 assertEquals(Integer.MIN_VALUE, in testFirst()
254 assertEquals(Range.closed(Integer.MIN_VALUE, Integer.MAX_VALUE), in testRange_unboundedRange()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/types/
DIntTagTest.java40 assertEquals(Integer.MIN_VALUE, load(dump(Integer.MIN_VALUE))); in testInt()
48 assertEquals(Long.MIN_VALUE, load("-9223372036854775808")); in testBigInt()
/external/guava/guava-tests/test/com/google/common/collect/
DContiguousSetTest.java90 ContiguousSet.create(Range.closed(Integer.MIN_VALUE, Integer.MAX_VALUE), integers()), in testEquals()
93 ContiguousSet.create(Range.closed(Integer.MIN_VALUE, Integer.MAX_VALUE), integers()), in testEquals()
94 ContiguousSet.create(Range.atLeast(Integer.MIN_VALUE), integers())); in testEquals()
96 ContiguousSet.create(Range.closed(Integer.MIN_VALUE, Integer.MAX_VALUE), integers()), in testEquals()
141 ContiguousSet.create(Range.lessThan(Integer.MIN_VALUE), integers())); in testCreate_empty()
166 assertThat(set.tailSet(Integer.MIN_VALUE)).has().exactly(1, 2, 3).inOrder(); in testTailSet()
170 assertThat(set.tailSet(Integer.MIN_VALUE, false)).has().exactly(1, 2, 3).inOrder(); in testTailSet()
190 assertThat(set.subSet(Integer.MIN_VALUE, Integer.MAX_VALUE)).has().exactly(1, 2, 3).inOrder(); in testSubSet()
216 assertEquals(Integer.MIN_VALUE, in testFirst()
292 assertEquals(Range.closed(Integer.MIN_VALUE, Integer.MAX_VALUE), in testRange_unboundedRange()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/
DFraction.java262 if (num == Integer.MIN_VALUE || den == Integer.MIN_VALUE) { in Fraction()
405 if (numerator==Integer.MIN_VALUE) { in negate()
609 if (denominator==Integer.MIN_VALUE && (numerator&1)==0) { in getReducedFraction()
613 if (numerator==Integer.MIN_VALUE || in getReducedFraction()
614 denominator==Integer.MIN_VALUE) { in getReducedFraction()
/external/apache-commons-math/src/main/java/org/apache/commons/math/genetics/
DChromosome.java33 private double fitness = Double.MIN_VALUE;
45 if (this.fitness == Double.MIN_VALUE) { in getFitness()
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/
DMathUtils.java106 if (s < Integer.MIN_VALUE || s > Integer.MAX_VALUE) { in addAndCheck()
148 if (Long.MIN_VALUE - b <= a) { in addAndCheck()
901 if ((u == Integer.MIN_VALUE) || (v == Integer.MIN_VALUE)) {
990 if ((u == Long.MIN_VALUE) || (v == Long.MIN_VALUE)){
1166 if (lcm == Integer.MIN_VALUE) {
1201 if (lcm == Long.MIN_VALUE){
1241 if (m < Integer.MIN_VALUE || m > Integer.MAX_VALUE) {
1274 if (Long.MIN_VALUE / b <= a) {
1328 return (direction < 0) ? -Double.MIN_VALUE : Double.MIN_VALUE;
1736 if (s < Integer.MIN_VALUE || s > Integer.MAX_VALUE) {
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/
DBuilderOffsetInstruction.java53 if (codeOffset < Byte.MIN_VALUE || codeOffset > Byte.MAX_VALUE) { in getCodeOffset()
58 if (codeOffset < Short.MIN_VALUE || codeOffset > Short.MAX_VALUE) { in getCodeOffset()

12345678910>>...12