aboutsummaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothLeCallControl.java
diff options
context:
space:
mode:
authorJakub Tyszkowski <tyszkowski@google.com>2022-10-27 14:58:27 +0000
committerJakub Tyszkowski <tyszkowski@google.com>2022-11-04 15:36:52 +0000
commit260de918e81d0728694f99228e97f549e0517521 (patch)
tree0726bffce3fa1df36b5d372e2a0492f767a9e503 /framework/java/android/bluetooth/BluetoothLeCallControl.java
parentb3dd2ce47f4125669f58f6ed61fbc4dd52e9cb6b (diff)
LeAudio: Improve context type management function naming
While the previous change was focused on the data type system used for passing audio contexts, this one takes the code logic into the account and improves the naming scheme for better context awareness and code readability. It renames functions around the context type management. The 'active context' term was ambigious and was replaced with 'available context', which the BT spec. is using. Functions now use more coherent naming scheme and since some of them were returning a bit masks which were not bit-tested but logically ANDed with other booleans, they now return boolean type to avoid the confusion and implicit conversion bugs to happen. Test: atest --host bluetooth_le_audio_test bluetooth_le_audio_client_test bluetooth_test_broadcaster bluetooth_test_broadcaster_state_machine --no-bazel-mode Bug: 249737696 Tag: #refactor Change-Id: I4305dc64c04bedb904d5e23ef29f5282a27a2860 Merged-In: I4305dc64c04bedb904d5e23ef29f5282a27a2860 (cherry picked from commit f609a9720000578cb532ac874acb476a519da4ee)
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothLeCallControl.java')
0 files changed, 0 insertions, 0 deletions