Home
last modified time | relevance | path

Searched refs:buff (Results 1 – 10 of 10) sorted by relevance

/dalvik/libcore/luni/src/test/java/tests/api/java/util/
DAbstractSequentialListTest.java331 final String buff[] = {"0", "1", "2", "3", "4", "5"}; in test_getI() local
337 return buff.length; in test_getI()
356 return buff[currPos]; in test_getI()
380 for (int i = 0; i < buff.length; i++) { in test_getI()
381 assertEquals(buff[i], asl.get(i)); in test_getI()
467 String buff[] = {"0", "1", "2", "3", "4", "5"}; in test_removeI()
472 return buff.length; in test_removeI()
491 return buff[currPos]; in test_removeI()
507 buff[currPos] = "removed element"; in test_removeI()
545 String buff[] = {"0", "1", "2", "3", "4", "5"}; in test_setILjava_lang_Object()
[all …]
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/provider/cert/
DX509CertFactoryImpl.java534 byte[] buff = new byte[size]; in decodePEM()
542 buff[index++] = (byte) ch; in decodePEM()
546 System.arraycopy(buff, 0, newbuff, 0, size); in decodePEM()
547 buff = newbuff; in decodePEM()
551 if (buff[index-1] != '\n') { in decodePEM()
589 buff = Base64.decode(buff, index); in decodePEM()
590 if (buff == null) { in decodePEM()
593 return buff; in decodePEM()
661 byte[] buff = readBytes(inStream, CERT_CACHE_SEED_LENGTH); in getCertificate()
663 if (buff == null) { in getCertificate()
[all …]
/dalvik/libcore/security/src/main/java/org/bouncycastle/asn1/x509/
DRoleSyntax.java218 StringBuffer buff = new StringBuffer("Name: " + this.getRoleNameAsString() + in toString() local
222 buff.append("N/A"); in toString()
227 buff.append('[').append(names[0]); in toString()
230 buff.append(", ").append(names[i]); in toString()
232 buff.append(']'); in toString()
234 return buff.toString(); in toString()
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
DSSLRecordProtocol.java240 byte[] buff = new byte[5+fragment.length]; in packetize()
241 buff[0] = type; in packetize()
243 buff[1] = version[0]; in packetize()
244 buff[2] = version[1]; in packetize()
246 buff[1] = 3; in packetize()
247 buff[2] = 1; in packetize()
249 buff[3] = (byte) ((0x00FF00 & fragment.length) >> 8); in packetize()
250 buff[4] = (byte) (0x0000FF & fragment.length); in packetize()
251 System.arraycopy(fragment, 0, buff, 5, fragment.length); in packetize()
252 return buff; in packetize()
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
DHttpURLConnectionTest.java102 byte[] buff = new byte[1024]; in run()
103 int num = socket.getInputStream().read(buff); in run()
108 num = socket.getInputStream().read(buff); in run()
113 num = socket.getInputStream().read(buff); in run()
115 String request = new String(buff, 0, num); in run()
/dalvik/libcore/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/
DCheckedInputStreamTest.java180 byte buff[] = new byte[50]; in test_read$byteII()
181 checkIn.read(buff, 10, 5); in test_read$byteII()
184 checkIn.read(buff, 10, 5); in test_read$byteII()
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
DHttpsURLConnectionTest.java1342 byte[] buff = new byte[2048]; in run()
1357 num = is.read(buff); in run()
1358 String message = new String(buff, 0, num); in run()
1367 num = is.read(buff); in run()
1368 message = new String(buff, 0, num); in run()
1390 num = is.read(buff); in run()
1400 num = is.read(buff); in run()
1402 message = new String(buff, 0, num); in run()
1436 num = is.read(buff); in run()
1437 message = new String(buff, 0, num); in run()
[all …]
/dalvik/vm/jdwp/
DJdwpAdb.c190 char buff[5]; in acceptConnection() local
204 snprintf(buff, sizeof(buff), "%04x", getpid()); in acceptConnection()
205 buff[4] = 0; in acceptConnection()
214 ret = send( netState->controlSock, buff, 4, 0 ); in acceptConnection()
218 LOGV("PID sent as '%.*s' to ADB\n", 4, buff); in acceptConnection()
/dalvik/libcore/luni/src/main/java/java/net/
DURLClassLoader.java993 byte[] buff = new byte[144]; in readLines()
999 lines.add(new String(buff, 0, pos, "UTF8")); //$NON-NLS-1$ in readLines()
1004 lines.add(new String(buff, 0, pos, "UTF8")); //$NON-NLS-1$ in readLines()
1010 if (pos == buff.length) { in readLines()
1011 byte[] newBuf = new byte[buff.length * 2]; in readLines()
1012 System.arraycopy(buff, 0, newBuf, 0, buff.length); in readLines()
1013 buff = newBuf; in readLines()
1015 buff[pos++] = (byte) next; in readLines()
1018 lines.add(new String(buff, 0, pos, "UTF8")); //$NON-NLS-1$ in readLines()
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherTest.java697 byte[] buff = new byte[1024]; in loadBytes()
699 while ((readlen = is.read(buff)) > 0) { in loadBytes()
700 out.write(buff, 0, readlen); in loadBytes()