[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>
8 files changed
tree: 3b2d4f6ee6f5077a4b9a7b77e58465ea7e61ccbb
  1. rust/
  2. OWNERS
  3. README.md
README.md

Bluetooth Shared Libraries

What is this?

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.

Structure

  • rust - Rust Crates