Searched refs:InputPublisher (Results 1 – 8 of 8) sorted by relevance
/frameworks/native/libs/input/tests/ |
D | InputPublisherAndConsumer_test.cpp | 183 void publishMotionEvent(InputPublisher& publisher, const PublishMotionArgs& a) { in publishMotionEvent() 195 void sendAndVerifyFinishedSignal(InputConsumer& consumer, InputPublisher& publisher, uint32_t seq, in sendAndVerifyFinishedSignal() 199 Result<InputPublisher::ConsumerResponse> result = publisher.receiveConsumerResponse(); in sendAndVerifyFinishedSignal() 201 ASSERT_TRUE(std::holds_alternative<InputPublisher::Finished>(*result)); in sendAndVerifyFinishedSignal() 202 const InputPublisher::Finished& finish = std::get<InputPublisher::Finished>(*result); in sendAndVerifyFinishedSignal() 225 std::unique_ptr<InputPublisher> mPublisher; 235 mPublisher = std::make_unique<InputPublisher>(std::move(serverChannel)); in SetUp() 320 Result<InputPublisher::ConsumerResponse> result = mPublisher->receiveConsumerResponse(); in publishAndConsumeKeyEvent() 322 ASSERT_TRUE(std::holds_alternative<InputPublisher::Finished>(*result)); in publishAndConsumeKeyEvent() 323 const InputPublisher::Finished& finish = std::get<InputPublisher::Finished>(*result); in publishAndConsumeKeyEvent() [all …]
|
D | InputPublisherAndConsumerNoResampling_test.cpp | 190 void publishMotionEvent(InputPublisher& publisher, const PublishMotionArgs& a) { in publishMotionEvent() 202 Result<InputPublisher::ConsumerResponse> receiveConsumerResponse( in receiveConsumerResponse() 203 InputPublisher& publisher, std::chrono::milliseconds timeout) { in receiveConsumerResponse() 207 Result<InputPublisher::ConsumerResponse> result = publisher.receiveConsumerResponse(); in receiveConsumerResponse() 218 void verifyFinishedSignal(InputPublisher& publisher, uint32_t seq, nsecs_t publishTime) { in verifyFinishedSignal() 219 Result<InputPublisher::ConsumerResponse> result = receiveConsumerResponse(publisher, TIMEOUT); in verifyFinishedSignal() 221 ASSERT_TRUE(std::holds_alternative<InputPublisher::Finished>(*result)); in verifyFinishedSignal() 222 const InputPublisher::Finished& finish = std::get<InputPublisher::Finished>(*result); in verifyFinishedSignal() 248 std::unique_ptr<InputPublisher> mPublisher; 284 mPublisher = std::make_unique<InputPublisher>(std::move(serverChannel)); in SetUp() [all …]
|
D | TouchResampling_test.cpp | 49 std::unique_ptr<InputPublisher> mPublisher; 61 mPublisher = std::make_unique<InputPublisher>(std::move(serverChannel)); in SetUp() 142 android::base::Result<InputPublisher::ConsumerResponse> response = in receiveResponseUntilSequence() 145 ASSERT_TRUE(std::holds_alternative<InputPublisher::Finished>(*response)); in receiveResponseUntilSequence() 146 const InputPublisher::Finished& finish = std::get<InputPublisher::Finished>(*response); in receiveResponseUntilSequence()
|
/frameworks/base/core/jni/ |
D | android_view_InputEventSender.cpp | 69 InputPublisher mInputPublisher; 82 const InputPublisher::ConsumerResponse& response, 222 Result<InputPublisher::ConsumerResponse> result = mInputPublisher.receiveConsumerResponse(); in processConsumerResponse() 252 JNIEnv* env, jobject sender, const InputPublisher::ConsumerResponse& response, in notifyConsumerResponse() 254 if (std::holds_alternative<InputPublisher::Timeline>(response)) { in notifyConsumerResponse() 255 const InputPublisher::Timeline& timeline = std::get<InputPublisher::Timeline>(response); in notifyConsumerResponse() 284 const InputPublisher::Finished& finished = std::get<InputPublisher::Finished>(response); in notifyConsumerResponse()
|
/frameworks/native/libs/input/ |
D | InputTransport.cpp | 526 InputPublisher::InputPublisher(const std::shared_ptr<InputChannel>& channel) in InputPublisher() function in android::InputPublisher 529 InputPublisher::~InputPublisher() { in ~InputPublisher() 532 status_t InputPublisher::publishKeyEvent(uint32_t seq, int32_t eventId, int32_t deviceId, in publishKeyEvent() 574 status_t InputPublisher::publishMotionEvent( in publishMotionEvent() 664 status_t InputPublisher::publishFocusEvent(uint32_t seq, int32_t eventId, bool hasFocus) { in publishFocusEvent() 679 status_t InputPublisher::publishCaptureEvent(uint32_t seq, int32_t eventId, in publishCaptureEvent() 696 status_t InputPublisher::publishDragEvent(uint32_t seq, int32_t eventId, float x, float y, in publishDragEvent() 715 status_t InputPublisher::publishTouchModeEvent(uint32_t seq, int32_t eventId, bool isInTouchMode) { in publishTouchModeEvent() 731 android::base::Result<InputPublisher::ConsumerResponse> InputPublisher::receiveConsumerResponse() { in receiveConsumerResponse()
|
/frameworks/native/include/input/ |
D | InputTransport.h | 336 class InputPublisher { 339 explicit InputPublisher(const std::shared_ptr<InputChannel>& channel); 342 ~InputPublisher();
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | Connection.h | 46 InputPublisher inputPublisher;
|
D | InputDispatcher.cpp | 4055 Result<InputPublisher::ConsumerResponse> result = in handleReceiveCallback() 4062 if (std::holds_alternative<InputPublisher::Finished>(*result)) { in handleReceiveCallback() 4063 const InputPublisher::Finished& finish = in handleReceiveCallback() 4064 std::get<InputPublisher::Finished>(*result); in handleReceiveCallback() 4067 } else if (std::holds_alternative<InputPublisher::Timeline>(*result)) { in handleReceiveCallback() 4069 const InputPublisher::Timeline& timeline = in handleReceiveCallback() 4070 std::get<InputPublisher::Timeline>(*result); in handleReceiveCallback()
|