sensors: map Samsung proximity sensor type to generic
authorWilli Ye <williye97@gmail.com>
Sun, 8 Sep 2019 16:23:04 +0000 (18:23 +0200)
committerJesse Chan <jc@lineageos.org>
Fri, 15 May 2020 14:15:57 +0000 (22:15 +0800)
commit80c90e970e7f57c91feee265517df878f7c3ddbb
tree3b144e4438cbdb90c80a0526631ab533f402fdf8
parent834dfaa39b4b6e7cd3e3ae03a567235e6c4db976
sensors: map Samsung proximity sensor type to generic

Samsung uses their own com.samsung.sensor.physical_proximity
type instead of SENSOR_TYPE_PROXIMITY of Android.

This makes proximity sensor unavailable for us as we only
look for SENSOR_TYPE_PROXIMITY.

Thus, this change maps Samsung's vendor-specific proximity
sensor type to generic one.

Change-Id: I64f6558876e1398dfbea0e5c0eb76aa1aafd2dfd
Signed-off-by: Jesse Chan <jc@lineageos.org>
hidl/sensors/Sensors.cpp