Home
last modified time | relevance | path

Searched refs:bt_uuid_t (Results 1 – 25 of 43) sorted by relevance

12

/system/bt/btcore/src/
Duuid.c34 static const bt_uuid_t empty_uuid = {{ 0 }};
38 static const bt_uuid_t base_uuid = {
42 static bool uuid_is_base(const bt_uuid_t *uuid);
57 bt_uuid_t *uuid_new(const char *uuid_string) { in uuid_new()
65 bt_uuid_t *uuid = osi_calloc(sizeof(bt_uuid_t)); in uuid_new()
68 for (size_t i = 0; i < sizeof(bt_uuid_t); ++i, s+=2) { in uuid_new()
86 void uuid_free(bt_uuid_t *uuid) { in uuid_free()
90 bool uuid_is_empty(const bt_uuid_t *uuid) { in uuid_is_empty()
91 return !uuid || !memcmp(uuid, &empty_uuid, sizeof(bt_uuid_t)); in uuid_is_empty()
94 bool uuid_is_equal(const bt_uuid_t *first, const bt_uuid_t *second) { in uuid_is_equal()
[all …]
Dproperty.c106 bt_property_t *property_new_uuids(const bt_uuid_t *uuid, size_t count) { in property_new_uuids()
108 return property_new_((void *)uuid, sizeof(bt_uuid_t) * count, BT_PROPERTY_UUIDS); in property_new_uuids()
202 const bt_uuid_t *property_as_uuids(const bt_property_t *property, size_t *count) { in property_as_uuids()
204 *count = sizeof(bt_uuid_t) / property->len; in property_as_uuids()
205 return (const bt_uuid_t *)property->val; in property_as_uuids()
/system/bt/btcore/include/
Duuid.h48 bt_uuid_t *uuid_new(const char *uuid_string);
52 void uuid_free(bt_uuid_t *uuid);
56 bool uuid_is_empty(const bt_uuid_t *uuid);
60 bool uuid_is_equal(const bt_uuid_t *first, const bt_uuid_t *second);
64 bt_uuid_t *uuid_copy(bt_uuid_t *dest, const bt_uuid_t *src);
69 void uuid_to_string(const bt_uuid_t *uuid, uuid_string_t *uuid_string);
74 bool uuid_128_to_16(const bt_uuid_t *uuid, uint16_t *uuid16);
75 bool uuid_128_to_32(const bt_uuid_t *uuid, uint32_t *uuid32);
Dproperty.h50 bt_property_t *property_new_uuids(const bt_uuid_t *uuid, size_t count);
77 const bt_uuid_t *property_as_uuids(const bt_property_t *property, size_t *count);
/system/bt/test/suite/gatt/
Dgatt_unittest.cpp29 static void create_random_uuid(bt_uuid_t *uuid, int seed) { in create_random_uuid()
42 bt_uuid_t gatt_client_uuid; in TEST_F()
64 bt_uuid_t gatt_client_uuid; in TEST_F()
89 bt_uuid_t gatt_server_uuid; in TEST_F()
102 bt_uuid_t gatt_server_uuid; in TEST_F()
116 bt_uuid_t char_uuid; in TEST_F()
120 bt_uuid_t desc_uuid; in TEST_F()
Dgatt_test.h58 int status, int clientIf, const bt_uuid_t& app_uuid) override;
69 int status, int server_if, const bt_uuid_t& uuid) override;
76 int status, int server_if, const bt_uuid_t& char_id,
80 int status, int server_if, const bt_uuid_t& descr_id,
Dgatt_test.cpp102 int status, int clientIf, const bt_uuid_t& app_uuid) { in RegisterClientCallback()
125 int status, int server_if, const bt_uuid_t& uuid) { in RegisterServerCallback()
143 int status, int server_if, const bt_uuid_t& char_id, in CharacteristicAddedCallback()
154 int status, int server_if, const bt_uuid_t& descr_id, in DescriptorAddedCallback()
/system/bt/service/hal/
Dfake_bluetooth_gatt_interface.h36 virtual bt_status_t RegisterClient(bt_uuid_t* app_uuid) = 0;
64 virtual bt_status_t RegisterServer(bt_uuid_t* app_uuid) = 0;
69 bt_uuid_t *uuid,
72 bt_uuid_t* uuid,
96 const bt_uuid_t& app_uuid);
109 const bt_uuid_t& app_uuid);
117 const bt_uuid_t& uuid,
120 const bt_uuid_t& uuid,
Dfake_bluetooth_gatt_interface.cpp29 bt_status_t FakeRegisterClient(bt_uuid_t* app_uuid) { in FakeRegisterClient()
100 bt_status_t FakeRegisterServer(bt_uuid_t* app_uuid) { in FakeRegisterServer()
123 bt_uuid_t *uuid, in FakeAddCharacteristic()
133 bt_uuid_t* uuid, in FakeAddDescriptor()
258 const bt_uuid_t& app_uuid) { in NotifyRegisterClientCallback()
301 const bt_uuid_t& app_uuid) { in NotifyRegisterServerCallback()
324 const bt_uuid_t& uuid, in NotifyCharacteristicAddedCallback()
334 const bt_uuid_t& uuid, in NotifyDescriptorAddedCallback()
Dbluetooth_gatt_interface.h57 const bt_uuid_t& app_uuid);
150 const bt_uuid_t& app_uuid);
167 const bt_uuid_t& uuid,
174 const bt_uuid_t& uuid,
Dbluetooth_gatt_interface.cpp73 void RegisterClientCallback(int status, int client_if, bt_uuid_t* app_uuid) { in RegisterClientCallback()
267 void RegisterServerCallback(int status, int server_if, bt_uuid_t* app_uuid) { in RegisterServerCallback()
306 bt_uuid_t* uuid, in CharacteristicAddedCallback()
321 bt_uuid_t* uuid, in DescriptorAddedCallback()
604 const bt_uuid_t& /* app_uuid */) { in RegisterClientCallback() argument
740 const bt_uuid_t& /* app_uuid */) { in RegisterServerCallback() argument
766 const bt_uuid_t& /* uuid */, in CharacteristicAddedCallback() argument
776 const bt_uuid_t& /* uuid */, in DescriptorAddedCallback() argument
/system/bt/btif/test/
Dbtif_storage_test.cpp31 bt_uuid_t uuid; in TEST()
41 bt_uuid_t uuid; in TEST()
53 bt_uuid_t uuids[2]; in TEST()
63 bt_uuid_t uuids[2]; in TEST()
/system/bt/btif/include/
Dbtif_gatt_util.h27 void btif_to_bta_uuid(tBT_UUID *p_dest, bt_uuid_t *p_src);
29 void btif_to_bta_uuid_mask(tBTA_DM_BLE_PF_COND_MASK *p_mask, bt_uuid_t *p_src);
31 void bta_to_btif_uuid(bt_uuid_t *p_dest, tBT_UUID *p_src);
Dbtif_util.h66 void uuid16_to_uuid128(uint16_t uuid16, bt_uuid_t* uuid128);
73 bool string_to_uuid(const char *str, bt_uuid_t *p_uuid);
75 void uuid_to_string_legacy(bt_uuid_t *p_uuid, char *str);
Dbtif_api.h188 bt_uuid_t *uuid);
332 bt_uuid_t *uuid);
/system/bt/btcore/test/
Duuid_test.cpp41 bt_uuid_t *uuid; in TEST_F()
96 bt_uuid_t *uuid = NULL; in TEST_F()
110 bt_uuid_t *uuid = NULL; in TEST_F()
126 bt_uuid_t *uuid = NULL; in TEST_F()
142 bt_uuid_t *uuid = NULL; in TEST_F()
Dproperty_test.cpp136 bt_uuid_t uuid0 = { in TEST_F()
148 EXPECT_EQ((int)sizeof(bt_uuid_t), property->len); in TEST_F()
151 const bt_uuid_t *uuid1 = property_as_uuids(property, &uuid_cnt1); in TEST_F()
152 EXPECT_EQ(0, memcmp(uuid1->uu, uuid1->uu, sizeof(bt_uuid_t))); in TEST_F()
159 bt_uuid_t uuids[] = { in TEST_F()
174 bt_property_t *property0 = property_new_uuids(uuids, sizeof(bt_uuid_t)/sizeof(uuids)); in TEST_F()
/system/bt/btif/src/
Dbtif_gatt_server.c90 bt_uuid_t uuid;
172 bt_uuid_t app_uuid; in btapp_gatts_handle_cback()
231 bt_uuid_t uuid; in btapp_gatts_handle_cback()
245 bt_uuid_t uuid; in btapp_gatts_handle_cback()
521 static bt_status_t btif_gatts_register_app(bt_uuid_t *uuid) in btif_gatts_register_app()
525 memcpy(&btif_cb.uuid, uuid, sizeof(bt_uuid_t)); in btif_gatts_register_app()
588 bt_uuid_t *uuid, int properties, in btif_gatts_add_characteristic()
597 memcpy(&btif_cb.uuid, uuid, sizeof(bt_uuid_t)); in btif_gatts_add_characteristic()
602 static bt_status_t btif_gatts_add_descriptor(int server_if, int service_handle, bt_uuid_t *uuid, in btif_gatts_add_descriptor()
610 memcpy(&btif_cb.uuid, uuid, sizeof(bt_uuid_t)); in btif_gatts_add_descriptor()
Dbtif_storage.c227 for (i=0; i < (prop->len)/sizeof(bt_uuid_t); i++) in prop2cfg()
229 bt_uuid_t *p_uuid = (bt_uuid_t*)prop->val + i; in prop2cfg()
343 bt_uuid_t *p_uuid = (bt_uuid_t*)prop->val; in cfg2prop()
345 prop->len = num_uuids * sizeof(bt_uuid_t); in cfg2prop()
548 size_t btif_split_uuids_string(const char *str, bt_uuid_t *p_uuid, size_t max_uuids) in btif_split_uuids_string()
611 bt_uuid_t *p_uuid = (bt_uuid_t*)property->val; in btif_storage_get_adapter_property()
659 property->len = (num_uuids)*sizeof(bt_uuid_t); in btif_storage_get_adapter_property()
855 bt_uuid_t local_uuids[BT_MAX_NUM_UUIDS]; in btif_storage_load_bonded_devices()
856 bt_uuid_t remote_uuids[BT_MAX_NUM_UUIDS]; in btif_storage_load_bonded_devices()
Dbtif_gatt_util.c83 void btif_to_bta_uuid(tBT_UUID *p_dest, bt_uuid_t *p_src) in btif_to_bta_uuid()
121 void btif_to_bta_uuid_mask(tBTA_DM_BLE_PF_COND_MASK *p_mask, bt_uuid_t *p_src) in btif_to_bta_uuid_mask()
151 void bta_to_btif_uuid(bt_uuid_t *p_dest, tBT_UUID *p_src) in bta_to_btif_uuid()
Dbtif_util.c105 void uuid16_to_uuid128(uint16_t uuid16, bt_uuid_t* uuid128) in uuid16_to_uuid128()
108 memset(uuid128, 0, sizeof(bt_uuid_t)); in uuid16_to_uuid128()
115 bool string_to_uuid(const char *str, bt_uuid_t *p_uuid) in string_to_uuid()
146 void uuid_to_string_legacy(bt_uuid_t *p_uuid, char *str) in uuid_to_string_legacy()
/system/bt/service/common/bluetooth/
Duuid.h51 explicit UUID(const bt_uuid_t& uuid);
68 bt_uuid_t GetBlueDroid() const;
Duuid.cpp116 UUID::UUID(const bt_uuid_t& uuid) { in UUID()
143 bt_uuid_t UUID::GetBlueDroid() const { in GetBlueDroid()
144 bt_uuid_t ret; in GetBlueDroid()
/system/bt/service/
Dgatt_client.cpp75 bt_uuid_t app_uuid = uuid.GetBlueDroid(); in RegisterInstance()
88 const bt_uuid_t& app_uuid) { in RegisterClientCallback()
Dgatt_server.h270 const bt_uuid_t& uuid,
276 const bt_uuid_t& uuid,
381 const bt_uuid_t& app_uuid) override;

12