diff options
| author | 2023-05-18 15:37:12 +0800 | |
|---|---|---|
| committer | 2023-05-19 22:58:45 +0800 | |
| commit | 78fa4e30a2d76683501903ad908007ce31583c61 (patch) | |
| tree | 232aaf4bffb42fd3a5bd9c6baa4125fb6f8550cd /libs/androidfw/FileStream.cpp | |
| parent | 7631bf4a577a39a1a57bf518c589deba91f3bfec (diff) | |
[LE Audio] New logic to generate the QR code
Currently the QR code string is generated in SettingsLib, and use
"<" and ">" to format the string.
Because the formatted string are multi layer nested, like
A:<B:<C:<<>;D:<>>;>;E:<F:<B:>;>;>;
Using Regex cannot handle this case,
- Regex cannot tell which B: is label for filed, which B: is user input
- Regex cannot tell which pair of <> is the correct open and close for B
- And these is no easy fix
The BluetoothLeBroadcastMetadata already implements the Parcelable
interface, use Parcel to serialize the string to fix issues.
Also, add unit test.
Fix: 248409874
Test: Unit test
Change-Id: I31ce4bb4f5e639deb0cb60ebd7d6bf904ae85788
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions