Home
last modified time | relevance | path

Searched refs:Short (Results 1 – 25 of 50) sorted by relevance

12

/art/test/567-checker-compare/src/
DMain.java377 expectEquals(-1, compareShorts(Short.MIN_VALUE, (short)(Short.MIN_VALUE + 1))); in testCompareShorts()
378 expectEquals(-1, compareShorts(Short.MIN_VALUE, (short)-1)); in testCompareShorts()
379 expectEquals(-1, compareShorts(Short.MIN_VALUE, (short)0)); in testCompareShorts()
380 expectEquals(-1, compareShorts(Short.MIN_VALUE, (short)1)); in testCompareShorts()
381 expectEquals(-1, compareShorts(Short.MIN_VALUE, (short)Short.MAX_VALUE)); in testCompareShorts()
386 expectEquals(0, compareShorts(Short.MIN_VALUE, Short.MIN_VALUE)); in testCompareShorts()
390 expectEquals(0, compareShorts(Short.MAX_VALUE, Short.MAX_VALUE)); in testCompareShorts()
395 expectEquals(1, compareShorts(Short.MAX_VALUE, Short.MIN_VALUE)); in testCompareShorts()
396 expectEquals(1, compareShorts(Short.MAX_VALUE, (short)-1)); in testCompareShorts()
397 expectEquals(1, compareShorts(Short.MAX_VALUE, (short)0)); in testCompareShorts()
[all …]
/art/test/712-varhandle-invocations/src/
DSampleValues.java33 public static final Short[] SHORTS =
34 new Short[] {(short) -32768, (short) -384, (short) 32767, (short) 0xaa55};
86 public static Short get_Short(int index) { in get_Short()
DVarHandleUnitTest.java66 assertEquals(Short.valueOf(expected), Short.valueOf(actual)); in assertEquals()
/art/test/904-object-allocation/
Dexpected.txt2 …ng.Integer/java.lang.Integer size 16, ObjectAllocated type java.lang.Short/java.lang.Short size 16]
/art/test/458-checker-instruct-simplification/src/
DMain.java2647 assertIntEquals(Short.MAX_VALUE, $noinline$floatToIntToShort((float)(Short.MIN_VALUE - 1))); in main()
2648 assertIntEquals(Short.MIN_VALUE, $noinline$floatToIntToShort((float)(Short.MAX_VALUE + 1))); in main()
2658 assertIntEquals(Short.MIN_VALUE, $noinline$shortToCharToShort(Short.MIN_VALUE)); in main()
2659 assertIntEquals(Short.MAX_VALUE, $noinline$shortToCharToShort(Short.MAX_VALUE)); in main()
2661 assertIntEquals(Short.MIN_VALUE, $noinline$shortToLongToInt(Short.MIN_VALUE)); in main()
2662 assertIntEquals(Short.MAX_VALUE, $noinline$shortToLongToInt(Short.MAX_VALUE)); in main()
2665 assertIntEquals(0, $noinline$shortToCharToByte(Short.MIN_VALUE)); in main()
2666 assertIntEquals(-1, $noinline$shortToCharToByte(Short.MAX_VALUE)); in main()
2686 assertIntEquals(Short.MAX_VALUE, $noinline$intAnd0x17fffToShort(Integer.MAX_VALUE)); in main()
2692 assertDoubleEquals((double)Short.MAX_VALUE, in main()
[all …]
/art/test/952-invoke-custom/src/
DTestReturnValues.java285 Short.MIN_VALUE, Short.MAX_VALUE, (short) Short.SIZE, (short) -Short.SIZE in testShortReturnValues()
/art/test/460-multiple-returns3/src/
DMain.java27 short result = (Short) m.invoke(null); in main()
/art/test/564-checker-bitcount/src/
DMain.java105 int signExtensionSize = Integer.SIZE - Short.SIZE;
107 int signBit = Short.SIZE - 1;
123 for (int i = 0; i < Short.SIZE; i++) {
/art/test/566-checker-signum/src-art/
DMain.java114 expectEquals(-1, signShort((short)Short.MIN_VALUE)); in testSignShort()
120 expectEquals(1, signShort((short)Short.MAX_VALUE)); in testSignShort()
/art/test/045-reflect-array/src/
DMain.java126 Object shortArray = Array.newInstance(Short.TYPE, 1); in testSingleShort()
132 Short box = (Short) Array.get(shortArray, 0); in testSingleShort()
/art/test/904-object-allocation/src/art/
DTest904.java38 Short.class.getName(); in prefetchClassNames()
64 l.add(new Short((short)0)); in doTest()
/art/tools/dexfuzz/src/dexfuzz/program/
DCodeTranslator.java214 private Map<Short,Integer> createTryHandlerOffsetToIndexMap(CodeItem codeItem) { in createTryHandlerOffsetToIndexMap()
216 List<Short> uniqueOffsets = new ArrayList<Short>(); in createTryHandlerOffsetToIndexMap()
241 Map<Short,Integer> offsetIndexMap = new HashMap<Short,Integer>(); in createTryHandlerOffsetToIndexMap()
253 Map<Short,Integer> offsetIndexMap = createTryHandlerOffsetToIndexMap(codeItem); in readTryBlocks()
359 Map<Short,Integer> offsetIndexMap = createTryHandlerOffsetToIndexMap(codeItem); in updateTryBlocks()
/art/test/959-invoke-polymorphic-accessors/src/
DMain.java86 Short, enumConstant
502 short shortValue = value instanceof Short ? ((Short) value).shortValue() : (short) 0; in tryAccessor()
504 resultFor(primitive, PrimitiveType.Short, accessor, AccessorType.IPUT)); in tryAccessor()
506 resultFor(primitive, PrimitiveType.Short, accessor, AccessorType.SPUT)); in tryAccessor()
508 resultFor(primitive, PrimitiveType.Short, accessor, AccessorType.IGET)); in tryAccessor()
510 resultFor(primitive, PrimitiveType.Short, accessor, AccessorType.SGET)); in tryAccessor()
614 Short boxed = new Short(s); in main()
616 valueHolder, PrimitiveType.Short, boxed, AccessorType.IPUT); in main()
618 valueHolder, PrimitiveType.Short, boxed, AccessorType.IGET); in main()
621 valueHolder, PrimitiveType.Short, boxed, AccessorType.SPUT); in main()
[all …]
/art/test/044-proxy/src/
DReturnsAndArgPassing.java139 myHandler.returnType = Short.class; in testProxyReturns()
140 check(proxyMyInterface.shortFoo() == Short.MAX_VALUE); in testProxyReturns()
144 check(proxyMyInterface.shortBar() == Short.MIN_VALUE); in testProxyReturns()
386 myHandler.returnType = Short.class; // Short -> byte == fail in testProxyReturns()
/art/test/ti-agent/
Dscoped_primitive_array.h96 INSTANTIATE_SCOPED_PRIMITIVE_ARRAY_RO(jshort, Short);
146 INSTANTIATE_SCOPED_PRIMITIVE_ARRAY_RW(jshort, Short);
/art/test/684-checker-simd-dotprod/src/other/
DTestVarious.java392 final short MAX_S = Short.MAX_VALUE; in run()
393 final short MIN_S = Short.MAX_VALUE; in run()
DTestCharShort.java507 final short MAX_S = Short.MAX_VALUE; in run()
508 final short MIN_S = Short.MAX_VALUE; in run()
/art/test/988-method-trace/src/art/
DTest988Intrinsics.java38 java.lang.Short.class.toString(); in initialize()
80 java.lang.Short.reverseBytes((short)0); in test()
/art/test/082-inline-execute/src/junit/framework/
DAssert.java186 assertEquals(message, new Short(expected), new Short(actual)); in assertEquals()
/art/test/021-string2/src/junit/framework/
DAssert.java186 assertEquals(message, new Short(expected), new Short(actual)); in assertEquals()
/art/test/093-serialization/src/
DMain.java113 Short eight;
/art/test/956-methodhandles/src/
DMain.java929 Short.class, "valueOf", MethodType.methodType(Short.class, short.class)); in testReturnValues()
931 (short) -7890, ((Short) mhShortValueOf.invokeExact((short) -7890)).shortValue()); in testReturnValues()
932 assertEquals((short) -7890, ((Short) mhShortValueOf.invoke((short) -7890)).shortValue()); in testReturnValues()
944 lookup.findVirtual(Short.class, "shortValue", MethodType.methodType(short.class)); 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()
1087 Short s = (Short) mh.invokeExact(LARGE, SMALL); in testPrimitiveReturnValueConversions()
1092 Short s = (Short) mh.invoke(LARGE, SMALL); in testPrimitiveReturnValueConversions()
1314 mh.invoke(vat, Short.MAX_VALUE, Short.MIN_VALUE, Short.valueOf((short) 0))); in testVariableArity()
/art/test/800-smali/smali/
DsameFieldNames.smali20 .field static public a:Ljava/lang/Short;
/art/runtime/verifier/
Dreg_type_cache-inl.h58 inline const ShortType& RegTypeCache::Short() { in Short() function
/art/test/082-inline-execute/src/
DMain.java1279 Short.reverseBytes((short)0x1357);
1280 Assert.assertEquals(Short.reverseBytes((short)0x0000), (short)0x0000);
1281 Assert.assertEquals(Short.reverseBytes((short)0xffff), (short)0xffff);
1282 Assert.assertEquals(Short.reverseBytes((short)0x8000), (short)0x0080);
1283 Assert.assertEquals(Short.reverseBytes((short)0x0080), (short)0x8000);
1284 Assert.assertEquals(Short.reverseBytes((short)0x0123), (short)0x2301);
1285 Assert.assertEquals(Short.reverseBytes((short)0x4567), (short)0x6745);
1286 Assert.assertEquals(Short.reverseBytes((short)0x89ab), (short)0xab89);
1287 Assert.assertEquals(Short.reverseBytes((short)0xcdef), (short)0xefcd);
1436 poke_short = io_memory.getDeclaredMethod("pokeShort", Long.TYPE, Short.TYPE, Boolean.TYPE);

12