diff options
author | Ugo Yu <ugoyu@google.com> | 2020-03-19 16:15:58 +0800 |
---|---|---|
committer | Ugo Yu <ugoyu@google.com> | 2020-03-24 10:35:03 +0800 |
commit | ee87b30a8f32b33b0899df747b75a39d51a8c27e (patch) | |
tree | a6f74e9607cb2af8e2782618325c3d3dde46e9a5 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 44b663cd229d30013c04b2a7dc4a83f01b0d4dae (diff) |
Sequentially handle enable and disable
* Replace thread sleeps in MESSAGE_ENABLE and MESSAGE_DISABLE to delay
messages. To make sure we do not block the state change process while
waiting for a state change callback.
* Prevent handling enable or disable at the same time by deferring the
the request when we are enabling or disabling Bluetooth.
Bug: 128569058
Test: Manual
Change-Id: I2301ba22b6c10fcea71e3b66eea3ea0a0d7f0475
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions