/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ |
D | CombinedEvents003Test.java | 189 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in receiveAndCheckEvents() local 192 … logWriter.println("=> Received event packet with events number = " + parsedEvents.length + " :"); in receiveAndCheckEvents() 194 for (int i = 0; i < parsedEvents.length; i++) { in receiveAndCheckEvents() 198 + parsedEvents[i].getEventKind() in receiveAndCheckEvents() 200 + JDWPConstants.EventKind.getName(parsedEvents[i] in receiveAndCheckEvents() 203 + parsedEvents[i].getRequestID()); in receiveAndCheckEvents() 204 if ( parsedEvents[i].getEventKind() == JDWPConstants.EventKind.VM_DEATH ) { in receiveAndCheckEvents() 211 checkEventsLocation(parsedEvents, null); // DBG__ in receiveAndCheckEvents() 214 if (parsedEvents.length == 1) { in receiveAndCheckEvents() 239 } else if (parsedEvents.length > 1) { in receiveAndCheckEvents() [all …]
|
D | CombinedEventsTest.java | 658 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testCombinedEvents_05() local 660 logWriter.println("=> Events received: " + parsedEvents.length); in testCombinedEvents_05() 661 for (int i = 0; i < parsedEvents.length; i++) { in testCombinedEvents_05() 665 + parsedEvents[i].getEventKind() in testCombinedEvents_05() 667 + JDWPConstants.EventKind.getName(parsedEvents[i] in testCombinedEvents_05() 670 .println("=> RequestID: " + parsedEvents[i].getRequestID()); in testCombinedEvents_05() 673 boolean locationsOK = checkEventsLocation(parsedEvents, combinedEventsLocation); in testCombinedEvents_05() 674 if (parsedEvents.length == EXPECTED_EVENTS_COUNT) { in testCombinedEvents_05() 678 for (int i = 0; i < parsedEvents.length; i++) { in testCombinedEvents_05() 681 if (parsedEvents[i].getEventKind() == EXPECTED_EVENTS_ARRAY[j]) { in testCombinedEvents_05() [all …]
|
D | ClassPrepareTest.java | 64 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testClassPrepareEvent() local 66 assertEquals("Invalid number of events,", 1, parsedEvents.length); in testClassPrepareEvent() 67 …assertEquals("Invalid event kind,", JDWPConstants.EventKind.CLASS_PREPARE, parsedEvents[0].getEven… in testClassPrepareEvent() 69 , JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in testClassPrepareEvent() 71 , ((ParsedEvent.Event_CLASS_PREPARE)parsedEvents[0]).getSignature()); in testClassPrepareEvent() 102 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent); in testClassPrepareEventWithoutSourceDebugExtension() local 104 assertEquals("Invalid number of events,", 1, parsedEvents.length); in testClassPrepareEventWithoutSourceDebugExtension() 105 …assertEquals("Invalid event kind,", JDWPConstants.EventKind.CLASS_PREPARE, parsedEvents[0].getEven… in testClassPrepareEventWithoutSourceDebugExtension() 107 , JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in testClassPrepareEventWithoutSourceDebugExtension() 108 …ed class,", expectedClassSignature, ((ParsedEvent.Event_CLASS_PREPARE)parsedEvents[0]).getSignatur… in testClassPrepareEventWithoutSourceDebugExtension() [all …]
|
D | SingleStepTest.java | 157 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in stepFunction() local 160 logWriter.println("==> Received " + parsedEvents.length + " events"); in stepFunction() 163 for (int i = 0; i < parsedEvents.length; i++) { in stepFunction() 166 logWriter.println("==> EventKind: " + parsedEvents[i].getEventKind() + "(" in stepFunction() 167 + JDWPConstants.EventKind.getName(parsedEvents[i].getEventKind()) + ")"); in stepFunction() 168 logWriter.println("==> RequestID: " + parsedEvents[i].getRequestID()); in stepFunction() 172 assertEquals("Received wrong number of events,", 1, parsedEvents.length); in stepFunction() 173 assertEquals("Received wrong event request ID,", requestID, parsedEvents[0].getRequestID()); in stepFunction() 175 parsedEvents[0].getEventKind(), in stepFunction() 177 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in stepFunction() [all …]
|
D | ThreadEndTest.java | 76 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testThreadEndEvent001() local 77 logWriter.println("=> Number of events = " + parsedEvents.length); in testThreadEndEvent001() 78 assertEquals("Invalid number of events,", 1, parsedEvents.length); in testThreadEndEvent001() 79 logWriter.println("=> EventKind() = " + parsedEvents[0].getEventKind() in testThreadEndEvent001() 80 + " (" + JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind()) + ")"); in testThreadEndEvent001() 83 parsedEvents[0].getEventKind(), in testThreadEndEvent001() 85 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in testThreadEndEvent001() 86 logWriter.println("=> EventRequestID() = " + parsedEvents[0].getRequestID()); in testThreadEndEvent001() 88 long threadID = ((Event_THREAD_DEATH)parsedEvents[0]).getThreadID(); in testThreadEndEvent001()
|
D | ThreadStartTest.java | 82 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testThreadStartEvent001() local 83 logWriter.println("=> Number of events = " + parsedEvents.length); in testThreadStartEvent001() 84 assertEquals("Invalid number of events,", 1, parsedEvents.length); in testThreadStartEvent001() 85 logWriter.println("=> EventKind() = " + parsedEvents[0].getEventKind() in testThreadStartEvent001() 86 + " (" + JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind()) + ")"); in testThreadStartEvent001() 89 parsedEvents[0].getEventKind(), in testThreadStartEvent001() 91 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in testThreadStartEvent001() 92 logWriter.println("=> EventRequestID() = " + parsedEvents[0].getRequestID()); in testThreadStartEvent001() 94 long threadID = ((Event_THREAD_START)parsedEvents[0]).getThreadID(); in testThreadStartEvent001()
|
D | SingleStepWithPendingExceptionTest.java | 69 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(eventPacket); in testSingleStepWithPendingException() local 70 assertEquals("Expected only one event", 1, parsedEvents.length); in testSingleStepWithPendingException() 71 assertEventKindEquals("Expected EXCEPTION event", parsedEvents[0].getEventKind(), in testSingleStepWithPendingException() 73 assertEquals("Unexpected event", exceptionRequestId, parsedEvents[0].getRequestID()); in testSingleStepWithPendingException() 75 ((ParsedEvent.Event_EXCEPTION)parsedEvents[0]).getCatchLocation(); in testSingleStepWithPendingException() 101 parsedEvents = ParsedEvent.parseEventPacket(eventPacket); in testSingleStepWithPendingException() 102 assertEquals("Expected only one event", 1, parsedEvents.length); in testSingleStepWithPendingException() 103 assertEventKindEquals("Expected SINGLE_STEP event", parsedEvents[0].getEventKind(), in testSingleStepWithPendingException() 108 ((ParsedEvent.Event_SINGLE_STEP)parsedEvents[0]).getLocation(); in testSingleStepWithPendingException()
|
D | SingleStepWithLocationTest.java | 129 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testSingleStepToLocation() local 132 logWriter.println("==> Received " + parsedEvents.length + " events"); in testSingleStepToLocation() 135 for (int i = 0; i < parsedEvents.length; i++) { in testSingleStepToLocation() 138 logWriter.println("==> EventKind: " + parsedEvents[i].getEventKind() + "(" in testSingleStepToLocation() 139 + JDWPConstants.EventKind.getName(parsedEvents[i].getEventKind()) + ")"); in testSingleStepToLocation() 140 logWriter.println("==> RequestID: " + parsedEvents[i].getRequestID()); in testSingleStepToLocation() 144 assertEquals("Received wrong number of events,", 1, parsedEvents.length); in testSingleStepToLocation() 145 assertEquals("Received wrong event request ID,", requestID, parsedEvents[0].getRequestID()); in testSingleStepToLocation() 147 parsedEvents[0].getEventKind(), in testSingleStepToLocation() 149 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in testSingleStepToLocation()
|
D | BreakpointOnCatchTest.java | 64 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testBreakpointOnCatch() local 65 assertEquals("Invalid number of events:", 1, parsedEvents.length); in testBreakpointOnCatch() 66 assertEquals("Invalid request ID:", exceptionRequestID, parsedEvents[0].getRequestID()); in testBreakpointOnCatch() 69 Location catchLocation = ((Event_EXCEPTION) parsedEvents[0]).getCatchLocation(); in testBreakpointOnCatch() 85 parsedEvents = ParsedEvent.parseEventPacket(event); in testBreakpointOnCatch() 86 assertEquals("Invalid number of events:", 1, parsedEvents.length); in testBreakpointOnCatch() 87 assertEquals("Invalid request ID:", requestID, parsedEvents[0].getRequestID()); in testBreakpointOnCatch() 90 long eventThreadID = ((EventThread) parsedEvents[0]).getThreadID(); in testBreakpointOnCatch()
|
D | ExceptionBaseTest.java | 42 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in receiveAndCheckExceptionEvent() local 45 printTestLog("parsedEvents.length = " + parsedEvents.length); in receiveAndCheckExceptionEvent() 46 printTestLog("parsedEvents[0].getEventKind() = " + parsedEvents[0].getEventKind()); in receiveAndCheckExceptionEvent() 47 assertEquals("Invalid number of events,", 1, parsedEvents.length); in receiveAndCheckExceptionEvent() 50 parsedEvents[0].getEventKind(), in receiveAndCheckExceptionEvent() 52 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in receiveAndCheckExceptionEvent() 53 assertEquals("Invalid event request ID", requestID, parsedEvents[0].getRequestID()); in receiveAndCheckExceptionEvent() 55 ParsedEvent.Event_EXCEPTION exceptionEvent = (ParsedEvent.Event_EXCEPTION) parsedEvents[0]; in receiveAndCheckExceptionEvent()
|
D | BreakpointTest.java | 68 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testSetBreakpointEvent() local 70 assertEquals("Invalid number of events,", 1, parsedEvents.length); in testSetBreakpointEvent() 73 parsedEvents[0].getEventKind(), in testSetBreakpointEvent() 75 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in testSetBreakpointEvent() 76 assertEquals("Invalid request ID", requestID, parsedEvents[0].getRequestID()); in testSetBreakpointEvent() 78 long eventThreadID = ((EventThread) parsedEvents[0]).getThreadID(); in testSetBreakpointEvent()
|
D | MethodExitWithReturnValueTest.java | 63 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent); in testMethodExitWithReturnValueException() local 64 Event_METHOD_EXIT event = (Event_METHOD_EXIT)parsedEvents[0]; in testMethodExitWithReturnValueException() 66 assertEquals("Invalid number of events,", 1, parsedEvents.length); in testMethodExitWithReturnValueException() 175 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent); in runMethodExitWithReturn() local 178 assertEquals("Invalid number of events,", 1, parsedEvents.length); in runMethodExitWithReturn() 184 parsedEvents[0].getEventKind(), in runMethodExitWithReturn() 187 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in runMethodExitWithReturn() 190 long eventThreadID = ((EventThread) parsedEvents[0]).getThreadID(); in runMethodExitWithReturn() 195 Value value = ((Event_METHOD_EXIT_WITH_RETURN_VALUE) parsedEvents[0]) in runMethodExitWithReturn()
|
D | FieldAccessTest.java | 63 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testFieldAccessEvent() local 66 assertEquals("Invalid number of events,", 1, parsedEvents.length); in testFieldAccessEvent() 69 parsedEvents[0].getEventKind(), in testFieldAccessEvent() 71 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in testFieldAccessEvent() 73 long eventThreadID = ((EventThread) parsedEvents[0]).getThreadID(); in testFieldAccessEvent() 77 TaggedObject accessedField =((ParsedEvent.Event_FIELD_ACCESS)parsedEvents[0]).getObject(); in testFieldAccessEvent()
|
D | FieldModificationTest.java | 63 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testFieldModifyEvent() local 66 assertEquals("Invalid number of events,", 1, parsedEvents.length); in testFieldModifyEvent() 69 parsedEvents[0].getEventKind(), in testFieldModifyEvent() 71 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in testFieldModifyEvent() 73 long eventThreadID = ((EventThread) parsedEvents[0]).getThreadID(); in testFieldModifyEvent() 77 … TaggedObject modifiedField =((ParsedEvent.Event_FIELD_MODIFICATION)parsedEvents[0]).getObject(); in testFieldModifyEvent()
|
D | VMDeathTest.java | 52 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testVMDeathEvent() local 54 logWriter.println("requestID = " + parsedEvents[0].getRequestID()); in testVMDeathEvent() 55 assertEquals("Invalid number of events,", 1, parsedEvents.length); in testVMDeathEvent() 58 parsedEvents[0].getEventKind(), in testVMDeathEvent() 60 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in testVMDeathEvent()
|
D | MethodEntryTest.java | 65 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testMethodEntry() local 67 assertEquals("Invalid number of events,", 1, parsedEvents.length); in testMethodEntry() 70 parsedEvents[0].getEventKind(), in testMethodEntry() 72 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in testMethodEntry() 74 long eventThreadID = ((EventThread) parsedEvents[0]).getThreadID(); in testMethodEntry()
|
D | MethodExitTest.java | 65 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testMethodExit() local 67 assertEquals("Invalid number of events,", 1, parsedEvents.length); in testMethodExit() 70 parsedEvents[0].getEventKind(), in testMethodExit() 72 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in testMethodExit() 74 long eventThreadID = ((EventThread) parsedEvents[0]).getThreadID(); in testMethodExit()
|
D | SingleStepThroughReflectionTest.java | 148 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in waitForSingleStepEvent() local 150 logWriter.println("==> Received " + parsedEvents.length + " events"); in waitForSingleStepEvent() 153 for (int i = 0; i < parsedEvents.length; i++) { in waitForSingleStepEvent() 156 logWriter.println("==> EventKind: " + parsedEvents[i].getEventKind() + "(" in waitForSingleStepEvent() 157 + JDWPConstants.EventKind.getName(parsedEvents[i].getEventKind()) + ")"); in waitForSingleStepEvent() 158 logWriter.println("==> RequestID: " + parsedEvents[i].getRequestID()); in waitForSingleStepEvent() 162 assertEquals("Received wrong number of events,", 1, parsedEvents.length); in waitForSingleStepEvent() 165 ParsedEvent parsedEvent = parsedEvents[0]; in waitForSingleStepEvent()
|
D | MonitorWaitTest.java | 115 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent); in verifyEvent() local 116 Event_MONITOR_WAIT event = (ParsedEvent.Event_MONITOR_WAIT)parsedEvents[0]; in verifyEvent() 119 assertEquals("Invalid number of events,", 1, parsedEvents.length); in verifyEvent() 120 …assertEquals("Invalid event kind,", JDWPConstants.EventKind.MONITOR_WAIT, parsedEvents[0].getEvent… in verifyEvent() 122 , JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in verifyEvent() 141 , ((ParsedEvent.Event_MONITOR_WAIT)parsedEvents[0]).getTimeout()); in verifyEvent()
|
D | FieldModification002Test.java | 101 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in hookFieldModification() local 104 assertEquals("Invalid number of events,", 1, parsedEvents.length); in hookFieldModification() 107 parsedEvents[0].getEventKind(), in hookFieldModification() 109 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in hookFieldModification() 112 ((ParsedEvent.Event_FIELD_MODIFICATION)parsedEvents[0]).getValueToBe(); in hookFieldModification() 121 ((ParsedEvent.Event_FIELD_MODIFICATION)parsedEvents[0]).getObject(); in hookFieldModification()
|
D | CombinedEvents002Test.java | 182 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in receiveEvents() local 184 int receivedEventsNumber = parsedEvents.length; in receiveEvents() 187 receivedEvents.add(parsedEvents[i]); in receiveEvents() 189 byte eventKind = parsedEvents[i].getEventKind(); in receiveEvents() 190 eventKind = parsedEvents[i].getEventKind(); in receiveEvents() 206 parsedEvents = ParsedEvent.parseEventPacket(event); in receiveEvents() 208 receivedEventsNumber = parsedEvents.length; in receiveEvents() 211 receivedEvents.add(parsedEvents[i]); in receiveEvents() 213 byte eventKind = parsedEvents[i].getEventKind(); in receiveEvents()
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/ |
D | BreakpointTest.java | 103 ParsedEvent[] parsedEvents = ParsedEvent in testClearBreakpoint001() local 107 + parsedEvents.length); in testClearBreakpoint001() 108 for (int i = 0; i < parsedEvents.length; i++) { in testClearBreakpoint001() 110 + parsedEvents[0].getEventKind() in testClearBreakpoint001() 112 + JDWPConstants.EventKind.getName(parsedEvents[0] in testClearBreakpoint001() 115 + parsedEvents[0].getRequestID()); in testClearBreakpoint001()
|
D | MethodEntryExitTest.java | 114 ParsedEvent[] parsedEvents = ParsedEvent in testMethodEvent001() local 118 + parsedEvents.length); in testMethodEvent001() 119 for (int i = 0; i < parsedEvents.length; i++) { in testMethodEvent001() 121 + parsedEvents[0].getEventKind() in testMethodEvent001() 123 + JDWPConstants.EventKind.getName(parsedEvents[0] in testMethodEvent001() 126 + parsedEvents[0].getRequestID()); in testMethodEvent001()
|
D | ThreadStartTest.java | 105 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testThreadStart001() local 106 logWriter.println("=> Number of events = " + parsedEvents.length); in testThreadStart001() 107 for (int i = 0; i < parsedEvents.length; i++) { in testThreadStart001() 109 + parsedEvents[0].getEventKind() in testThreadStart001() 111 + JDWPConstants.EventKind.getName(parsedEvents[0] in testThreadStart001() 114 + parsedEvents[0].getRequestID()); in testThreadStart001()
|
D | ThreadEndTest.java | 101 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testThreadEnd001() local 102 logWriter.println("=> Number of events = " + parsedEvents.length); in testThreadEnd001() 103 for (int i = 0; i < parsedEvents.length; i++) { in testThreadEnd001() 105 + parsedEvents[0].getEventKind() in testThreadEnd001() 107 + JDWPConstants.EventKind.getName(parsedEvents[0] in testThreadEnd001() 110 + parsedEvents[0].getRequestID()); in testThreadEnd001()
|