/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | BufferedOutputStreamTest.java | 168 byte[] byteArray = new byte[10]; in test_write_$BII_Exception() 234 bos.write(byteArray, -1, -1); in test_write_$BII_Exception() 241 bos.write(byteArray, -1, 0); in test_write_$BII_Exception() 248 bos.write(byteArray, -1, 1); in test_write_$BII_Exception() 255 bos.write(byteArray, 0, -1); in test_write_$BII_Exception() 262 bos.write(byteArray, 0, byteArray.length + 1); in test_write_$BII_Exception() 269 bos.write(byteArray, 1, byteArray.length); in test_write_$BII_Exception() 276 bos.write(byteArray, -1, byteArray.length); in test_write_$BII_Exception() 283 bos.write(byteArray, byteArray.length, -1); in test_write_$BII_Exception() 288 bos.write(byteArray, byteArray.length, 0); in test_write_$BII_Exception() [all …]
|
D | DataInputStreamTest.java | 163 byte[] byteArray = new byte[fileString.length()]; in test_readFully$BII_Exception() 166 is.readFully(byteArray, -1, -1); in test_readFully$BII_Exception() 173 is.readFully(byteArray, 0, -1); in test_readFully$BII_Exception() 180 is.readFully(byteArray, 1, -1); in test_readFully$BII_Exception() 186 is.readFully(byteArray, -1, 0); in test_readFully$BII_Exception() 187 is.readFully(byteArray, 0, 0); in test_readFully$BII_Exception() 188 is.readFully(byteArray, 1, 0); in test_readFully$BII_Exception() 191 is.readFully(byteArray, -1, 1); in test_readFully$BII_Exception() 197 is.readFully(byteArray, 0, 1); in test_readFully$BII_Exception() 198 is.readFully(byteArray, 1, 1); in test_readFully$BII_Exception() [all …]
|
D | RandomAccessFileTest.java | 539 byte[] byteArray = new byte[10]; in test_write_$BII_Exception() 577 raf.write(byteArray, -1, -1); in test_write_$BII_Exception() 584 raf.write(byteArray, -1, 0); in test_write_$BII_Exception() 591 raf.write(byteArray, -1, 1); in test_write_$BII_Exception() 598 raf.write(byteArray, 0, -1); in test_write_$BII_Exception() 604 raf.write(byteArray, 0, 0); in test_write_$BII_Exception() 605 raf.write(byteArray, 0, byteArray.length); in test_write_$BII_Exception() 606 raf.write(byteArray, 1, 0); in test_write_$BII_Exception() 607 raf.write(byteArray, byteArray.length, 0); in test_write_$BII_Exception() 610 raf.write(byteArray, byteArray.length + 1, 0); in test_write_$BII_Exception() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | DeflaterTest.java | 71 byte byteArray[] = { 1, 3, 4, 7, 8 }; in test_deflate$B() 76 defl.setInput(byteArray); in test_deflate$B() 86 assertEquals(byteArray.length, totalIn); in test_deflate$B() 100 for (int i = 0; i < byteArray.length; i++) { in test_deflate$B() 101 assertEquals(byteArray[i], outPutInf[i]); in test_deflate$B() 104 0, outPutInf[byteArray.length]); in test_deflate$B() 113 byte byteArray[] = { 5, 2, 3, 7, 8 }; in test_deflate$BII() 120 defl.setInput(byteArray); in test_deflate$BII() 130 assertEquals(byteArray.length, totalIn); in test_deflate$BII() 144 for (int i = 0; i < byteArray.length; i++) { in test_deflate$BII() [all …]
|
D | CheckedOutputStreamTest.java | 55 byte byteArray[] = { 1, 2, 3, 'e', 'r', 't', 'g', 3, 6 }; in test_getChecksum() 61 chkOut.write(byteArray[4]); in test_getChecksum() 68 chkOut.write(byteArray, 5, 4); in test_getChecksum() 88 byte byteArray[] = { 1, 2, 3, 'e', 'r', 't', 'g', 3, 6 }; in test_writeI() 94 for (byte element : byteArray) { in test_writeI() 113 byte byteArray[] = { 1, 2, 3, 'e', 'r', 't', 'g', 3, 6 }; in test_write$BII() 119 chkOut.write(byteArray, 4, 5); in test_write$BII() 125 chkOut.write(byteArray, 4, 6); in test_write$BII()
|
D | DeflaterOutputStreamTest.java | 73 byte byteArray[] = { 1, 3, 4, 7, 8 }; in setUp() 76 deflate.setInput(byteArray); in setUp() 92 byte byteArray[] = { 1, 3, 4, 7, 8 }; in test_ConstructorLjava_io_OutputStreamLjava_util_zip_Deflater() 110 dos.write(byteArray); in test_ConstructorLjava_io_OutputStreamLjava_util_zip_Deflater() 142 byte byteArray[] = { 1, 3, 4, 7, 8, 3, 6 }; in test_ConstructorLjava_io_OutputStreamLjava_util_zip_DeflaterI() 175 dos.write(byteArray); in test_ConstructorLjava_io_OutputStreamLjava_util_zip_DeflaterI() 203 byte byteArray[] = { 1, 3, 4, 6 }; in test_close() 204 dos.write(byteArray); in test_close() 256 byte byteArray[] = { 1, 3, 4, 6 }; in test_finish() 257 dos.write(byteArray); in test_finish() [all …]
|
D | InflaterTest.java | 49 byte byteArray[] = { 5, 2, 3, 7, 8 }; in test_end() 53 inflate.setInput(byteArray); in test_end() 73 byte byteArray[] = { 1, 3, 4, 7, 8, 'e', 'r', 't', 'y', '5' }; in test_finished() 91 for (int i = 0; i < byteArray.length; i++) { in test_finished() 94 outPutInf[i], byteArray[i]); in test_finished() 97 0, outPutInf[byteArray.length]); in test_finished() 126 byte byteArray[] = { 1, 3, 5, 6, 7 }; in test_getRemaining() 130 inflate.setInput(byteArray); in test_getRemaining() 144 byte byteArray[] = { 1, 3, 4, 7, 8 }; in test_getTotalIn() 148 deflate.setInput(byteArray); in test_getTotalIn() [all …]
|
D | GZIPOutputStreamTest.java | 96 byte byteArray[] = { 3, 5, 2, 'r', 'g', 'e', 'f', 'd', 'e', 'w' }; in test_finish() 105 outGZIP.write(byteArray, 0, 1); in test_finish() 124 byte byteArray[] = { 3, 5, 2, 'r', 'g', 'e', 'f', 'd', 'e', 'w' }; in test_close() 132 outGZIP.write(byteArray, 0, 1); in test_close() 149 byte byteArray[] = { 3, 5, 2, 'r', 'g', 'e', 'f', 'd', 'e', 'w' }; in test_write$BII() 154 outGZIP.write(byteArray, 0, 10); in test_write$BII() 163 outGZIP.write(byteArray, 0, 11); in test_write$BII()
|
D | Adler32Test.java | 108 byte byteArray[] = { 1, 2 }; in test_update$B() 110 adl.update(byteArray); in test_update$B() 131 byte[] byteArray = { 1, 2, 3 }; in test_update$BII() 137 adl.update(byteArray, off, len); in test_update$BII() 145 adl.update(byteArray, off, lenError); in test_update$BII() 153 adl.update(byteArray, offError, len); in test_update$BII()
|
D | CRC32Test.java | 124 byte byteArray[] = { 1, 2 }; in test_update$B() 126 crc.update(byteArray); in test_update$B() 148 byte[] byteArray = { 1, 2, 3 }; in test_update$BII() 154 crc.update(byteArray, off, len); in test_update$BII() 162 crc.update(byteArray, off, lenError); in test_update$BII() 170 crc.update(byteArray, offError, len); in test_update$BII()
|
D | InflaterInputStreamTest.java | 87 byte byteArray[] = new byte[100]; in test_ConstructorLjava_io_InputStreamLjava_util_zip_Inflater() 93 inflatIP.read(byteArray, 0, 5);// only suppose to read in 5 bytes in test_ConstructorLjava_io_InputStreamLjava_util_zip_Inflater()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldDataInputStreamTest.java | 212 byte[] byteArray = new byte[testLength]; in test_readFully$BII_Exception() 215 is.readFully(byteArray, 0, -1); in test_readFully$BII_Exception() 222 is.readFully(byteArray, 0, byteArray.length + 1); in test_readFully$BII_Exception() 229 is.readFully(byteArray, 1, byteArray.length); in test_readFully$BII_Exception() 236 is.readFully(byteArray, -1, byteArray.length); in test_readFully$BII_Exception() 252 is.readFully(byteArray, 0, 1); in test_readFully$BII_Exception()
|
D | OldDataOutputStreamTest.java | 89 byte[] byteArray = new byte[10]; in test_write$BII_Exception() 99 os.write(byteArray, -1, 1); in test_write$BII_Exception() 106 os.write(byteArray, 0, -1); in test_write$BII_Exception() 113 os.write(byteArray, 1, 10); in test_write$BII_Exception()
|
D | OldBufferedOutputStreamTest.java | 124 byte[] byteArray = new byte[10]; in test_write$BII_Exception() 134 bos.write(byteArray, -1, 1); in test_write$BII_Exception() 141 bos.write(byteArray, 0, -1); in test_write$BII_Exception() 148 bos.write(byteArray, 1, 10); in test_write$BII_Exception()
|
/libcore/luni/src/test/java/libcore/sun/security/x509/ |
D | ReasonFlagsTest.java | 45 Function<byte[], Object> objectCreator = byteArray -> new ReasonFlags(byteArray); in testToString()
|
D | NetscapeCertTypeExtensionTest.java | 63 Function<byte[], Object> objectCreator = byteArray -> { in testToString() 65 return new NetscapeCertTypeExtension(byteArray); in testToString()
|
D | KeyUsageExtensionTest.java | 49 Function<byte[], Object> objectCreator = byteArray -> { in testToString() 51 return new KeyUsageExtension(byteArray); in testToString()
|
/libcore/luni/src/main/native/ |
D | NetworkUtilities.cpp | 77 ScopedLocalRef<jbyteArray> byteArray(env, env->NewByteArray(addressLength)); in sockaddrToInetAddress() local 78 if (byteArray.get() == NULL) { in sockaddrToInetAddress() 81 env->SetByteArrayRegion(byteArray.get(), 0, addressLength, in sockaddrToInetAddress() 90 NULL, byteArray.get(), scope_id); in sockaddrToInetAddress()
|
D | org_apache_harmony_xml_ExpatParser.cpp | 1047 ScopedByteArrayRO byteArray(env, xml); in ExpatParser_appendBytes() local 1048 if (byteArray.get() == NULL) { in ExpatParser_appendBytes() 1052 const char* bytes = reinterpret_cast<const char*>(byteArray.get()); in ExpatParser_appendBytes()
|
D | libcore_io_Linux.cpp | 438 ScopedLocalRef<jbyteArray> byteArray(env, env->NewByteArray(sll->sll_halen)); in makeSocketAddress() local 439 if (byteArray.get() == NULL) { in makeSocketAddress() 442 env->SetByteArrayRegion(byteArray.get(), 0, sll->sll_halen, in makeSocketAddress() 449 byteArray.get()); in makeSocketAddress()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ArraysTest.java | 63 byte[] byteArray; field in ArraysTest 122 Arrays.binarySearch(byteArray, counter) == counter); in test_binarySearch$BB() 129 byteArray[counter] -= 50; in test_binarySearch$BB() 133 Arrays.binarySearch(byteArray, (byte) (counter - 50)) == counter); in test_binarySearch$BB() 2521 byteArray = new byte[arraySize]; in setUp() 2531 byteArray[counter] = (byte) counter; in setUp() 2553 Arrays.binarySearch(byteArray, counter, arraySize, counter) == counter); in test_binarySearch$BIIB() 2557 Arrays.binarySearch(byteArray, 0, arraySize, (byte) -1)); in test_binarySearch$BIIB() 2560 Arrays.binarySearch(byteArray, (byte) arraySize) == -(arraySize + 1)); in test_binarySearch$BIIB() 2562 byteArray[counter] -= 50; in test_binarySearch$BIIB() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | ChannelsTest.java | 154 byte[] byteArray = new byte[bufSize]; in testNewChannelInputStream() 157 readres = this.fins.read(byteArray); in testNewChannelInputStream() 165 readres = this.fins.read(byteArray); in testNewChannelInputStream()
|
/libcore/ojluni/src/main/java/java/util/prefs/ |
D | FileSystemPreferences.java | 840 return "_" + Base64.byteArrayToAltBase64(byteArray(nodeName)); 848 private static byte[] byteArray(String s) {
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | Transformers.java | 786 private static Object byteArray(StackFrameReader reader, Class<?> ptypes[], in byteArray() method in Transformers.VarargsCollector 901 case 'B': return byteArray(callerFrameReader, callerPTypes, in makeArityArray() 924 case 'B': return byteArray(reader, types, startIdx, length); in collectArguments()
|