summaryrefslogtreecommitdiff
path: root/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java
Commit message (Collapse)AuthorAgeFilesLines
* [Bluetooth] Add more logs around active devices.Caitlin Shkuratov2022-11-161-0/+6
| | | | | | | | Bug: 257845933 Test: Verified logcat contained "CachedBluetoothDevice: onActiveDeviceChanged:" logs when a device changes active states Test: Verified BluetoothController dump contains active statuses Change-Id: I788f4de1d4c2906df269c1f5b4fbee5431de9f08
* Merge "Revert "[LE unicast] The isBusy state should involve the state of sub ↵SongFerng Wang2022-10-261-15/+8
|\ | | | | | | device"" into tm-qpr-dev
| * Revert "[LE unicast] The isBusy state should involve the state of sub device"SongFerng Wang2022-10-251-15/+8
| | | | | | | | | | | | | | | | This reverts commit 4b2b34eef35a207906be2628bd57f03dfa310687. Reason for revert: According to b/253592180#comment6, we should hide the concept of member sets of a CSIP pairing or joining a group. The UI did not gray out device preference when the member is busy. Change-Id: Iae13955f34222854f7b1f6b767e9aed09cb3ba32
* | [LE Unicast]UI can Enable/Disable VCP and CSIPSongFerngWang2022-10-261-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the user turns on/off the LE audio toggle, the settings set enabled/disabled for the LE audio profile, the VCP profile and the CSIP profile. - Implement the VCP profile at the settingsLib - Modify the CachedBluetoothDevice.toString Bug: 238866767 Test: build pass. Local test: Enable/Disable LE audio toggle and then those profiles work properly. Change-Id: I27dfffb73cabf9f12f62087ce2a4ba09e04af0d9
* | Merge "[LE unicast] The isBusy state should involve the state of sub device" ↵SongFerng Wang2022-09-281-8/+15
|\| | | | | | | into tm-qpr-dev
| * [LE unicast] The isBusy state should involve the state of sub deviceSongFerngWang2022-09-281-8/+15
| | | | | | | | | | | | Bug: 245697292 Test: make RunSettingsLibRoboTests ROBOTEST_FILTER=CachedBluetoothDeviceTest Change-Id: I7fc640ccf30329e7a9bba7ad8b7e2485c39b8f6c
* | Logs hearing aid information when a hearing aid is bonded(connected)Angela Wang2022-09-151-0/+2
|/ | | | | | | | | The information including device mode, device side, and entry page id where binding process starts. We only log the info once after the hearing aid is bonded. Without forgetting the bluetooth device, it won't log the info again if you disconnect and then reconnect it. Bug: 237344016 Test: m statsd_testdrive & statsd_testdrive 513 Change-Id: I57a17fd3a6b26855615ab8698c7d3a95e8438603 Merged-In: I57a17fd3a6b26855615ab8698c7d3a95e8438603
* Add more log for analysisSongFerngWang2022-09-081-0/+1
| | | | | | Bug: 245657079 Test: NA. It is log only. Change-Id: If2c88cff803a8c09e6d44eda87abd127862de5a4
* [BT LE unicast] clear the GroupId when user click 'Forget'SongFerngWang2022-08-251-6/+4
| | | | | | | | | | | | - To clear the groupId after device unpaired. - switchMemberDeviceContent don't change the member list. Bug: 240103816 Test: build pass. [pass] make RunSettingsLibRoboTests -j40 ROBOTEST_FILTER=CachedBluetoothDeviceManagerTest [psss] make RunSettingsLibRoboTests -j40 ROBOTEST_FILTER=CachedBluetoothDeviceTest Change-Id: I65dc254f33236fa7fad08a07e56187962700e6c6
* Merge "Fix ASHA Hearing aids connection status incorrect" into tm-devJason Hsu2022-05-261-2/+5
|\
| * Fix ASHA Hearing aids connection status incorrectjasonwshsu2022-05-251-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | Root Cause: After disconnecting one side of hearing aid, the mainDevice did not update device side information from subDevice. Solution: switch subDevice information to mainDevice. Bug: 233708857 Test: make RunSettingsLibRoboTests ROBOTEST_FILTER=CachedBluetoothDeviceTest Test: make RunSettingsLibRoboTests ROBOTEST_FILTER=HearingAidDeviceManagerTest Change-Id: I5977c11828464863610cfdaabd91154b710b4151
* | PBAP: Do not set phonebook access to ACCESS_REJECTED automaticallyChienyuan2022-05-161-1/+0
|/ | | | | | | | | The value is saved in SharedPreferences. However, it will return ACCESS_UNKNOWN in several cases. We shouldn't set it as rejected automatically. We should ask user when PBAP connect. Bug: 230712201 Test: manual Change-Id: Ia3f373b9799cf02c47dc782688430fb234491f61 (cherry picked from commit 5bc5f103104747f2687407b63cd338b04c110b2d)
* Show left/right side of the hearing aid device for ASHA profilejasonwshsu2022-05-121-1/+38
| | | | | | Bug: 224323976 Test: make RunSettingsLibRoboTests ROBOTEST_FILTER=CachedBluetoothDeviceTest Change-Id: Ieec9558df4a2628ee27ce7c953ad9a83a8fde9b7
* Rename CachedBluetoothDevice.setMemberDevice to addMemberDeviceHyundo Moon2022-05-041-11/+11
| | | | | | | | Also fixes some typos. Test: builds successfully Change-Id: I39242b40ebe154b8b89f00f48ea320b18f56ecd7 Merged-In: I39242b40ebe154b8b89f00f48ea320b18f56ecd7
* Specify whether or not the disconnected string should be usedAlex Stetson2022-03-301-6/+15
| | | | | | Bug: 214440184 Test: manual Change-Id: I969da545e90450f64527a8abf23d1ac89b4b238d
* Merge "[API Review] Replace usage of getUuids by new SystemApi" am: ↵Etienne Ruffieux2022-03-171-1/+4
|\ | | | | | | | | | | | | | | e2b00d3a7d am: 1de1157d4e am: 520a6e5a9b Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2020438 Change-Id: I20adac33682b4647fd1906f80dbed55a4476325c
| * Merge "[API Review] Replace usage of getUuids by new SystemApi"Etienne Ruffieux2022-03-171-1/+4
| |\
| | * [API Review] Replace usage of getUuids by new SystemApiEtienne Ruffieux2022-03-101-1/+4
| | | | | | | | | | | | | | | | | | | | | Bug: 223253153 Test: build Tag: #feature Change-Id: I8b75a774cb05863b340de0fff83130e7ab9d3891
| * | Add the API to get the AudioLocationSongFerngWang2022-03-161-1/+2
| |/ | | | | | | | | | | | | | | | | | | | | 1.Add the API(getAudioLocation) to get the AudioLocation of LE audio device at LeAudioProfile. 2.Add LeAudio summary state Bug: 218626547 Test: build pass Change-Id: I3655d1771f0ee9d60f65406e83b42e40307bd4f3 Merged-In: I3655d1771f0ee9d60f65406e83b42e40307bd4f3
* | Merge "Add the API to get the AudioLocation" into tm-devSongFerng Wang2022-03-161-1/+2
|\ \
| * | Add the API to get the AudioLocationSongFerngWang2022-03-091-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1.Add the API(getAudioLocation) to get the AudioLocation of LE audio device at LeAudioProfile. 2.Add LeAudio summary state Bug: 218626547 Test: build pass Change-Id: I3655d1771f0ee9d60f65406e83b42e40307bd4f3
* | | Merge "[LE] Connect and disconnect both LE headsets" am: ececa85c9e am: ↵SongFerng Wang2022-03-101-0/+12
|\ \ \ | |/ / |/| / | |/ | | | | | | | | 0567e66c2c am: 254ef629f5 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2010675 Change-Id: I19f50f9617e6db3f5bc1dcdacee5dde8aafacfd5
| * Merge "[LE] Connect and disconnect both LE headsets"SongFerng Wang2022-03-101-0/+12
| |\
| | * [LE] Connect and disconnect both LE headsetsSongFerngWang2022-03-091-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | Disconnect the LE headset from settings page, only one side(L or R) is disconnected. Bug: 206049683 Test: build pass Change-Id: I8c9c808b830947ab8d8510042827e55f85faa781
| * | Merge sc-v2-dev-plus-aosp-without-vendor@8084891Xin Li2022-02-111-0/+6
| |\ \ | | |/ | |/| | | | | | | | | | Bug: 214455710 Merged-In: I8cfa435bb6233818adb9cc99dadeeb06a03443d5 Change-Id: Ib93992d88fd1704179009a3872798b9e7b83a6d1
| * | SettingsLib: Add API to get identity addressChienyuan2022-02-021-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 197044261 Test: build pass Change-Id: Idd03d7777c8257986b03dd1ba19aac5514f4f18d Merged-In: Idd03d7777c8257986b03dd1ba19aac5514f4f18d (cherry picked from commit a393bf9d25a5480a5b11d04a5ca7cca2ffab939f)
* | | SettingsLib: Add API to get identity addressChienyuan2022-01-271-0/+11
| | | | | | | | | | | | | | | | | | Bug: 197044261 Test: build pass Change-Id: Idd03d7777c8257986b03dd1ba19aac5514f4f18d
* | | Update CarConnectionSummaryAlex Stetson2021-12-221-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per UX guidance, it's desired to always show the "disconnected" string as the connected summary and to have a short summary option that simply shows the "connected" string without any additional information. Bug: 204943159 Test: make RunSettingsLibRoboTests ROBOTEST_FILTER=com.android.settingslib.bluetooth.CachedBluetoothDeviceTest Change-Id: I7744ceec534177bb6da8cd784e4cb3888f921f6f
* | | Merge "Print anonymized address when new profile update" am: 286d24fd0d am: ↵Treehugger Robot2021-11-291-2/+2
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | fc7e697e4c am: 74b622f7cb am: dd21ee9828 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1903973 Change-Id: I142bd201e9195c8f454586012927e28baca7e862
| * | Merge "Print anonymized address when new profile update" am: 286d24fd0d am: ↵Treehugger Robot2021-11-291-2/+2
| |\| | | | | | | | | | | | | | | | | | | | | | fc7e697e4c am: 74b622f7cb Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1903973 Change-Id: Ia9f5baa97edceebc717cff4494b19441fb48cab0
| | * Print anonymized address when new profile updateChienyuan2021-11-291-3/+2
| | | | | | | | | | | | | | | | | | Bug: 206676415 Test: manual Change-Id: Ia65cb0a4310158583bfb6b025888b0b76aa76966
| * | DO NOT MERGE: HA still appears in Media device list even though it has been ↵Tim Peng2021-10-191-1/+6
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | unpaired. -Add mUnpairing to mark the device triggers removeBond() -For HA, once it calls removeBond(), two HA would be unpaired. It causes the incorrect state if we do main/sub devices switching. Bug: 198124571 Test: manual test Merged-In: I4ed5db2bd01f4b4e8f246ed3e8f74e24149571f9 Change-Id: I4ed5db2bd01f4b4e8f246ed3e8f74e24149571f9 (cherry picked from commit 5597cbd76befe3e19523aed70327d9d232d18476)
| * settingslib/bluetooth: Add LeAudio supportŁukasz Rymanowski2021-10-151-2/+50
| | | | | | | | | | | | | | | | | | Bug: 150670922 Tag: #feature Sponsor: jpawlowski@ Test: Manual Merged-In: I45402a6d315d8ccc2bc756bdc9937e81eea3c58a Change-Id: I45402a6d315d8ccc2bc756bdc9937e81eea3c58a
* | settingslib/bluetooth: Add LeAudio supportŁukasz Rymanowski2021-10-151-2/+51
| | | | | | | | | | | | | | | | Bug: 150670922 Tag: #feature Sponsor: jpawlowski@ Test: Manual Change-Id: I45402a6d315d8ccc2bc756bdc9937e81eea3c58a
* | Merge "bluetooth: Set special delay for LeAudio auto connect" am: a457cb6f90 ↵Jakub Pawlowski2021-10-111-0/+3
|\| | | | | | | | | | | | | | | am: 929d2e04ee am: 56d58ee593 am: e11c2b61b7 am: a3d896e434 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1830517 Change-Id: I6df296144060e73dfbdb5478612547932d4ab25a
| * bluetooth: Set special delay for LeAudio auto connectGrzegorz Kołodziejczyk2021-10-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Timer fires when there is more GATT services to discover on a peer devices. In such case, Android don't even start connecting profiles. Increasing timeout solves a problem, but probably some other solution is needed. Bug: 150670922 Tag: #feature Sponsor: jpawlowski@ Test: Manual Change-Id: If28247836690a209b9dc45b297aa889029a14abb
* | Merge "Add BluetoothDevice#connect and BluetoothDevice#disconnect as System ↵Rahul Sabnis2021-09-301-6/+6
|\| | | | | | | | | | | | | | | APIs" into stage-aosp-master am: 4a39b54ec1 am: 0db21e73d3 am: 269e7b39db am: 2b19bbe94a Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15936310 Change-Id: Ic3bbcd8f4bc6e1da07f5b5d58c4599f1f7b389f1
| * Add BluetoothDevice#connect and BluetoothDevice#disconnect as System APIsRahul Sabnis2021-09-291-6/+6
| | | | | | | | | | | | | | Tag: #feature Bug: 201462141 Test: Manual Change-Id: I79332c63e99efd9e90036ba2c693835151cc1240
* | Merge "Update CSIP base uuid devie set into a single device detail ↵TreeHugger Robot2021-09-231-0/+73
|\| | | | | | | | | | | | | | | preference" into stage-aosp-master am: 179a9be4b1 am: 6011f29d3f am: fbf9b39cec am: 1bb9bf5a96 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15875007 Change-Id: Id4413aeaa1c12c52e2fa5740bab9cff2602e166a
| * Update CSIP base uuid devie set into a single device detail preferenceAlice Kuo2021-09-211-0/+73
| | | | | | | | | | | | | | | | | | Bug: 178981521 Bug: 150670922 Test: pair with two device which are a coordinated set, and make sure the UI only show one device Change-Id: I1a8d570da1af7fa4c8b3a99f8ce69d23b574e96c
* | Merge "csip: Expose an extra data with intent and store in ↵Alice Kuo2021-09-201-0/+20
|\| | | | | | | | | | | | | | | CachedBluetoothDevice" into stage-aosp-master am: cc3fb6dd85 am: 6dbed8d2bc am: 57a214b96b am: c258c69e89 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15849150 Change-Id: Ib82d3b59e6ea2d6c2ae9043463d4a9d62af88255
| * csip: Expose an extra data with intent and store in CachedBluetoothDeviceAlice Kuo2021-09-171-0/+20
| | | | | | | | | | | | | | | | | | Bug: 178981521 Bug: 150670922 Test: Discover and pair with the CSIP supported device, and check the pairing string in the dialog Change-Id: I3e99c59e0cb974409291e1b4c28393106784e133
* | HA still appears in Media device list even though it has been unpaired.Tim Peng2021-09-171-0/+7
|/ | | | | | | | | | -Add mUnpairing to mark the device triggers removeBond() -For HA, once it calls removeBond(), two HA would be unpaired. It causes the incorrect state if we do main/sub devices switching. Bug: 198124571 Test: manual test Change-Id: I4ed5db2bd01f4b4e8f246ed3e8f74e24149571f9
* Fix anr when open connected devicesHugh Chen2021-05-251-3/+6
| | | | | | | | | When advanced bluetooth icon not in cache, return basic bluetooth icon instead of advanved bluetooth icon. Bug: 187898551 Test: make RunSettingsLibRoboTests Change-Id: Iea2c7818e895e16e236931bc9d0e8bccae68b4e1
* Use LruCache to cache advanced bluetooth deivce iconHugh Chen2021-04-221-1/+63
| | | | | | | | | | | | This CL uses LruCache to cache advanced bluetooth device icons. It can reduce the frequency to access content providers to get advanced device icons since the advanced device icons would not changed. Bug: 178255374 Test: make RunSettingsLibRoboTests -j56 Change-Id: I9c8957b5f78ff5047fa4b85fc37a5e27b731465d
* Incorrect summary for the carkit deviceTim Peng2021-03-191-1/+7
| | | | | | | | | -"Problem connecting. Turn the device off & back on" message shows in the BT setting when DUT pair with carkit and SAP connection is established. -HFP and SAP can not be connected at the same time. Bug: 182740717 Test: make -j50 RunSettingsLibRoboTests ROBOTEST_FILTER=CachedBluetoothDeviceTest Change-Id: Ieadbe137c3098c25d527e0db4b7df9267bfde9f7
* Fix java crashHugh Chen2021-02-231-4/+5
| | | | | | | | | This CL added a null check when getting bluetooth class to avoid java crash. Bug: 180019938 Test: make -j42 RunSettingsLibRoboTests Change-Id: Id1d7c7f021edde3bbbd4f715eeabd7c468b2a794
* Merge "Remove bluetooth address from logs in SettingsLib" am: 4ad4ca07bb am: ↵Treehugger Robot2020-08-131-6/+3
|\ | | | | | | | | | | | | | | 2918f0ef46 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1397949 Change-Id: I3ef3df5cb8c99c97770ced51a7c8e0dff5f629a7
| * Remove bluetooth address from logs in SettingsLibChienyuan2020-08-121-6/+3
| | | | | | | | | | | | | | Bug: 162912703 Bug: 163427379 Test: manual Change-Id: I25ad9363ff70ae175eb4c1a1b1d1209ff63dff23
| * DO NOT MERGE - Merge qt-qpr1-dev-plus-aosp@6304901 into stage-aosp-masterXin Li2020-03-191-11/+10
| |\ | | | | | | | | | | | | Bug: 151763422 Change-Id: I62d3293f617f630d3d2a3d5f67b764bf272769bf