Revert "InputMapper refactor: refactor device enable/disable method"
Revert submission 23779328
Reason for revert: Found touch issues on devices in latest qpr-build
Reverted changes: /q/submissionid:23779328
Change-Id: Icb8403ba7d33ef9ae6fce9f692f59188ec3fadd3
diff --git a/services/inputflinger/reader/include/InputDevice.h b/services/inputflinger/reader/include/InputDevice.h
index 837c3c4..2f8e5bd 100644
--- a/services/inputflinger/reader/include/InputDevice.h
+++ b/services/inputflinger/reader/include/InputDevice.h
@@ -77,6 +77,7 @@
inline bool isIgnored() { return !getMapperCount() && !mController; }
bool isEnabled();
+ [[nodiscard]] std::list<NotifyArgs> setEnabled(bool enabled, nsecs_t when);
void dump(std::string& dump, const std::string& eventHubDevStr);
void addEmptyEventHubDevice(int32_t eventHubId);
@@ -204,9 +205,6 @@
std::vector<std::unique_ptr<InputMapper>> createMappers(
InputDeviceContext& contextPtr, const InputReaderConfiguration& readerConfig);
- [[nodiscard]] std::list<NotifyArgs> updateEnableState(
- nsecs_t when, const InputReaderConfiguration& readerConfig, bool forceEnable = false);
-
PropertyMap mConfiguration;
// helpers to interate over the devices collection