From a41d244c8b7985f587aada2d89e2ae3ad1f00dff Mon Sep 17 00:00:00 2001 From: Prabir Pradhan Date: Thu, 20 Apr 2023 21:30:40 +0000 Subject: 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 --- services/inputflinger/InputManager.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'services/inputflinger/InputManager.h') 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& readerPolicy, - const sp& dispatcherPolicy); + InputManager(const sp& readerPolicy, + InputDispatcherPolicyInterface& dispatcherPolicy); status_t start() override; status_t stop() override; -- cgit v1.2.3-59-g8ed1b