summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Vladimir Komsiyski <vladokom@google.com> 2023-12-07 19:30:48 +0100
committer Vladimir Komsiyski <vladokom@google.com> 2023-12-08 18:04:53 +0100
commit1172fd884d7baf141acb91daefc495879172062b (patch)
tree2950b8d294fce4773f7309f5e7fa741d3037c416 /libs/androidfw/StringPool.cpp
parent1b5e0a7b746a0fb800561103d6007efd5ac1633a (diff)
Always cache the default device sensors.
Since ag/24955733 the native SensorManager may be initialized with a VirtualDevice's sensors instead of the default device ones and this is WAI. However, this breaks an assumption in SystemSensorManager.java SystemSensorManager's mFullSensorsList must always hold the default device's sensors. Any virtual device's sensors are stored in mFullRuntimeSensorListByDevice and the correct sensors are returned from getSensorsList based on the manager's context. If mFullSensorsList is initialized with virtual sensors, then there is no way to get the default device's sensors anymore. Fix: 315295201 Test: manual with the VDM test app Change-Id: I8add9f4ece2fdd6d83f6388990b1772987eae939
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions