Jack He
ac040e3b1f
Bluetooth: remove unnecessary state tracking in BluetoothSummaryUpdater
...
* LocalBluetoothAdapter is already a cache of BluetoothAdapter and its
methods should be used directly to obtain states instead of caching them
in BluetoothSummaryUpdater
- Use LocalBluetoothAdapter.isEnabled() to check whether Bluetooth
is enabled
- Use LocalBluetoothAdapter.getBondedDevices() to get list of bonded
devices
* BluetoothDevice is a stable Bluetooth API and its methods should not
incur large latency. We should use API methods as much as possible to
avoid intermediate wrappers
- Use BluetoothDevice.isConnected() to check if a device is connected
* Add more logging messages in error conditions
* Show status as "Not Connected" when there is a state mismatch (i.e.
adapter says it is connected, but no bonded device is connected)
* Updated unit tests to reflect the latest behavior
Bug: 65591907
Test: make, unit test, pair with Bluetooth devices, check Settings UI
Change-Id: I0fa54959c8bed8ac67a935f150785ba8197d0411
2017-09-20 11:35:19 -07:00
..
2017-08-03 10:10:59 -07:00
2017-08-03 17:08:29 +00:00
2017-09-14 11:05:34 -07:00
2017-06-26 10:58:36 -07:00
2017-09-20 11:35:19 -07:00
2017-07-19 08:07:11 -07:00
2017-08-09 17:36:02 -07:00
2017-09-20 00:23:29 +00:00
2017-08-29 16:55:05 +00:00
2017-06-26 10:58:36 -07:00
2017-09-08 09:58:05 -07:00
2017-09-14 12:01:42 -07:00
2017-09-15 00:58:59 +00:00
2017-09-19 10:54:13 -07:00
2017-06-26 10:58:36 -07:00
2017-08-22 18:24:30 +01:00
2017-09-08 18:58:27 +00:00
2017-09-15 21:40:04 +00:00
2017-08-11 03:01:33 +00:00
2017-07-31 19:30:16 +00:00
2017-09-06 10:58:52 -07:00
2017-08-09 17:27:02 -07:00
2017-08-25 14:37:39 -07:00
2017-08-09 20:21:32 +00:00
2017-08-16 13:45:39 -07:00
2017-09-06 21:01:35 +00:00
2017-07-19 08:07:11 -07:00
2017-09-08 18:58:27 +00:00
2017-05-26 16:45:14 -07:00
2017-03-17 16:51:21 -07:00
2017-09-13 00:06:27 +00:00
2017-07-13 13:49:28 -07:00
2017-07-17 21:46:47 +00:00
2017-07-17 12:49:04 -07:00
2017-05-12 11:10:46 -07:00
2017-08-04 10:42:27 -07:00
2017-05-16 12:35:45 -07:00
2017-06-30 11:29:40 -04:00
2017-07-12 15:58:21 -07:00
2017-06-27 14:14:31 +01:00
2017-06-28 17:16:57 -07:00
2017-07-13 13:49:28 -07:00
2017-03-10 13:03:47 -08:00
2017-09-11 10:12:05 -07:00
2017-09-20 16:17:28 +00:00
2017-06-12 18:11:41 -06:00
2017-06-03 22:24:50 +00:00
2017-09-12 01:01:09 +00:00
2017-03-30 15:54:14 -07:00
2017-05-22 16:01:46 -07:00
2017-06-21 14:47:37 -07:00
2017-03-01 15:21:23 -08:00
2017-06-05 17:42:53 -07:00
2017-04-06 15:39:58 -07:00
2017-05-12 15:35:20 -07:00
2017-06-26 10:58:36 -07:00
2017-04-12 15:12:44 +01:00
2017-09-06 10:34:21 +00:00
2017-02-24 12:03:09 -07:00
2017-06-26 10:58:36 -07:00
2017-07-07 20:10:09 +00:00
2017-07-06 16:25:08 -07:00
2017-06-21 14:47:37 -07:00
2017-07-24 12:34:34 -07:00
2017-06-28 15:06:09 -07:00
2017-06-22 10:34:07 -07:00
2017-04-11 12:03:54 -07:00
2017-06-19 21:11:48 +00:00
2017-05-12 12:00:48 -07:00
2017-05-01 22:10:06 +00:00
2017-05-01 22:10:06 +00:00
2017-08-09 15:37:01 -07:00
2017-07-21 19:19:19 +00:00
2017-03-23 11:35:20 -07:00
2017-04-20 20:11:00 +00:00
2017-03-03 12:49:40 +00:00
2017-08-04 00:47:09 +00:00
2017-06-22 20:13:21 +00:00
2017-05-12 15:35:20 -07:00
2017-04-20 10:58:32 -07:00
2017-05-08 13:34:54 -07:00
2017-04-12 15:12:44 +01:00
2017-06-05 14:50:01 -07:00
2017-05-23 17:44:35 +00:00
2017-06-21 14:47:37 -07:00
2017-06-21 14:47:37 -07:00
2017-09-01 17:51:56 -07:00
2017-08-09 17:27:02 -07:00
2017-05-17 16:44:01 +01:00
2017-05-01 22:10:06 +00:00
2017-06-26 15:15:30 -07:00
2017-06-28 15:06:09 -07:00
2017-06-28 15:06:09 -07:00
2017-06-20 00:25:50 +00:00
2017-03-13 18:53:18 +01:00
2017-02-22 15:08:22 -08:00
2017-04-11 12:03:54 -07:00
2017-06-14 12:32:44 -07:00
2017-02-06 13:44:59 -08:00
2017-06-05 14:50:01 -07:00
2017-02-20 21:02:45 +00:00
2017-03-24 14:57:13 +00:00
2017-08-29 16:10:36 -07:00
2017-05-22 15:46:31 +00:00