summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Vladimir Komsiyski <vladokom@google.com> 2022-10-23 18:34:40 +0200
committer Vladimir Komsiyski <vladokom@google.com> 2022-11-29 18:13:54 +0100
commitc0acd6cd17a41c3a4717cd0f927f18de06c91d5e (patch)
tree6c8abc9d692bcf929fe4cc1cadc997cf39aefac9 /libs/androidfw/StringPool.cpp
parent30ea428016d00f2fcd41e7cb4150af2100abd5ad (diff)
Adjust the behavior of SensorManager for virtual device sensors.
The virtual device sensors are handled as runtime sensors internally. They are returned from getSensorsList *iff* the current context in SensorManager is associated with a virtual device, which has a custom sensors policy. The SystemSensorManager adds a new implementation of getSensorList in order to avoid the cache the per-device sensor lists separately. The virtual device sensors do not trigger DynamicSensorCallbacks and are removed from the system when the virtual device is closed. The virtual device broadcasts the fact that it's being closed so the SensorManager can clean up any cached lists associated with that device. Bug: 237278244 Test: atest cts/tests/sensor Change-Id: I63938377f4eedca32fba14d8e15e09be1b85e460
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions