Cleanup: add tlv parsing functions

decodeTlvBytes(): parse TLV bytes into map<key=T, val=LV>.
encodeTlvBytes(): convert map<key=T, val=LV> into raw bytes.

Bug: 321604848
Test: Check DevCapResp packet from logcat
Change-Id: I6dd497813691e009d209d79bf8cd207a8f337dc9
2 files changed
tree: e8a29a215d6c4f5acfa8c4e0c1c99fc0cc4426db
  1. aidl/
  2. extns/
  3. halimpl/
  4. Android.bp