Home
last modified time | relevance | path

Searched refs:InputPublisher (Results 1 – 6 of 6) sorted by relevance

/aosp12/frameworks/native/libs/input/tests/
H A DInputPublisherAndConsumer_test.cpp38 std::unique_ptr<InputPublisher> mPublisher;
50 mPublisher = std::make_unique<InputPublisher>(mServerChannel); in SetUp()
130 ASSERT_TRUE(std::holds_alternative<InputPublisher::Finished>(*result)); in PublishAndConsumeKeyEvent()
131 const InputPublisher::Finished& finish = std::get<InputPublisher::Finished>(*result); in PublishAndConsumeKeyEvent()
279 ASSERT_TRUE(std::holds_alternative<InputPublisher::Finished>(*result)); in PublishAndConsumeMotionEvent()
280 const InputPublisher::Finished& finish = std::get<InputPublisher::Finished>(*result); in PublishAndConsumeMotionEvent()
321 ASSERT_TRUE(std::holds_alternative<InputPublisher::Finished>(*result)); in PublishAndConsumeFocusEvent()
322 const InputPublisher::Finished& finish = std::get<InputPublisher::Finished>(*result); in PublishAndConsumeFocusEvent()
363 const InputPublisher::Finished& finish = std::get<InputPublisher::Finished>(*result); in PublishAndConsumeCaptureEvent()
407 const InputPublisher::Finished& finish = std::get<InputPublisher::Finished>(*result); in PublishAndConsumeDragEvent()
[all …]
/aosp12/frameworks/base/core/jni/
H A Dandroid_view_InputEventSender.cpp68 InputPublisher mInputPublisher;
81 const InputPublisher::ConsumerResponse& response,
213 Result<InputPublisher::ConsumerResponse> result = mInputPublisher.receiveConsumerResponse(); in processConsumerResponse()
242 JNIEnv* env, jobject sender, const InputPublisher::ConsumerResponse& response, in notifyConsumerResponse()
244 if (std::holds_alternative<InputPublisher::Timeline>(response)) { in notifyConsumerResponse()
245 const InputPublisher::Timeline& timeline = std::get<InputPublisher::Timeline>(response); in notifyConsumerResponse()
273 const InputPublisher::Finished& finished = std::get<InputPublisher::Finished>(response); in notifyConsumerResponse()
/aosp12/frameworks/native/services/inputflinger/dispatcher/
H A DConnection.h47 InputPublisher inputPublisher;
H A DInputDispatcher.cpp3413 Result<InputPublisher::ConsumerResponse> result = in handleReceiveCallback()
3420 if (std::holds_alternative<InputPublisher::Finished>(*result)) { in handleReceiveCallback()
3421 const InputPublisher::Finished& finish = in handleReceiveCallback()
3422 std::get<InputPublisher::Finished>(*result); in handleReceiveCallback()
3425 } else if (std::holds_alternative<InputPublisher::Timeline>(*result)) { in handleReceiveCallback()
3427 const InputPublisher::Timeline& timeline = in handleReceiveCallback()
3428 std::get<InputPublisher::Timeline>(*result); in handleReceiveCallback()
/aosp12/frameworks/native/libs/input/
H A DInputTransport.cpp485 InputPublisher::InputPublisher(const std::shared_ptr<InputChannel>& channel) : mChannel(channel) {} in InputPublisher() function in android::InputPublisher
487 InputPublisher::~InputPublisher() { in ~InputPublisher()
490 status_t InputPublisher::publishKeyEvent(uint32_t seq, int32_t eventId, int32_t deviceId, in publishKeyEvent()
533 status_t InputPublisher::publishMotionEvent( in publishMotionEvent()
613 status_t InputPublisher::publishFocusEvent(uint32_t seq, int32_t eventId, bool hasFocus, in publishFocusEvent()
632 status_t InputPublisher::publishCaptureEvent(uint32_t seq, int32_t eventId, in publishCaptureEvent()
649 status_t InputPublisher::publishDragEvent(uint32_t seq, int32_t eventId, float x, float y, in publishDragEvent()
668 android::base::Result<InputPublisher::ConsumerResponse> InputPublisher::receiveConsumerResponse() { in receiveConsumerResponse()
/aosp12/frameworks/native/include/input/
H A DInputTransport.h320 class InputPublisher {
323 explicit InputPublisher(const std::shared_ptr<InputChannel>& channel);
326 ~InputPublisher();