Lines Matching refs:pReply
73 void dvmJdwpAddLocation(ExpandBuf* pReply, const JdwpLocation* pLoc) in dvmJdwpAddLocation() argument
75 expandBufAdd1(pReply, pLoc->typeTag); in dvmJdwpAddLocation()
76 expandBufAddObjectId(pReply, pLoc->classId); in dvmJdwpAddLocation()
77 expandBufAddMethodId(pReply, pLoc->methodId); in dvmJdwpAddLocation()
78 expandBufAdd8BE(pReply, pLoc->idx); in dvmJdwpAddLocation()
102 static void jdwpWriteValue(ExpandBuf* pReply, int width, u8 value) in jdwpWriteValue() argument
105 case 1: expandBufAdd1(pReply, value); break; in jdwpWriteValue()
106 case 2: expandBufAdd2BE(pReply, value); break; in jdwpWriteValue()
107 case 4: expandBufAdd4BE(pReply, value); break; in jdwpWriteValue()
108 case 8: expandBufAdd8BE(pReply, value); break; in jdwpWriteValue()
120 const u1* buf, int dataLen, ExpandBuf* pReply, in finishInvoke() argument
175 expandBufAdd1(pReply, JT_OBJECT); in finishInvoke()
176 expandBufAddObjectId(pReply, objectId); in finishInvoke()
180 expandBufAdd1(pReply, resultTag); in finishInvoke()
182 jdwpWriteValue(pReply, width, resultValue); in finishInvoke()
184 expandBufAdd1(pReply, JT_OBJECT); in finishInvoke()
185 expandBufAddObjectId(pReply, exceptObjId); in finishInvoke()
212 int dataLen, ExpandBuf* pReply) in handleVM_Version() argument
219 expandBufAddUtf8String(pReply, (const u1*) tmpBuf); in handleVM_Version()
221 expandBufAdd4BE(pReply, 1); // major in handleVM_Version()
222 expandBufAdd4BE(pReply, 5); // minor in handleVM_Version()
224 expandBufAddUtf8String(pReply, (const u1*) "1.5.0"); /* e.g. 1.5.0_04 */ in handleVM_Version()
226 expandBufAddUtf8String(pReply, (const u1*) "DalvikVM"); in handleVM_Version()
237 const u1* buf, int dataLen, ExpandBuf* pReply) in handleVM_ClassesBySignature() argument
262 expandBufAdd4BE(pReply, numClasses); in handleVM_ClassesBySignature()
271 expandBufAdd1(pReply, typeTag); in handleVM_ClassesBySignature()
272 expandBufAddRefTypeId(pReply, refTypeId); in handleVM_ClassesBySignature()
273 expandBufAdd4BE(pReply, status); in handleVM_ClassesBySignature()
288 const u1* buf, int dataLen, ExpandBuf* pReply) in handleVM_AllThreads() argument
297 expandBufAdd4BE(pReply, threadCount); in handleVM_AllThreads()
301 expandBufAddObjectId(pReply, *walker++); in handleVM_AllThreads()
313 const u1* buf, int dataLen, ExpandBuf* pReply) in handleVM_TopLevelThreadGroups() argument
325 expandBufAdd4BE(pReply, groups); in handleVM_TopLevelThreadGroups()
329 expandBufAddObjectId(pReply, threadGroupId); in handleVM_TopLevelThreadGroups()
340 const u1* buf, int dataLen, ExpandBuf* pReply) in handleVM_IDSizes() argument
342 expandBufAdd4BE(pReply, sizeof(FieldId)); in handleVM_IDSizes()
343 expandBufAdd4BE(pReply, sizeof(MethodId)); in handleVM_IDSizes()
344 expandBufAdd4BE(pReply, sizeof(ObjectId)); in handleVM_IDSizes()
345 expandBufAdd4BE(pReply, sizeof(RefTypeId)); in handleVM_IDSizes()
346 expandBufAdd4BE(pReply, sizeof(FrameId)); in handleVM_IDSizes()
357 const u1* buf, int dataLen, ExpandBuf* pReply) in handleVM_Dispose() argument
369 const u1* buf, int dataLen, ExpandBuf* pReply) in handleVM_Suspend() argument
379 const u1* buf, int dataLen, ExpandBuf* pReply) in handleVM_Resume() argument
389 const u1* buf, int dataLen, ExpandBuf* pReply) in handleVM_Exit() argument
408 const u1* buf, int dataLen, ExpandBuf* pReply) in handleVM_CreateString() argument
422 expandBufAddObjectId(pReply, stringId); in handleVM_CreateString()
430 const u1* buf, int dataLen, ExpandBuf* pReply) in handleVM_Capabilities() argument
432 expandBufAdd1(pReply, false); /* canWatchFieldModification */ in handleVM_Capabilities()
433 expandBufAdd1(pReply, false); /* canWatchFieldAccess */ in handleVM_Capabilities()
434 expandBufAdd1(pReply, false); /* canGetBytecodes */ in handleVM_Capabilities()
435 expandBufAdd1(pReply, false); /* canGetSyntheticAttribute */ in handleVM_Capabilities()
436 expandBufAdd1(pReply, false); /* canGetOwnedMonitorInfo */ in handleVM_Capabilities()
437 expandBufAdd1(pReply, false); /* canGetCurrentContendedMonitor */ in handleVM_Capabilities()
438 expandBufAdd1(pReply, false); /* canGetMonitorInfo */ in handleVM_Capabilities()
446 const u1* buf, int dataLen, ExpandBuf* pReply) in handleVM_ClassPaths() argument
460 expandBufAddUtf8String(pReply, (const u1*) baseDir); in handleVM_ClassPaths()
461 expandBufAdd4BE(pReply, classPaths); in handleVM_ClassPaths()
463 expandBufAddUtf8String(pReply, (const u1*) "."); in handleVM_ClassPaths()
466 expandBufAdd4BE(pReply, bootClassPaths); in handleVM_ClassPaths()
480 const u1* buf, int dataLen, ExpandBuf* pReply) in HandleVM_DisposeObjects() argument
489 const u1* buf, int dataLen, ExpandBuf* pReply) in handleVM_CapabilitiesNew() argument
493 expandBufAdd1(pReply, false); /* canWatchFieldModification */ in handleVM_CapabilitiesNew()
494 expandBufAdd1(pReply, false); /* canWatchFieldAccess */ in handleVM_CapabilitiesNew()
495 expandBufAdd1(pReply, false); /* canGetBytecodes */ in handleVM_CapabilitiesNew()
496 expandBufAdd1(pReply, false); /* canGetSyntheticAttribute */ in handleVM_CapabilitiesNew()
497 expandBufAdd1(pReply, false); /* canGetOwnedMonitorInfo */ in handleVM_CapabilitiesNew()
498 expandBufAdd1(pReply, false); /* canGetCurrentContendedMonitor */ in handleVM_CapabilitiesNew()
499 expandBufAdd1(pReply, false); /* canGetMonitorInfo */ in handleVM_CapabilitiesNew()
500 expandBufAdd1(pReply, false); /* canRedefineClasses */ in handleVM_CapabilitiesNew()
501 expandBufAdd1(pReply, false); /* canAddMethod */ in handleVM_CapabilitiesNew()
502 expandBufAdd1(pReply, false); /* canUnrestrictedlyRedefineClasses */ in handleVM_CapabilitiesNew()
503 expandBufAdd1(pReply, false); /* canPopFrames */ in handleVM_CapabilitiesNew()
504 expandBufAdd1(pReply, false); /* canUseInstanceFilters */ in handleVM_CapabilitiesNew()
505 expandBufAdd1(pReply, false); /* canGetSourceDebugExtension */ in handleVM_CapabilitiesNew()
506 expandBufAdd1(pReply, false); /* canRequestVMDeathEvent */ in handleVM_CapabilitiesNew()
507 expandBufAdd1(pReply, false); /* canSetDefaultStratum */ in handleVM_CapabilitiesNew()
508 expandBufAdd1(pReply, false); /* 1.6: canGetInstanceInfo */ in handleVM_CapabilitiesNew()
509 expandBufAdd1(pReply, false); /* 1.6: canRequestMonitorEvents */ in handleVM_CapabilitiesNew()
510 expandBufAdd1(pReply, false); /* 1.6: canGetMonitorFrameInfo */ in handleVM_CapabilitiesNew()
511 expandBufAdd1(pReply, false); /* 1.6: canUseSourceNameFilters */ in handleVM_CapabilitiesNew()
512 expandBufAdd1(pReply, false); /* 1.6: canGetConstantPool */ in handleVM_CapabilitiesNew()
513 expandBufAdd1(pReply, false); /* 1.6: canForceEarlyReturn */ in handleVM_CapabilitiesNew()
517 expandBufAdd1(pReply, false); /* reservedN */ in handleVM_CapabilitiesNew()
525 const u1* buf, int dataLen, ExpandBuf* pReply) in handleVM_AllClassesWithGeneric() argument
533 expandBufAdd4BE(pReply, numClasses); in handleVM_AllClassesWithGeneric()
543 expandBufAdd1(pReply, refTypeTag); in handleVM_AllClassesWithGeneric()
544 expandBufAddRefTypeId(pReply, classRefBuf[i]); in handleVM_AllClassesWithGeneric()
545 expandBufAddUtf8String(pReply, (const u1*) signature); in handleVM_AllClassesWithGeneric()
546 expandBufAddUtf8String(pReply, genericSignature); in handleVM_AllClassesWithGeneric()
547 expandBufAdd4BE(pReply, status); in handleVM_AllClassesWithGeneric()
562 const u1* buf, int dataLen, ExpandBuf* pReply) in handleRT_Signature() argument
571 expandBufAddUtf8String(pReply, (const u1*) signature); in handleRT_Signature()
581 const u1* buf, int dataLen, ExpandBuf* pReply) in handleRT_Modifiers() argument
589 expandBufAdd4BE(pReply, modBits); in handleRT_Modifiers()
598 const u1* buf, int dataLen, ExpandBuf* pReply) in handleRT_GetValues() argument
607 expandBufAdd4BE(pReply, numFields); in handleRT_GetValues()
618 expandBufAdd1(pReply, fieldTag); in handleRT_GetValues()
619 ptr = expandBufAddSpace(pReply, width); in handleRT_GetValues()
630 const u1* buf, int dataLen, ExpandBuf* pReply) in handleRT_SourceFile() argument
639 expandBufAddUtf8String(pReply, (const u1*) fileName); in handleRT_SourceFile()
650 const u1* buf, int dataLen, ExpandBuf* pReply) in handleRT_Status() argument
660 expandBufAdd4BE(pReply, status); in handleRT_Status()
668 const u1* buf, int dataLen, ExpandBuf* pReply) in handleRT_Interfaces() argument
677 dvmDbgOutputAllInterfaces(refTypeId, pReply); in handleRT_Interfaces()
686 const u1* buf, int dataLen, ExpandBuf* pReply) in handleRT_ClassObject() argument
696 expandBufAddObjectId(pReply, classObjId); in handleRT_ClassObject()
707 const u1* buf, int dataLen, ExpandBuf* pReply) in handleRT_SourceDebugExtension() argument
717 const u1* buf, int dataLen, ExpandBuf* pReply) in handleRT_SignatureWithGeneric() argument
728 expandBufAddUtf8String(pReply, (const u1*) signature); in handleRT_SignatureWithGeneric()
730 expandBufAddUtf8String(pReply, (const u1*) "Lunknown;"); /* native? */ in handleRT_SignatureWithGeneric()
731 expandBufAddUtf8String(pReply, genericSignature); in handleRT_SignatureWithGeneric()
742 const u1* buf, int dataLen, ExpandBuf* pReply) in handleRT_ClassLoader() argument
748 expandBufAddObjectId(pReply, dvmDbgGetClassLoader(refTypeId)); in handleRT_ClassLoader()
758 const u1* buf, int dataLen, ExpandBuf* pReply) in handleRT_FieldsWithGeneric() argument
770 dvmDbgOutputAllFields(refTypeId, true, pReply); in handleRT_FieldsWithGeneric()
780 const u1* buf, int dataLen, ExpandBuf* pReply) in handleRT_MethodsWithGeneric() argument
793 dvmDbgOutputAllMethods(refTypeId, true, pReply); in handleRT_MethodsWithGeneric()
802 const u1* buf, int dataLen, ExpandBuf* pReply) in handleCT_Superclass() argument
811 expandBufAddRefTypeId(pReply, superClassId); in handleCT_Superclass()
820 const u1* buf, int dataLen, ExpandBuf* pReply) in handleCT_SetValues() argument
856 const u1* buf, int dataLen, ExpandBuf* pReply) in handleCT_InvokeMethod() argument
866 return finishInvoke(state, buf, dataLen, pReply, in handleCT_InvokeMethod()
878 const u1* buf, int dataLen, ExpandBuf* pReply) in handleCT_NewInstance() argument
894 return finishInvoke(state, buf, dataLen, pReply, in handleCT_NewInstance()
902 const u1* buf, int dataLen, ExpandBuf* pReply) in handleAT_newInstance() argument
917 expandBufAdd1(pReply, JT_ARRAY); in handleAT_newInstance()
918 expandBufAddObjectId(pReply, objectId); in handleAT_newInstance()
926 const u1* buf, int dataLen, ExpandBuf* pReply) in handleM_LineTable() argument
938 dvmDbgOutputLineTable(refTypeId, methodId, pReply); in handleM_LineTable()
947 const u1* buf, int dataLen, ExpandBuf* pReply) in handleM_VariableTableWithGeneric() argument
966 dvmDbgOutputVariableTable(classId, methodId, true, pReply); in handleM_VariableTableWithGeneric()
978 const u1* buf, int dataLen, ExpandBuf* pReply) in handleOR_ReferenceType() argument
989 expandBufAdd1(pReply, refTypeTag); in handleOR_ReferenceType()
990 expandBufAddRefTypeId(pReply, typeId); in handleOR_ReferenceType()
999 const u1* buf, int dataLen, ExpandBuf* pReply) in handleOR_GetValues() argument
1010 expandBufAdd4BE(pReply, numFields); in handleOR_GetValues()
1026 expandBufAdd1(pReply, fieldTag); in handleOR_GetValues()
1027 ptr = expandBufAddSpace(pReply, width); in handleOR_GetValues()
1038 const u1* buf, int dataLen, ExpandBuf* pReply) in handleOR_SetValues() argument
1082 const u1* buf, int dataLen, ExpandBuf* pReply) in handleOR_InvokeMethod() argument
1094 return finishInvoke(state, buf, dataLen, pReply, in handleOR_InvokeMethod()
1102 const u1* buf, int dataLen, ExpandBuf* pReply) in handleOR_DisableCollection() argument
1112 const u1* buf, int dataLen, ExpandBuf* pReply) in handleOR_EnableCollection() argument
1122 const u1* buf, int dataLen, ExpandBuf* pReply) in handleOR_IsCollected() argument
1131 expandBufAdd1(pReply, 0); in handleOR_IsCollected()
1140 const u1* buf, int dataLen, ExpandBuf* pReply) in handleSR_Value() argument
1150 expandBufAddUtf8String(pReply, (u1*) str); in handleSR_Value()
1160 const u1* buf, int dataLen, ExpandBuf* pReply) in handleTR_Name() argument
1172 expandBufAddUtf8String(pReply, (u1*) name); in handleTR_Name()
1185 const u1* buf, int dataLen, ExpandBuf* pReply) in handleTR_Suspend() argument
1206 const u1* buf, int dataLen, ExpandBuf* pReply) in handleTR_Resume() argument
1227 const u1* buf, int dataLen, ExpandBuf* pReply) in handleTR_Status() argument
1243 expandBufAdd4BE(pReply, threadStatus); in handleTR_Status()
1244 expandBufAdd4BE(pReply, suspendStatus); in handleTR_Status()
1253 const u1* buf, int dataLen, ExpandBuf* pReply) in handleTR_ThreadGroup() argument
1262 expandBufAddObjectId(pReply, threadGroupId); in handleTR_ThreadGroup()
1274 const u1* buf, int dataLen, ExpandBuf* pReply) in handleTR_Frames() argument
1305 expandBufAdd4BE(pReply, frames); in handleTR_Frames()
1312 expandBufAdd8BE(pReply, frameId); in handleTR_Frames()
1313 dvmJdwpAddLocation(pReply, &loc); in handleTR_Frames()
1326 const u1* buf, int dataLen, ExpandBuf* pReply) in handleTR_FrameCount() argument
1344 expandBufAdd4BE(pReply, (u4)frameCount); in handleTR_FrameCount()
1353 const u1* buf, int dataLen, ExpandBuf* pReply) in handleTR_CurrentContendedMonitor() argument
1372 const u1* buf, int dataLen, ExpandBuf* pReply) in handleTR_SuspendCount() argument
1380 expandBufAdd4BE(pReply, suspendCount); in handleTR_SuspendCount()
1391 const u1* buf, int dataLen, ExpandBuf* pReply) in handleTGR_Name() argument
1401 expandBufAddUtf8String(pReply, (u1*) name); in handleTGR_Name()
1403 expandBufAddUtf8String(pReply, (u1*) "BAD-GROUP-ID"); in handleTGR_Name()
1417 const u1* buf, int dataLen, ExpandBuf* pReply) in handleTGR_Parent() argument
1425 expandBufAddObjectId(pReply, parentGroup); in handleTGR_Parent()
1435 const u1* buf, int dataLen, ExpandBuf* pReply) in handleTGR_Children() argument
1448 expandBufAdd4BE(pReply, threadCount); in handleTGR_Children()
1452 expandBufAddObjectId(pReply, pThreadIds[i]); in handleTGR_Children()
1461 expandBufAdd4BE(pReply, 1); in handleTGR_Children()
1462 expandBufAddObjectId(pReply, dvmDbgGetMainThreadGroupId()); in handleTGR_Children()
1464 expandBufAdd4BE(pReply, 0); in handleTGR_Children()
1474 const u1* buf, int dataLen, ExpandBuf* pReply) in handleAR_Length() argument
1486 expandBufAdd4BE(pReply, arrayLength); in handleAR_Length()
1495 const u1* buf, int dataLen, ExpandBuf* pReply) in handleAR_GetValues() argument
1510 expandBufAdd1(pReply, tag); in handleAR_GetValues()
1511 expandBufAdd4BE(pReply, length); in handleAR_GetValues()
1513 if (!dvmDbgOutputArray(arrayId, firstIndex, length, pReply)) in handleAR_GetValues()
1523 const u1* buf, int dataLen, ExpandBuf* pReply) in handleAR_SetValues() argument
1547 const u1* buf, int dataLen, ExpandBuf* pReply) in handleCLR_VisibleClasses() argument
1558 expandBufAdd4BE(pReply, numClasses); in handleCLR_VisibleClasses()
1564 expandBufAdd1(pReply, refTypeTag); in handleCLR_VisibleClasses()
1565 expandBufAddRefTypeId(pReply, classRefBuf[i]); in handleCLR_VisibleClasses()
1577 const u1* buf, int dataLen, ExpandBuf* pReply) in handleER_Set() argument
1753 expandBufAdd4BE(pReply, requestId); in handleER_Set()
1774 const u1* buf, int dataLen, ExpandBuf* pReply) in handleER_Clear() argument
1793 const u1* buf, int dataLen, ExpandBuf* pReply) in handleSF_GetValues() argument
1807 expandBufAdd4BE(pReply, slots); /* "int values" */ in handleSF_GetValues()
1820 ptr = expandBufAddSpace(pReply, width+1); in handleSF_GetValues()
1831 const u1* buf, int dataLen, ExpandBuf* pReply) in handleSF_SetValues() argument
1867 const u1* buf, int dataLen, ExpandBuf* pReply) in handleSF_ThisObject() argument
1892 expandBufAdd1(pReply, objectTag); in handleSF_ThisObject()
1893 expandBufAddObjectId(pReply, objectId); in handleSF_ThisObject()
1906 const u1* buf, int dataLen, ExpandBuf* pReply) in handleCOR_ReflectedType() argument
1917 expandBufAdd1(pReply, TT_INTERFACE); in handleCOR_ReflectedType()
1919 expandBufAdd1(pReply, TT_CLASS); in handleCOR_ReflectedType()
1920 expandBufAddRefTypeId(pReply, classObjectId); in handleCOR_ReflectedType()
1929 const u1* buf, int dataLen, ExpandBuf* pReply) in handleDDM_Chunk() argument
1955 memcpy(expandBufAddSpace(pReply, replyLen), replyBuf, replyLen); in handleDDM_Chunk()
2128 const u1* buf, int dataLen, ExpandBuf* pReply) in dvmJdwpProcessRequest() argument
2167 expandBufAddSpace(pReply, kJDWPHeaderLen); in dvmJdwpProcessRequest()
2176 result = (*gHandlerMap[i].func)(state, buf, dataLen, pReply); in dvmJdwpProcessRequest()
2194 u1* replyBuf = expandBufGetBuffer(pReply); in dvmJdwpProcessRequest()
2199 set4BE(replyBuf + 0, expandBufGetLength(pReply)); in dvmJdwpProcessRequest()
2203 respLen = expandBufGetLength(pReply) - kJDWPHeaderLen; in dvmJdwpProcessRequest()
2209 dvmPrintHexDumpDbg(expandBufGetBuffer(pReply) + kJDWPHeaderLen, in dvmJdwpProcessRequest()