Searched refs:newBuf (Results 1 - 6 of 6) sorted by relevance

/dalvik/vm/jdwp/
H A DExpandBuf.c43 ExpandBuf* newBuf; local
45 newBuf = (ExpandBuf*) malloc(sizeof(*newBuf));
46 newBuf->storage = (u1*) malloc(kInitialStorage);
47 newBuf->curLen = 0;
48 newBuf->maxLen = kInitialStorage;
50 return newBuf;
/dalvik/libcore/luni/src/main/java/java/io/
H A DByteArrayOutputStream.java158 char[] newBuf = new char[size()];
159 for (int i = 0; i < newBuf.length; i++) {
160 newBuf[i] = (char) (((hibyte & 0xff) << 8) | (buf[i] & 0xff));
162 return new String(newBuf);
/dalvik/libcore/archive/src/main/java/java/util/jar/
H A DInitManifest.java217 CharBuffer newBuf = CharBuffer.allocate(cBuf.capacity() * 2);
218 newBuf.put(cBuf.array(), cBuf.arrayOffset(), cBuf.position());
219 cBuf = newBuf;
/dalvik/tools/hprof-conv/
H A DHprofConv.c111 ExpandBuf* newBuf = (ExpandBuf*) malloc(sizeof(ExpandBuf)); local
112 if (newBuf == NULL)
114 newBuf->storage = (unsigned char*) malloc(kInitialSize);
115 newBuf->curLen = 0;
116 newBuf->maxLen = kInitialSize;
118 return newBuf;
/dalvik/libcore/luni/src/main/java/java/util/
H A DProperties.java320 char[] newBuf = new char[buf.length * 2];
321 System.arraycopy(buf, 0, newBuf, 0, offset);
322 buf = newBuf;
/dalvik/vm/
H A DCheckJni.c977 u1* newBuf; local
981 newBuf = (u1*)malloc(newLen);
982 if (newBuf == NULL) {
988 pat = (u2*) newBuf;
993 memcpy(newBuf + kGuardLen / 2, buf, len);
1000 *(uLong*)newBuf = adler;
1003 pExtra = (GuardExtra*) newBuf;
1009 return newBuf + kGuardLen / 2;

Completed in 180 milliseconds