OSDN Git Service

Use one type for UUID (1/5)
authorJakub Pawlowski <jpawlowski@google.com>
Mon, 10 Jul 2017 16:56:09 +0000 (09:56 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Mon, 25 Sep 2017 22:11:13 +0000 (22:11 +0000)
commit819e2ecb84a22d6e03ec9ed67b3260c0dd7e8aba
treee6eeb9c7b8cc36e978b4db9fc143549f1735f1f4
parent9c268d0a54396f22e893586069fe576b751b013f
Use one type for UUID (1/5)

Currently, we have few different representations for UUID in stack:
tBT_UUID, tSDP_UUID, bt_uuid_t, bluetooth:UUID, or uint8_t*.

Additionally, tBT_UUID and bt_uuid_t are used to hold UUID as 128bit
as Little Endian or Big Endian, depending on which part of stack (GATT
or SDP) is using it.

This patch is creating one type, bluetooth::Uuid, that will replace all
other types.

Bug: 66912853
Test: all sl4a tests for GATT and RFCOMM
Merged-In: Ia42d3233146db0488728ed6f878f99b368fe8838
Change-Id: Ia42d3233146db0488728ed6f878f99b368fe8838
156 files changed:
bta/ag/bta_ag_sdp.cc
bta/dm/bta_dm_act.cc
bta/dm/bta_dm_api.cc
bta/dm/bta_dm_int.h
bta/gatt/bta_gattc_act.cc
bta/gatt/bta_gattc_api.cc
bta/gatt/bta_gattc_cache.cc
bta/gatt/bta_gattc_int.h
bta/gatt/bta_gattc_main.cc
bta/gatt/bta_gattc_utils.cc
bta/gatt/bta_gatts_act.cc
bta/gatt/bta_gatts_api.cc
bta/gatt/bta_gatts_int.h
bta/gatt/bta_gatts_utils.cc
bta/hf_client/bta_hf_client_sdp.cc
bta/hh/bta_hh_le.cc
bta/hl/bta_hl_act.cc
bta/include/bta_api.h
bta/include/bta_gatt_api.h
bta/include/bta_jv_api.h
bta/include/bta_sdp_api.h
bta/jv/bta_jv_act.cc
bta/jv/bta_jv_api.cc
bta/jv/bta_jv_int.h
bta/mce/bta_mce_act.cc
bta/sdp/bta_sdp_act.cc
bta/sdp/bta_sdp_api.cc
bta/sdp/bta_sdp_int.h
btcore/Android.bp
btcore/include/property.h
btcore/include/uuid.h [deleted file]
btcore/src/property.cc
btcore/src/uuid.cc [deleted file]
btcore/test/property_test.cc
btcore/test/uuid_test.cc [deleted file]
btif/include/btif_api.h
btif/include/btif_gatt_util.h
btif/include/btif_sock_rfc.h
btif/include/btif_sock_sdp.h
btif/include/btif_storage.h
btif/include/btif_util.h
btif/src/bluetooth.cc
btif/src/btif_ble_scanner.cc
btif/src/btif_core.cc
btif/src/btif_dm.cc
btif/src/btif_gatt_client.cc
btif/src/btif_gatt_server.cc
btif/src/btif_gatt_test.cc
btif/src/btif_gatt_util.cc
btif/src/btif_sdp.cc
btif/src/btif_sock.cc
btif/src/btif_sock_rfc.cc
btif/src/btif_sock_sdp.cc
btif/src/btif_storage.cc
btif/src/btif_util.cc
btif/test/btif_storage_test.cc
service/Android.bp
service/bluetooth_instance.h
service/client/main.cc
service/common/Android.bp
service/common/android/bluetooth/bluetooth_gatt_characteristic.cc
service/common/android/bluetooth/bluetooth_gatt_descriptor.cc
service/common/android/bluetooth/bluetooth_gatt_included_service.cc
service/common/android/bluetooth/bluetooth_gatt_included_service.h
service/common/android/bluetooth/bluetooth_gatt_service.cc
service/common/android/bluetooth/scan_filter.cc
service/common/android/bluetooth/uuid.cc
service/common/android/bluetooth/uuid.h
service/common/bluetooth/advertise_data.h
service/common/bluetooth/characteristic.h
service/common/bluetooth/descriptor.h
service/common/bluetooth/low_energy_constants.h
service/common/bluetooth/scan_filter.cc
service/common/bluetooth/scan_filter.h
service/common/bluetooth/service.h
service/common/bluetooth/uuid.cc [deleted file]
service/common/bluetooth/uuid.h [deleted file]
service/example/heart_rate/constants.h
service/example/heart_rate/heart_rate_server.cc
service/gatt_client.cc
service/gatt_client.h
service/gatt_server.cc
service/gatt_server.h
service/gatt_server_old.cc
service/gatt_server_old.h
service/hal/bluetooth_gatt_interface.cc
service/hal/bluetooth_gatt_interface.h
service/hal/fake_bluetooth_gatt_interface.cc
service/hal/fake_bluetooth_gatt_interface.h
service/ipc/binder/bluetooth_binder_server.h
service/ipc/binder/interface_with_instances_base.cc
service/ipc/binder/interface_with_instances_base.h
service/ipc/linux_ipc_host.cc
service/ipc/linux_ipc_host.h
service/low_energy_advertiser.cc
service/low_energy_advertiser.h
service/low_energy_client.cc
service/low_energy_client.h
service/low_energy_scanner.cc
service/low_energy_scanner.h
service/test/gatt_client_unittest.cc
service/test/gatt_server_unittest.cc
service/test/low_energy_advertiser_unittest.cc
service/test/low_energy_client_unittest.cc
service/test/low_energy_scanner_unittest.cc
service/test/parcelable_unittest.cc
service/test/uuid_unittest.cc [deleted file]
stack/a2dp/a2dp_api.cc
stack/avrc/avrc_sdp.cc
stack/bnep/bnep_api.cc
stack/bnep/bnep_int.h
stack/bnep/bnep_main.cc
stack/bnep/bnep_utils.cc
stack/btm/btm_ble_adv_filter.cc
stack/btm/btm_inq.cc
stack/gap/gap_ble.cc
stack/gatt/att_protocol.cc
stack/gatt/gatt_api.cc
stack/gatt/gatt_attr.cc
stack/gatt/gatt_cl.cc
stack/gatt/gatt_db.cc
stack/gatt/gatt_int.h
stack/gatt/gatt_sr.cc
stack/gatt/gatt_utils.cc
stack/hid/hidh_api.cc
stack/include/bnep_api.h
stack/include/bt_types.h
stack/include/btm_api.h
stack/include/btm_ble_api.h
stack/include/btm_ble_api_types.h
stack/include/gatt_api.h
stack/include/sdp_api.h
stack/pan/pan_api.cc
stack/pan/pan_int.h
stack/pan/pan_main.cc
stack/rfcomm/port_api.cc
stack/sdp/sdp_api.cc
stack/sdp/sdp_discovery.cc
stack/sdp/sdp_utils.cc
stack/sdp/sdpint.h
stack/srvc/srvc_battery.cc
stack/srvc/srvc_dis.cc
stack/srvc/srvc_eng.cc
test/rootcanal/Android.bp
test/suite/gatt/gatt_test.cc
test/suite/gatt/gatt_test.h
test/suite/gatt/gatt_unittest.cc
test/suite/rfcomm/rfcomm_test.cc
test/suite/rfcomm/rfcomm_test.h
test/suite/rfcomm/rfcomm_unittest.cc
tools/bdtool/adapter.c
tools/bdtool/bdtool.c
types/Android.bp
types/bluetooth/uuid.cc [new file with mode: 0644]
types/bluetooth/uuid.h [new file with mode: 0644]
types/test/bluetooth/uuid_unittest.cc [new file with mode: 0644]