Home
last modified time | relevance | path

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

12

/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/082-inline-execute/src/
DMain.java227 Assert.assertEquals(Math.abs(Integer.MAX_VALUE), Integer.MAX_VALUE);
228 Assert.assertEquals(Math.abs(Integer.MIN_VALUE), Integer.MIN_VALUE);
229 Assert.assertEquals(Math.abs(Integer.MIN_VALUE - 1), Integer.MAX_VALUE);
230 Assert.assertEquals(Math.abs(Integer.MIN_VALUE + 1), Integer.MAX_VALUE);
246 Assert.assertEquals(Math.min(0, Integer.MAX_VALUE), 0);
247 Assert.assertEquals(Math.min(Integer.MIN_VALUE, 0), Integer.MIN_VALUE);
248 Assert.assertEquals(Math.min(Integer.MIN_VALUE, Integer.MAX_VALUE), Integer.MIN_VALUE);
255 Assert.assertEquals(Math.max(0, Integer.MAX_VALUE), Integer.MAX_VALUE);
256 Assert.assertEquals(Math.max(Integer.MIN_VALUE, 0), 0);
257 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()
DMain.java25 Integer result = AccessController.doPrivileged(priv); in main()
/art/test/052-verifier-fun/src/
DMain.java35 Integer[] arrayTwo; in arrayCheck1()
38 arrayTwo = new Integer[1]; in arrayCheck1()
49 Integer[] arrayTwo; in arrayCheck1b()
53 arrayTwo = new Integer[1]; in arrayCheck1b()
67 Integer[][] arrayThree; in arrayCheck2()
71 arrayThree = new Integer[1][]; in arrayCheck2()
/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/044-proxy/src/
DReturnsAndArgPassing.java77 int select = (Integer)args[0]; in invoke()
146 myHandler.returnType = Integer.class; in testProxyReturns()
147 check(proxyMyInterface.intFoo() == Integer.MAX_VALUE); in testProxyReturns()
151 check(proxyMyInterface.intBar() == Integer.MIN_VALUE); in testProxyReturns()
367 myHandler.returnType = Integer.class; // Int -> byte == fail in testProxyReturns()
445 check((Integer)proxyMyInterface.selectArg(0, Integer.MAX_VALUE, Long.MAX_VALUE, in testProxyArgPassing()
447 check((Integer)proxyMyInterface.selectArg(1, Integer.MAX_VALUE, Long.MAX_VALUE, in testProxyArgPassing()
448 Float.MAX_VALUE, Double.MAX_VALUE, Object.class) == Integer.MAX_VALUE); in testProxyArgPassing()
449 check((Long)proxyMyInterface.selectArg(2, Integer.MAX_VALUE, Long.MAX_VALUE, in testProxyArgPassing()
451 check((Float)proxyMyInterface.selectArg(3, Integer.MAX_VALUE, Long.MAX_VALUE, in testProxyArgPassing()
[all …]
DNarrowingTest.java44 return Integer.valueOf(1); in main()
/art/compiler/sea_ir/types/
Dtype_inference_visitor_test.cc41 const Type* int_type = &type_cache.Integer(); in TEST_F()
53 const Type* int_type = &type_cache.Integer(); in TEST_F()
68 const Type* new_type = &type_cache.Integer(); in TEST_F()
72 EXPECT_TRUE(merged_type == &type_cache.Integer()); in TEST_F()
97 const Type* int_type = &type_cache.Integer(); in TEST_F()
102 EXPECT_TRUE(merged_type == &type_cache.Integer()); in TEST_F()
114 const Type* int_type = &type_cache.Integer(); in TEST_F()
Dtype_inference_visitor.cc39 crt_type_.push_back(&type_cache_->Integer()); in Visit()
56 crt_type_.push_back(&type_cache_->Integer()); in Visit()
Dtype_data_test.cc31 const Type* int_type = &type_cache.Integer(); in TEST_F()
Dtype_inference.cc73 argument_types.push_back(&(type_cache_->Integer())); in GetDeclaredArgumentTypes()
120 argument_types.push_back(&type_cache_->Integer()); in GetDeclaredArgumentTypes()
/art/test/045-reflect-array/src/
DMain.java27 intArray = Array.newInstance(Integer.TYPE, 2); in testSingleInt()
51 Integer x123 = Integer.valueOf(123); in testSingleInt()
52 Integer x456 = Integer.valueOf(456); in testSingleInt()
66 intArray = Array.newInstance(Integer.TYPE, 0); in testSingleInt()
189 Array.set(strArray, 0, new Integer(5)); in testSingle()
199 intIntIntArray = Array.newInstance(Integer.TYPE, dimensions); in testMultiInt()
/art/test/093-serialization/src/
DMain.java87 System.out.println("x=" + Integer.toHexString(x)); in check()
96 Integer two;
101 two = Integer.valueOf(2); in Base()
/art/test/201-built-in-exception-detail-messages/src/
DMain.java116 Object o = new Integer(5); in arrayStore()
136 Integer[] dst = new Integer[10]; in arrayStore()
177 Integer dst = new Integer(5); in arrayStore()
243 return new Integer(5); in makeInteger()
423 m.invoke(new Integer(5)); // Wrong type for 'this'. in reflection()
/art/test/NativeAllocations/
DNativeAllocations.java53 …egister_native_allocation = vm_runtime.getDeclaredMethod("registerNativeAllocation", Integer.TYPE); in main()
54 register_native_free = vm_runtime.getDeclaredMethod("registerNativeFree", Integer.TYPE); in main()
/art/test/046-reflect/src/
DMain.java30 public Main(ArrayList<Integer> stuff) {} in Main()
47 + Integer.toHexString(meth.getModifiers())); in printMethodInfo()
57 + Integer.toHexString(field.getModifiers())); in printFieldInfo()
153 Integer boxval; in run()
154 boxval = (Integer) meth.invoke(instance, argList); in run()
253 Integer boxedIntVal = (Integer) field.get(instance); in run()
256 field.set(instance, new Integer(20202)); in run()
359 args = new Object[] { new Integer(7), new Float(3.3333) }; in run()
467 public Map<Integer,String> fancyMethod(ArrayList<String> blah) { return null; } in fancyMethod()
/art/test/019-wrong-array-type/src/
DMain.java27 objArray[0] = new Integer(1); in main()
/art/test/ThreadStress/
DThreadStress.java107 Map<Operation, Integer> distribution = new HashMap<Operation, Integer>(); in main()
109 Integer ops = distribution.get(operation); in main()
/art/test/050-sync-test/src/
DMain.java131 private Integer[] mWaitOnMe; // any type of object will do
137 mWaitOnMe = new Integer[] { 1, 2 }; in SleepyThread()
/art/runtime/verifier/
Dmethod_verifier.cc1209 reg_line->SetRegisterType(arg_start + cur_arg, reg_types_.Integer()); in SetTypesFromSignature()
1738 work_line_->SetRegisterType(inst->VRegA_12x(), reg_types_.Integer()); in CodeFlowVerifyInstruction()
1783 work_line_->SetRegisterType(inst->VRegA_23x(), reg_types_.Integer()); in CodeFlowVerifyInstruction()
1795 work_line_->SetRegisterType(inst->VRegA_23x(), reg_types_.Integer()); in CodeFlowVerifyInstruction()
1806 work_line_->SetRegisterType(inst->VRegA_23x(), reg_types_.Integer()); in CodeFlowVerifyInstruction()
1825 work_line_->VerifyRegisterType(inst->VRegA_31t(), reg_types_.Integer()); in CodeFlowVerifyInstruction()
2005 VerifyAGet(inst, reg_types_.Integer(), true); in CodeFlowVerifyInstruction()
2027 VerifyAPut(inst, reg_types_.Integer(), true); in CodeFlowVerifyInstruction()
2049 VerifyISGet(inst, reg_types_.Integer(), true, false); in CodeFlowVerifyInstruction()
2071 VerifyISPut(inst, reg_types_.Integer(), true, false); in CodeFlowVerifyInstruction()
[all …]
/art/test/002-sleep/src/
DMain.java6 millis = Integer.parseInt(args[0]); in main()
/art/test/101-fibonacci/src/
DMain.java48 int x = Integer.parseInt(arg); in main()
/art/test/094-pattern/src/
DMain.java90 sb.append(Integer.toHexString((int) text.charAt(i))); in getStringAsHex()
/art/test/082-inline-execute/src/junit/framework/
DAssert.java201 assertEquals(message, new Integer(expected), new Integer(actual)); in assertEquals()

12