Home
last modified time | relevance | path

Searched refs:CaptureEvent (Results 1 – 10 of 10) sorted by relevance

/frameworks/native/include/input/
DInput.h1013 class CaptureEvent : public InputEvent {
1015 virtual ~CaptureEvent() {} in ~CaptureEvent()
1023 void initialize(const CaptureEvent& from);
1134 virtual CaptureEvent* createCaptureEvent() = 0;
1151 virtual CaptureEvent* createCaptureEvent() override { return &mCaptureEvent; } in createCaptureEvent()
1159 CaptureEvent mCaptureEvent;
1175 virtual CaptureEvent* createCaptureEvent() override;
1187 std::queue<std::unique_ptr<CaptureEvent>> mCaptureEventPool;
1205 CaptureEvent* createCaptureEvent() override { return new CaptureEvent(); }; in createCaptureEvent()
DInputConsumerNoResampling.h42 virtual void onCaptureEvent(std::unique_ptr<CaptureEvent> event, uint32_t seq) = 0;
/frameworks/native/libs/input/
DInputConsumerNoResampling.cpp63 std::unique_ptr<CaptureEvent> createCaptureEvent(const InputMessage& msg) { in createCaptureEvent()
64 std::unique_ptr<CaptureEvent> event = std::make_unique<CaptureEvent>(); in createCaptureEvent()
429 std::unique_ptr<CaptureEvent> captureEvent = createCaptureEvent(msg); in handleMessage()
DInput.cpp1214 void CaptureEvent::initialize(int32_t id, bool pointerCaptureEnabled) { in initialize()
1220 void CaptureEvent::initialize(const CaptureEvent& from) { in initialize()
1291 CaptureEvent* PooledInputEventFactory::createCaptureEvent() { in createCaptureEvent()
1293 return new CaptureEvent(); in createCaptureEvent()
1295 CaptureEvent* event = mCaptureEventPool.front().release(); in createCaptureEvent()
1345 std::unique_ptr<CaptureEvent>(static_cast<CaptureEvent*>(event))); in recycle()
DInputConsumer.cpp94 void initializeCaptureEvent(CaptureEvent& event, const InputMessage& msg) { in initializeCaptureEvent()
361 CaptureEvent* captureEvent = factory->createCaptureEvent(); in consume()
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumerNoResampling_test.cpp348 BlockingQueue<std::unique_ptr<CaptureEvent>> mCaptureEvents;
371 void onCaptureEvent(std::unique_ptr<CaptureEvent> event, uint32_t seq) override { in onCaptureEvent()
619 std::optional<std::unique_ptr<CaptureEvent>> optEvent = mCaptureEvents.popWithTimeout(TIMEOUT); in publishAndConsumeCaptureEvent()
621 std::unique_ptr<CaptureEvent> event = std::move(*optEvent); in publishAndConsumeCaptureEvent()
623 const CaptureEvent& captureEvent = *event; in publishAndConsumeCaptureEvent()
DInputPublisherAndConsumer_test.cpp462 const CaptureEvent* captureEvent = static_cast<CaptureEvent*>(event); in publishAndConsumeCaptureEvent()
/frameworks/native/services/inputflinger/tests/
DFakeWindows.cpp171 const auto& captureEvent = static_cast<const CaptureEvent&>(*event); in consumeCaptureEvent()
217 const auto& captureEvent = static_cast<CaptureEvent&>(*event); in assertNoEvents()
/frameworks/base/native/android/
Dsurface_control_input_receiver.cpp74 void onCaptureEvent(std::unique_ptr<CaptureEvent>, uint32_t seq) override { in onCaptureEvent() argument
/frameworks/base/core/jni/
Dandroid_view_InputEventReceiver.cpp424 const CaptureEvent* captureEvent = static_cast<CaptureEvent*>(inputEvent); in consumeEvents()