Home
last modified time | relevance | path

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

/dalvik/tools/hprof-conv/
DHprofConv.c284 static uint16_t get2BE(const unsigned char* buf) in get2BE() argument
288 val = (buf[0] << 8) | buf[1]; in get2BE()
295 static uint32_t get4BE(const unsigned char* buf) in get4BE() argument
299 val = (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3]; in get4BE()
306 static void set4BE(unsigned char* buf, uint32_t val) in set4BE() argument
308 buf[0] = val >> 24; in set4BE()
309 buf[1] = val >> 16; in set4BE()
310 buf[2] = val >> 8; in set4BE()
311 buf[3] = val; in set4BE()
333 const unsigned char* buf = origBuf; in computeClassDumpLen() local
[all …]
/dalvik/tools/dmtracedump/
DTraceDump.c1407 char buf[80]; in printInclusiveMethod() local
1428 sprintf(buf, "[%d]", relative->index); in printInclusiveMethod()
1430 int len = strlen(buf); in printInclusiveMethod()
1433 sprintf(buf, "<a href=\"#m%d\">[%d]", in printInclusiveMethod()
1448 space_ptr, buf, anchor_close, in printInclusiveMethod()
1455 space_ptr, buf, anchor_close, in printInclusiveMethod()
1465 space_ptr, buf, anchor_close, in printInclusiveMethod()
1472 space_ptr, buf, anchor_close, in printInclusiveMethod()
1729 char buf[40]; in printInclusiveProfile() local
1759 sprintf(buf, "[%d]", ii); in printInclusiveProfile()
[all …]
DCreateTestTrace.c77 char buf[BUF_SIZE]; variable
139 while (fgets(buf, BUF_SIZE, inputFp)) { in parseInputFile()
140 char *cp = buf; in parseInputFile()
171 while (fgets(buf, BUF_SIZE, inputFp)) { in parseInputFile()
177 char *cp = buf; in parseInputFile()
254 printf("Indent: %d; IndentLevel: %d; Line: %s", indent, indentLevel, buf); in parseInputFile()
271 fprintf(stderr, "Error: line %d: %s", linenum, buf); in parseInputFile()
282 fprintf(stderr, "Error: line %d: %s", linenum, buf); in parseInputFile()
290 fprintf(stderr, "Error: line %d: %s", linenum, buf); in parseInputFile()
/dalvik/libdex/
DSysUtil.cpp316 int sysWriteFully(int fd, const void* buf, size_t count, const char* logMsg) in sysWriteFully() argument
319 ssize_t actual = TEMP_FAILURE_RETRY(write(fd, buf, count)); in sysWriteFully()
327 buf = (const void*) (((const u1*) buf) + actual); in sysWriteFully()
339 unsigned char buf[kBufSize]; in sysCopyFileToFile() local
344 ssize_t actual = TEMP_FAILURE_RETRY(read(inFd, buf, getSize)); in sysCopyFileToFile()
351 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/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.java246 byte[] buf = new byte[20000]; in processArchive()
273 int amt = in.read(buf); in processArchive()
278 baos.write(buf, 0, amt); in processArchive()
/dalvik/dexdump/
DDexDump.cpp712 const DecodedInstruction* pDecInsn, char* buf, size_t bufSize) in indexString() argument
752 outSize = snprintf(buf, bufSize, "<unknown-index>"); in indexString()
759 outSize = snprintf(buf, bufSize, "<no-index>"); in indexString()
766 outSize = snprintf(buf, bufSize, "<index-varies> // thing@%0*x", in indexString()
771 outSize = snprintf(buf, bufSize, "%s // type@%0*x", in indexString()
774 outSize = snprintf(buf, bufSize, "<type?> // type@%0*x", width, index); in indexString()
779 outSize = snprintf(buf, bufSize, "\"%s\" // string@%0*x", in indexString()
782 outSize = snprintf(buf, bufSize, "<string?> // string@%0*x", in indexString()
790 outSize = snprintf(buf, bufSize, "%s.%s:%s // method@%0*x", in indexString()
795 outSize = snprintf(buf, bufSize, "<method?> // method@%0*x", in indexString()
[all …]
/dalvik/vm/
DProfile.h48 u1* buf; member
/dalvik/dx/etc/
Djasmin.jarMETA-INF/ META-INF/MANIFEST.MF jas/ jas/AnnotDefAttr.class AnnotDefAttr ...