/system/bt/btcore/test/ |
H A D | uuid_test.cpp | 23 #include "btcore/include/uuid.h" 41 bt_uuid_t *uuid; local 43 uuid = uuid_new("incorrect length"); 44 EXPECT_EQ(NULL, uuid); 46 uuid = uuid_new("correct length but missing dashes --"); 47 EXPECT_EQ(NULL, uuid); 49 uuid = uuid_new(UUID_ONES); 50 ASSERT_TRUE(uuid != NULL); 52 EXPECT_EQ(0x11, uuid->uu[i]); 54 uuid_free(uuid); 96 bt_uuid_t *uuid = NULL; local 110 bt_uuid_t *uuid = NULL; local 126 bt_uuid_t *uuid = NULL; local 142 bt_uuid_t *uuid = NULL; local [all...] |
/system/bt/btcore/src/ |
H A D | uuid.c | 24 #include "btcore/include/uuid.h" 42 static bool uuid_is_base(const bt_uuid_t *uuid); 65 bt_uuid_t *uuid = osi_calloc(sizeof(bt_uuid_t)); 66 if (uuid == NULL) 74 uuid->uu[i] = strtoul(buf, NULL, 16); 85 return uuid; 88 void uuid_free(bt_uuid_t *uuid) { argument 89 osi_free(uuid); 92 bool uuid_is_empty(const bt_uuid_t *uuid) { argument 93 return !uuid || !memcm 108 uuid_128_to_16(const bt_uuid_t *uuid, uint16_t *uuid16) argument 119 uuid_128_to_32(const bt_uuid_t *uuid, uint32_t *uuid32) argument 130 uuid_to_string(const bt_uuid_t *uuid, uuid_string_t *uuid_string) argument 157 uuid_is_base(const bt_uuid_t *uuid) argument [all...] |
/system/bt/btif/include/ |
H A D | btif_profile_queue.h | 30 typedef bt_status_t (*btif_connect_cb_t) (bt_bdaddr_t *bda, uint16_t uuid); 32 bt_status_t btif_queue_connect(uint16_t uuid, const bt_bdaddr_t *bda, btif_connect_cb_t connect_cb);
|
H A D | btif_sock_rfc.h | 32 bt_status_t btsock_rfc_listen(const char* name, const uint8_t* uuid, int channel, 34 bt_status_t btsock_rfc_connect(const bt_bdaddr_t *bd_addr, const uint8_t* uuid,
|
H A D | btif_sock_sdp.h | 35 static inline bool is_uuid_empty(const uint8_t* uuid) argument 38 return uuid == NULL || memcmp(uuid, empty_uuid, sizeof(empty_uuid)) == 0; 41 int add_rfc_sdp_rec(const char* name, const uint8_t* uuid, int scn); 44 int get_reserved_rfc_channel(const uint8_t* uuid);
|
H A D | btif_api.h | 163 ** Description Looks up the service matching uuid on the remote device 170 bt_uuid_t *uuid); 302 bt_uuid_t *uuid);
|
/system/bt/btcore/include/ |
H A D | uuid.h | 26 // Creates uuid string structure to hold a well formed UUID 31 // Frees a uuid string structure created from |uuid_string_new|. 39 // Creates uuid structure from a well formed UUID string 40 // |uuid_string|. The caller takes ownership of the uuid 50 // Frees a uuid structure created from |uuid_new| and friends. 51 // |uuid| may be NULL. 52 void uuid_free(bt_uuid_t *uuid); 55 // |uuid| may not be NULL. 56 bool uuid_is_empty(const bt_uuid_t *uuid); 62 // Copies uuid |sr [all...] |
/system/bt/btif/src/ |
H A D | btif_profile_queue.c | 51 uint16_t uuid; member in struct:__anon677 78 if (((connect_node_t *)list_node(node))->uuid == p_param->uuid) { 79 LOG_INFO("%s dropping duplicate connect request for uuid: %04x", __func__, p_param->uuid); 120 bt_status_t btif_queue_connect(uint16_t uuid, const bt_bdaddr_t *bda, btif_connect_cb_t connect_cb) { argument 124 node.uuid = uuid; 160 return p_head->connect_cb(&p_head->bda, p_head->uuid);
|
H A D | btif_sock_sdp.c | 164 // Registers a service with the given |name|, |uuid|, and |channel| in the SDP 165 // database as a generic L2CAP RFCOMM protocol, storing its |uuid| as a service 167 static int add_sdp_by_uuid(const char *name, const uint8_t *uuid, argument 183 // Convert the |uuid| into a big-endian representation and add it as a 197 ARRAY_TO_BE_STREAM(tmp, uuid, UUID_MAX_LENGTH); 369 // Adds an RFCOMM SDP record for a service with the given |name|, |uuid|, and 371 // upon its |uuid|, and will override the |channel| with a reserved channel 372 // number if the |uuid| matches one of the preregistered bluez SDP records. 373 static int add_rfc_sdp_by_uuid(const char *name, const uint8_t *uuid, argument 390 int final_channel = get_reserved_rfc_channel(uuid); 425 get_reserved_rfc_channel(const uint8_t *uuid) argument 438 add_rfc_sdp_rec(const char *name, const uint8_t *uuid, const int channel) argument [all...] |
H A D | btif_gatt_server.c | 92 bt_uuid_t uuid; member in struct:__anon664 180 bta_to_btif_uuid(&app_uuid, &p_data->reg_oper.uuid); 219 bta_to_btif_uuid(&srvc_id.id.uuid, &p_data->create.uuid); 238 bt_uuid_t uuid; local 239 bta_to_btif_uuid(&uuid, &p_data->add_result.char_uuid); 244 &uuid, 252 bt_uuid_t uuid; local 253 bta_to_btif_uuid(&uuid, &p_data->add_result.char_uuid); 258 &uuid, 377 tBT_UUID uuid; local 459 tBT_UUID uuid; local 469 tBT_UUID uuid; local 520 btif_gatts_register_app(bt_uuid_t *uuid) argument 586 btif_gatts_add_characteristic(int server_if, int service_handle, bt_uuid_t *uuid, int properties, int permissions) argument 601 btif_gatts_add_descriptor(int server_if, int service_handle, bt_uuid_t *uuid, int permissions) argument [all...] |
H A D | btif_sock.c | 35 static bt_status_t btsock_listen(btsock_type_t type, const char *service_name, const uint8_t *uuid, int channel, int *sock_fd, int flags); 36 static bt_status_t btsock_connect(const bt_bdaddr_t *bd_addr, btsock_type_t type, const uint8_t *uuid, int channel, int *sock_fd, int flags); 146 static bt_status_t btsock_connect(const bt_bdaddr_t *bd_addr, btsock_type_t type, const uint8_t *uuid, int channel, int *sock_fd, int flags) { argument 147 assert(uuid != NULL || channel > 0); 156 status = btsock_rfc_connect(bd_addr, uuid, channel, sock_fd, flags);
|
H A D | btif_gatt_util.c | 114 btif_to_bta_uuid(&p_dest->uuid, &p_src->uuid); 120 btif_to_bta_uuid(&p_dest->id.uuid, &p_src->id.uuid); 205 bta_to_btif_uuid(&p_dest->uuid, &p_src->uuid); 211 bta_to_btif_uuid(&p_dest->id.uuid, &p_src->id.uuid); 249 descr_type = get_uuid16(&p_src->descr_type.uuid);
|
H A D | btif_sdp.c | 74 &addr, (uint8_t*)(evt_data->uuid.uu.uuid128), 148 static bt_status_t search(bt_bdaddr_t *bd_addr, const uint8_t *uuid) argument 153 memcpy(sdp_uuid.uu.uuid128, uuid, sizeof(sdp_uuid.uu.uuid128));
|
/system/bt/stack/gap/ |
H A D | gap_ble.c | 174 BOOLEAN gap_ble_enqueue_request (tGAP_CLCB *p_clcb, UINT16 uuid, tGAP_BLE_CMPL_CBACK *p_cback) argument 181 p_q->uuid = uuid; 204 *p_uuid = p_q->uuid; 226 if (p_db_attr->uuid != GATT_UUID_GAP_DEVICE_NAME && 230 switch (p_db_attr->uuid) 383 tBT_UUID uuid = {LEN_UUID_16,{UUID_SERVCLASS_GAP_SERVER}}; local 397 service_handle = GATTS_CreateService (gap_cb.gatt_if, &uuid, 0, GAP_MAX_ATTR_NUM, TRUE); 403 uuid.len = LEN_UUID_16; 404 uuid 513 UINT16 uuid = 0; local 685 gap_ble_accept_cl_operation(BD_ADDR peer_bda, UINT16 uuid, tGAP_BLE_CMPL_CBACK *p_cback) argument [all...] |
/system/bt/bta/include/ |
H A D | bta_sdp_api.h | 58 tBT_UUID uuid; member in struct:__anon501 104 ** specific profile uuid. 111 extern tBTA_SDP_STATUS BTA_SdpSearch(BD_ADDR bd_addr,tSDP_UUID *uuid);
|
/system/bt/bta/gatt/ |
H A D | bta_gattc_cache.c | 82 ((p_cur_srvc->service_uuid.id.uuid.len == 2) ? "uuid16" : "uuid128"), 83 p_cur_srvc->service_uuid.id.uuid.uu.uuid16, 91 APPL_TRACE_ERROR("\t Attr[0x%04x] handle[%d] uuid[0x%04x] inst[%d] type[%s] prop[0x%1x]", 121 APPL_TRACE_ERROR("\t rec[%d] uuid[0x%04x] s_handle[%d] e_handle[%d] is_primary[%d]", 122 i + 1, pp->uuid.uu.uuid16, pp->s_handle, pp->e_handle, pp->is_primary); 215 static UINT8 bta_gattc_get_srvc_inst_id(tBTA_GATTC_SERV *p_srvc_cb, tBT_UUID uuid) argument 226 if (bta_gattc_uuid_compare(&p_srvc_rec->uuid, &uuid, TRUE)) 322 memcpy(&p_new_srvc->service_uuid.id.uuid, p_uuid, sizeof(tBT_UUID)); 594 &p_rec->uuid, 700 bta_gattc_srvc_in_list(tBTA_GATTC_SERV *p_srvc_cb, UINT16 s_handle, UINT16 e_handle, tBT_UUID uuid) argument 738 bta_gattc_add_srvc_to_list(tBTA_GATTC_SERV *p_srvc_cb, UINT16 s_handle, UINT16 e_handle, tBT_UUID uuid, BOOLEAN is_primary) argument 778 bta_gattc_add_char_to_list(tBTA_GATTC_SERV *p_srvc_cb, UINT16 decl_handle, UINT16 value_handle, tBT_UUID uuid, UINT8 property) argument 904 tSDP_UUID uuid; local 1549 bta_gattc_fill_nv_attr(tBTA_GATTC_NV_ATTR *p_attr, UINT8 type, UINT16 s_handle, UINT16 e_handle, UINT8 id, tBT_UUID uuid, UINT8 prop, BOOLEAN is_primary) argument 1578 tBT_UUID uuid; local [all...] |
/system/bt/stack/gatt/ |
H A D | gatt_db.c | 105 return &((tGATT_ATTR16 *)p_db->p_attr_list)->p_value->uuid; 168 switch (p_attr->uuid) 221 GATT_TRACE_DEBUG("read_attr_value uuid=0x%04x perm=0x%0x sec_flag=0x%x offset=%d read_long=%d", 222 p_attr16->uuid, 234 uuid16 = p_attr16->uuid; 240 len = p_attr16->p_value->uuid.len; 241 if (mtu >= p_attr16->p_value->uuid.len) 243 gatt_build_uuid_to_stream(&p, p_attr16->p_value->uuid); 258 UINT16_TO_STREAM(p, ((tGATT_ATTR16 *)(p_attr16->p_next))->uuid); 263 gatt_convert_uuid32_to_uuid128 (p, ((tGATT_ATTR32 *)(p_attr16->p_next))->uuid); 450 tBT_UUID uuid = {LEN_UUID_16, {GATT_UUID_INCLUDE_SERVICE}}; local 500 tBT_UUID uuid = {LEN_UUID_16, {GATT_UUID_CHAR_DECLARE}}; local 1185 tBT_UUID uuid = {LEN_UUID_16, {0}}; local [all...] |
/system/bt/bta/sdp/ |
H A D | bta_sdp_api.c | 96 tBTA_SDP_STATUS BTA_SdpSearch(BD_ADDR bd_addr, tSDP_UUID *uuid) argument 106 //p_msg->uuid = uuid; 107 memcpy(&(p_msg->uuid), uuid, sizeof(tSDP_UUID));
|
H A D | bta_sdp_int.h | 68 tSDP_UUID uuid; member in struct:__anon558
|
/system/bt/stack/srvc/ |
H A D | srvc_battery.c | 200 tBT_UUID uuid = {LEN_UUID_16, {UUID_SERVCLASS_BATTERY}}; local 215 &uuid, 233 uuid.uu.uuid16 = GATT_UUID_BATTERY_LEVEL; 239 &uuid, 250 uuid.uu.uuid16 = GATT_UUID_CHAR_CLIENT_CONFIG; 253 &uuid); 262 uuid.uu.uuid16 = GATT_UUID_CHAR_PRESENT_FORMAT; 265 &uuid)) 275 uuid.uu.uuid16 = GATT_UUID_RPT_REF_DESCR; 278 &uuid)) [all...] |
H A D | srvc_dis.c | 62 static tDIS_ATTR_MASK dis_uuid_to_attr(UINT16 uuid) argument 64 switch (uuid) 130 if ((p_db_attr->uuid == GATT_UUID_PNP_ID || p_db_attr->uuid == GATT_UUID_SYSTEM_ID)&& 138 switch (p_db_attr->uuid) 147 pp = dis_cb.dis_value.data_string[p_db_attr->uuid - GATT_UUID_MODEL_NUMBER_STR]; 236 param.service.uuid.len = LEN_UUID_16; 246 param.service.uuid.uu.uuid16 = dis_attr_uuid[dis_cb.dis_read_uuid_idx]; 251 GATT_TRACE_ERROR ("Read DISInfo: 0x%04x GATT_Read Failed", param.service.uuid.uu.uuid16); 352 tBT_UUID uuid local [all...] |
H A D | srvc_dis_int.h | 31 UINT16 uuid; member in struct:__anon1286
|
/system/extras/ext4_utils/ |
H A D | ext4_utils.c | 25 #include <uuid.h> 56 struct uuid { struct 79 struct uuid *uuid = (struct uuid *)result; local 82 memcpy(uuid, sha1, sizeof(struct uuid)); 84 uuid->time_low = ntohl(uuid->time_low); 85 uuid [all...] |
/system/bt/bta/hh/ |
H A D | bta_hh_le.c | 132 if (p_rpt->uuid == GATT_UUID_HID_REPORT) 134 if (p_rpt->uuid == GATT_UUID_HID_BT_KB_INPUT) 136 if (p_rpt->uuid == GATT_UUID_HID_BT_KB_OUTPUT) 138 if (p_rpt->uuid == GATT_UUID_HID_BT_MOUSE_INPUT) 144 p_rpt->uuid , 168 static char *bta_hh_uuid_to_str(UINT16 uuid) argument 170 switch(uuid) 354 void bta_hh_le_fill_16bits_gatt_id(UINT8 inst_id, UINT16 uuid, tBTA_GATT_ID *p_output) argument 357 p_output->uuid.len = LEN_UUID_16; 358 p_output->uuid [all...] |
/system/bt/bta/ag/ |
H A D | bta_ag_sdp.c | 143 APPL_TRACE_DEBUG("bta_ag_add_record uuid: %x", service_uuid); 312 UINT16 uuid; local 317 uuid = UUID_SERVCLASS_HF_HANDSFREE; 322 uuid = UUID_SERVCLASS_HEADSET_HS; 334 if ((p_rec = SDP_FindServiceInDb(p_scb->p_disc_db, uuid, p_rec)) == NULL) 336 if (uuid == UUID_SERVCLASS_HEADSET_HS) 339 uuid = UUID_SERVCLASS_HEADSET; 340 if ((p_rec = SDP_FindServiceInDb(p_scb->p_disc_db, uuid, p_rec)) == NULL) 363 SDP_FindProfileVersionInRec(p_rec, uuid, &p_scb->peer_version);
|