/dalvik/vm/ |
H A D | Bits.h | 234 INLINE int readUtf8String(unsigned char const** ppSrc, char* buf, size_t bufLen) argument 239 memcpy(buf, *ppSrc, copyLen); 240 buf[copyLen] = '\0'; 255 char* buf; local 257 buf = (char*) malloc(length+1); 259 memcpy(buf, *ppSrc, length); 260 buf[length] = '\0'; 265 return buf; 272 INLINE void set1(u1* buf, u1 val) argument 274 *buf 280 set2BE(u1* buf, u2 val) argument 289 set4BE(u1* buf, u4 val) argument 300 set8BE(u1* buf, u8 val) argument 315 set2LE(u1* buf, u2 val) argument 324 set4LE(u1* buf, u4 val) argument 335 set8LE(u1* buf, u8 val) argument 350 setUtf8String(u1* buf, const u1* str) argument [all...] |
H A D | Ddm.cpp | 29 * "buf" contains a full JDWP packet, possibly with multiple chunks. We 39 bool dvmDdmHandlePacket(const u1* buf, int dataLen, u1** pReplyBuf, argument 68 memcpy(dataArray->contents, buf, dataLen); 146 ALOGV("dvmHandleDdm returning type=%.4s buf=%p len=%d", 262 u1 buf[256]; local 280 if (stringLen > (sizeof(buf) - sizeof(u4)*2) / 2) { 281 stringLen = (sizeof(buf) - sizeof(u4)*2) / 2; 285 set4BE(&buf[0x00], thread->threadId); 286 set4BE(&buf[0x04], stringLen); 289 outChars = (u2*)(void*)&buf[ 323 u1 buf[bufLen]; local 378 u1* buf = tmpBuf; local [all...] |
H A D | Profile.cpp | 149 static inline void storeShortLE(u1* buf, u2 val) argument 151 *buf++ = (u1) val; 152 *buf++ = (u1) (val >> 8); 154 static inline void storeIntLE(u1* buf, u4 val) argument 156 *buf++ = (u1) val; 157 *buf++ = (u1) (val >> 8); 158 *buf++ = (u1) (val >> 16); 159 *buf++ = (u1) (val >> 24); 161 static inline void storeLongLE(u1* buf, u8 val) argument 163 *buf [all...] |
H A D | StdioConverter.cpp | 36 char buf[kMaxLine+1]; member in struct:BufferedData 214 actual = read(fd, data->buf + data->count, want); 228 char* cp = data->buf; 229 const char* start = data->buf; 234 //ALOGW("GOT %d at %d '%s'", cp - start, start - data->buf, start); 243 if (start == data->buf && data->count == kMaxLine) { 244 data->buf[kMaxLine] = '\0'; 254 if (start != data->buf) { 255 if (start >= data->buf + data->count) { 260 int remaining = data->count - (start - data->buf); [all...] |
H A D | Ddm.h | 28 bool dvmDdmHandlePacket(const u1* buf, int dataLen, u1** pReplyBuf,
|
H A D | RawDexFile.cpp | 48 struct stat buf; local 49 int result = fstat(fd, &buf); 56 *modTime = (u4) buf.st_mtime; 57 *size = (size_t) buf.st_size; 58 assert((size_t) buf.st_size == buf.st_size);
|
H A D | JarFile.cpp | 48 char *buf, *c; local 54 buf = (char*)malloc(bufLen); 55 if (buf == NULL) { 63 memcpy(buf, fileName, fileNameLen + 1); 64 c = strrchr(buf, '.'); 71 fd = open(buf, flags); 73 *pCachedName = buf; 76 ALOGV("Couldn't open %s: %s", buf, strerror(errno)); 78 free(buf);
|
H A D | UtfString.h | 133 int start, int len, char* buf);
|
/dalvik/tools/hprof-conv/ |
H A D | HprofConv.c | 275 static uint16_t get2BE(const unsigned char* buf) argument 279 val = (buf[0] << 8) | buf[1]; 286 static uint32_t get4BE(const unsigned char* buf) argument 290 val = (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3]; 297 static void set4BE(unsigned char* buf, uint32_t val) argument 299 buf[ 324 const unsigned char* buf = origBuf; local 430 unsigned char* buf = origBuf; local 633 unsigned char* buf = ebGetBuffer(pBuf); local [all...] |
/dalvik/vm/jdwp/ |
H A D | JdwpHandler.cpp | 103 const u1* buf, int dataLen, ExpandBuf* pReply, 109 u4 numArgs = read4BE(&buf); 123 u1 typeTag = read1(&buf); 125 u8 value = jdwpReadValue(&buf, width); 131 u4 options = read4BE(&buf); /* enum InvokeOptions bit flags */ 184 static JdwpError handleVM_Version(JdwpState* state, const u1* buf, argument 210 const u1* buf, int dataLen, ExpandBuf* pReply) 213 char* classDescriptor = readNewUtf8String(&buf, &strLen); 259 const u1* buf, int dataLen, ExpandBuf* pReply) 281 const u1* buf, in 102 finishInvoke(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply, ObjectId threadId, ObjectId objectId, RefTypeId classId, MethodId methodId, bool isConstructor) argument 209 handleVM_ClassesBySignature(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 258 handleVM_AllThreads(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 280 handleVM_TopLevelThreadGroups(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 304 handleVM_IDSizes(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 321 handleVM_Dispose(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 333 handleVM_Suspend(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 343 handleVM_Resume(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 353 handleVM_Exit(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 370 handleVM_CreateString(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 389 handleVM_Capabilities(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 405 handleVM_ClassPaths(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 436 HandleVM_DisposeObjects(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 445 handleVM_CapabilitiesNew(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 479 handleVM_AllClassesWithGeneric(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 513 handleRT_Signature(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 528 handleRT_Modifiers(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 542 handleRT_GetValues(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 562 handleRT_SourceFile(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 579 handleRT_Status(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 595 handleRT_Interfaces(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 611 handleRT_ClassObject(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 629 handleRT_SourceDebugExtension(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 639 handleRT_SignatureWithGeneric(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 663 handleRT_ClassLoader(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 677 handleRT_FieldsWithGeneric(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 693 handleRT_MethodsWithGeneric(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 709 handleCT_Superclass(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 724 handleCT_SetValues(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 751 handleCT_InvokeMethod(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 769 handleCT_NewInstance(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 788 handleAT_newInstance(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 808 handleM_LineTable(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 826 handleM_VariableTableWithGeneric(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 854 handleOR_ReferenceType(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 873 handleOR_GetValues(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 894 handleOR_SetValues(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 929 handleOR_InvokeMethod(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 944 handleOR_DisableCollection(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 954 handleOR_EnableCollection(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 964 handleOR_IsCollected(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 981 handleSR_Value(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 998 handleTR_Name(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 1020 handleTR_Suspend(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 1039 handleTR_Resume(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 1058 handleTR_Status(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 1082 handleTR_ThreadGroup(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 1100 handleTR_Frames(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 1148 handleTR_FrameCount(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 1172 handleTR_CurrentContendedMonitor(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 1191 handleTR_SuspendCount(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 1207 handleTGR_Name(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 1230 handleTGR_Parent(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 1245 handleTGR_Children(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 1279 handleAR_Length(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 1297 handleAR_GetValues(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 1320 handleAR_SetValues(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 1340 handleCLR_VisibleClasses(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument 1370 handleER_Set(JdwpState* state, const u1* buf, int dataLen, ExpandBuf* pReply) argument [all...] |
H A D | JdwpHandler.h | 38 * "buf" points past the header, to the content of the message. "dataLen" 42 const u1* buf, int dataLen, ExpandBuf* pReply);
|
H A D | Jdwp.h | 55 INLINE void dvmSetFieldId(u1* buf, FieldId val) { return set4BE(buf, val); } argument 56 INLINE void dvmSetMethodId(u1* buf, MethodId val) { return set4BE(buf, val); } argument 57 INLINE void dvmSetObjectId(u1* buf, ObjectId val) { return set8BE(buf, val); } argument 58 INLINE void dvmSetRefTypeId(u1* buf, RefTypeId val) { return set8BE(buf, val); } argument 59 INLINE void dvmSetFrameId(u1* buf, FrameId val) { return set8BE(buf, va argument [all...] |
H A D | JdwpSocket.cpp | 63 /* pending data from the network; would be more efficient as circular buf */ 548 const unsigned char* buf = packetBuf; 557 length = read4BE(&buf); 558 id = read4BE(&buf); 559 flags = read1(&buf); 562 error = read2BE(&buf); 565 cmdSet = read1(&buf); 566 cmd = read1(&buf); 569 dataLen = length - (buf - packetBuf); 575 dvmPrintHexDumpDbg(buf, dataLe 585 const unsigned char* buf = netState->inputBuffer; local [all...] |
H A D | JdwpAdb.cpp | 429 const unsigned char* buf = netState->inputBuffer; local 439 length = read4BE(&buf); 440 id = read4BE(&buf); 441 flags = read1(&buf); 444 error = read2BE(&buf); 447 cmdSet = read1(&buf); 448 cmd = read1(&buf); 452 dataLen = length - (buf - netState->inputBuffer); 461 dvmJdwpProcessRequest(state, &hdr, buf, dataLen, pReply);
|
/dalvik/vm/compiler/codegen/arm/ |
H A D | ArchUtility.cpp | 28 static char * decodeRegList(ArmOpcode opcode, int vector, char *buf) argument 32 buf[0] = 0; 42 sprintf(buf + strlen(buf), ", r%d", regId); 45 sprintf(buf, "r%d", regId); 49 return buf; 76 static void buildInsnString(const char *fmt, ArmLIR *lir, char* buf, argument 80 char *bufEnd = &buf[size-1]; 225 if (buf+strlen(tbuf) <= bufEnd) { 226 strcpy(buf, tbu [all...] |
/dalvik/vm/alloc/ |
H A D | DdmHeap.cpp | 60 u1 *buf, *b; local 62 buf = (u1 *)malloc(HPIF_SIZE(1)); 63 if (buf == NULL) { 66 b = buf; 120 assert((intptr_t)b == (intptr_t)buf + (intptr_t)HPIF_SIZE(1)); 122 dvmDbgDdmSendChunk(CHUNK_TYPE("HPIF"), b - buf, buf); local 176 u1 *buf; member in struct:HeapChunkContext 192 assert(ctx->buf <= ctx->pieceLenField && 198 dvmDbgDdmSendChunk(ctx->type, ctx->p - ctx->buf, ct [all...] |
/dalvik/vm/hprof/ |
H A D | HprofOutput.cpp | 24 #define U2_TO_BUF_BE(buf, offset, value) \ 26 unsigned char *buf_ = (unsigned char *)(buf); \ 33 #define U4_TO_BUF_BE(buf, offset, value) \ 35 unsigned char *buf_ = (unsigned char *)(buf); \ 44 #define U8_TO_BUF_BE(buf, offset, value) \ 46 unsigned char *buf_ = (unsigned char *)(buf); \ 93 unsigned char buf[4]; local 106 U4_TO_BUF_BE(buf, 0, sizeof(void *)); 107 fwrite(buf, 1, sizeof(u4), fp); 119 U4_TO_BUF_BE(buf, [all...] |
/dalvik/vm/compiler/codegen/x86/ |
H A D | CodegenDriver.cpp | 253 char buf[1024]; local 256 buf[0] = 0; 268 sprintf(buf+strlen(buf), "%x,", start); 270 sprintf(buf+strlen(buf), "%x-%x,", start, start + streak - 1); 284 sprintf(buf+strlen(buf), "%x", start); 286 sprintf(buf+strlen(buf), " [all...] |
/dalvik/dexgen/src/com/android/dexgen/util/ |
H A D | TwoColumnOutput.java | 229 * @param buf {@code non-null;} the buffer in question 232 private static void appendNewlineIfNecessary(StringBuffer buf, argument 235 int len = buf.length(); 237 if ((len != 0) && (buf.charAt(len - 1) != '\n')) {
|
/dalvik/dx/src/com/android/dx/util/ |
H A D | TwoColumnOutput.java | 229 * @param buf {@code non-null;} the buffer in question 232 private static void appendNewlineIfNecessary(StringBuffer buf, argument 235 int len = buf.length(); 237 if ((len != 0) && (buf.charAt(len - 1) != '\n')) {
|
/dalvik/tools/dmtracedump/ |
H A D | TraceDump.c | 1407 char buf[80]; local 1428 sprintf(buf, "[%d]", relative->index); 1430 int len = strlen(buf); 1433 sprintf(buf, "<a href=\"#m%d\">[%d]", 1448 space_ptr, buf, anchor_close, 1455 space_ptr, buf, anchor_close, 1465 space_ptr, buf, anchor_close, 1472 space_ptr, buf, anchor_close, 1729 char buf[40]; local 1759 sprintf(buf, "[ 1870 printHtmlField(char *buf, int width) argument 1976 char buf[80]; local 2017 char buf[80]; local 2208 char buf[80]; local 2248 char buf[80]; local [all...] |
H A D | CreateTestTrace.c | 77 char buf[BUF_SIZE]; variable 139 while (fgets(buf, BUF_SIZE, inputFp)) { 140 char *cp = buf; 171 while (fgets(buf, BUF_SIZE, inputFp)) { 177 char *cp = buf; 254 printf("Indent: %d; IndentLevel: %d; Line: %s", indent, indentLevel, buf); 271 fprintf(stderr, "Error: line %d: %s", linenum, buf); 282 fprintf(stderr, "Error: line %d: %s", linenum, buf); 290 fprintf(stderr, "Error: line %d: %s", linenum, buf);
|
/dalvik/libdex/ |
H A D | SysUtil.h | 118 int sysWriteFully(int fd, const void* buf, size_t count, const char* logMsg);
|
H A D | SysUtil.cpp | 391 int sysWriteFully(int fd, const void* buf, size_t count, const char* logMsg) argument 394 ssize_t actual = TEMP_FAILURE_RETRY(write(fd, buf, count)); 402 buf = (const void*) (((const u1*) buf) + actual); 414 unsigned char buf[kBufSize]; local 419 ssize_t actual = TEMP_FAILURE_RETRY(read(inFd, buf, getSize)); 426 if (sysWriteFully(outFd, buf, getSize, "sysCopyFileToFile") != 0)
|
/dalvik/tools/dexdeps/src/com/android/dexdeps/ |
H A D | Output.java | 298 char[] buf = new char[targetLen + arrayDepth * 2]; 304 buf[i] = (ch == '/') ? '.' : ch; 309 buf[i++] = '['; 310 buf[i++] = ']'; 312 assert i == buf.length; 314 return new String(buf);
|