Add enabled state to InputDevice and remove isInputDeviceEnabled(1/n)
Since we have added a field for the enabled state to InputDeviceInfo, we
have also added the same status field to InputDevice.java. This way, we
won't need to call the isInputDeviceEnabled method in InputManager again
to send a request to InputManagerService to check if the device is
enabled. At this point, we can directly remove the isInputDeviceEnabled
method in InputManager, which is used as a hidden API, since it is no
longer in use.
Bug: 336420877
Test: build & atest InputTests
Change-Id: I9274f0bc66b64b81f9375049cc7bf9535c27d06f
Signed-off-by:
Linnan Li <lilinnan@xiaomi.corp-partner.google.com>
Loading
Please register or sign in to comment