Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 03c4b80e authored by Jakub Tyszkowski's avatar Jakub Tyszkowski
Browse files

broadcaster: Refactor handling broadcast ID

This patch is another step to properly align the Java API
with the native layer implementation.

This change makes use of the broadcast ID in the native
layer API in place of the vague instance ID, to seamlesly
match the Java API and simplify the native layer API and avoid
any translations between the two. Previously used instance ID
(after the advertising instance identifier) is now only used
when talking to the advertiser module but is no longer exposed
to the upper layers, where only broadcast ID exists.

This also fixes the following error that was caused by the broadcast
ID being not yet known to the Java layer at the time broadcast is created:
  LeAudioService  D  Broadcast Instance id: 15740086 paused.
  LeAudioService  E  Unknown Broadcast ID for broadcast instance: 15740086

Bug: 150670922
Tag: #feature
Test: atest BluetoothInstrumentationTests bluetooth_test_broadcaster_sm bluetooth_test_broadcaster
Sponsor: jpawlowski@
Change-Id: Ie524da6fd560bc20ed1eab4fea5035cedbe18f5c
parent 504169f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment