commit | f74fde197586486ce88445d2eb0db89a084c3722 | [log] [tgz] |
---|---|---|
author | Tnze <cjd001113@outlook.com> | Mon Aug 29 20:18:50 2022 +0800 |
committer | JunDao Tnze <tnzejundao@gmail.com> | Mon Aug 29 12:42:03 2022 +0000 |
tree | b5bfa21a4827a25cb845cfe5b475a6bea6a85ed1 | |
parent | 860bf12b8f17086b5bce6e4f86f1240198684587 [diff] |
Use HwLight.type as the key of mLightsByType There are two paths to consider: - HIDL HAL: We always set hwLight.id == hwLight.type == (byte)i; - AIDL HAL: hwLight.id may be not equals to hwLight.type; This patch use hwLight.type as the key of mLightsByType. Change-Id: I5c8c4df4bb2d6bda44bdd62d2b9ac7d9cb674d3f Signed-off-by: Tnze <cjd001113@outlook.com>