Home
last modified time | relevance | path

Searched refs:Integer (Results 1 – 25 of 46) 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/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()
DMain.java25 Integer result = AccessController.doPrivileged(priv); in main()
/art/test/082-inline-execute/src/
DMain.java318 Assert.assertEquals(Math.abs(Integer.MAX_VALUE), Integer.MAX_VALUE);
319 Assert.assertEquals(Math.abs(Integer.MIN_VALUE), Integer.MIN_VALUE);
320 Assert.assertEquals(Math.abs(Integer.MIN_VALUE - 1), Integer.MAX_VALUE);
321 Assert.assertEquals(Math.abs(Integer.MIN_VALUE + 1), Integer.MAX_VALUE);
337 Assert.assertEquals(Math.min(0, Integer.MAX_VALUE), 0);
338 Assert.assertEquals(Math.min(Integer.MIN_VALUE, 0), Integer.MIN_VALUE);
339 Assert.assertEquals(Math.min(Integer.MIN_VALUE, Integer.MAX_VALUE), Integer.MIN_VALUE);
346 Assert.assertEquals(Math.max(0, Integer.MAX_VALUE), Integer.MAX_VALUE);
347 Assert.assertEquals(Math.max(Integer.MIN_VALUE, 0), 0);
348 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/004-InterfaceTest/src/
DMain.java23 Integer intobj = new Integer(0); in test_virtual()
34 Integer intobj = new Integer(0); in test_interface()
/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 …]
/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/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/compiler/sea_ir/types/
Dtype_inference_visitor_test.cc40 const Type* int_type = &type_cache.Integer(); in TEST_F()
52 const Type* int_type = &type_cache.Integer(); in TEST_F()
67 const Type* new_type = &type_cache.Integer(); in TEST_F()
71 EXPECT_TRUE(merged_type == &type_cache.Integer()); in TEST_F()
96 const Type* int_type = &type_cache.Integer(); in TEST_F()
101 EXPECT_TRUE(merged_type == &type_cache.Integer()); in TEST_F()
113 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()
/art/test/407-arrays/src/
DMain.java28 ensureThrows(new boolean[2], Integer.MIN_VALUE); in main()
29 ensureThrows(new boolean[2], Integer.MAX_VALUE); in main()
107 assertTrue(exception.toString().contains(Integer.toString(index))); in ensureThrows()
117 assertTrue(exception.toString().contains(Integer.toString(index))); in ensureThrows()
/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/004-ThreadStress/src/
DMain.java107 Map<Operation, Integer> distribution = new HashMap<Operation, Integer>(); in main()
109 Integer ops = distribution.get(operation); in main()
272 int pid = (Integer)getpid.invoke(null); in SIGQUIT()
276 int sigquit = (Integer)sigquitField.get(null); in SIGQUIT()
/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/004-NativeAllocations/src/
DMain.java54 …egister_native_allocation = vm_runtime.getDeclaredMethod("registerNativeAllocation", Integer.TYPE); in main()
55 register_native_free = vm_runtime.getDeclaredMethod("registerNativeFree", Integer.TYPE); in main()
/art/test/099-vmdebug/src/
DMain.java112 Integer.TYPE, Integer.TYPE, Boolean.TYPE, Integer.TYPE);
/art/runtime/verifier/
Dmethod_verifier.cc1253 reg_line->SetRegisterType(arg_start + cur_arg, reg_types_.Integer()); in SetTypesFromSignature()
1805 work_line_->SetRegisterType(inst->VRegA_12x(), reg_types_.Integer()); in CodeFlowVerifyInstruction()
1852 work_line_->SetRegisterType(inst->VRegA_23x(), reg_types_.Integer()); in CodeFlowVerifyInstruction()
1864 work_line_->SetRegisterType(inst->VRegA_23x(), reg_types_.Integer()); in CodeFlowVerifyInstruction()
1875 work_line_->SetRegisterType(inst->VRegA_23x(), reg_types_.Integer()); in CodeFlowVerifyInstruction()
1894 work_line_->VerifyRegisterType(inst->VRegA_31t(), reg_types_.Integer()); in CodeFlowVerifyInstruction()
2094 VerifyAGet(inst, reg_types_.Integer(), true); in CodeFlowVerifyInstruction()
2116 VerifyAPut(inst, reg_types_.Integer(), true); in CodeFlowVerifyInstruction()
2138 VerifyISFieldAccess<FieldAccessType::kAccGet>(inst, reg_types_.Integer(), true, false); in CodeFlowVerifyInstruction()
2161 VerifyISFieldAccess<FieldAccessType::kAccPut>(inst, reg_types_.Integer(), true, false); in CodeFlowVerifyInstruction()
[all …]
/art/test/046-reflect/src/
DMain.java32 public Main(ArrayList<Integer> stuff) {} in Main()
49 + Integer.toHexString(meth.getModifiers())); in printMethodInfo()
59 + Integer.toHexString(field.getModifiers())); in printFieldInfo()
155 Integer boxval; in run()
156 boxval = (Integer) meth.invoke(instance, argList); in run()
255 Integer boxedIntVal = (Integer) field.get(instance); in run()
258 field.set(instance, new Integer(20202)); in run()
362 args = new Object[] { new Integer(7), new Float(3.3333) }; in run()
491 public Map<Integer,String> fancyMethod(ArrayList<String> blah) { return null; } in fancyMethod()
/art/test/050-sync-test/src/
DMain.java135 private Integer[] mWaitOnMe; // any type of object will do
141 mWaitOnMe = new Integer[] { 1, 2 }; in SleepyThread()
/art/test/004-JniTest/src/
DMain.java160 if (!nativeIsAssignableFrom(int.class, Integer.TYPE)) { in testIsAssignableFromOnPrimitiveTypes()
165 if (!nativeIsAssignableFrom(Integer.TYPE, int.class)) { in testIsAssignableFromOnPrimitiveTypes()
/art/test/019-wrong-array-type/src/
DMain.java27 objArray[0] = new Integer(1); in main()
/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()

12