Android o preview 4
Make RawAddress into a class (6/6)

* Add libbluetooth-types - library containing types implementation, that
is common between stystem/bt and packages/apps/Bluetooth. It must be
included in every project using btif interface.
* Put Raw Address implementation into libbluetooth-types
* Unify all "to/from string" helper methods into ToString and FromString
* bd_addr_empty -> RawAddress::kEmpty
* bd_addr_any -> RawAddress::kAny

Also fix leaks in jni str2addr by adding ReleaseStringUTFChars

Test: types_unittest
Change-Id: I1eccec62cfb764f5add22ab9dd3b3e88bfd05a97
Merged-In: I1eccec62cfb764f5add22ab9dd3b3e88bfd05a97
1 file changed
tree: 7dffa50f14441ca3fef03ffad0ca52fa58ba1bf3
  1. PMC/
  2. sl4n/
  3. OWNERS
  4. PREUPLOAD.cfg