Home
last modified time | relevance | path

Searched refs:ParsedEvent (Results 1 – 25 of 52) sorted by relevance

123

/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/
DCombinedEvents002Test.java31 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
95 List<ParsedEvent> receivedEvents = receiveEvents(); in runTest()
177 private List<ParsedEvent> receiveEvents() { in receiveEvents()
178 List<ParsedEvent> receivedEvents = new ArrayList<ParsedEvent>(); in receiveEvents()
182 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in receiveEvents()
206 parsedEvents = ParsedEvent.parseEventPacket(event); in receiveEvents()
230 private void checkEvents(List<ParsedEvent> receivedEvents, in checkEvents()
237 ParsedEvent parsedEvent = receivedEvents.get(i); in checkEvents()
266 private boolean checkMethodEntryEvent(ParsedEvent parsedEvent) { in checkMethodEntryEvent()
267 ParsedEvent.Event_METHOD_ENTRY methodEntryEvent = in checkMethodEntryEvent()
[all …]
DClassPrepareTest.java31 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
64 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testClassPrepareEvent()
71 , ((ParsedEvent.Event_CLASS_PREPARE)parsedEvents[0]).getSignature()); in testClassPrepareEvent()
103 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent); in testClassPrepareEventWithoutSourceDebugExtension()
109 …assertEquals("Invalid signature of prepared class,", expectedClassSignature, ((ParsedEvent.Event_C… in testClassPrepareEventWithoutSourceDebugExtension()
172 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent); in testClassPrepareEventWithSourceDebugExtension()
178 …assertEquals("Invalid signature of prepared class,", expectedClassSignature, ((ParsedEvent.Event_C… in testClassPrepareEventWithSourceDebugExtension()
DCombinedEventsTestCase.java34 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
198 protected boolean checkEventLocation(ParsedEvent parsedEvent, Location expectedLocation) { in checkEventLocation()
204 eventLocation = ((ParsedEvent.Event_METHOD_ENTRY)parsedEvent).getLocation(); in checkEventLocation()
205 eventThreadID = ((ParsedEvent.EventThread)parsedEvent).getThreadID(); in checkEventLocation()
208 eventLocation = ((ParsedEvent.Event_SINGLE_STEP)parsedEvent).getLocation(); in checkEventLocation()
209 eventThreadID = ((ParsedEvent.EventThread)parsedEvent).getThreadID(); in checkEventLocation()
212 eventLocation = ((ParsedEvent.Event_BREAKPOINT)parsedEvent).getLocation(); in checkEventLocation()
213 eventThreadID = ((ParsedEvent.EventThread)parsedEvent).getThreadID(); in checkEventLocation()
216 eventLocation = ((ParsedEvent.Event_METHOD_EXIT)parsedEvent).getLocation(); in checkEventLocation()
217 eventThreadID = ((ParsedEvent.EventThread)parsedEvent).getThreadID(); in checkEventLocation()
[all …]
DMethodExitWithReturnValueTest.java24 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
27 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.EventThread;
28 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.Event_METHOD_EXIT;
29 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.Event_METHOD_EXIT_WITH_RETURN_VALUE;
63 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent); in testMethodExitWithReturnValueException()
175 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent); in runMethodExitWithReturn()
DBreakpointOnCatchTest.java25 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
26 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.EventThread;
27 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.Event_EXCEPTION;
64 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testBreakpointOnCatch()
85 parsedEvents = ParsedEvent.parseEventPacket(event); in testBreakpointOnCatch()
DFieldAccessTest.java30 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
33 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.EventThread;
72 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testFieldAccessEvent()
86 TaggedObject accessedField =((ParsedEvent.Event_FIELD_ACCESS)parsedEvents[0]).getObject(); in testFieldAccessEvent()
DFieldModificationTest.java30 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
33 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.EventThread;
72 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testFieldModifyEvent()
86 … TaggedObject modifiedField =((ParsedEvent.Event_FIELD_MODIFICATION)parsedEvents[0]).getObject(); in testFieldModifyEvent()
DMonitorWaitTest.java24 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
25 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.Event_MONITOR_WAIT;
115 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent); in verifyEvent()
116 Event_MONITOR_WAIT event = (ParsedEvent.Event_MONITOR_WAIT)parsedEvents[0]; in verifyEvent()
141 , ((ParsedEvent.Event_MONITOR_WAIT)parsedEvents[0]).getTimeout()); in verifyEvent()
DExceptionBaseTest.java26 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
38 protected ParsedEvent.Event_EXCEPTION receiveAndCheckExceptionEvent(int requestID) { in receiveAndCheckExceptionEvent()
42 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in receiveAndCheckExceptionEvent()
55 ParsedEvent.Event_EXCEPTION exceptionEvent = (ParsedEvent.Event_EXCEPTION) parsedEvents[0]; in receiveAndCheckExceptionEvent()
DMonitorContendedEnterTest.java24 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
25 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.Event_MONITOR_CONTENDED_ENTER;
60 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent); in verifyEvent()
61 … Event_MONITOR_CONTENDED_ENTER event = (ParsedEvent.Event_MONITOR_CONTENDED_ENTER)parsedEvents[0]; in verifyEvent()
DMonitorContendedEnteredTest.java24 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
25 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.Event_MONITOR_CONTENDED_ENTERED;
60 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent); in verifyEvent()
61 …Event_MONITOR_CONTENDED_ENTERED event = (ParsedEvent.Event_MONITOR_CONTENDED_ENTERED)parsedEvents[… in verifyEvent()
DSingleStepThroughReflectionTest.java28 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
29 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.EventThreadLocation;
114 ParsedEvent parsedEvent = waitForSingleStepEvent(stepRequestID); in testSingleStepIntoThroughReflection()
145 private ParsedEvent waitForSingleStepEvent(int requestID) { in waitForSingleStepEvent()
148 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in waitForSingleStepEvent()
165 ParsedEvent parsedEvent = parsedEvents[0]; in waitForSingleStepEvent()
DCombinedExceptionEventsTest.java23 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
117 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in runCombinedExceptionEventsTest()
124 ParsedEvent parsedEvent = parsedEvents[i]; in runCombinedExceptionEventsTest()
136 ParsedEvent.Event_EXCEPTION exceptionEvent = (ParsedEvent.Event_EXCEPTION) parsedEvent; in runCombinedExceptionEventsTest()
DExceptionWithLocationTest.java24 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
77 protected void checkEvent(ParsedEvent event) { in checkEvent()
78 ParsedEvent.Event_EXCEPTION eventException = in checkEvent()
79 (ParsedEvent.Event_EXCEPTION) event; in checkEvent()
DMethodEntryTest.java30 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
32 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.EventThread;
65 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testMethodEntry()
DMethodExitTest.java30 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
32 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.EventThread;
65 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testMethodExit()
DCombinedEvents003Test.java33 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
189 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in receiveAndCheckEvents()
281 long eventThreadID = ((ParsedEvent.EventThread)parsedEvents[i]).getThreadID(); in receiveAndCheckEvents()
290 … eventLocation = ((ParsedEvent.Event_METHOD_ENTRY)parsedEvents[i]).getLocation(); in receiveAndCheckEvents()
293 … eventLocation = ((ParsedEvent.Event_SINGLE_STEP)parsedEvents[i]).getLocation(); in receiveAndCheckEvents()
296 … eventLocation = ((ParsedEvent.Event_BREAKPOINT)parsedEvents[i]).getLocation(); in receiveAndCheckEvents()
299 … eventLocation = ((ParsedEvent.Event_METHOD_EXIT)parsedEvents[i]).getLocation(); in receiveAndCheckEvents()
359 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in checkVMDeathEvent()
DMonitorWaitedTest.java24 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
25 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.Event_MONITOR_WAITED;
115 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent); in verifyEvent()
116 Event_MONITOR_WAITED event = (ParsedEvent.Event_MONITOR_WAITED)parsedEvents[0]; in verifyEvent()
DBreakpointTest.java32 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
33 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.EventThread;
68 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testSetBreakpointEvent()
DExceptionUncaughtTest.java23 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
53 ParsedEvent.Event_EXCEPTION exceptionEvent = requestAndReceiveExceptionEvent(); in testExceptionUncaughtEvent_ExceptionObject()
91 ParsedEvent.Event_EXCEPTION exceptionEvent = requestAndReceiveExceptionEvent(); in testExceptionUncaughtEvent_ThrowLocation()
145 ParsedEvent.Event_EXCEPTION exceptionEvent = requestAndReceiveExceptionEvent(); in testExceptionUncaughtEvent_CatchLocation()
184 private ParsedEvent.Event_EXCEPTION requestAndReceiveExceptionEvent() { in requestAndReceiveExceptionEvent()
DEventLocationEventTestCase.java26 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
43 protected abstract void checkEvent(ParsedEvent event); in checkEvent()
56 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in runEventWithLocationTest()
61 ParsedEvent parsedEvent = parsedEvents[0]; in runEventWithLocationTest()
DFieldWithLocationTest.java23 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
99 protected void checkEvent(ParsedEvent event) { in checkEvent()
103 accessedField = ((ParsedEvent.Event_FIELD_ACCESS)event).getObject(); in checkEvent()
105 accessedField = ((ParsedEvent.Event_FIELD_MODIFICATION)event).getObject(); in checkEvent()
DFieldModification002Test.java30 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
110 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in hookFieldModification()
121 ((ParsedEvent.Event_FIELD_MODIFICATION)parsedEvents[0]).getValueToBe(); in hookFieldModification()
130 ((ParsedEvent.Event_FIELD_MODIFICATION)parsedEvents[0]).getObject(); in hookFieldModification()
DThreadEndTest.java32 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent;
34 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.*;
76 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testThreadEndEvent001()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/
DParsedEvent.java33 public class ParsedEvent { class
44 protected ParsedEvent(byte suspendPolicy, Packet packet, byte eventKind) { in ParsedEvent() method in ParsedEvent
78 public static class EventThread extends ParsedEvent {
474 public static final class Event_CLASS_UNLOAD extends ParsedEvent {
622 public static final class Event_VM_DEATH extends ParsedEvent {
640 public static ParsedEvent[] parseEventPacket(Packet packet) { in parseEventPacket()
650 ParsedEvent[] events = new ParsedEvent[eventCount]; in parseEventPacket()

123