summaryrefslogtreecommitdiff
path: root/services/inputflinger/InputManager.h
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2023-06-09 23:40:37 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2023-08-25 15:23:41 +0000
commitb56e92c4a63663cbadf9f5b7958f8e0521a8296e (patch)
treec2bdc8414641472d5f12f979eeee2198640b5e1c /services/inputflinger/InputManager.h
parenta62621ec1ca2d9f3adacee23a18339aaaa823d15 (diff)
Introduce PointerChoreographer stage in C++
PointerChoreographer will be the new inputflinger component responsible for managing the pointer icons drawn on the screen. In this CL, we set up the PointerChoreographer InputListener stage, which will be created when the choreographer is enabled. Bug: 293587049 Bug: 278783893 Test: adb shell setprop persist.input.enable_pointer_choreographer 1; boot Change-Id: Ice610055ef7ffc44c7c3e1d3904715eabda31a86
Diffstat (limited to 'services/inputflinger/InputManager.h')
-rw-r--r--services/inputflinger/InputManager.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/services/inputflinger/InputManager.h b/services/inputflinger/InputManager.h
index 51d582fba1..20b9fd50df 100644
--- a/services/inputflinger/InputManager.h
+++ b/services/inputflinger/InputManager.h
@@ -23,10 +23,12 @@
#include "InputDeviceMetricsCollector.h"
#include "InputProcessor.h"
#include "InputReaderBase.h"
+#include "PointerChoreographer.h"
#include "include/UnwantedInteractionBlockerInterface.h"
#include <InputDispatcherInterface.h>
#include <InputDispatcherPolicyInterface.h>
+#include <PointerChoreographerPolicyInterface.h>
#include <input/Input.h>
#include <input/InputTransport.h>
@@ -86,6 +88,9 @@ public:
/* Gets the input reader. */
virtual InputReaderInterface& getReader() = 0;
+ /* Gets the PointerChoreographer. */
+ virtual PointerChoreographerInterface& getChoreographer() = 0;
+
/* Gets the input processor. */
virtual InputProcessorInterface& getProcessor() = 0;
@@ -108,12 +113,14 @@ protected:
public:
InputManager(const sp<InputReaderPolicyInterface>& readerPolicy,
- InputDispatcherPolicyInterface& dispatcherPolicy);
+ InputDispatcherPolicyInterface& dispatcherPolicy,
+ PointerChoreographerPolicyInterface& choreographerPolicy);
status_t start() override;
status_t stop() override;
InputReaderInterface& getReader() override;
+ PointerChoreographerInterface& getChoreographer() override;
InputProcessorInterface& getProcessor() override;
InputDeviceMetricsCollectorInterface& getMetricsCollector() override;
InputDispatcherInterface& getDispatcher() override;
@@ -130,6 +137,8 @@ private:
std::unique_ptr<UnwantedInteractionBlockerInterface> mBlocker;
+ std::unique_ptr<PointerChoreographerInterface> mChoreographer;
+
std::unique_ptr<InputProcessorInterface> mProcessor;
std::unique_ptr<InputDeviceMetricsCollectorInterface> mCollector;