summaryrefslogtreecommitdiff
path: root/packages/SettingsLib/src/com/android/settingslib/bluetooth/HidDeviceProfile.java
Commit message (Collapse)AuthorAgeFilesLines
* Update LocalBluetoothProfile apihughchen2020-02-051-19/+10
| | | | | | | | | | | | | | | | 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
* Move SettingsLib icons to android.Amin Shaikh2019-01-251-1/+1
| | | | | | Bug: 122263617 Test: make Change-Id: I11ce02f3f65f429fd4375a5522c060c8080f4813
* Remove duplicate log of BluetoothProfile.ServiceListenerChienyuan2019-01-031-2/+0
| | | | | | | | | BluetoothProfile will print log when service connected/disconnected, we don't need to print it at LocalBluetoothProfile. Bug: 115587413 Test: build pass Change-Id: Iab3bb5d7a8840264a163ccf9a8f3508679d73b94
* Merge "Rename method isConnectable()" am: e238a19aa5 am: 78e8da5e79Leon Liao2018-09-261-1/+1
|\ | | | | | | | | | | am: 8735efab03 Change-Id: Ib8a4674ab16d60b8dc458c8eb97d0b24a0c48123
| * Merge "Rename method isConnectable()"Leon Liao2018-09-261-1/+1
| |\ | | | | | | | | | | | | | | | am: e238a19aa5 Change-Id: Ia19f7f53f62ff9839890e962b7b659c9f43fa3b1
| | * Merge "Rename method isConnectable()"Leon Liao2018-09-251-1/+1
| | |\
| | | * Rename method isConnectable()Leon Liao2018-09-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | Merge "Simplify logic for getConnectionStatus in HidDeviceProfile"Chienyuan2018-09-181-16/+6
| |\| | | | | | | | | | | | | | | | | | | | | | am: b545c70d1d Change-Id: I6b876ae488809fd84e5c399fda2b5d7c3abfc8ae
| | * | Simplify logic for getConnectionStatus in HidDeviceProfileChienyuan2018-09-171-16/+6
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * getConnectionStatus: remove connected device check logic. HidDeviceService will check it. * rewrite the annotation about this class * remove member variable DEBUG and related checks. * add robotest for HidDeviceProfile Bug: 111812003 Test: make -j42 RunSettingsLibRoboTests ROBOTEST_FILTER=HidDeviceProfileTest Change-Id: I2e7fdd69a46707339a32db4304666e50fd0cf954 Merged-In: I2e7fdd69a46707339a32db4304666e50fd0cf954
| | * DO NOT MERGE: Reordered imports according to Android style.Fan Zhang2018-09-041-1/+0
| |/ | | | | | | | | Test: rebuild Change-Id: I7b1ad77039868c6a827478fbbb32e0fd5c9a29cf
* | Simplify logic for getConnectionStatus in HidDeviceProfileChienyuan2018-09-171-16/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | * getConnectionStatus: remove connected device check logic. HidDeviceService will check it. * rewrite the annotation about this class * remove member variable DEBUG and related checks. * add robotest for HidDeviceProfile Bug: 111812003 Test: make -j42 RunSettingsLibRoboTests ROBOTEST_FILTER=HidDeviceProfileTest Change-Id: I2e7fdd69a46707339a32db4304666e50fd0cf954 (cherry picked from commit 89b1e5c013d250d846832634be34d8696d7160e9)
* | remove LocalBluetoothAdapter usagetimhypeng2018-08-171-7/+4
| | | | | | | | | | | | | | | | | | | | - replace LocalBluetoothAdapter with BluetoothAdapter.getDefaultAdapter() to call functions - remove LocalBluetoothAdapter from each Bluetooth profile constructor - no more pass LocalBluetoothAdapter to CachedBluetoothDeviceManager::addDevice() Bug: 111815935 Test: make -j50 RunSettingsLibRoboTests Change-Id: I2d2178c6e83034b08690d459973868a9ba583429
* | Remove mProfileManager in BluetoothEventManagerChienyuan2018-08-031-1/+1
| | | | | | | | | | | | | | | | | | | | mProfileManager only use as parameter of mDeviceManager.addDevice(), CachedBluetoothDeviceManager can get it with mBtManager and remove it from argument. Then we can remove mProfileManager in BluetoothEventManager. Bug: 111966655 Test: make -j50 RunSettingsRoboTests ROBOTEST_FILTER=CachedBluetoothDeviceManagerTest Change-Id: Iec325af8161629f666eee062f5acefe331b0711b
* | Rename the Utils class in settingslib.bluetoothKunhung Li2018-05-181-2/+1
|/ | | | | | | | Make it more unique to speficy related bluetooth, so change class name from Utils to BluetoothUtils. Bug: 78676509 Test: atest RunSettingsLibRoboTests Change-Id: I83baf214fef125a2c2b9bb2526d11f0c8838a82c
* Add Bluetooth callback for device connection state changedryanywlin2018-05-111-0/+5
| | | | | | | | | | 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
* Show Bluetooth HID Device connection status in SettingsHansong Zhang2018-04-051-0/+200
* Add the HidDeviceProfile class, which wraps the BluetoothHidProfile in Settings. HidDeviceProfile will be added to local Bluetooth profiles once the HID Device Service connection is in use. This will allow the connection status of HID Device profile to be displayed in Settings > Connected devices > Bluetooth > Device details, and in the device list. * Rename InputDeviceServiceListener to HidHostServiceListener to eliminate consufion. Bug: 69136526 Test: apps with HID Device. Change-Id: I99bef6745ae58fe7f522432e7841a5910388a352