/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
H A D | ByteTest.java | 24 * java.lang.Byte#valueOf(byte) 27 assertEquals(new Byte(Byte.MIN_VALUE), Byte.valueOf(Byte.MIN_VALUE)); 28 assertEquals(new Byte(Byte.MAX_VALUE), Byte.valueOf(Byte.MAX_VALUE)); 29 assertEquals(new Byte((byt [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | ByteTest.java | 21 final byte min = Byte.MIN_VALUE; 23 final byte max = Byte.MAX_VALUE; 24 assertTrue(Byte.compare(max, max) == 0); 25 assertTrue(Byte.compare(min, min) == 0); 26 assertTrue(Byte.compare(zero, zero) == 0); 27 assertTrue(Byte.compare(max, zero) > 0); 28 assertTrue(Byte.compare(max, min) > 0); 29 assertTrue(Byte.compare(zero, max) < 0); 30 assertTrue(Byte.compare(zero, min) > 0); 31 assertTrue(Byte [all...] |
H A D | OldDoubleTest.java | 24 Double d = new Double(Byte.MAX_VALUE); 25 assertEquals("Returned incorrect byte value", Byte.MAX_VALUE, d.byteValue()); 26 d= new Double(Byte.MIN_VALUE); 27 assertEquals("Returned incorrect byte value", Byte.MIN_VALUE, d.byteValue());
|
/libcore/ojluni/src/main/java/java/lang/ |
H A D | Byte.java | 30 * The {@code Byte} class wraps a value of primitive type {@code byte} 31 * in an object. An object of type {@code Byte} contains a single 44 public final class Byte extends Number implements Comparable<Byte> { class in inherits:Number,Comparable 63 public static final Class<Byte> TYPE = (Class<Byte>) Class.getPrimitiveClass("byte"); 80 static final Byte cache[] = new Byte[-(-128) + 127 + 1]; 84 cache[i] = new Byte((byte)(i - 128)); 89 * Returns a {@code Byte} instanc 298 public Byte(byte value) { method in class:Byte 315 public Byte(String s) throws NumberFormatException { method in class:Byte [all...] |
H A D | Short.java | 479 public static final int BYTES = SIZE / Byte.SIZE;
|
H A D | Double.java | 130 public static final int BYTES = SIZE / Byte.SIZE;
|
H A D | Float.java | 128 public static final int BYTES = SIZE / Byte.SIZE;
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
H A D | PKCS9Attribute.java | 310 private static final Byte[][] PKCS9_VALUE_TAGS = { 312 {new Byte(DerValue.tag_IA5String)}, // EMailAddress 313 {new Byte(DerValue.tag_IA5String), // UnstructuredName 314 new Byte(DerValue.tag_PrintableString)}, 315 {new Byte(DerValue.tag_ObjectId)}, // ContentType 316 {new Byte(DerValue.tag_OctetString)}, // MessageDigest 317 {new Byte(DerValue.tag_UtcTime)}, // SigningTime 318 {new Byte(DerValue.tag_Sequence)}, // Countersignature 319 {new Byte(DerValue.tag_PrintableString), 320 new Byte(DerValu [all...] |
/libcore/ojluni/src/main/java/java/util/jar/ |
H A D | JarOutputStream.java | 138 return Byte.toUnsignedInt(b[off]) | ( Byte.toUnsignedInt(b[off+1]) << 8);
|
/libcore/ojluni/src/main/java/java/text/ |
H A D | NumberFormat.java | 238 number instanceof Short || number instanceof Byte || 904 * (or to <code>Byte.MAX_VALUE</code>, whichever is smaller), for compatibility 912 maxIntegerDigits = (maximumIntegerDigits > Byte.MAX_VALUE) ? 913 Byte.MAX_VALUE : (byte)maximumIntegerDigits; 914 minIntegerDigits = (minimumIntegerDigits > Byte.MAX_VALUE) ? 915 Byte.MAX_VALUE : (byte)minimumIntegerDigits; 916 maxFractionDigits = (maximumFractionDigits > Byte.MAX_VALUE) ? 917 Byte.MAX_VALUE : (byte)maximumFractionDigits; 918 minFractionDigits = (minimumFractionDigits > Byte.MAX_VALUE) ? 919 Byte [all...] |
/libcore/ojluni/src/main/java/java/util/zip/ |
H A D | ZipUtils.java | 130 return Byte.toUnsignedInt(b[off]) | (Byte.toUnsignedInt(b[off+1]) << 8);
|
H A D | InflaterInputStream.java | 127 return read(singleByteBuf, 0, 1) == -1 ? -1 : Byte.toUnsignedInt(singleByteBuf[0]);
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
H A D | JniTest.java | 181 final byte[] literals = {Byte.MAX_VALUE, Byte.MIN_VALUE, 0, -1}; 209 final short[] literals = {Byte.MAX_VALUE, Byte.MIN_VALUE, Short.MAX_VALUE, Short.MIN_VALUE, 0, -1}; 237 final int[] literals = {Byte.MAX_VALUE, Byte.MIN_VALUE, Short.MAX_VALUE, Short.MIN_VALUE, 266 final long[] literals = {Byte.MAX_VALUE, Byte.MIN_VALUE, Short.MAX_VALUE, Short.MIN_VALUE, 295 final float[] literals = {Byte.MAX_VALUE, Byte [all...] |
/libcore/ojluni/src/main/java/java/io/ |
H A D | ObjectStreamField.java | 113 case 'B': type = Byte.TYPE; break; 304 } else if (cl == Byte.TYPE) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
H A D | FieldTest.java | 107 protected byte byteField = Byte.MAX_VALUE; 108 protected static byte byteSField = Byte.MAX_VALUE; 109 protected final byte byteFField = Byte.MAX_VALUE; 110 private final byte bytePFField = Byte.MAX_VALUE; 260 res = new Byte(f.getByte(o)); 307 f.setByte(o, ((Byte) value).byteValue()); 432 Object values[] = { new Byte((byte) 1), new Byte((byte) 1), 621 assertTrue("Returned incorrect byte field value", val == Byte.MAX_VALUE); 653 assertEquals("Wrong value returned", Byte [all...] |
H A D | MethodTest.java | 713 methods[i].invoke(testMethod, new Object[] { new Byte( 715 assertTrue("invalid invoke with Byte: " + methods[i], 716 param == Byte.TYPE || param == Short.TYPE 722 assertTrue("Byte invalid exception: " + e, 724 assertTrue("Byte invalid failure: " + methods[i], 740 param == Byte.TYPE || param == Boolean.TYPE 755 param == Byte.TYPE || param == Short.TYPE 769 param == Byte.TYPE || param == Short.TYPE 787 param == Byte.TYPE || param == Short.TYPE 800 param == Byte [all...] |
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
H A D | MethodHandleAccessorsTest.java | 57 Byte, enum constant in enum:MethodHandleAccessorsTest.PrimitiveType 455 byte byteValue = value instanceof Byte ? ((Byte)value).byteValue() : (byte)0; 457 resultFor(primitive, PrimitiveType.Byte, accessor, AccessorType.IPUT)); 459 resultFor(primitive, PrimitiveType.Byte, accessor, AccessorType.SPUT)); 461 resultFor(primitive, PrimitiveType.Byte, accessor, AccessorType.IGET)); 463 resultFor(primitive, PrimitiveType.Byte, accessor, AccessorType.SGET)); 562 Byte boxed = new Byte(b); 564 valueHolder, PrimitiveType.Byte, boxe [all...] |
H A D | MethodHandleCombinersTest.java | 996 public static int spreadByte(String a, Byte b, byte c, 999 assertEquals(Byte.valueOf((byte) 1), b); 1107 String.class, Byte.class, byte.class, 2039 private static void checkBoxingCasts_delegate(boolean expected, Boolean z, Byte b, Character c, 2043 assertEquals(Byte.valueOf((byte) v), b); 2089 float.class, double.class, Byte.class)); 2091 (long) 0x5a5a, (float) 0x5a5a, (double) 0x5a5a, Byte.valueOf((byte) 0x5a)); 2226 MethodType.methodType(void.class, boolean.class, Boolean.class, Byte.class, 2235 mh.invoke(Boolean.valueOf(false), Boolean.valueOf(false), Byte.valueOf((byte) 0), 2238 mh.invoke(Boolean.valueOf(true), Boolean.valueOf(true), Byte [all...] |
/libcore/ojluni/src/main/java/java/lang/reflect/ |
H A D | Array.java | 187 return Byte.valueOf(((byte[]) array)[index]); 486 } else if (value instanceof Byte) { 487 setByte(array, index, ((Byte) value).byteValue());
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
H A D | AVA.java | 322 List<Byte> embeddedHex = new ArrayList<Byte>(); 329 Byte hexByte = null; 402 List<Byte> embeddedHex = new ArrayList<>(); 414 Byte hexByte = null; 532 private static Byte getEmbeddedHexPair(int c1, Reader in) 542 return new Byte((byte)((hi<<4) + lo)); 551 private static String getEmbeddedHexString(List<Byte> hexList)
|
/libcore/ojluni/src/main/java/sun/invoke/util/ |
H A D | Wrapper.java | 32 BYTE ( Byte.class, byte.class, 'B', (Byte)(byte)0, new byte[0], Format.signed( 8)), 527 case 'B': return Byte.valueOf((byte) xn.intValue()); 550 case 'B': return Byte.valueOf((byte) x);
|
/libcore/support/src/test/java/tests/util/ |
H A D | CallVerificationStack.java | 301 this.value = new Byte(val);
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldRandomAccessFileTest.java | 422 raf.writeByte(Byte.MIN_VALUE); 424 raf.writeByte(Byte.MAX_VALUE); 425 raf.writeByte(Byte.MIN_VALUE - 1); 426 raf.writeByte(Byte.MAX_VALUE + 1); 430 Byte.MIN_VALUE, raf.readByte()); 434 Byte.MAX_VALUE, raf.readByte());
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Random.java | 230 n = Math.min(len - i, Integer.SIZE/Byte.SIZE); 231 n-- > 0; rnd >>= Byte.SIZE)
|
/libcore/dom/src/test/java/org/w3c/domts/ |
H A D | DOMTest.java | 233 array[i] = Byte.parseByte(bytes.substring(i * 2, i * 2 + 2), 16);
|