/dalvik/libcore/security/src/main/java/org/bouncycastle/openssl/ |
H A D | PEMWriter.java | 77 char[] buf = new char[64]; 81 for (int i = 0; i < bytes.length; i += buf.length) 85 while (index != buf.length) 91 buf[index] = (char)bytes[i + index]; 94 this.write(buf, 0, index);
|
/dalvik/libcore/xml/src/main/java/org/apache/harmony/xml/dom/ |
H A D | InnerNodeImpl.java | 225 StringBuilder buf = new StringBuilder(); 226 getTextContent(buf); 227 return buf.toString(); 230 void getTextContent(StringBuilder buf) throws DOMException { argument 234 ((NodeImpl) child).getTextContent(buf);
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
H A D | ClassPathOpener.java | 207 byte[] buf = new byte[20000]; 233 int amt = in.read(buf); 238 baos.write(buf, 0, amt);
|
/dalvik/libcore/luni/src/main/java/java/io/ |
H A D | DataInputStream.java | 441 byte[] buf = new byte[utfSize]; 443 in.readFully(buf, 0, utfSize); 445 return Util.convertUTF8WithBuf(buf, out, 0, utfSize);
|
/dalvik/libcore/nio_char/src/test/java/tests/api/java/nio/charset/ |
H A D | Charset_TestGenerator.java | 155 char[] buf = new char[8]; field in class:Charset_TestGenerator.CodesGenerator3 159 buf[col] = (char) code; 165 System.out.println(buf);
|
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/ |
H A D | SHAOutputStream.java | 399 StringBuilder buf = new StringBuilder(); 400 buf.append('['); 402 buf.append(hexdigits.charAt((block[i] >>> 4) & 0xf)); 403 buf.append(hexdigits.charAt(block[i] & 0xf)); 405 buf.append(']'); 406 return buf.toString();
|
/dalvik/libcore/luni/src/main/native/ |
H A D | java_io_File.cpp | 125 LocalArray<512> buf(bufSize); 126 ssize_t len = readlink(&path[0], &buf[0], buf.size() - 1); 131 if (len < buf.size() - 1) { 134 buf[len] = '\0'; // readlink(2) doesn't NUL-terminate. 136 const jbyte* src = reinterpret_cast<const jbyte*>(&buf[0]);
|
/dalvik/libcore/luni/src/test/java/tests/api/java/io/ |
H A D | PushbackReaderTest.java | 53 char buf[] = new char[5]; 54 pbr.read(buf, 0, 5); 55 pbr.unread(buf); 211 char[] buf = ("01234567890123456789").toCharArray(); 214 tobj.read(buf, 6, 5); 215 assertEquals("Wrong value read!", "BEGIN", new String(buf, 6, 5)); 216 assertEquals("Too much read!", "012345BEGIN123456789", new String(buf)); 219 tobj.read(buf, 6, 5);
|
H A D | RandomAccessFileTest.java | 972 byte[] buf = new byte[testLength]; 984 raf.readFully(buf); 986 testString, new String(buf)); 989 raf.readFully(buf); 1003 raf.readFully(buf); 1029 byte[] buf = new byte[testLength]; 1041 raf.readFully(buf, 5, testLength - 10); 1043 assertEquals("Test 2: Incorrect bytes read;", 0, buf[i]); 1047 new String(buf, 5, testLength - 10)); 1051 raf.readFully(buf, [all...] |
H A D | SerializationStressTest0.java | 187 byte[] buf = new byte[255]; 194 ois.readFully(buf); 197 if (buf[i] != output[i]) 214 byte[] buf = new byte[256]; 221 ois.readFully(buf); 224 if (buf[i] != output[i]) 240 byte[] buf = new byte[10]; 260 byte[] buf = new byte[10]; 264 ois.read(buf, 0, 10); 266 assertEquals("Read incorrect bytes", "HelloWorld", new String(buf, [all...] |
H A D | PipedInputStreamTest.java | 318 byte[] buf = new byte[400]; 323 pis.read(buf, 0, 10); 338 pis.read(buf, 0, 400); 341 pw.bytes[i], buf[i]); 346 pis.read(buf, 0, 10);
|
H A D | InputStreamReaderTest.java | 118 char[] buf = new char[fileString.length()]; 119 fileString.getChars(0, fileString.length(), buf, 0); 120 osw.write(buf); 490 char[] buf = new char[8191]; 491 int bytesRead = isr.read(buf, 0, buf.length); 495 bytesRead = isr.read(buf, 0, buf.length);
|
/dalvik/tools/dmtracedump/ |
H A D | TraceDump.c | 1483 char buf[80]; local 1504 sprintf(buf, "[%d]", relative->index); 1506 int len = strlen(buf); 1509 sprintf(buf, "<a href=\"#m%d\">[%d]", 1524 space_ptr, buf, anchor_close, 1531 space_ptr, buf, anchor_close, 1541 space_ptr, buf, anchor_close, 1548 space_ptr, buf, anchor_close, 1805 char buf[40]; local 1835 sprintf(buf, "[ 2062 printHtmlField(char *buf, int width) argument 2168 char buf[80]; local 2209 char buf[80]; local 2400 char buf[80]; local 2440 char buf[80]; local [all...] |
/dalvik/libcore/nio/src/main/java/java/nio/ |
H A D | CharBuffer.java | 94 CharBuffer buf = BufferFactory.newCharBuffer(array); 95 buf.position = start; 96 buf.limit = start + len; 98 return buf;
|
/dalvik/libcore/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
H A D | ZipFileTest.java | 46 byte[] buf = new byte[512]; 50 iRead = is.read(buf, 0, buf.length); 51 if (iRead > 0) bs.write(buf, 0, iRead); 195 byte[] buf = new byte[4096]; 196 while ((result = in.read(buf)) != -1) { 197 out.write(buf, 0, result); 321 byte[] buf = new byte[256]; 322 r = in.read(buf); 324 assertEquals("incorrect contents", "This is also text", new String(buf, [all...] |
/dalvik/libcore/luni/src/main/java/java/util/ |
H A D | Properties.java | 293 char nextChar, buf[] = new char[40]; 311 // to buf 313 buf[offset++] = '\u0000'; 319 if (offset == buf.length) { 320 char[] newBuf = new char[buf.length * 2]; 321 System.arraycopy(buf, 0, newBuf, 0, offset); 322 buf = newBuf; 336 buf[offset++] = (char) unicode; 402 String temp = new String(buf, 0, offset); 446 buf[offse [all...] |
/dalvik/libcore/archive/src/main/native/ |
H A D | java_util_zip_Deflater.c | 160 jbyteArray buf, jint off, jint len, 175 (*env)->GetByteArrayRegion(env, buf, off, len, (jbyte*) stream->inaddr); 182 jbyteArray buf, int off, int len, 200 out = ((*env)->GetPrimitiveArrayCritical (env, buf, 0)); 206 ((*env)->ReleasePrimitiveArrayCritical (env, buf, out, 0)); 159 Java_java_util_zip_Deflater_setInputImpl(JNIEnv * env, jobject recv, jbyteArray buf, jint off, jint len, jlong handle) argument 181 Java_java_util_zip_Deflater_deflateImpl(JNIEnv * env, jobject recv, jbyteArray buf, int off, int len, jlong handle, int flushParm) argument
|
H A D | java_util_zip_Inflater.c | 105 jbyteArray buf, jint off, jint len, 123 (*env)->GetByteArrayRegion(env, buf, off, len, (jbyte*) baseAddr); 158 jbyteArray buf, int off, int len, 174 out = ((*env)->GetPrimitiveArrayCritical (env, buf, 0)); 181 ((*env)->ReleasePrimitiveArrayCritical (env, buf, out, 0)); 104 Java_java_util_zip_Inflater_setInputImpl(JNIEnv * env, jobject recv, jbyteArray buf, jint off, jint len, jlong handle) argument 157 Java_java_util_zip_Inflater_inflateImpl(JNIEnv * env, jobject recv, jbyteArray buf, int off, int len, jlong handle) argument
|
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
H A D | HandshakeProtocol.java | 350 * @param buf 352 protected void computerVerifyDataTLS(String label, byte[] buf) { argument 361 PRF.computePRF(buf, session.master_secret, 382 * @param buf 384 protected void computerVerifyDataSSLv3(byte[] sender, byte[] buf) { argument 402 System.arraycopy(md5.digest(b), 0, buf, 0, 16); 410 System.arraycopy(sha.digest(b), 0, buf, 16, 20);
|
/dalvik/libcore/xml/src/main/java/org/apache/xpath/axes/ |
H A D | WalkerFactory.java | 1285 StringBuffer buf = new StringBuffer(); 1286 buf.append("count: "+getStepCount(analysis)+" "); 1289 buf.append("NTANY|"); 1293 buf.append("PRED|"); 1297 buf.append("ANC|"); 1301 buf.append("ANCOS|"); 1305 buf.append("ATTR|"); 1309 buf.append("CH|"); 1313 buf.append("DESC|"); 1317 buf [all...] |
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/ |
H A D | String2Test.java | 54 char[] buf = { 'W', 'o', 'r', 'l', 'd' }; field in class:String2Test 199 assertEquals("Failed Constructor test", "World", new String(buf)); 213 char[] buf = { 'H', 'e', 'l', 'l', 'o', 'W', 'o', 'r', 'l', 'd' }; 214 String s = new String(buf, 0, buf.length); 618 byte[] buf = new byte[5]; 619 "Hello World".getBytes(6, 11, buf, 0); 620 assertEquals("Returned incorrect bytes", "World", new String(buf)); 657 byte[] buf = "Hello World".getBytes(); 658 assertEquals("Returned incorrect bytes", "Hello World", new String(buf)); [all...] |
H A D | StringBuffer2Test.java | 100 char buf[] = new char[4]; 101 "char".getChars(0, 4, buf, 0); 102 testBuffer.append(buf); 448 char[] buf = new char[10]; 449 testBuffer.getChars(4, 8, buf, 2); 450 assertTrue("Returned incorrect chars", new String(buf, 2, 4) 509 char buf[] = new char[4]; 510 "char".getChars(0, 4, buf, 0); 511 testBuffer.insert(15, buf);
|
/dalvik/libcore/xml/src/main/java/org/apache/xml/utils/ |
H A D | DOMHelper.java | 1276 FastStringBuffer buf = StringBufferPool.get(); 1281 getNodeData(node, buf); 1283 s = (buf.length() > 0) ? buf.toString() : ""; 1287 StringBufferPool.free(buf); 1307 * @param buf FastStringBuffer into which the contents of the text 1310 public static void getNodeData(Node node, FastStringBuffer buf) argument 1322 getNodeData(child, buf); 1328 buf.append(node.getNodeValue()); 1331 buf [all...] |
/dalvik/vm/ |
H A D | Debugger.c | 1094 * Set a range of elements in an array from the data in "buf". 1097 const u1* buf) 1118 copyValuesFromBE(data + firstIndex*width, buf, count, width); 1130 ObjectId id = dvmReadObjectId(&buf); 1497 void dvmDbgGetFieldValue(ObjectId objectId, FieldId fieldId, u1* buf, argument 1511 set1(buf, intVal != 0); 1516 set1(buf, intVal); 1522 set2BE(buf, intVal); 1528 set4BE(buf, intVal); 1534 dvmSetObjectId(buf, objectToObjectI 1096 dvmDbgSetArrayElements(ObjectId arrayId, int firstIndex, int count, const u1* buf) argument 1598 dvmDbgGetStaticFieldValue(RefTypeId refTypeId, FieldId fieldId, u1* buf, int expectedLen) argument 2346 dvmDbgGetLocalValue(ObjectId threadId, FrameId frameId, int slot, u1 tag, u1* buf, int expectedLen) argument 3008 dvmDbgDdmHandlePacket(const u1* buf, int dataLen, u1** pReplyBuf, int* pReplyLen) argument 3033 dvmDbgDdmSendChunk(int type, size_t len, const u1* buf) argument [all...] |
/dalvik/libcore/archive/src/main/java/java/util/jar/ |
H A D | JarVerifier.java | 111 public void write(byte[] buf, int off, int nbytes) { argument 112 digest.update(buf, off, nbytes); 239 * @param buf 243 void addMetaEntry(String name, byte[] buf) { argument 244 metaEntries.put(Util.toASCIIUpperCase(name), buf);
|