aboutsummaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothAdapter.java
diff options
context:
space:
mode:
authorUgo Yu <ugoyu@google.com>2020-03-19 15:58:28 +0800
committerUgo Yu <ugoyu@google.com>2020-03-24 10:24:49 +0800
commitef2b72fdcdace32df2640e30f67acd286759a803 (patch)
treefb71d6cff72c6add61ee783b4bd9ae1bfd94b92d /framework/java/android/bluetooth/BluetoothAdapter.java
parent7b97603ac022d44076667684ca405f20b65761dc (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 Merged-In: I2301ba22b6c10fcea71e3b66eea3ea0a0d7f0475
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothAdapter.java')
0 files changed, 0 insertions, 0 deletions