commit | 26ec22263d16538483cdc963e828f2bcf21a877e | [log] [tgz] |
---|---|---|
author | Nathaniel R. Lewis <nathaniel.lewis@sony.com> | Fri Jan 10 16:30:54 2020 -0800 |
committer | Prabir Pradhan <prabirmsp@google.com> | Wed Feb 12 16:24:01 2020 -0800 |
tree | 6ef1c96aaa7c9f4d8c0cdd7bd4561b0a016907f8 | |
parent | f4916efbbe6272362c6cabe339a81e394697587f [diff] [blame] |
Refactor use of services in InputMappers. Create InputDeviceContext class to hide direct EventHub and InputDevice accesses from InputMappers. Test: atest inputflinger_tests libinput_tests Change-Id: I05f9c808fc1a6f4c9207bd29fde50b76ec5655bb
diff --git a/services/inputflinger/reader/mapper/RotaryEncoderInputMapper.h b/services/inputflinger/reader/mapper/RotaryEncoderInputMapper.h index 38c7258..7a77b12 100644 --- a/services/inputflinger/reader/mapper/RotaryEncoderInputMapper.h +++ b/services/inputflinger/reader/mapper/RotaryEncoderInputMapper.h
@@ -24,7 +24,7 @@ class RotaryEncoderInputMapper : public InputMapper { public: - explicit RotaryEncoderInputMapper(InputDevice* device); + explicit RotaryEncoderInputMapper(InputDeviceContext& deviceContext); virtual ~RotaryEncoderInputMapper(); virtual uint32_t getSources() override;