/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ |
D | CombinedEvents003Test.java | 188 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in receiveAndCheckEvents() local 191 … logWriter.println("=> Received event packet with events number = " + parsedEvents.length + " :"); in receiveAndCheckEvents() 193 for (int i = 0; i < parsedEvents.length; i++) { in receiveAndCheckEvents() 197 + parsedEvents[i].getEventKind() in receiveAndCheckEvents() 199 + JDWPConstants.EventKind.getName(parsedEvents[i] in receiveAndCheckEvents() 202 + parsedEvents[i].getRequestID()); in receiveAndCheckEvents() 203 if ( parsedEvents[i].getEventKind() == JDWPConstants.EventKind.VM_DEATH ) { in receiveAndCheckEvents() 210 checkEventsLocation(parsedEvents, null); // DBG__ in receiveAndCheckEvents() 213 if (parsedEvents.length == 1) { in receiveAndCheckEvents() 238 } else if (parsedEvents.length > 1) { in receiveAndCheckEvents() [all …]
|
D | ClassPrepareTest.java | 65 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testClassPrepareEvent() local 67 assertEquals("Invalid number of events,", 1, parsedEvents.length); in testClassPrepareEvent() 68 …assertEquals("Invalid event kind,", JDWPConstants.EventKind.CLASS_PREPARE, parsedEvents[0].getEven… in testClassPrepareEvent() 70 , JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in testClassPrepareEvent() 72 , ((ParsedEvent.Event_CLASS_PREPARE)parsedEvents[0]).getSignature()); in testClassPrepareEvent() 103 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent); in testClassPrepareEventWithoutSourceDebugExtension() local 105 assertEquals("Invalid number of events,", 1, parsedEvents.length); in testClassPrepareEventWithoutSourceDebugExtension() 106 …assertEquals("Invalid event kind,", JDWPConstants.EventKind.CLASS_PREPARE, parsedEvents[0].getEven… in testClassPrepareEventWithoutSourceDebugExtension() 108 , JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in testClassPrepareEventWithoutSourceDebugExtension() 109 …ed class,", expectedClassSignature, ((ParsedEvent.Event_CLASS_PREPARE)parsedEvents[0]).getSignatur… in testClassPrepareEventWithoutSourceDebugExtension() [all …]
|
D | CombinedEventsTest.java | 657 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testCombinedEvents_05() local 659 logWriter.println("=> Events received: " + parsedEvents.length); in testCombinedEvents_05() 660 for (int i = 0; i < parsedEvents.length; i++) { in testCombinedEvents_05() 664 + parsedEvents[i].getEventKind() in testCombinedEvents_05() 666 + JDWPConstants.EventKind.getName(parsedEvents[i] in testCombinedEvents_05() 669 .println("=> RequestID: " + parsedEvents[i].getRequestID()); in testCombinedEvents_05() 672 boolean locationsOK = checkEventsLocation(parsedEvents, combinedEventsLocation); in testCombinedEvents_05() 673 if (parsedEvents.length == EXPECTED_EVENTS_COUNT) { in testCombinedEvents_05() 677 for (int i = 0; i < parsedEvents.length; i++) { in testCombinedEvents_05() 680 if (parsedEvents[i].getEventKind() == EXPECTED_EVENTS_ARRAY[j]) { in testCombinedEvents_05() [all …]
|
D | ThreadEndTest.java | 69 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testThreadEndEvent001() local 70 logWriter.println("=> Number of events = " + parsedEvents.length); in testThreadEndEvent001() 71 assertEquals("Invalid number of events,", 1, parsedEvents.length); in testThreadEndEvent001() 72 logWriter.println("=> EventKind() = " + parsedEvents[0].getEventKind() in testThreadEndEvent001() 73 + " (" + JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind()) + ")"); in testThreadEndEvent001() 76 parsedEvents[0].getEventKind(), in testThreadEndEvent001() 78 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in testThreadEndEvent001() 79 logWriter.println("=> EventRequestID() = " + parsedEvents[0].getRequestID()); in testThreadEndEvent001() 81 long threadID = ((Event_THREAD_DEATH)parsedEvents[0]).getThreadID(); in testThreadEndEvent001()
|
D | ThreadStartTest.java | 75 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testThreadStartEvent001() local 76 logWriter.println("=> Number of events = " + parsedEvents.length); in testThreadStartEvent001() 77 assertEquals("Invalid number of events,", 1, parsedEvents.length); in testThreadStartEvent001() 78 logWriter.println("=> EventKind() = " + parsedEvents[0].getEventKind() in testThreadStartEvent001() 79 + " (" + JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind()) + ")"); in testThreadStartEvent001() 82 parsedEvents[0].getEventKind(), in testThreadStartEvent001() 84 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in testThreadStartEvent001() 85 logWriter.println("=> EventRequestID() = " + parsedEvents[0].getRequestID()); in testThreadStartEvent001() 87 long threadID = ((Event_THREAD_START)parsedEvents[0]).getThreadID(); in testThreadStartEvent001()
|
D | SingleStepTest.java | 153 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in stepFunction() local 156 logWriter.println("==> Received " + parsedEvents.length + " events"); in stepFunction() 159 for (int i = 0; i < parsedEvents.length; i++) { in stepFunction() 162 logWriter.println("==> EventKind: " + parsedEvents[i].getEventKind() + "(" in stepFunction() 163 + JDWPConstants.EventKind.getName(parsedEvents[i].getEventKind()) + ")"); in stepFunction() 164 logWriter.println("==> RequestID: " + parsedEvents[i].getRequestID()); in stepFunction() 168 assertEquals("Received wrong number of events,", 1, parsedEvents.length); in stepFunction() 169 assertEquals("Received wrong event request ID,", requestID, parsedEvents[0].getRequestID()); in stepFunction() 171 parsedEvents[0].getEventKind(), in stepFunction() 173 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in stepFunction() [all …]
|
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 | BreakpointOnCatchTest.java | 63 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testBreakpointOnCatch() local 64 assertEquals("Invalid number of events:", 1, parsedEvents.length); in testBreakpointOnCatch() 65 assertEquals("Invalid request ID:", exceptionRequestID, parsedEvents[0].getRequestID()); in testBreakpointOnCatch() 68 Location catchLocation = ((Event_EXCEPTION) parsedEvents[0]).getCatchLocation(); in testBreakpointOnCatch() 84 parsedEvents = ParsedEvent.parseEventPacket(event); in testBreakpointOnCatch() 85 assertEquals("Invalid number of events:", 1, parsedEvents.length); in testBreakpointOnCatch() 86 assertEquals("Invalid request ID:", requestID, parsedEvents[0].getRequestID()); in testBreakpointOnCatch() 89 long eventThreadID = ((EventThread) parsedEvents[0]).getThreadID(); in testBreakpointOnCatch()
|
D | SingleStepWithLocationTest.java | 128 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testSingleStepToLocation() local 131 logWriter.println("==> Received " + parsedEvents.length + " events"); in testSingleStepToLocation() 134 for (int i = 0; i < parsedEvents.length; i++) { in testSingleStepToLocation() 137 logWriter.println("==> EventKind: " + parsedEvents[i].getEventKind() + "(" in testSingleStepToLocation() 138 + JDWPConstants.EventKind.getName(parsedEvents[i].getEventKind()) + ")"); in testSingleStepToLocation() 139 logWriter.println("==> RequestID: " + parsedEvents[i].getRequestID()); in testSingleStepToLocation() 143 assertEquals("Received wrong number of events,", 1, parsedEvents.length); in testSingleStepToLocation() 144 assertEquals("Received wrong event request ID,", requestID, parsedEvents[0].getRequestID()); in testSingleStepToLocation() 146 parsedEvents[0].getEventKind(), in testSingleStepToLocation() 148 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in testSingleStepToLocation()
|
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 | 66 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testSetBreakpointEvent() local 68 assertEquals("Invalid number of events,", 1, parsedEvents.length); in testSetBreakpointEvent() 71 parsedEvents[0].getEventKind(), in testSetBreakpointEvent() 73 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in testSetBreakpointEvent() 74 assertEquals("Invalid request ID", requestID, parsedEvents[0].getRequestID()); in testSetBreakpointEvent() 76 long eventThreadID = ((EventThread) parsedEvents[0]).getThreadID(); in testSetBreakpointEvent()
|
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 | FieldModificationTest.java | 64 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testFieldModifyEvent() local 67 assertEquals("Invalid number of events,", 1, parsedEvents.length); in testFieldModifyEvent() 70 parsedEvents[0].getEventKind(), in testFieldModifyEvent() 72 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in testFieldModifyEvent() 74 long eventThreadID = ((EventThread) parsedEvents[0]).getThreadID(); in testFieldModifyEvent() 78 … TaggedObject modifiedField =((ParsedEvent.Event_FIELD_MODIFICATION)parsedEvents[0]).getObject(); in testFieldModifyEvent()
|
D | FieldAccessTest.java | 64 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testFieldAccessEvent() local 67 assertEquals("Invalid number of events,", 1, parsedEvents.length); in testFieldAccessEvent() 70 parsedEvents[0].getEventKind(), in testFieldAccessEvent() 72 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in testFieldAccessEvent() 74 long eventThreadID = ((EventThread) parsedEvents[0]).getThreadID(); in testFieldAccessEvent() 78 TaggedObject accessedField =((ParsedEvent.Event_FIELD_ACCESS)parsedEvents[0]).getObject(); in testFieldAccessEvent()
|
D | MethodExitWithReturnValueTest.java | 64 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent); in testMethodExitWithReturnValueException() local 65 Event_METHOD_EXIT event = (Event_METHOD_EXIT)parsedEvents[0]; in testMethodExitWithReturnValueException() 67 assertEquals("Invalid number of events,", 1, parsedEvents.length); in testMethodExitWithReturnValueException() 176 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent); in runMethodExitWithReturn() local 179 assertEquals("Invalid number of events,", 1, parsedEvents.length); in runMethodExitWithReturn() 185 parsedEvents[0].getEventKind(), in runMethodExitWithReturn() 188 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in runMethodExitWithReturn() 191 long eventThreadID = ((EventThread) parsedEvents[0]).getThreadID(); in runMethodExitWithReturn() 196 Value value = ((Event_METHOD_EXIT_WITH_RETURN_VALUE) parsedEvents[0]) in runMethodExitWithReturn()
|
D | MethodExitTest.java | 66 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testMethodExit() local 68 assertEquals("Invalid number of events,", 1, parsedEvents.length); in testMethodExit() 71 parsedEvents[0].getEventKind(), in testMethodExit() 73 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in testMethodExit() 75 long eventThreadID = ((EventThread) parsedEvents[0]).getThreadID(); in testMethodExit()
|
D | MethodEntryTest.java | 66 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testMethodEntry() local 68 assertEquals("Invalid number of events,", 1, parsedEvents.length); in testMethodEntry() 71 parsedEvents[0].getEventKind(), in testMethodEntry() 73 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in testMethodEntry() 75 long eventThreadID = ((EventThread) parsedEvents[0]).getThreadID(); in testMethodEntry()
|
D | SingleStepThroughReflectionTest.java | 145 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in waitForSingleStepEvent() local 147 logWriter.println("==> Received " + parsedEvents.length + " events"); in waitForSingleStepEvent() 150 for (int i = 0; i < parsedEvents.length; i++) { in waitForSingleStepEvent() 153 logWriter.println("==> EventKind: " + parsedEvents[i].getEventKind() + "(" in waitForSingleStepEvent() 154 + JDWPConstants.EventKind.getName(parsedEvents[i].getEventKind()) + ")"); in waitForSingleStepEvent() 155 logWriter.println("==> RequestID: " + parsedEvents[i].getRequestID()); in waitForSingleStepEvent() 159 assertEquals("Received wrong number of events,", 1, parsedEvents.length); in waitForSingleStepEvent() 162 ParsedEvent parsedEvent = parsedEvents[0]; in waitForSingleStepEvent()
|
D | MonitorWaitTest.java | 116 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent); in verifyEvent() local 117 Event_MONITOR_WAIT event = (ParsedEvent.Event_MONITOR_WAIT)parsedEvents[0]; in verifyEvent() 120 assertEquals("Invalid number of events,", 1, parsedEvents.length); in verifyEvent() 121 …assertEquals("Invalid event kind,", JDWPConstants.EventKind.MONITOR_WAIT, parsedEvents[0].getEvent… in verifyEvent() 123 , JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in verifyEvent() 142 , ((ParsedEvent.Event_MONITOR_WAIT)parsedEvents[0]).getTimeout()); in verifyEvent()
|
D | FieldModification002Test.java | 102 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in hookFieldModification() local 105 assertEquals("Invalid number of events,", 1, parsedEvents.length); in hookFieldModification() 108 parsedEvents[0].getEventKind(), in hookFieldModification() 110 JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind())); in hookFieldModification() 113 ((ParsedEvent.Event_FIELD_MODIFICATION)parsedEvents[0]).getValueToBe(); in hookFieldModification() 122 ((ParsedEvent.Event_FIELD_MODIFICATION)parsedEvents[0]).getObject(); in hookFieldModification()
|
D | CombinedEvents002Test.java | 186 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in receiveEvents() local 188 int receivedEventsNumber = parsedEvents.length; in receiveEvents() 191 receivedEvents.add(parsedEvents[i]); in receiveEvents() 193 byte eventKind = parsedEvents[i].getEventKind(); in receiveEvents() 194 eventKind = parsedEvents[i].getEventKind(); in receiveEvents() 210 parsedEvents = ParsedEvent.parseEventPacket(event); in receiveEvents() 212 receivedEventsNumber = parsedEvents.length; in receiveEvents() 215 receivedEvents.add(parsedEvents[i]); in receiveEvents() 217 byte eventKind = parsedEvents[i].getEventKind(); in receiveEvents()
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/ |
D | BreakpointTest.java | 101 ParsedEvent[] parsedEvents = ParsedEvent in testClearBreakpoint001() local 105 + parsedEvents.length); in testClearBreakpoint001() 106 for (int i = 0; i < parsedEvents.length; i++) { in testClearBreakpoint001() 108 + parsedEvents[0].getEventKind() in testClearBreakpoint001() 110 + JDWPConstants.EventKind.getName(parsedEvents[0] in testClearBreakpoint001() 113 + parsedEvents[0].getRequestID()); in testClearBreakpoint001()
|
D | ThreadEndTest.java | 93 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testThreadEnd001() local 94 logWriter.println("=> Number of events = " + parsedEvents.length); in testThreadEnd001() 95 for (int i = 0; i < parsedEvents.length; i++) { in testThreadEnd001() 97 + parsedEvents[0].getEventKind() in testThreadEnd001() 99 + JDWPConstants.EventKind.getName(parsedEvents[0] in testThreadEnd001() 102 + parsedEvents[0].getRequestID()); in testThreadEnd001()
|
D | ThreadStartTest.java | 96 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testThreadStart001() local 97 logWriter.println("=> Number of events = " + parsedEvents.length); in testThreadStart001() 98 for (int i = 0; i < parsedEvents.length; i++) { in testThreadStart001() 100 + parsedEvents[0].getEventKind() in testThreadStart001() 102 + JDWPConstants.EventKind.getName(parsedEvents[0] in testThreadStart001() 105 + parsedEvents[0].getRequestID()); in testThreadStart001()
|
D | MethodEntryExitTest.java | 110 ParsedEvent[] parsedEvents = ParsedEvent in testMethodEvent001() local 114 + parsedEvents.length); in testMethodEvent001() 115 for (int i = 0; i < parsedEvents.length; i++) { in testMethodEvent001() 117 + parsedEvents[0].getEventKind() in testMethodEvent001() 119 + JDWPConstants.EventKind.getName(parsedEvents[0] in testMethodEvent001() 122 + parsedEvents[0].getRequestID()); in testMethodEvent001()
|