Home
last modified time | relevance | path

Searched refs:byteArray (Results 1 – 13 of 13) sorted by relevance

/libcore/luni/src/test/java/libcore/java/io/
DOldDataInputStreamTest.java212 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()
DOldDataOutputStreamTest.java89 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()
DOldBufferedOutputStreamTest.java124 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/main/native/
Djava_util_zip_CRC32.cpp26 static jlong CRC32_updateImpl(JNIEnv* env, jobject, jbyteArray byteArray, int off, int len, jlong c… in CRC32_updateImpl() argument
27 ScopedByteArrayRO bytes(env, byteArray); in CRC32_updateImpl()
Djava_util_zip_Adler32.cpp26 static jlong Adler32_updateImpl(JNIEnv* env, jobject, jbyteArray byteArray, int off, int len, jlong… in Adler32_updateImpl() argument
27 ScopedByteArrayRO bytes(env, byteArray); in Adler32_updateImpl()
DNetworkUtilities.cpp74 ScopedLocalRef<jbyteArray> byteArray(env, env->NewByteArray(addressLength)); in sockaddrToInetAddress() local
75 if (byteArray.get() == NULL) { in sockaddrToInetAddress()
78 env->SetByteArrayRegion(byteArray.get(), 0, addressLength, in sockaddrToInetAddress()
87 NULL, byteArray.get(), scope_id); in sockaddrToInetAddress()
Dlibcore_net_RawSocket.cpp112 ScopedByteArrayRO byteArray(env, packet); in RawSocket_sendPacket() local
113 if (byteArray.get() == NULL) { in RawSocket_sendPacket()
134 err = NET_FAILURE_RETRY(fd, sendto(intFd, byteArray.get() + offset, in RawSocket_sendPacket()
Dlibcore_icu_NativeCollation.cpp88 uint8_t byteArray[UCOL_MAX_BUFFER * 2]; in NativeCollation_getSortKey() local
90 uint8_t* usedByteArray = byteArray; in NativeCollation_getSortKey()
91 …ize = ucol_getSortKey(collator, source.get(), source.size(), usedByteArray, sizeof(byteArray) - 1); in NativeCollation_getSortKey()
92 if (byteArraySize > sizeof(byteArray) - 1) { in NativeCollation_getSortKey()
Dorg_apache_harmony_xml_ExpatParser.cpp1017 ScopedByteArrayRO byteArray(env, xml); in ExpatParser_appendBytes() local
1018 if (byteArray.get() == NULL) { in ExpatParser_appendBytes()
1022 const char* bytes = reinterpret_cast<const char*>(byteArray.get()); in ExpatParser_appendBytes()
Dorg_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp1912 ScopedLocalRef<jbyteArray> byteArray(env, env->NewByteArray(len)); in getCertificateBytes() local
1913 if (byteArray.get() == NULL) { in getCertificateBytes()
1916 ScopedByteArrayRW bytes(env, byteArray.get()); in getCertificateBytes()
1925 env->SetObjectArrayElement(joa, i, byteArray.get()); in getCertificateBytes()
1957 ScopedLocalRef<jbyteArray> byteArray(env, env->NewByteArray(len)); in getPrincipalBytes() local
1958 if (byteArray.get() == NULL) { in getPrincipalBytes()
1961 ScopedByteArrayRW bytes(env, byteArray.get()); in getPrincipalBytes()
1970 env->SetObjectArrayElement(joa, i, byteArray.get()); in getPrincipalBytes()
/libcore/luni/src/main/java/java/io/
DObjectOutputStream.java1154 byte[] byteArray = (byte[]) array; in writeNewArray()
1155 output.writeInt(byteArray.length); in writeNewArray()
1156 output.write(byteArray, 0, byteArray.length); in writeNewArray()
DObjectInputStream.java1469 byte[] byteArray = (byte[]) result; in readNewArray()
1470 input.readFully(byteArray, 0, size); in readNewArray()
/libcore/luni/src/test/java/tests/api/java/util/
DArraysTest.java45 byte[] byteArray; field in ArraysTest
104 Arrays.binarySearch(byteArray, counter) == counter); in test_binarySearch$BB()
111 byteArray[counter] -= 50; in test_binarySearch$BB()
115 Arrays.binarySearch(byteArray, (byte) (counter - 50)) == counter); in test_binarySearch$BB()
2362 byteArray = new byte[arraySize]; in setUp()
2372 byteArray[counter] = (byte) counter; in setUp()
2394 byteArray = null; in tearDown()