diff options
author | 2023-04-20 21:30:40 +0000 | |
---|---|---|
committer | 2023-04-27 17:32:16 +0000 | |
commit | a41d244c8b7985f587aada2d89e2ae3ad1f00dff (patch) | |
tree | db2eea4cd89fad175c01e2e380d2325178df6933 /services/inputflinger/InputManager.h | |
parent | 87112a7b0f769a096d2101d9456c6360cb61617c (diff) |
Clean up InputDispatcherPolicyInterface
- Remove RefBase from policy
- Store reference instead of pointer to policy
- Use references instead of pointers in parameters
- Use return values for all outputs for functions instead of passing an
out parameter
Bug: 279927189
Bug: 245989146
Test: Presubmit
Change-Id: I31a2a3e8c67960020169ddfc59bc0a59f3e65c52
Diffstat (limited to 'services/inputflinger/InputManager.h')
-rw-r--r-- | services/inputflinger/InputManager.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/services/inputflinger/InputManager.h b/services/inputflinger/InputManager.h index 793757d369..b6ad419f31 100644 --- a/services/inputflinger/InputManager.h +++ b/services/inputflinger/InputManager.h @@ -100,9 +100,8 @@ protected: ~InputManager() override; public: - InputManager( - const sp<InputReaderPolicyInterface>& readerPolicy, - const sp<InputDispatcherPolicyInterface>& dispatcherPolicy); + InputManager(const sp<InputReaderPolicyInterface>& readerPolicy, + InputDispatcherPolicyInterface& dispatcherPolicy); status_t start() override; status_t stop() override; |