| commit | 554d55ad56800d2d1f6acebd908dce2b8d163834 | [log] [tgz] |
|---|---|---|
| author | Marie Janssen <jamuraa@google.com> | Fri Nov 17 16:04:48 2023 -0500 |
| committer | Marie Janssen <jamuraa@google.com> | Tue Nov 28 16:31:18 2023 +0000 |
| tree | 3b2d4f6ee6f5077a4b9a7b77e58465ea7e61ccbb | |
| parent | d38040ad1aaef5532a626b43ac95003d0a238dd8 [diff] |
[bt-common] Add limited recognition of UUIDs
Use uuid.recognize() to reconize the UUID, which will then be printed
when it is Display printed, i.e.
```
// "0x2a00 (Device Name)"
println!("{}", Uuid::from_u16(0x2A00).recognize());
```
Unregognized UUID printing is also shortened, so UUID16s and UUID32s are
now: "0x2a00" and "0x12345a65".
Bug: b/308483293
Test: tests added
Change-Id: I03ee89b4d4e51eeb089de1e23f452f55e1911cd6
Reviewed-on: https://bluetooth-review.git.corp.google.com/c/bluetooth/+/1340
Reviewed-by: Dayeong Lee <dayeonglee@google.com>
This is a repository for shared source libraries that can be useful for multiple Bluetooth stacks. Many of these are meant to be stack-agnostic and platform-agnostic and implement a useful part of a published Bluetooth specification.
It has been started as a repository for developing Rust crates but can be easily expanded to include libraries for other languages.