summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor@google.com>2015-11-05 17:40:32 -0800
committerDavid Riley <davidriley@google.com>2015-12-21 12:37:17 -0800
commit365bf06a72aca38e1b6a57cf4d29686d0a0f01f6 (patch)
treef695c35180add39120779533290f53be78c9fd01 /tools/aapt2/diff/Diff.cpp
parent3d27be827b5146b4c9bc0dd0747c0f41c036fe3d (diff)
SystemUI: implement bluetooth scan timeout
When we dock with Pixel C keyboard we normally expect to find it, and so we perform a low latency scan (which uses highest duty cycle). But if keyboard is not charged or if tablet mode trigger misfires (because there was a magnetic object in proximity?) we may not find the keyboard and will continue scanning indefinitely, impacting WiFi performance and draining battery. To avoid this scenario let's stop scan if we do not find "our" device in 30 seconds. Also remove STATE_WAITING_FOR_STATE_PAIRED as it was unused. Change-Id: I4bf1a9a163d3165eaa5e8f1cc2d2938465d454af (cherry picked from commit 6c12c3a6538591b5fa6e11cb4f583aa494e0ce5c) Signed-off-by: David Riley <davidriley@google.com>
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions