summaryrefslogtreecommitdiff
path: root/packages/SettingsLib/src/com/android/settingslib/bluetooth/LocalBluetoothProfile.java
Commit message (Collapse)AuthorAgeFilesLines
* Update LocalBluetoothProfile apihughchen2020-02-051-7/+16
| | | | | | | | | | | | | | | | This CL include following change: 1. Rename isPreferred() to isEnabled(). 2. Rename getPreferred() to getConnectionPolicy(). 3. Rename setPreferred() to setEnabled(). 4. Remove connect()/disconnect() since when call setEnabled() BT stack will base on input state to do connect/disconnect automatically. 5. Add/update test case. Bug: 141582844 Test: make -j42 RunSettingsLibRoboTests Change-Id: I9aa7d5157028671fcda705bf5cb957c26c4204ad
* Rename method isConnectable()Leon Liao2018-09-201-2/+2
| | | | | | | | | LocalBluetoothProfile.isConnectable() checks whether the user can initiate a connection for a specific profile, not really whether the profile is connectable. Change-Id: If6c6cd1554acf35db2460ea6ddb65148a7e86e45 Bug: 79982487 Test: build
* Add Bluetooth callback for device connection state changedryanywlin2018-05-111-0/+2
| | | | | | | | | | With the new Multi-A2DP/HFP support, need to add profile connection state changed callback for every BT device connect/disconnect to profile. Bug: 76447449 Test: make RunSettingsLibRoboTests ROBOTEST_FILTER=LocalBluetoothProfileManagerTest -j28 Test: make RunSettingsLibRoboTests ROBOTEST_FILTER=BluetoothEventManagerTest -j28 Change-Id: Iaaec369e8d10f9b1270491632fb5c91de1e28571
* Removed executable flag for Java source filesPavlin Radoslavov2018-02-231-0/+0
| | | | | Test: Code compilation Change-Id: Ibfb57c6af54ace94eb9f9915471738f2f09ca70a
* Move non-ui bt settings code to SettingsLibJason Monk2015-02-051-0/+71
Mostly this is moving classes from Settings to SettingsLib but there were a few changes to support this separation. - A bunch of things became public rather than package - Moved some settings only code out of these classes - Added error callback to handle errors To see the changes from original classes view the diff against patch-set 1. Bug: 19180466 Change-Id: I69fd888362c6dbb325f6113b32c4b15cc6a23a41