Home
last modified time | relevance | path

Searched refs:buf (Results 1 – 9 of 9) sorted by relevance

/dalvik/tools/hprof-conv/
DHprofConv.c289 static uint16_t get2BE(const unsigned char* buf) in get2BE() argument
293 val = (buf[0] << 8) | buf[1]; in get2BE()
300 static uint32_t get4BE(const unsigned char* buf) in get4BE() argument
304 val = (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3]; in get4BE()
311 static void set4BE(unsigned char* buf, uint32_t val) in set4BE() argument
313 buf[0] = val >> 24; in set4BE()
314 buf[1] = val >> 16; in set4BE()
315 buf[2] = val >> 8; in set4BE()
316 buf[3] = val; in set4BE()
338 const unsigned char* buf = origBuf; in computeClassDumpLen() local
[all …]
/dalvik/libdex/
DSysUtil.cpp328 int sysWriteFully(int fd, const void* buf, size_t count, const char* logMsg) in sysWriteFully() argument
331 ssize_t actual = TEMP_FAILURE_RETRY(write(fd, buf, count)); in sysWriteFully()
339 buf = (const void*) (((const u1*) buf) + actual); in sysWriteFully()
351 unsigned char buf[kBufSize]; in sysCopyFileToFile() local
356 ssize_t actual = TEMP_FAILURE_RETRY(read(inFd, buf, getSize)); in sysCopyFileToFile()
363 if (sysWriteFully(outFd, buf, getSize, "sysCopyFileToFile") != 0) in sysCopyFileToFile()
DSysUtil.h101 int sysWriteFully(int fd, const void* buf, size_t count, const char* logMsg);
/dalvik/tools/dexdeps/src/com/android/dexdeps/
DOutput.java298 char[] buf = new char[targetLen + arrayDepth * 2]; in descriptorToDot() local
304 buf[i] = (ch == '/') ? '.' : ch; in descriptorToDot()
309 buf[i++] = '['; in descriptorToDot()
310 buf[i++] = ']'; in descriptorToDot()
312 assert i == buf.length; in descriptorToDot()
314 return new String(buf); in descriptorToDot()
/dalvik/dexdump/
DDexDump.cpp713 char* buf = (char*)malloc(bufSize); in getProtoInfo() local
714 if (buf == NULL) { in getProtoInfo()
718 buf[0] = '\0'; in getProtoInfo()
724 pProtoInfo->parameterTypes = buf; in getProtoInfo()
730 free(buf); in getProtoInfo()
737 char* newBuf = (char*)realloc(buf, newUsed); in getProtoInfo()
739 free(buf); in getProtoInfo()
742 buf = newBuf; in getProtoInfo()
745 memcpy(buf + bufUsed - 1, param, paramLen + 1); in getProtoInfo()
749 pProtoInfo->parameterTypes = buf; in getProtoInfo()
[all …]
/dalvik/dx/src/com/android/dx/util/
DTwoColumnOutput.java232 private static void appendNewlineIfNecessary(StringBuffer buf, in appendNewlineIfNecessary() argument
235 int len = buf.length(); in appendNewlineIfNecessary()
237 if ((len != 0) && (buf.charAt(len - 1) != '\n')) { in appendNewlineIfNecessary()
/dalvik/dexgen/src/com/android/dexgen/util/
DTwoColumnOutput.java232 private static void appendNewlineIfNecessary(StringBuffer buf, in appendNewlineIfNecessary() argument
235 int len = buf.length(); in appendNewlineIfNecessary()
237 if ((len != 0) && (buf.charAt(len - 1) != '\n')) { in appendNewlineIfNecessary()
/dalvik/dx/src/com/android/dx/cf/direct/
DClassPathOpener.java261 byte[] buf = new byte[20000]; in processArchive()
275 while ((read = in.read(buf)) != -1) { in processArchive()
276 baos.write(buf, 0, read); in processArchive()
/dalvik/dx/etc/
Djasmin.jarMETA-INF/ META-INF/MANIFEST.MF jas/ jas/AnnotDefAttr.class AnnotDefAttr ...