Home
last modified time | relevance | path

Searched refs:Integer (Results 1 – 25 of 129) sorted by relevance

123456

/art/test/015-switch/src/
DMain.java84 case Integer.MAX_VALUE - 1: in packedSwitch4()
85 System.out.println(Integer.MAX_VALUE - 1); break; in packedSwitch4()
86 case Integer.MAX_VALUE: in packedSwitch4()
87 System.out.println(Integer.MAX_VALUE); break; in packedSwitch4()
96 case Integer.MIN_VALUE: in packedSwitch5()
97 System.out.println(Integer.MIN_VALUE); break; in packedSwitch5()
98 case Integer.MIN_VALUE + 1: in packedSwitch5()
99 System.out.println(Integer.MIN_VALUE + 1); break; in packedSwitch5()
108 case Integer.MIN_VALUE: in packedSwitch6()
109 System.out.println(Integer.MIN_VALUE); break; in packedSwitch6()
[all …]
/art/test/041-narrowing/src/
DMain.java27 + (Integer.toHexString((short)dbl2).equals("0") ? "0000" : Integer.toHexString( in test_printNarrowing()
30 + (Integer.toHexString((int)dbl2).equals("0") ? "00000000" : Integer in test_printNarrowing()
41 + (Integer.toHexString((short)fl2).equals("0") ? "0000" : Integer.toHexString( in test_printNarrowing()
44 + (Integer.toHexString((int)fl2).equals("0") ? "00000000" : Integer in test_printNarrowing()
52 + (Integer.toHexString((byte)dbl3).equals("0") ? "00" : Integer.toHexString( in test_printNarrowing()
55 + (Integer.toHexString((short)dbl3).equals("0") ? "0000" : Integer.toHexString( in test_printNarrowing()
58 + Integer.toHexString((int)dbl3) + " expected: 7fffffff"); in test_printNarrowing()
67 + (Integer.toHexString((short)dbl4).equals("0") ? " 0000" : Long in test_printNarrowing()
70 + Integer.toHexString((int)dbl4) + " expected: 80000000"); in test_printNarrowing()
76 + (Integer.toHexString((byte)fl3).equals("0") ? "00" : Integer.toHexString( in test_printNarrowing()
[all …]
/art/test/567-checker-compare/src/
DMain.java40 if (Integer.compare(x, 0) < 0) { in $opt$noinline$testReplaceInputWithItself()
88 return Integer.compare((x ? 1 : 0), (y ? 1 : 0)); in compareBooleans()
103 return Integer.compare(x, y); in compareBytes()
118 return Integer.compare(x, y); in compareShorts()
133 return Integer.compare(x, y); in compareChars()
148 return Integer.compare(x, y); in compareInts()
179 return Integer.compare(x, y); in compareByteShort()
194 return Integer.compare(x, y); in compareByteChar()
209 return Integer.compare(x, y); in compareByteInt()
225 return Integer.compare(x, y); in compareShortByte()
[all …]
/art/test/561-divrem/src/
DMain.java40 assertEquals(1, $noinline$divInt(Integer.MIN_VALUE)); in main()
41 assertEquals(0, $noinline$remInt(Integer.MIN_VALUE)); in main()
43 assertEquals(0, $noinline$divInt(Integer.MAX_VALUE)); in main()
44 assertEquals(Integer.MAX_VALUE, $noinline$remInt(Integer.MAX_VALUE)); in main()
46 assertEquals(0, $noinline$divInt(Integer.MAX_VALUE - 1)); in main()
47 assertEquals(Integer.MAX_VALUE - 1, $noinline$remInt(Integer.MAX_VALUE - 1)); in main()
49 assertEquals(0, $noinline$divInt(Integer.MIN_VALUE + 1)); in main()
50 assertEquals(Integer.MIN_VALUE + 1, $noinline$remInt(Integer.MIN_VALUE + 1)); in main()
70 assertEquals(0L, $noinline$divLong(Integer.MIN_VALUE + 1)); in main()
78 return value / Integer.MIN_VALUE; in $noinline$divInt()
[all …]
/art/test/573-checker-checkcast-regression/src/
DMain.java20 Object[] array = { new Integer(1), new Integer(2), new Integer(3) }; in main()
44 Integer integer1 = (Integer) objectArray[index1]; in test()
45 Integer integer2 = (Integer) objectArray[index2]; in test()
/art/test/572-checker-array-get-regression/src/
DMain.java44 public static Integer test() { in test()
45 Integer[] integers = new Integer[1 << 19]; in test()
49 Integer last_integer = integers[integers.length - 1]; in test()
53 public static void initIntegerArray(Integer[] integers) { in initIntegerArray()
55 integers[i] = new Integer(i); in initIntegerArray()
/art/test/428-optimizing-arith-rem/src/
DMain.java41 expectEquals(0, $opt$Rem(Integer.MAX_VALUE, 1)); in remInt()
42 expectEquals(0, $opt$Rem(Integer.MAX_VALUE, -1)); in remInt()
43 expectEquals(0, $opt$Rem(Integer.MIN_VALUE, 1)); in remInt()
44 expectEquals(0, $opt$Rem(Integer.MIN_VALUE, -1)); // no overflow in remInt()
45 expectEquals(-1, $opt$Rem(Integer.MIN_VALUE, Integer.MAX_VALUE)); in remInt()
46 expectEquals(Integer.MAX_VALUE, $opt$Rem(Integer.MAX_VALUE, Integer.MIN_VALUE)); in remInt()
49 expectEquals(0, $opt$Rem(0, Integer.MAX_VALUE)); in remInt()
50 expectEquals(0, $opt$Rem(0, Integer.MIN_VALUE)); in remInt()
55 expectDivisionByZero(Integer.MAX_VALUE); in remInt()
56 expectDivisionByZero(Integer.MIN_VALUE); in remInt()
/art/test/431-optimizing-arith-shifts/src/
DMain.java51 expectEquals(Integer.MIN_VALUE, $opt$ShlInt(1, 31)); // overflow in testShlInt()
52 expectEquals(Integer.MIN_VALUE, $opt$ShlInt(1073741824, 1)); // overflow in testShlInt()
60 expectEquals(Integer.MIN_VALUE, $opt$ShlInt(1, -1)); // -1 & 0x1f = 31 in testShlInt()
65 expectEquals(Integer.MIN_VALUE, $opt$ShlInt(7, Integer.MAX_VALUE)); in testShlInt()
66 expectEquals(7, $opt$ShlInt(7, Integer.MIN_VALUE)); in testShlInt()
98 expectEquals(Long.MIN_VALUE, $opt$ShlLong(7L, Integer.MAX_VALUE)); in testShlLong()
99 expectEquals(7L, $opt$ShlLong(7L, Integer.MIN_VALUE)); in testShlLong()
121 expectEquals(0, $opt$ShrInt(Integer.MAX_VALUE, 31)); in testShrInt()
122 expectEquals(-1, $opt$ShrInt(Integer.MIN_VALUE, 31)); in testShrInt()
131 expectEquals(-4, $opt$ShrInt(Integer.MIN_VALUE, -3)); // -3 & 0x1f = 29 in testShrInt()
[all …]
/art/test/542-bitfield-rotates/src/
DMain.java64 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, Integer.SIZE - 1), 0x22); in test_Integer_right_v_csubv()
65 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, Integer.SIZE), 0x11); in test_Integer_right_v_csubv()
66 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, Integer.SIZE + 1), 0x80000008); in test_Integer_right_v_csubv()
69 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, -(Integer.SIZE - 1)), 0x80000008); in test_Integer_right_v_csubv()
70 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, -Integer.SIZE), 0x11); in test_Integer_right_v_csubv()
71 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, -(Integer.SIZE + 1)), 0x22); in test_Integer_right_v_csubv()
110 assertIntEquals($noinline$rotate_int_left_reg_csubv_v(0x11, Integer.SIZE - 1), 0x80000008); in test_Integer_left_csubv_v()
111 assertIntEquals($noinline$rotate_int_left_reg_csubv_v(0x11, Integer.SIZE), 0x11); in test_Integer_left_csubv_v()
112 assertIntEquals($noinline$rotate_int_left_reg_csubv_v(0x11, Integer.SIZE + 1), 0x22); in test_Integer_left_csubv_v()
115 assertIntEquals($noinline$rotate_int_left_reg_csubv_v(0x11, -(Integer.SIZE - 1)), 0x22); in test_Integer_left_csubv_v()
[all …]
/art/test/052-verifier-fun/src/
DMain.java36 Integer[] arrayTwo; in arrayCheck1()
39 arrayTwo = new Integer[1]; in arrayCheck1()
50 Integer[] arrayTwo; in arrayCheck1b()
54 arrayTwo = new Integer[1]; in arrayCheck1b()
68 Integer[][] arrayThree; in arrayCheck2()
72 arrayThree = new Integer[1][]; in arrayCheck2()
125 static int instanceOfTest(Integer x) { in instanceOfTest()
/art/test/025-access-controller/src/
DPrivvy.java21 class Privvy implements PrivilegedAction<Integer> {
23 private Integer mValue;
26 mValue = new Integer(val + 1); in Privvy()
29 public Integer run() { in run()
/art/test/456-baseline-array-set/src/
DMain.java19 doArrayAccess(new Integer(1), 0); in main()
22 public static void doArrayAccess(Integer value, int index) { in doArrayAccess()
24 Integer[] array = new Integer[2]; in doArrayAccess()
/art/test/082-inline-execute/src/
DMain.java468 Assert.assertEquals(Math.abs(Integer.MAX_VALUE), Integer.MAX_VALUE);
469 Assert.assertEquals(Math.abs(Integer.MIN_VALUE), Integer.MIN_VALUE);
470 Assert.assertEquals(Math.abs(Integer.MIN_VALUE - 1), Integer.MAX_VALUE);
471 Assert.assertEquals(Math.abs(Integer.MIN_VALUE + 1), Integer.MAX_VALUE);
490 Assert.assertEquals(Math.min(0, Integer.MAX_VALUE), 0);
491 Assert.assertEquals(Math.min(Integer.MIN_VALUE, 0), Integer.MIN_VALUE);
492 Assert.assertEquals(Math.min(Integer.MIN_VALUE, Integer.MAX_VALUE), Integer.MIN_VALUE);
500 Assert.assertEquals(Math.max(0, Integer.MAX_VALUE), Integer.MAX_VALUE);
501 Assert.assertEquals(Math.max(Integer.MIN_VALUE, 0), 0);
502 Assert.assertEquals(Math.max(Integer.MIN_VALUE, Integer.MAX_VALUE), Integer.MAX_VALUE);
[all …]
/art/test/121-modifiers/src/
DMain.java92 System.out.println("Clazz.getModifiers(): " + Integer.toBinaryString(clazz.getModifiers())); in check()
93 System.out.println("INTERFACE_DEF_BITS: " + Integer.toBinaryString(INTERFACE_DEFINED_BITS)); in check()
102 System.out.println("Clazz.getModifiers(): " + Integer.toBinaryString(clazz.getModifiers())); in check()
103 System.out.println("CLASS_DEF_BITS: " + Integer.toBinaryString(CLASS_DEFINED_BITS)); in check()
113 System.out.println("f.getModifiers(): " + Integer.toBinaryString(f.getModifiers())); in check()
114 System.out.println("FIELD_DEF_BITS: " + Integer.toBinaryString(FIELD_DEFINED_BITS)); in check()
133 System.out.println("m.getModifiers(): " + Integer.toBinaryString(m.getModifiers())); in check()
134 System.out.println("METHOD_DEF_BITS: " + Integer.toBinaryString(METHOD_DEFINED_BITS)); in check()
/art/test/566-checker-signum/src/
DMain.java58 return Integer.signum(x ? 1 : 0); in signBoolean()
73 return Integer.signum(x); in signByte()
88 return Integer.signum(x); in signShort()
103 return Integer.signum(x); in signChar()
118 return Integer.signum(x); in signInt()
170 expectEquals(-1, signInt(Integer.MIN_VALUE)); in testSignInt()
176 expectEquals(1, signInt(Integer.MAX_VALUE)); in testSignInt()
/art/test/004-InterfaceTest/src/
DMain.java23 Integer intobj = new Integer(0); in test_virtual()
34 Integer intobj = new Integer(0); in test_interface()
/art/test/501-regression-packed-switch/src/
DMain.java28 Integer result = (Integer) m.invoke(null, new Integer(42)); in main()
/art/test/417-optimizing-arith-div/src/
DMain.java122 expectEquals(-Integer.MAX_VALUE, $opt$Div(Integer.MAX_VALUE, -1)); in divInt()
123 expectEquals(Integer.MIN_VALUE, $opt$Div(Integer.MIN_VALUE, -1)); // overflow in divInt()
124 expectEquals(-1073741824, $opt$Div(Integer.MIN_VALUE, 2)); in divInt()
126 expectEquals(0, $opt$Div(0, Integer.MAX_VALUE)); in divInt()
127 expectEquals(0, $opt$Div(0, Integer.MIN_VALUE)); in divInt()
131 expectDivisionByZero(Integer.MAX_VALUE); in divInt()
132 expectDivisionByZero(Integer.MIN_VALUE); in divInt()
145 expectEquals(-Integer.MAX_VALUE, $opt$Div(Integer.MAX_VALUE, -1L)); in divLong()
146 expectEquals(2147483648L, $opt$Div(Integer.MIN_VALUE, -1L)); in divLong()
147 expectEquals(-1073741824L, $opt$Div(Integer.MIN_VALUE, 2L)); in divLong()
/art/test/530-checker-loops2/src/
DMain.java123 for (int i = Integer.MAX_VALUE - 10, k = 0; i < Integer.MAX_VALUE; i++) { in justRightUp1()
138 for (int i = Integer.MAX_VALUE - 10; i < Integer.MAX_VALUE; i++) { in justRightUp2()
139 result += x[i - Integer.MAX_VALUE + 10]; in justRightUp2()
153 for (int i = Integer.MAX_VALUE - 10, k = 0; i <= Integer.MAX_VALUE - 1; i++) { in justRightUp3()
171 for (int i = Integer.MAX_VALUE - 9, k = 0; i <= Integer.MAX_VALUE; i++) { in justOOBUp()
186 for (int i = Integer.MIN_VALUE + 10, k = 0; i > Integer.MIN_VALUE; i--) { in justRightDown1()
201 for (int i = Integer.MIN_VALUE + 10; i > Integer.MIN_VALUE; i--) { in justRightDown2()
202 result += x[Integer.MAX_VALUE + i]; in justRightDown2()
216 for (int i = Integer.MIN_VALUE + 10, k = 0; i >= Integer.MIN_VALUE + 1; i--) { in justRightDown3()
234 for (int i = Integer.MIN_VALUE + 9, k = 0; i >= Integer.MIN_VALUE; i--) { in justOOBDown()
[all …]
/art/test/522-checker-regression-monitor-exit/src/
DMain.java34 private static class HashCodeQuery implements Callable<Integer> {
39 public Integer call() { in call()
40 Integer result; in call()
44 result = (Integer) m.invoke(null, m_obj); in call()
69 List<Future<Integer>> results = pool.invokeAll(queries, 5, TimeUnit.SECONDS); in main()
/art/test/027-arithmetic/src/
DMain.java34 System.out.println("values are " + Integer.toHexString(i1) in shiftTest1()
35 + " and " + Integer.toHexString(i2)); in shiftTest1()
143 System.out.println("b=0x" + Integer.toHexString((int)b) in unsignedShiftTest()
144 + ", s=0x" + Integer.toHexString((int)s) in unsignedShiftTest()
145 + ", c=0x" + Integer.toHexString((int)c) in unsignedShiftTest()
146 + ", i=0x" + Integer.toHexString(i)); in unsignedShiftTest()
/art/test/564-checker-bitcount/src/
DMain.java29 return Integer.bitCount(x ? 1 : 0); in $noinline$BitCountBoolean()
37 return Integer.bitCount(x); in $noinline$BitCountByte()
45 return Integer.bitCount(x); in $noinline$BitCountShort()
53 return Integer.bitCount(x); in $noinline$BitCountChar()
61 return Integer.bitCount(x); in $noinline$BitCountInt()
80 int signExtensionSize = Integer.SIZE - Byte.SIZE; in testBitCountByte()
105 int signExtensionSize = Integer.SIZE - Short.SIZE;
164 for (int i = 0; i < Integer.SIZE; i++) {
/art/test/044-proxy/src/
DReturnsAndArgPassing.java79 int select = (Integer)args[0]; in invoke()
148 myHandler.returnType = Integer.class; in testProxyReturns()
149 check(proxyMyInterface.intFoo() == Integer.MAX_VALUE); in testProxyReturns()
153 check(proxyMyInterface.intBar() == Integer.MIN_VALUE); in testProxyReturns()
369 myHandler.returnType = Integer.class; // Int -> byte == fail in testProxyReturns()
447 check((Integer)proxyMyInterface.selectArg(0, Integer.MAX_VALUE, Long.MAX_VALUE, in testProxyArgPassing()
449 check((Integer)proxyMyInterface.selectArg(1, Integer.MAX_VALUE, Long.MAX_VALUE, in testProxyArgPassing()
450 Float.MAX_VALUE, Double.MAX_VALUE, Object.class) == Integer.MAX_VALUE); in testProxyArgPassing()
451 check((Long)proxyMyInterface.selectArg(2, Integer.MAX_VALUE, Long.MAX_VALUE, in testProxyArgPassing()
453 check((Float)proxyMyInterface.selectArg(3, Integer.MAX_VALUE, Long.MAX_VALUE, in testProxyArgPassing()
[all …]
/art/test/412-new-array/src/
DMain.java152 Method m = c.getMethod("newInt", Integer.TYPE, Integer.TYPE, Integer.TYPE); in testSmaliFilledNewArray()
153 Object[] args = {new Integer(1), new Integer(2), new Integer(3)}; in testSmaliFilledNewArray()
163 Object[] args = {new Integer(1), new Integer(2)}; in testSmaliFilledNewArray()
180 Method m = c.getMethod("newIntRange", Integer.TYPE, Integer.TYPE, Integer.TYPE); in testSmaliFilledNewArray()
181 Object[] args = {new Integer(1), new Integer(2), new Integer(3)}; in testSmaliFilledNewArray()
191 Object[] args = {new Integer(1), new Integer(2)}; in testSmaliFilledNewArray()
/art/test/565-checker-rotate/src/
DMain.java66 return Integer.rotateLeft(value ? 1 : 0, distance); in rotateLeftBoolean()
87 return Integer.rotateLeft(value, distance); in rotateLeftByte()
108 return Integer.rotateLeft(value, distance); in rotateLeftShort()
129 return Integer.rotateLeft(value, distance); in rotateLeftChar()
150 return Integer.rotateLeft(value, distance); in rotateLeftInt()
219 return Integer.rotateRight(value ? 1 : 0, distance); in rotateRightBoolean()
239 return Integer.rotateRight(value, distance); in rotateRightByte()
259 return Integer.rotateRight(value, distance); in rotateRightShort()
279 return Integer.rotateRight(value, distance); in rotateRightChar()
299 return Integer.rotateRight(value, distance); in rotateRightInt()
[all …]

123456