summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/RegionSamplingThread.cpp
diff options
context:
space:
mode:
author Arthur Ishiguro <arthuri@google.com> 2020-04-13 09:47:59 -0700
committer Arthur Ishiguro <arthuri@google.com> 2020-04-22 08:49:52 -0700
commit539c27c9d417e2c2df07078c0089e2c7525b0287 (patch)
treedefb0d8bd76bafc4c5c26134e74ef62d434b0656 /services/surfaceflinger/RegionSamplingThread.cpp
parent538eebb1557d97b47bdc40fe307080606eca6bbc (diff)
Disable sensors when an app goes to background v2
This change is a revision of a previous version of the implementation in ag/10737391. In this version, we perform the book-keeping of backgrounded apps in the SensorDevice.cpp (rather than SensorEventConnection.cpp), to avoid unintended problems with the locking assumptions in the Sensor Service code. Bug: 74395023 Test: 1) Subscribe to sensor on sensorlogger 2) Put app to background and wait 3) Verify subscription is disabled once app is idle 4) Put app to foreground and verify app can receive sensor samples Test: Verify above test while a_sns_test streaming samples Test: Verify above test with sensor service restrict and privacy mode Change-Id: Ic44058e606868a665d5aa88a75211d1eba8d4950
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions