History log of /frameworks/base/core/java/android/hardware/input/InputDeviceIdentifier.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
07ff292dcd1611a503b1a2fbe01920eebd712451 17-Apr-2016 Keisuke Kuroyanagi <ksk@google.com> Define equals and hashCode for InputDeviceIdentifier.

This CL fixes that physical keyboard layout is not changed when user
changes it in settings. This happened because we compare
InputDeviceIdentifier instances by using Object#equals to choose
specified input device. However, one of them has been serialized and
deserialized, so it never be true.

Bug: 27747115
Change-Id: Ied84c510ccb8e2de919ba8bb326e0355a065e604
/frameworks/base/core/java/android/hardware/input/InputDeviceIdentifier.java
fb290df3c9a6f37ec050163029e25844de2f8590 16-Dec-2013 RoboErik <epastern@google.com> b/12068020 Make kb layouts only unique to vendor/product

Instead of storing a kb layout per device descriptor (which is expected
to be unique), store it for each vendor/product. This way we can keep
a consistent layout between identical but physically different keyboards.

There are some corner cases this is expected to fail on, namely devices
that incorrectly have the same vendor/product id. Devices that don't
define a vendor/product id will continue to use the descriptor to store
layout files.

Change-Id: Id0890d13e1c859eaf993d4831b7b1acbaf5df80f
/frameworks/base/core/java/android/hardware/input/InputDeviceIdentifier.java