summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothVolumeControl.java
diff options
context:
space:
mode:
authorJakub Tyszkowski <jakub.tyszkowski@codecoup.pl>2022-02-24 11:56:27 +0000
committerJakub Tyszkowski <jakub.tyszkowski@codecoup.pl>2022-03-04 11:32:49 +0000
commit41ee39a103b043ae5e316eeec9cc3f9a2f37fba9 (patch)
tree5abaea3846b91281abca7ba57fae76b30b675e34 /framework/java/android/bluetooth/BluetoothVolumeControl.java
parent83c130f9017a5f043d50438c294da440955351bc (diff)
hap: Improvements around the BluetoothHapPresetInfo builder
Since the BluetoothHapClient API pass BluetoothHapPresetInfo objects only in one direction (when receiving BluetoothHapPresetInfo instances from the service), the App shouldn't ever need to build them by itself. From the Service point of view, preset index and name are both equally important and are both mandatory thus should be both in Builder class constructor, however in valid cases, preset info comes from the JNI native code, wich does not use the builder class. In other rare cases for invalid requests we should return null as API return params are nullable. The builder can still be used in other parts like the unit tests. Bug: 150670922 Bug: 218682004 Bug: 220029662 Fixes: 218682004 Fixes: 220029662 Tag: #feature Test: atest CtsBluetoothTestCases:android.bluetooth.cts.BluetoothHapClientTest BluetoothInstrumentationTests Sponsor: jpawlowski@ Change-Id: I95c68406f531acc2056d3b16b3fcc8af4ca659cb
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothVolumeControl.java')
0 files changed, 0 insertions, 0 deletions