Home
last modified time | relevance | path

Searched refs:valueOf (Results 1 – 25 of 82) sorted by relevance

1234

/art/test/055-enum-performance/src/
DMain.java80 System.out.println(Enum.valueOf(c, "FOUR")); in preTest()
81 System.out.println(Enum.valueOf(c, "ONE")); in preTest()
82 System.out.println(Enum.valueOf(c, "FOURTEEN")); in preTest()
83 System.out.println(Enum.valueOf(c, "NINE")); in preTest()
84 System.out.println(Enum.valueOf(c, "FIVE")); in preTest()
85 System.out.println(Enum.valueOf(c, "TWELVE")); in preTest()
87 System.out.println(Enum.valueOf(c, "ZERO").getClass().getName()); in preTest()
135 Enum.valueOf(c, "ZERO"); in test1()
136 Enum.valueOf(c, "ONE"); in test1()
137 Enum.valueOf(c, "TWO"); in test1()
[all …]
/art/test/712-varhandle-invocations/src/
DVarHandleUnitTest.java54 assertEquals(Boolean.valueOf(expected), Boolean.valueOf(actual)); in assertEquals()
58 assertEquals(Byte.valueOf(expected), Byte.valueOf(actual)); in assertEquals()
62 assertEquals(Character.valueOf(expected), Character.valueOf(actual)); in assertEquals()
66 assertEquals(Short.valueOf(expected), Short.valueOf(actual)); in assertEquals()
70 assertEquals(Integer.valueOf(expected), Integer.valueOf(actual)); in assertEquals()
74 assertEquals(Long.valueOf(expected), Long.valueOf(actual)); in assertEquals()
78 assertEquals(Float.valueOf(expected), Float.valueOf(actual)); in assertEquals()
82 assertEquals(Double.valueOf(expected), Double.valueOf(actual)); in assertEquals()
/art/test/684-select-condition/src/
DMain.java22 checkValue(String.valueOf(doIntegerTest1(4)), "0"); in main()
23 checkValue(String.valueOf(doIntegerTest2(4)), "4"); in main()
27 checkValue(String.valueOf($noinline$test()), "1.0"); in main()
29 checkValue(String.valueOf($noinline$test()), "2.0"); in main()
37 float a = (float)Integer.valueOf(s); in doFloatingPointTest()
/art/test/956-methodhandles/src/
DMain.java883 assertEquals((byte) -77, (byte) mhByteValue.invokeExact(Byte.valueOf((byte) -77))); in testReturnValues()
884 assertEquals((byte) -77, (byte) mhByteValue.invoke(Byte.valueOf((byte) -77))); in testReturnValues()
945 assertEquals((short) 12131, (short) mhShortValue.invokeExact(Short.valueOf((short) 12131))); in testReturnValues()
946 assertEquals((short) 12131, (short) mhShortValue.invoke(Short.valueOf((short) 12131))); in testReturnValues()
952 assertEquals(true, (boolean) mhBooleanValue.invokeExact(Boolean.valueOf(true))); in testReturnValues()
953 assertEquals(true, (boolean) mhBooleanValue.invoke(Boolean.valueOf(true))); in testReturnValues()
954 assertEquals(false, (boolean) mhBooleanValue.invokeExact(Boolean.valueOf(false))); in testReturnValues()
955 assertEquals(false, (boolean) mhBooleanValue.invoke(Boolean.valueOf(false))); in testReturnValues()
1278 assertEquals("[false, true]", mh.invoke(vat, Boolean.valueOf(false), Boolean.valueOf(true))); in testVariableArity()
1284 assertEquals("[false, true]", mh.invoke(vat, Boolean.valueOf(false), (Boolean) null)); in testVariableArity()
[all …]
/art/test/640-checker-integer-valueof/src/
DMain.java24 return Integer.valueOf(a); in foo()
32 return Integer.valueOf(-42); in foo2()
40 return Integer.valueOf(42); in foo3()
48 return Integer.valueOf(55555); in foo4()
/art/test/175-alloc-big-bignums/src/
DMain.java25 final BigInteger big2_20 = BigInteger.valueOf(1024*1024); // 2^20 in main()
26 BigInteger huge = BigInteger.valueOf(1).shiftLeft(4_000_000); // ~0.5MB in main()
32 } else if (huge.mod(big2_20).compareTo(BigInteger.valueOf(nIters)) != 0) { in main()
/art/test/713-varhandle-invokers/src/
DMain.java103 fieldVarHandle, this, Integer.valueOf(3)); in run()
143 int i = (int) invokerMethodHandle.invoke(fieldVarHandle, this, Integer.valueOf(3)); in run()
147 i = (int) invokerMethodHandle.invoke(fieldVarHandle, this, Short.valueOf((short) 4)); in run()
205 int i = (int) invokerMethodHandle.invoke(fieldVarHandle, this, Integer.valueOf(3)); in run()
213 i = (int) invokerMethodHandle.invoke(fieldVarHandle, this, Byte.valueOf((byte) 34)); in run()
250 i = (int) invokerMethodHandle.invokeExact(fieldVarHandle, this, Integer.valueOf(3)); in run()
324 floatsArray[2] = Float.valueOf(4.0f); in run()
334 Float.valueOf(4.0f), in run()
398 floatsArray[2] = Float.valueOf(4.0f); in run()
406 Float.valueOf(4.0f), in run()
/art/test/ProfileTestMultiDex/
DSecond.java34 Integer valueOf(int i) { in valueOf() method in TestIntrinsicOatdump
38 return Integer.valueOf(i); in valueOf()
/art/test/100-reflect2/src/
DMain.java85 f.set(null, Boolean.valueOf(true)); in testFieldReflection()
87 f.set(null, Byte.valueOf((byte) 6)); in testFieldReflection()
89 f.set(null, Character.valueOf('z')); in testFieldReflection()
91 f.set(null, Double.valueOf(1.3)); in testFieldReflection()
93 f.set(null, Float.valueOf(1.3f)); in testFieldReflection()
95 f.set(null, Integer.valueOf(30)); in testFieldReflection()
97 f.set(null, Long.valueOf(62)); in testFieldReflection()
98 f.set(null, Integer.valueOf(62)); in testFieldReflection()
100 f.set(null, Short.valueOf((short) 14)); in testFieldReflection()
121 f.set(null, Integer.valueOf(14)); in testFieldReflection()
/art/test/407-arrays/src/
DTestCase.java27 String.valueOf(expected) + ", got " + String.valueOf(value)); in assertSame()
34 "Objects are the same: " + String.valueOf(expected)); in assertNotSame()
85 String msg = "Objects are the same: " + String.valueOf(expected); in assertNotEquals()
/art/test/406-fields/src/
DTestCase.java27 String.valueOf(expected) + ", got " + String.valueOf(value)); in assertSame()
34 "Objects are the same: " + String.valueOf(expected)); in assertNotSame()
85 String msg = "Objects are the same: " + String.valueOf(expected); in assertNotEquals()
/art/test/414-static-fields/src/
DTestCase.java27 String.valueOf(expected) + ", got " + String.valueOf(value)); in assertSame()
34 "Objects are the same: " + String.valueOf(expected)); in assertNotSame()
85 String msg = "Objects are the same: " + String.valueOf(expected); in assertNotEquals()
/art/test/412-new-array/src/
DTestCase.java27 String.valueOf(expected) + ", got " + String.valueOf(value)); in assertSame()
34 "Objects are the same: " + String.valueOf(expected)); in assertNotSame()
85 String msg = "Objects are the same: " + String.valueOf(expected); in assertNotEquals()
/art/test/466-get-live-vreg/src/
DMain.java56 if ($noinline$testLiveArgument(staticField3, Integer.valueOf(1)) != staticField3 + 1) { in main()
60 if ($noinline$testLiveArgument(staticField3,Integer.valueOf(1)) != staticField3 + 1) { in main()
/art/test/1959-redefine-object-instrument/src/art/
DBreakpoint.java135 int v = Integer.valueOf(line).compareTo(Integer.valueOf(other.line)); in compareTo()
139 return Long.valueOf(location).compareTo(Long.valueOf(other.location)); in compareTo()
/art/test/1941-dispose-stress/src/art/
DBreakpoint.java135 int v = Integer.valueOf(line).compareTo(Integer.valueOf(other.line)); in compareTo()
139 return Long.valueOf(location).compareTo(Long.valueOf(other.location)); in compareTo()
/art/test/1913-get-set-local-objects/src/art/
DBreakpoint.java135 int v = Integer.valueOf(line).compareTo(Integer.valueOf(other.line)); in compareTo()
139 return Long.valueOf(location).compareTo(Long.valueOf(other.location)); in compareTo()
/art/test/1925-self-frame-pop/src/art/
DBreakpoint.java135 int v = Integer.valueOf(line).compareTo(Integer.valueOf(other.line)); in compareTo()
139 return Long.valueOf(location).compareTo(Long.valueOf(other.location)); in compareTo()
/art/test/994-breakpoint-line/src/art/
DBreakpoint.java135 int v = Integer.valueOf(line).compareTo(Integer.valueOf(other.line)); in compareTo()
139 return Long.valueOf(location).compareTo(Long.valueOf(other.location)); in compareTo()
/art/test/995-breakpoints-throw/src/art/
DBreakpoint.java135 int v = Integer.valueOf(line).compareTo(Integer.valueOf(other.line)); in compareTo()
139 return Long.valueOf(location).compareTo(Long.valueOf(other.location)); in compareTo()
/art/test/997-single-step/src/art/
DBreakpoint.java135 int v = Integer.valueOf(line).compareTo(Integer.valueOf(other.line)); in compareTo()
139 return Long.valueOf(location).compareTo(Long.valueOf(other.location)); in compareTo()
/art/test/993-breakpoints/src/art/
DBreakpoint.java135 int v = Integer.valueOf(line).compareTo(Integer.valueOf(other.line)); in compareTo()
139 return Long.valueOf(location).compareTo(Long.valueOf(other.location)); in compareTo()
/art/test/1927-exception-event/src/art/
DBreakpoint.java135 int v = Integer.valueOf(line).compareTo(Integer.valueOf(other.line)); in compareTo()
139 return Long.valueOf(location).compareTo(Long.valueOf(other.location)); in compareTo()
/art/test/1953-pop-frame/src/art/
DBreakpoint.java135 int v = Integer.valueOf(line).compareTo(Integer.valueOf(other.line)); in compareTo()
139 return Long.valueOf(location).compareTo(Long.valueOf(other.location)); in compareTo()
/art/test/1928-exception-event-exception/src/art/
DBreakpoint.java135 int v = Integer.valueOf(line).compareTo(Integer.valueOf(other.line)); in compareTo()
139 return Long.valueOf(location).compareTo(Long.valueOf(other.location)); in compareTo()

1234