Home
last modified time | relevance | path

Searched defs:bytes (Results 1 – 25 of 127) sorted by relevance

123456

/libcore/luni/src/test/java/libcore/java/io/
DOutputStreamWriterTest.java77 assertEquals((byte) 0x00, bytes[i++]); in testFlush() local
78 assertEquals((byte) 0x02, bytes[i++]); in testFlush() local
79 assertEquals((byte) 0x0b, bytes[i++]); in testFlush() local
80 assertEquals((byte) 0x9f, bytes[i++]); in testFlush() local
85 assertEquals((byte) 0xff, bytes[i++]); in testFlush() local
86 assertEquals((byte) 0xfd, bytes[i++]); in testFlush() local
/libcore/ojluni/src/main/java/java/security/spec/
DEdECPrivateKeySpec.java42 private final byte[] bytes; field in EdECPrivateKeySpec
55 public EdECPrivateKeySpec(NamedParameterSpec params, byte[] bytes) { in EdECPrivateKeySpec()
/libcore/ojluni/src/test/java/io/Serializable/records/
DStreamRefTest.java82 var bytes = serialize(a, b, c, d); in basicRef() local
103 var bytes = serialize(d, c, b, a); in reverseBasicRef() local
123 var bytes = serializeToBytes(a, b); in basicRefWithInvalidA() local
146 var bytes = serializeToBytes(b, a); in reverseBasicRefWithInvalidA() local
216 static void assertExpectedIntValue(int expectedValue, byte[] bytes, int offset) in assertExpectedIntValue()
223 static void updateIntValue(int expectedValue, int newValue, byte[] bytes, int offset) in updateIntValue()
/libcore/luni/src/test/java/libcore/java/util/
DBitSetTest.java97 private static void assertBitSet(BitSet bs, byte[] bytes, String s) { in assertBitSet()
119 private static void assertBitSet(byte[] bytes, String s) { in assertBitSet()
121 assertBitSet(BitSet.valueOf(bytes), bytes, s); in assertBitSet() local
123 assertBitSet(BitSet.valueOf(ByteBuffer.wrap(bytes)), bytes, s); in assertBitSet() local
128 assertBitSet(BitSet.valueOf(ByteBuffer.wrap(paddedBytes, 1, bytes.length)), bytes, s); in assertBitSet() local
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DByteBufferTest.java1279 assertTrue(Arrays.equals(char2bytes(value, buf.order()), bytes)); in testPutChar() local
1315 assertTrue(Arrays.equals(char2bytes(value, buf.order()), bytes)); in testPutCharint() local
1434 assertTrue(Arrays.equals(double2bytes(value, buf.order()), bytes)); in testPutDouble() local
1470 assertTrue(Arrays.equals(double2bytes(value, buf.order()), bytes)); in testPutDoubleint() local
1577 assertTrue(Arrays.equals(float2bytes(value, buf.order()), bytes)); in testPutFloat() local
1613 assertTrue(Arrays.equals(float2bytes(value, buf.order()), bytes)); in testPutFloatint() local
1719 assertTrue(Arrays.equals(int2bytes(value, buf.order()), bytes)); in testPutInt() local
1755 assertTrue(Arrays.equals(int2bytes(value, buf.order()), bytes)); in testPutIntint() local
1856 assertTrue(Arrays.equals(long2bytes(value, buf.order()), bytes)); in testPutLong() local
1892 assertTrue(Arrays.equals(long2bytes(value, buf.order()), bytes)); in testPutLongint() local
[all …]
/libcore/ojluni/annotations/flagged_api/java/security/
DSecureRandomSpi.annotated.java39 protected abstract void engineNextBytes(byte[] bytes); in engineNextBytes()
42 protected void engineNextBytes(byte[] bytes, java.security.SecureRandomParameters params) { throw n… in engineNextBytes()
/libcore/ojluni/src/main/java/java/security/
DSecureRandomSpi.java131 protected abstract void engineNextBytes(byte[] bytes); in engineNextBytes()
156 byte[] bytes, SecureRandomParameters params) { in engineNextBytes()
/libcore/ojluni/src/main/java/sun/net/
DTelnetInputStream.java128 public int read(byte bytes[]) throws IOException { in read()
136 public int read(byte bytes[], int off, int length) throws IOException { in read()
/libcore/ojluni/annotations/mmodule/sun/security/pkcs/
DPKCS7.annotated.java52 public PKCS7(byte[] bytes) throws sun.security.pkcs.ParsingException { throw new RuntimeException("… in PKCS7()
67 public sun.security.pkcs.SignerInfo verify(sun.security.pkcs.SignerInfo info, byte[] bytes) throws … in verify()
75 public sun.security.pkcs.SignerInfo[] verify(byte[] bytes) throws java.security.NoSuchAlgorithmExce… in verify()
/libcore/ojluni/annotations/hiddenapi/sun/security/util/
DManifestDigester.java34 public ManifestDigester(byte[] bytes) { in ManifestDigester()
42 private boolean isNameAttr(byte[] bytes, int start) { in isNameAttr()
75 java.security.MessageDigest md, byte[] bytes, int offset, int length) { in doOldStyle()
/libcore/ojluni/src/test/java/io/InputStream/
DTransferTo.java148 private static void checkTransferredContents(byte[] bytes) in checkTransferredContents()
187 private static InputStream input(byte... bytes) { in input()
191 private static InputStream input(int exceptionPosition, byte... bytes) { in input()
/libcore/ojluni/src/main/java/java/lang/
DProcessEnvironment.java154 protected final byte[] bytes; field in ProcessEnvironment.ExternalData
156 protected ExternalData(String str, byte[] bytes) { in ExternalData()
182 protected Variable(String str, byte[] bytes) { in Variable()
199 public static Variable valueOf(byte[] bytes) { in valueOf()
215 protected Value(String str, byte[] bytes) { in Value()
232 public static Value valueOf(byte[] bytes) { in valueOf()
/libcore/ojluni/src/main/java/java/sql/
DBlob.java181 int setBytes(long pos, byte[] bytes) throws SQLException; in setBytes()
217 int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException; in setBytes()
/libcore/ojluni/annotations/sdk/nullability/java/security/spec/
DEdECPrivateKeySpec.annotated.java30 …teKeySpec(@libcore.util.NonNull NamedParameterSpec params, @libcore.util.NonNull byte[] bytes) { t… in EdECPrivateKeySpec()
/libcore/luni/src/test/java/libcore/java/util/zip/
DZipInputStreamTest.java52 public static byte[] unzip(String name, byte[] bytes) throws IOException { in unzip()
159 private static byte[] zip(String[] names, byte[] bytes) throws IOException { in zip()
/libcore/ojluni/src/main/java/sun/security/util/
DManifestDigester.java110 public ManifestDigester(byte bytes[]) in ManifestDigester()
184 private boolean isNameAttr(byte bytes[], int start) in isNameAttr()
222 byte[] bytes, in doOldStyle()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DRandomImpl.java40 protected void engineNextBytes(byte[] bytes) { in engineNextBytes()
/libcore/ojluni/src/main/native/
DObjectInputStream.c61 jbyte *bytes; in Java_java_io_ObjectInputStream_bytesToFloats() local
129 jbyte *bytes; in Java_java_io_ObjectInputStream_bytesToDoubles() local
DObjectOutputStream.c60 jbyte *bytes; in Java_java_io_ObjectOutputStream_floatsToBytes() local
132 jbyte *bytes; in Java_java_io_ObjectOutputStream_doublesToBytes() local
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DSecureRandomSpiTest.java53 protected void engineNextBytes(byte[] bytes) {} in engineNextBytes()
/libcore/luni/src/test/java/tests/java/security/
DSecureClassLoaderTest.java230 public Class define(String name, byte[] bytes) { in define()
244 public Class<?> tryDefineClass(String name, byte[] bytes, int off, int len, in tryDefineClass()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DInet6AddressTest.java779 int bytesToInt(byte bytes[], int start) { in bytesToInt()
790 String byteArrayToHexString(byte bytes[], boolean leadingZeros) { in byteArrayToHexString()
802 void intToBytes(int value, byte bytes[], int start) { in intToBytes()
/libcore/ojluni/src/test/java/time/tck/java/time/serial/
DTCKOffsetDateTimeSerialization.java111 assertSerializedBySer(OffsetDateTime.of(ldt, ZoneOffset.ofHours(1)), bytes); in test_serialization_format() local
/libcore/ojluni/src/main/java/java/util/
DHexFormat.java340 public String formatHex(byte[] bytes) { in formatHex()
356 public String formatHex(byte[] bytes, int fromIndex, int toIndex) { in formatHex()
387 public <A extends Appendable> A formatHex(A out, byte[] bytes) { in formatHex()
407 public <A extends Appendable> A formatHex(A out, byte[] bytes, int fromIndex, int toIndex) { in formatHex()
448 private String formatOptDelimiter(byte[] bytes, int fromIndex, int toIndex) { in formatOptDelimiter()
/libcore/ojluni/src/test/java/util/EnumSet/
DEnumSetClassSerialization.java45 int[] bytes = { in main() local

123456