Home
last modified time | relevance | path

Searched refs:EventPacket (Results 1 – 25 of 27) sorted by relevance

12

/external/pigweed/pw_bluetooth_hci/
Dpacket_test.cc32 EventPacket::kHeaderSizeBytes,
409 const EventPacket packet(0u, ConstByteSpan()); in TEST_F()
412 packet.Encode({packet_buffer_.data(), EventPacket::kHeaderSizeBytes - 1}); in TEST_F()
417 EXPECT_FALSE(EventPacket::Decode( in TEST_F()
418 {packet_buffer_.data(), EventPacket::kHeaderSizeBytes - 1}) in TEST_F()
425 const EventPacket packet(kEventCode, ConstByteSpan()); in TEST_F()
427 EXPECT_EQ(packet.size_bytes(), EventPacket::kHeaderSizeBytes); in TEST_F()
434 constexpr std::array<const std::byte, EventPacket::kHeaderSizeBytes> in TEST_F()
441 std::optional<EventPacket> possible_packet = in TEST_F()
442 EventPacket::Decode(encoded_packet); in TEST_F()
[all …]
Duart_transport_test.cc214 std::array<std::byte, EventPacket::kHeaderSizeBytes> packet_buffer; in TEST_F()
215 EventPacket packet(0u, ConstByteSpan()); in TEST_F()
228 TEST_F(UartTransportTest, EventPacket) { in TEST_F() argument
231 std::array<std::byte, EventPacket::kHeaderSizeBytes> packet_buffer; in TEST_F()
232 EventPacket packet(0u, ConstByteSpan()); in TEST_F()
256 std::array<std::byte, EventPacket::kHeaderSizeBytes> packet_buffer; in TEST_F()
257 EventPacket packet(0u, ConstByteSpan()); in TEST_F()
287 std::array<std::byte, EventPacket::kHeaderSizeBytes> packet_buffer; in TEST_F()
288 EventPacket packet(0u, ConstByteSpan()); in TEST_F()
346 std::array<std::byte, EventPacket::kHeaderSizeBytes> packet_buffer; in TEST_F()
[all …]
Duart_transport.cc72 const std::optional<EventPacket> maybe_packet = in DecodeHciUartData()
73 EventPacket::Decode(data); in DecodeHciUartData()
79 const EventPacket& packet = maybe_packet.value(); in DecodeHciUartData()
Dpacket.cc111 Result<ConstByteSpan> EventPacket::Encode(ByteSpan buffer) const { in Encode()
120 std::optional<EventPacket> EventPacket::Decode(ConstByteSpan data) { in Decode()
132 return EventPacket(event_code, in Decode()
Duart_transport_fuzzer.cc98 const EventPacket& event_packet = packet.event_packet(); in LLVMFuzzerTestOneInput()
Ddocs.rst23 * HCI Event Data Packet: ``pw::bluetooth_hci::EventPacket``
/external/pigweed/pw_bluetooth_hci/public/pw_bluetooth_hci/
Dpacket.h35 class EventPacket; variable
80 const EventPacket& event_packet() const { in event_packet()
82 return *reinterpret_cast<const EventPacket*>(this); in event_packet()
85 EventPacket& event_packet() { in event_packet()
87 return *reinterpret_cast<EventPacket*>(this); in event_packet()
301 class EventPacket : public Packet {
313 constexpr EventPacket(uint8_t event_code, in EventPacket() function
321 constexpr EventPacket(uint16_t event_code, ConstByteSpan parameters) in EventPacket() function
322 : EventPacket(event_code, in EventPacket()
329 static std::optional<EventPacket> Decode(ConstByteSpan data);
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/
DPacketDispatcher.java90 private List<EventPacket> eventQueue;
97 eventQueue = new ArrayList<EventPacket>(); in EventsSynchronyzer()
107 public void notifyThread(EventPacket eventPacket) in notifyThread()
131 public EventPacket waitForNextEvent(long timeout) in waitForNextEvent()
159 EventPacket event = eventQueue.remove(0); in waitForNextEvent()
555 EventPacket eventPacket = new EventPacket(packet); in run()
639 public EventPacket receiveEvent(long timeout) throws IOException, in receiveEvent()
DEventPacket.java31 public class EventPacket extends CommandPacket { class
38 public EventPacket(byte[] p) { in EventPacket() method in EventPacket
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/VirtualMachine/
DHoldEventsTest.java30 import org.apache.harmony.jpda.tests.framework.jdwp.EventPacket;
77 EventPacket event = debuggeeWrapper.vmMirror.receiveEvent(settings.getTimeout()); in testHoldEvents001()
92EventPacket event = debuggeeWrapper.vmMirror.receiveCertainEvent(JDWPConstants.EventKind.THREAD_ST… in testHoldEvents001()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/
DFieldModificationTest.java28 import org.apache.harmony.jpda.tests.framework.jdwp.EventPacket;
63 EventPacket event = debuggeeWrapper.vmMirror.receiveEvent(); in testFieldModifyEvent()
DFieldAccessTest.java28 import org.apache.harmony.jpda.tests.framework.jdwp.EventPacket;
63 EventPacket event = debuggeeWrapper.vmMirror.receiveEvent(); in testFieldAccessEvent()
DSingleStepWithPendingExceptionTest.java21 import org.apache.harmony.jpda.tests.framework.jdwp.EventPacket;
67 EventPacket eventPacket = in testSingleStepWithPendingException()
DClassUnloadTest.java29 import org.apache.harmony.jpda.tests.framework.jdwp.EventPacket;
87 EventPacket event = null; in testClassUnloadEvent()
DExceptionBaseTest.java22 import org.apache.harmony.jpda.tests.framework.jdwp.EventPacket;
40 EventPacket event = debuggeeWrapper.vmMirror.receiveEvent(); in receiveAndCheckExceptionEvent()
DEventLocationEventTestCase.java23 import org.apache.harmony.jpda.tests.framework.jdwp.EventPacket;
54 EventPacket event = debuggeeWrapper.vmMirror.receiveEvent(); in runEventWithLocationTest()
DClassPrepare002Test.java24 import org.apache.harmony.jpda.tests.framework.jdwp.EventPacket;
92 EventPacket eventPacket = debuggeeWrapper.vmMirror in testClassPrepareCausedByDebugger()
DFieldModification002Test.java28 import org.apache.harmony.jpda.tests.framework.jdwp.EventPacket;
101 EventPacket event = debuggeeWrapper.vmMirror.receiveEvent(); in hookFieldModification()
DCombinedExceptionEventsTest.java21 import org.apache.harmony.jpda.tests.framework.jdwp.EventPacket;
116 EventPacket event = debuggeeWrapper.vmMirror.receiveEvent(); in runCombinedExceptionEventsTest()
DCombinedEvents003Test.java29 import org.apache.harmony.jpda.tests.framework.jdwp.EventPacket;
187 EventPacket event = debuggeeWrapper.vmMirror.receiveEvent(); in receiveAndCheckEvents()
357 EventPacket event = debuggeeWrapper.vmMirror.receiveEvent(); in checkVMDeathEvent()
DCombinedEventsTest.java29 import org.apache.harmony.jpda.tests.framework.jdwp.EventPacket;
656 EventPacket event = debuggeeWrapper.vmMirror.receiveEvent(); in testCombinedEvents_05()
814 EventPacket event = debuggeeWrapper.vmMirror.receiveEvent(); in testCombinedEvents_06()
910 EventPacket event = debuggeeWrapper.vmMirror.receiveEvent(); in receiveAndCheckEvents()
1083 EventPacket event = debuggeeWrapper.vmMirror.receiveEvent(); in checkVMDeathEvent()
DEventWithExceptionTest.java21 import org.apache.harmony.jpda.tests.framework.jdwp.EventPacket;
482 EventPacket eventPacket = debuggeeWrapper.vmMirror.receiveCertainEvent(eventKind); in waitForEvent()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Deoptimization/
DDeoptimizationWithExceptionHandlingTest.java21 import org.apache.harmony.jpda.tests.framework.jdwp.EventPacket;
137 EventPacket event = debuggeeWrapper.vmMirror.receiveCertainEvent(eventKind); in waitForExceptionEvent()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/EventModifiers/
DJDWPEventModifierTestCase.java6 import org.apache.harmony.jpda.tests.framework.jdwp.EventPacket;
221 EventPacket eventPacket = debuggeeWrapper.vmMirror.receiveCertainEvent( in waitForEvent()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/share/
DJDWPTestCase.java30 import org.apache.harmony.jpda.tests.framework.jdwp.EventPacket;
50 protected EventPacket initialEvent = null;

12