Home
last modified time | relevance | path

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

12345678910>>...13

/art/test/160-read-barrier-stress/src/
DManyFieldsBase0.java18 public Object testField0000 = new Integer(0);
19 public Object testField0001 = new Integer(1);
20 public Object testField0002 = new Integer(2);
21 public Object testField0003 = new Integer(3);
22 public Object testField0004 = new Integer(4);
23 public Object testField0005 = new Integer(5);
24 public Object testField0006 = new Integer(6);
25 public Object testField0007 = new Integer(7);
26 public Object testField0008 = new Integer(8);
27 public Object testField0009 = new Integer(9);
[all …]
DManyFieldsBase2.java18 public Object testField2000 = new Integer(2000);
19 public Object testField2001 = new Integer(2001);
20 public Object testField2002 = new Integer(2002);
21 public Object testField2003 = new Integer(2003);
22 public Object testField2004 = new Integer(2004);
23 public Object testField2005 = new Integer(2005);
24 public Object testField2006 = new Integer(2006);
25 public Object testField2007 = new Integer(2007);
26 public Object testField2008 = new Integer(2008);
27 public Object testField2009 = new Integer(2009);
[all …]
DManyFieldsBase1.java18 public Object testField1000 = new Integer(1000);
19 public Object testField1001 = new Integer(1001);
20 public Object testField1002 = new Integer(1002);
21 public Object testField1003 = new Integer(1003);
22 public Object testField1004 = new Integer(1004);
23 public Object testField1005 = new Integer(1005);
24 public Object testField1006 = new Integer(1006);
25 public Object testField1007 = new Integer(1007);
26 public Object testField1008 = new Integer(1008);
27 public Object testField1009 = new Integer(1009);
[all …]
DManyFieldsBase3.java18 public Object testField3000 = new Integer(3000);
19 public Object testField3001 = new Integer(3001);
20 public Object testField3002 = new Integer(3002);
21 public Object testField3003 = new Integer(3003);
22 public Object testField3004 = new Integer(3004);
23 public Object testField3005 = new Integer(3005);
24 public Object testField3006 = new Integer(3006);
25 public Object testField3007 = new Integer(3007);
26 public Object testField3008 = new Integer(3008);
27 public Object testField3009 = new Integer(3009);
[all …]
DMain.java56 Object f0000 = new Integer(0); in testArrayReadsWithConstIndex()
57 Object f1024 = new Integer(1024); in testArrayReadsWithConstIndex()
58 Object f4444 = new Integer(4444); in testArrayReadsWithConstIndex()
59 Object f4999 = new Integer(4999); in testArrayReadsWithConstIndex()
62 Object tmp = new Integer(1); in testArrayReadsWithConstIndex()
66 tmp = new Integer(4998); in testArrayReadsWithConstIndex()
89 Object f0000 = new Integer(0); in testArrayReadsWithNonConstIndex()
90 Object f1024 = new Integer(1024); in testArrayReadsWithNonConstIndex()
91 Object f4444 = new Integer(4444); in testArrayReadsWithNonConstIndex()
92 Object f4999 = new Integer(4999); in testArrayReadsWithNonConstIndex()
[all …]
/art/test/912-classes/
Dexpected.txt23Integer.BYTES, static final char[] java.lang.Integer.DigitOnes, static final char[] java.lang.Inte…
26Integer(), public java.lang.Integer(int), public java.lang.Integer(java.lang.String) throws java.l…
/art/test/640-checker-integer-valueof/src/
DMain.java23 public static Integer foo(int a) { in foo()
24 return Integer.valueOf(a); in foo()
31 public static Integer foo2() { in foo2()
32 return Integer.valueOf(-42); in foo2()
39 public static Integer foo3() { in foo3()
40 return Integer.valueOf(42); in foo3()
47 public static Integer foo4() { in foo4()
48 return Integer.valueOf(55555); in foo4()
70 static void assertEqual(String a, Integer b) { in assertEqual()
76 static void assertEqual(Integer a, Integer b) { in assertEqual()
/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/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/717-integer-value-of/src/
DMain.java44 Integer[] cache = (Integer[]) cacheField.get(integerCacheClass); in testValueOfArg()
45 Integer[] alt_cache = new Integer[cache.length]; in testValueOfArg()
79 Integer new0 = getAsInteger(0); in testValueOfArg()
94 Integer[] cache = (Integer[]) cacheField.get(integerCacheClass); in testValueOfConst()
96 Integer old42 = cache[42 - low]; in testValueOfConst()
97 cache[42 - low] = new Integer(42); in testValueOfConst()
107 Integer new42 = get42AsInteger(); in testValueOfConst()
122 public static Integer get42AsInteger() { in get42AsInteger()
123 return Integer.valueOf(42); in get42AsInteger()
126 public static Integer getAsInteger(int value) { in getAsInteger()
[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/567-checker-builder-intrinsics/src/
DTestCompare.java35 if (Integer.compare(x, 0) < 0) { in $opt$noinline$testReplaceInputWithItself()
53 return Integer.compare((x ? 1 : 0), (y ? 1 : 0)); in compareBooleans()
104 return Integer.compare(src_x, src_y); in compareBooleans2()
115 return Integer.compare(x, y); in compareBytes()
126 return Integer.compare(x, y); in compareShorts()
137 return Integer.compare(x, y); in compareChars()
148 return Integer.compare(x, y); in compareInts()
171 return Integer.compare(x, y); in compareByteShort()
182 return Integer.compare(x, y); in compareByteChar()
193 return Integer.compare(x, y); in compareByteInt()
[all …]
/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/610-arraycopy/src/
DMain.java21 a[i] = new Integer(i); in main()
25 expectEquals(0, ((Integer)a[0]).intValue()); in main()
26 expectEquals(0, ((Integer)a[1]).intValue()); in main()
27 expectEquals(1, ((Integer)a[2]).intValue()); in main()
28 expectEquals(2, ((Integer)a[3]).intValue()); in main()
29 expectEquals(4, ((Integer)a[4]).intValue()); in main()
/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/501-regression-packed-switch/src/
DMain.java28 Integer result = (Integer) m.invoke(null, new Integer(42)); in main()
33 result = (Integer) m.invoke(null, new Integer(0)); in main()
/art/test/411-checker-hdiv-hrem-pow2/src/
DRemTest.java41 expectEquals(1, $noinline$IntMod2(Integer.MAX_VALUE)); in remInt()
42 expectEquals(0, $noinline$IntMod2(Integer.MIN_VALUE)); in remInt()
54 expectEquals(1, $noinline$IntModMinus2(Integer.MAX_VALUE)); in remInt()
55 expectEquals(0, $noinline$IntModMinus2(Integer.MIN_VALUE)); in remInt()
67 expectEquals(1, $noinline$IntAbsMod2(Integer.MAX_VALUE)); in remInt()
68 expectEquals(0, $noinline$IntAbsMod2(Integer.MIN_VALUE)); in remInt()
80 expectEquals(1, $noinline$IntAbsModMinus2(Integer.MAX_VALUE)); in remInt()
81 expectEquals(0, $noinline$IntAbsModMinus2(Integer.MIN_VALUE)); in remInt()
108 expectEquals(15, $noinline$IntMod16(Integer.MAX_VALUE)); in remInt()
109 expectEquals(0, $noinline$IntMod16(Integer.MIN_VALUE)); in remInt()
[all …]
/art/test/411-optimizing-arith/src/
DRemTest.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()
[all …]
DShiftsTest.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/082-inline-execute/src/
DMain.java469 Assert.assertEquals(Math.abs(Integer.MAX_VALUE), Integer.MAX_VALUE);
470 Assert.assertEquals(Math.abs(Integer.MIN_VALUE), Integer.MIN_VALUE);
471 Assert.assertEquals(Math.abs(Integer.MIN_VALUE - 1), Integer.MAX_VALUE);
472 Assert.assertEquals(Math.abs(Integer.MIN_VALUE + 1), Integer.MAX_VALUE);
491 Assert.assertEquals(Math.min(0, Integer.MAX_VALUE), 0);
492 Assert.assertEquals(Math.min(Integer.MIN_VALUE, 0), Integer.MIN_VALUE);
493 Assert.assertEquals(Math.min(Integer.MIN_VALUE, Integer.MAX_VALUE), Integer.MIN_VALUE);
501 Assert.assertEquals(Math.max(0, Integer.MAX_VALUE), Integer.MAX_VALUE);
502 Assert.assertEquals(Math.max(Integer.MIN_VALUE, 0), 0);
503 Assert.assertEquals(Math.max(Integer.MIN_VALUE, Integer.MAX_VALUE), Integer.MAX_VALUE);
[all …]
/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/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/708-jit-cache-churn/src/
DJitCacheChurnTest.java71 private void runTasks(Callable<Integer> task) { in runTasks()
77 ArrayList<Callable<Integer>> tasks = new ArrayList<>(CONCURRENCY); in runTasks()
82 List<Future<Integer>> results = executorService.invokeAll(tasks); in runTasks()
92 private static abstract class BaseTask implements Callable<Integer> {
95 public Integer call() throws Exception { in call()
104 protected abstract Integer $noinline$Call(); in $noinline$Call()
109 protected Integer $noinline$Call() { in $noinline$Call()
116 protected Integer $noinline$Call() { in $noinline$Call()
123 protected Integer $noinline$Call() { in $noinline$Call()
134 protected Integer $noinline$Call() { in $noinline$Call()
[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 …]

12345678910>>...13