Searched refs:Short (Results 1 - 25 of 31) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/lang/
H A DShortTest.java21 final short min = Short.MIN_VALUE;
23 final short max = Short.MAX_VALUE;
24 assertTrue(Short.compare(max, max) == 0);
25 assertTrue(Short.compare(min, min) == 0);
26 assertTrue(Short.compare(zero, zero) == 0);
27 assertTrue(Short.compare(max, zero) > 0);
28 assertTrue(Short.compare(max, min) > 0);
29 assertTrue(Short.compare(zero, max) < 0);
30 assertTrue(Short.compare(zero, min) > 0);
31 assertTrue(Short
[all...]
/libcore/luni/src/main/java/java/lang/
H A DShort.java27 public final class Short extends Number implements Comparable<Short> { class in inherits:Number,Comparable
59 public static final Class<Short> TYPE
60 = (Class<Short>) short[].class.getComponentType();
61 // Note: Short.TYPE can't be set to "short.class", since *that* is
62 // defined to be "java.lang.Short.TYPE";
65 * Constructs a new {@code Short} from the specified string.
73 public Short(String string) throws NumberFormatException { method in class:Short
78 * Constructs a new {@code Short} with the specified primitive short value.
83 public Short(shor method in class:Short
[all...]
/libcore/support/src/test/java/tests/util/
H A DCallVerificationStack.java278 Short value = (Short) wrapper.getValue();
343 this.value = new Short(val);
/libcore/luni/src/test/java/tests/api/java/lang/reflect/
H A DFieldTest.java97 protected short shortField = Short.MAX_VALUE;
98 protected final short shortFField = Short.MAX_VALUE;
99 protected static short shortSField = Short.MAX_VALUE;
100 private final short shortPFField = Short.MAX_VALUE;
148 protected short shortField = Short.MAX_VALUE;
270 res = new Short(f.getShort(o));
317 f.setShort(o, ((Short) value).shortValue());
448 new Short((short) 1), new Character((char) 1), new Integer(1),
1114 val == Short.MAX_VALUE);
1160 assertEquals("Wrong value returned", Short
[all...]
H A DMethodTest.java716 param == Byte.TYPE || param == Short.TYPE
729 methods[i].invoke(testMethod, new Object[] { new Short(
731 assertTrue("invalid invoke with Short: " + methods[i],
732 param == Short.TYPE || param == Integer.TYPE
737 assertTrue("Short invalid exception: " + e,
739 assertTrue("Short invalid failure: " + methods[i],
755 param == Byte.TYPE || param == Short.TYPE
769 param == Byte.TYPE || param == Short.TYPE
787 param == Byte.TYPE || param == Short.TYPE
800 param == Byte.TYPE || param == Short
[all...]
/libcore/luni/src/main/java/java/lang/reflect/
H A DArray.java84 return Short.valueOf(((short[]) array)[index]);
414 } else if (value instanceof Short) {
415 setShort(array, index, ((Short) value).shortValue());
/libcore/luni/src/main/java/java/util/zip/
H A DZipFile.java289 int gpbf = Short.reverseBytes(is.readShort()) & 0xffff;
297 int fileNameLength = Short.reverseBytes(is.readShort()) & 0xffff;
298 int extraFieldLength = Short.reverseBytes(is.readShort()) & 0xffff;
/libcore/luni/src/main/java/java/io/
H A DEmulatedFieldsForDumping.java210 output.writeShort(fieldValue != null ? ((Short) fieldValue).shortValue() : 0);
H A DEmulatedFields.java350 return slot.defaulted ? defaultValue : ((Short) slot.fieldValue).shortValue();
517 slot.fieldValue = Short.valueOf(value);
/libcore/dalvik/src/main/java/dalvik/system/profiler/
H A DBinaryHprofWriter.java87 if (depth > Short.MAX_VALUE) {
89 + depth + " > " + Short.MAX_VALUE);
/libcore/luni/src/test/java/libcore/java/io/
H A DOldDataInputStreamTest.java308 os.writeShort(Short.MIN_VALUE);
312 (Short.MAX_VALUE + 1), dis.readUnsignedShort());
H A DOldRandomAccessFileTest.java680 raf.writeShort(Short.MIN_VALUE);
682 raf.writeShort(Short.MAX_VALUE);
683 raf.writeShort(Short.MIN_VALUE - 1);
684 raf.writeShort(Short.MAX_VALUE + 1);
688 Short.MIN_VALUE, raf.readShort());
692 Short.MAX_VALUE, raf.readShort());
/libcore/luni/src/main/java/java/util/
H A DFormatter.java162 * Byte, Character, Short, and Integer (and primitives that box to those types) are all acceptable
182 * Byte, Short, Integer, Long, and BigInteger (and primitives that box to those types) are all
464 * <td width="25%">Short 24-hour time ({@code %tH:%tM}).</td>
1427 if (arg instanceof Integer || arg instanceof Short || arg instanceof Byte) {
1435 if (arg instanceof Integer || arg instanceof Long || arg instanceof Short || arg instanceof Byte) {
1594 } else if (arg instanceof Byte || arg instanceof Short || arg instanceof Integer) {
1684 } else if (arg instanceof Short) {
1685 value = ((Short) arg).longValue();
1731 } else if (arg instanceof Short) {
H A DScanner.java872 cachedNextValue = Short.valueOf(intString, radix);
1460 * resulting String is passed to {@link Short#parseShort(String, int)}}
1480 if (obj instanceof Short) {
1482 return (Short) obj;
1489 shortValue = Short.parseShort(intString, radix);
/libcore/luni/src/test/java/libcore/java/sql/
H A DOldPreparedStatementTest.java1075 ps.setShort(1, Short.MAX_VALUE);
1078 st.execute("select * from type where Sint=" + Short.MAX_VALUE);
1089 ps.setShort(1, Short.MIN_VALUE);
1092 st.execute("select * from type where Sint=" + Short.MIN_VALUE);
1105 ps.setShort(1, Short.MIN_VALUE);
1113 ps1.setShort(1, Short.MAX_VALUE);
1117 ps2.setShort(1, Short.MAX_VALUE);
1120 st.execute("select * from type where IntVal=" + Short.MAX_VALUE);
H A DOldResultSetMetaDataTest.java78 assertEquals(Short.class.getName(), rsmd.getColumnClassName(1));
/libcore/luni/src/test/java/tests/api/java/util/
H A DIdentityHashMapTest.java305 Short s0 = new Short((short) 0);
H A DHashMapTest.java352 m.put(new Short((short) 0), "short");
356 new Short((short) 0)));
H A DArraysTest.java382 Arrays.fill(d, Short.MAX_VALUE);
385 d[i] == Short.MAX_VALUE);
393 short val = Short.MAX_VALUE;
786 Arrays.fill(d, Short.MAX_VALUE);
787 Arrays.fill(x, Short.MIN_VALUE);
789 Arrays.fill(x, Short.MAX_VALUE);
2328 listOfShort.add(new Short(shortArr[i]));
/libcore/dom/src/test/java/org/w3c/domts/
H A DLSDocumentBuilderFactory.java284 new Object[] {new Short( (short) 1), null});
/libcore/luni/src/main/java/libcore/reflect/
H A DAnnotationMember.java147 elementType = Short.class;
/libcore/luni/src/main/native/
H A Dlibcore_io_Memory.cpp207 PEEKER(jshort, Short, jshort, swapShorts);
259 POKER(jshort, Short, jshort, swapShorts);
/libcore/luni/src/main/java/java/net/
H A DNetworkInterface.java178 short prefixLength = Short.parseShort(line.substring(prefixLengthStart, prefixLengthEnd), 16);
/libcore/luni/src/main/java/java/text/
H A DNumberFormat.java272 * The number must be a subclass of {@code Number}. Instances of {@code Byte}, {@code Short},
295 if (object instanceof Byte || object instanceof Short || object instanceof Integer ||
/libcore/json/src/main/java/org/json/
H A DJSONObject.java764 o instanceof Short ||

Completed in 486 milliseconds

12