Home
last modified time | relevance | path

Searched refs:From16Bit (Results 1 – 25 of 49) sorted by relevance

12

/system/bt/stack/test/
Dstack_gatt_sr_hash_test.cc48 gatts_init_service_db(local_db[0], Uuid::From16Bit(0x1800), true, 0x0001, 5); in TEST()
52 Uuid::From16Bit(0x2A00)); in TEST()
54 Uuid::From16Bit(0x2A01)); in TEST()
57 gatts_init_service_db(local_db[1], Uuid::From16Bit(0x1801), true, 0x0006, 8); in TEST()
59 Uuid::From16Bit(0x2A05)); in TEST()
60 gatts_add_char_descr(local_db[1], GATT_CHAR_PROP_BIT_READ, Uuid::From16Bit(0x2902)); in TEST()
64 Uuid::From16Bit(0x2B29)); in TEST()
66 Uuid::From16Bit(0x2B2A)); in TEST()
69 gatts_init_service_db(local_db[2], Uuid::From16Bit(0x1808), true, 0x000E, 6); in TEST()
70 gatts_add_included_service(local_db[2], 0x0014, 0x0016, Uuid::From16Bit(0x180F)); in TEST()
[all …]
/system/bt/stack/gatt/
Dgatt_sr_hash.cc34 if (attr_it->uuid == Uuid::From16Bit(GATT_UUID_PRI_SERVICE) || in calculate_database_info_size()
35 attr_it->uuid == Uuid::From16Bit(GATT_UUID_SEC_SERVICE)) { in calculate_database_info_size()
38 } else if (attr_it->uuid == Uuid::From16Bit(GATT_UUID_INCLUDE_SERVICE)){ in calculate_database_info_size()
41 } else if (attr_it->uuid == Uuid::From16Bit(GATT_UUID_CHAR_DECLARE)) { in calculate_database_info_size()
44 } else if (attr_it->uuid == Uuid::From16Bit(GATT_UUID_CHAR_DESCRIPTION) || in calculate_database_info_size()
45 attr_it->uuid == Uuid::From16Bit(GATT_UUID_CHAR_CLIENT_CONFIG) || in calculate_database_info_size()
46 attr_it->uuid == Uuid::From16Bit(GATT_UUID_CHAR_SRVR_CONFIG) || in calculate_database_info_size()
47 attr_it->uuid == Uuid::From16Bit(GATT_UUID_CHAR_PRESENT_FORMAT) || in calculate_database_info_size()
48 attr_it->uuid == Uuid::From16Bit(GATT_UUID_CHAR_AGG_FORMAT)) { in calculate_database_info_size()
51 } else if (attr_it->uuid == Uuid::From16Bit(GATT_UUID_CHAR_EXT_PROP)) { in calculate_database_info_size()
[all …]
Dgatt_attr.cc379 Uuid service_uuid = Uuid::From16Bit(UUID_SERVCLASS_GATT_SERVER); in gatt_profile_db_init()
381 Uuid srv_changed_char_uuid = Uuid::From16Bit(GATT_UUID_GATT_SRV_CHGD); in gatt_profile_db_init()
382 Uuid svr_sup_feat_uuid = Uuid::From16Bit(GATT_UUID_SERVER_SUP_FEAT); in gatt_profile_db_init()
383 Uuid cl_sup_feat_uuid = Uuid::From16Bit(GATT_UUID_CLIENT_SUP_FEAT); in gatt_profile_db_init()
384 Uuid database_hash_uuid = Uuid::From16Bit(GATT_UUID_DATABASE_HASH); in gatt_profile_db_init()
461 if (p_data->type == Uuid::From16Bit(GATT_UUID_CHAR_CLIENT_CONFIG)) { in gatt_disc_res_cback()
517 param.service.uuid = bluetooth::Uuid::From16Bit(GATT_UUID_CLIENT_SUP_FEAT); in gatt_svc_read_cl_supp_feat_req()
646 Uuid::From16Bit(UUID_SERVCLASS_GATT_SERVER)); in gatt_cl_start_config_ccc()
651 Uuid::From16Bit(GATT_UUID_GATT_SRV_CHGD)); in gatt_cl_start_config_ccc()
772 param.service.uuid = bluetooth::Uuid::From16Bit(GATT_UUID_SERVER_SUP_FEAT); in gatt_cl_read_sr_supp_feat_req()
Dgatt_db.cc67 Uuid::From16Bit(is_pri ? GATT_UUID_PRI_SERVICE : GATT_UUID_SEC_SERVICE); in gatts_init_service_db()
328 Uuid uuid = Uuid::From16Bit(GATT_UUID_INCLUDE_SERVICE); in gatts_add_included_service()
368 Uuid uuid = Uuid::From16Bit(GATT_UUID_CHAR_DECLARE); in gatts_add_characteristic()
398 Uuid descr_uuid = Uuid::From16Bit(GATT_UUID_CHAR_EXT_PROP); in gatts_add_char_ext_prop_descr()
Dgatt_api.cc126 if (uuid == Uuid::From16Bit(GATT_UUID_PRI_SERVICE) || in is_gatt_attr_type()
127 uuid == Uuid::From16Bit(GATT_UUID_SEC_SERVICE) || in is_gatt_attr_type()
128 uuid == Uuid::From16Bit(GATT_UUID_INCLUDE_SERVICE) || in is_gatt_attr_type()
129 uuid == Uuid::From16Bit(GATT_UUID_CHAR_DECLARE)) { in is_gatt_attr_type()
188 if (svc_uuid == Uuid::From16Bit(UUID_SERVCLASS_GATT_SERVER)) { in GATTS_AddService()
190 } else if (svc_uuid == Uuid::From16Bit(UUID_SERVCLASS_GAP_SERVER)) { in GATTS_AddService()
Dgatt_cl.cc103 bluetooth::Uuid::From16Bit(disc_type_to_uuid[p_clcb->op_subtype]); in gatt_act_discovery()
110 bluetooth::Uuid::From16Bit(disc_type_to_uuid[p_clcb->op_subtype]); in gatt_act_discovery()
162 msg.browse.uuid = bluetooth::Uuid::From16Bit(GATT_UUID_CHAR_DECLARE); in gatt_act_read()
393 result.type = bluetooth::Uuid::From16Bit(GATT_UUID_PRI_SERVICE); in gatt_process_find_type_value_rsp()
787 bluetooth::Uuid::From16Bit(disc_type_to_uuid[p_clcb->op_subtype]); in gatt_process_read_by_type_rsp()
829 bluetooth::Uuid::From16Bit(tmp); in gatt_process_read_by_type_rsp()
/system/bt/btif/include/
Dbtif_sock_sdp.h28 bluetooth::Uuid::From16Bit(0x1105);
29 static const bluetooth::Uuid UUID_PBAP_PSE = bluetooth::Uuid::From16Bit(0x112F);
30 static const bluetooth::Uuid UUID_MAP_MAS = bluetooth::Uuid::From16Bit(0x1132);
31 static const bluetooth::Uuid UUID_SAP = bluetooth::Uuid::From16Bit(0x112D);
32 static const bluetooth::Uuid UUID_SPP = bluetooth::Uuid::From16Bit(0x1101);
33 static const bluetooth::Uuid UUID_DIP = bluetooth::Uuid::From16Bit(0x1200);
34 static const bluetooth::Uuid UUID_MAP_MNS = bluetooth::Uuid::From16Bit(0x1133);
/system/bt/bta/test/gatt/
Ddatabase_test.cc32 const Uuid PRIMARY_SERVICE = Uuid::From16Bit(GATT_UUID_PRI_SERVICE);
33 const Uuid SECONDARY_SERVICE = Uuid::From16Bit(GATT_UUID_SEC_SERVICE);
34 const Uuid INCLUDE = Uuid::From16Bit(GATT_UUID_INCLUDE_SERVICE);
35 const Uuid CHARACTERISTIC = Uuid::From16Bit(GATT_UUID_CHAR_DECLARE);
37 Uuid::From16Bit(GATT_UUID_CHAR_EXT_PROP);
222 builder.AddService(0x0001, 0x0005, Uuid::From16Bit(0x1800), true); in TEST()
223 builder.AddService(0x0006, 0x000D, Uuid::From16Bit(0x1801), true); in TEST()
224 builder.AddService(0x000E, 0x0013, Uuid::From16Bit(0x1808), true); in TEST()
225 builder.AddService(0x0014, 0xFFFF, Uuid::From16Bit(0x180F), false); in TEST()
227 builder.AddCharacteristic(0x0002, 0x0003, Uuid::From16Bit(0x2A00), 0x0A); in TEST()
[all …]
/system/bt/bta/vc/
Dtypes.h39 static const Uuid kVolumeControlUuid = Uuid::From16Bit(0x1844);
40 static const Uuid kVolumeControlStateUuid = Uuid::From16Bit(0x2B7D);
41 static const Uuid kVolumeControlPointUuid = Uuid::From16Bit(0x2B7E);
42 static const Uuid kVolumeFlagsUuid = Uuid::From16Bit(0x2B7F);
Ddevices_test.cc266 Uuid::From16Bit(GATT_UUID_CHAR_CLIENT_CONFIG)); in SetSampleDatabase1()
272 Uuid::From16Bit(UUID_SERVCLASS_GATT_SERVER), true); in SetSampleDatabase1()
274 Uuid::From16Bit(GATT_UUID_GATT_SRV_CHGD), in SetSampleDatabase1()
277 Uuid::From16Bit(GATT_UUID_CHAR_CLIENT_CONFIG)); in SetSampleDatabase1()
285 builder.AddService(0x0001, 0x0003, Uuid::From16Bit(0x1800), true); in SetSampleDatabase2()
286 builder.AddCharacteristic(0x0002, 0x0003, Uuid::From16Bit(0x2a00), in SetSampleDatabase2()
310 builder.AddDescriptor(0x0004, Uuid::From16Bit(GATT_UUID_CHAR_CLIENT_CONFIG)); in TEST_F()
Dvc_test.cc85 builder.AddService(0x0001, 0x0003, Uuid::From16Bit(0x1800), true); in set_sample_database()
86 builder.AddCharacteristic(0x0002, 0x0003, Uuid::From16Bit(0x2a00), in set_sample_database()
103 Uuid::From16Bit(GATT_UUID_CHAR_CLIENT_CONFIG)); in set_sample_database()
122 Uuid::From16Bit(UUID_SERVCLASS_GATT_SERVER), true); in set_sample_database()
124 Uuid::From16Bit(GATT_UUID_GATT_SRV_CHGD), in set_sample_database()
127 Uuid::From16Bit(GATT_UUID_CHAR_CLIENT_CONFIG)); in set_sample_database()
/system/bt/gd/hci/
Duuid_unittest.cc70 TEST(UuidTest, From16Bit) { in TEST() argument
71 ASSERT_EQ(Uuid::From16Bit(0x0000), kBase); in TEST()
74 Uuid uuid = Uuid::From16Bit(0x0001); in TEST()
78 uuid = Uuid::From16Bit(0x553e); in TEST()
82 uuid = Uuid::From16Bit(0xffff); in TEST()
Duuid.h90 static Uuid From16Bit(uint16_t uuid16bit);
/system/bt/types/test/bluetooth/
Duuid_unittest.cc71 TEST(UuidTest, From16Bit) { in TEST() argument
72 EXPECT_EQ(Uuid::From16Bit(0x0000), kBase); in TEST()
76 Uuid uuid = Uuid::From16Bit(0x0001); in TEST()
81 uuid = Uuid::From16Bit(0x553e); in TEST()
86 uuid = Uuid::From16Bit(0xffff); in TEST()
/system/bt/vendor_libs/test_vendor_lib/types/test/bluetooth/
Duuid_unittest.cc66 TEST(UuidTest, From16Bit) { in TEST() argument
67 EXPECT_EQ(Uuid::From16Bit(0x0000), kBase); in TEST()
70 Uuid uuid = Uuid::From16Bit(0x0001); in TEST()
74 uuid = Uuid::From16Bit(0x553e); in TEST()
78 uuid = Uuid::From16Bit(0xffff); in TEST()
/system/bt/bta/ag/
Dbta_ag_sdp.cc435 uuid_list[0] = Uuid::From16Bit(UUID_SERVCLASS_HF_HANDSFREE); in bta_ag_do_disc()
443 uuid_list[0] = Uuid::From16Bit(UUID_SERVCLASS_HF_HANDSFREE); in bta_ag_do_disc()
457 uuid_list[0] = Uuid::From16Bit(UUID_SERVCLASS_HEADSET_HS); in bta_ag_do_disc()
459 uuid_list[0] = Uuid::From16Bit(UUID_SERVCLASS_HEADSET); in bta_ag_do_disc()
470 uuid_list[0] = Uuid::From16Bit(UUID_SERVCLASS_HEADSET_HS); in bta_ag_do_disc()
473 uuid_list[0] = Uuid::From16Bit(UUID_SERVCLASS_HEADSET); in bta_ag_do_disc()
/system/bt/bta/gatt/
Ddatabase.cc34 const Uuid PRIMARY_SERVICE = Uuid::From16Bit(GATT_UUID_PRI_SERVICE);
35 const Uuid SECONDARY_SERVICE = Uuid::From16Bit(GATT_UUID_SEC_SERVICE);
36 const Uuid INCLUDE = Uuid::From16Bit(GATT_UUID_INCLUDE_SERVICE);
37 const Uuid CHARACTERISTIC = Uuid::From16Bit(GATT_UUID_CHAR_DECLARE);
39 Uuid::From16Bit(GATT_UUID_CHAR_EXT_PROP);
/system/bt/stack/gap/
Dgap_ble.cc255 param.service.uuid = Uuid::From16Bit(uuid); in send_cl_read_request()
419 Uuid svc_uuid = Uuid::From16Bit(UUID_SERVCLASS_GAP_SERVER); in gap_attr_db_init()
420 Uuid name_uuid = Uuid::From16Bit(GATT_UUID_GAP_DEVICE_NAME); in gap_attr_db_init()
421 Uuid icon_uuid = Uuid::From16Bit(GATT_UUID_GAP_ICON); in gap_attr_db_init()
422 Uuid addr_res_uuid = Uuid::From16Bit(GATT_UUID_GAP_CENTRAL_ADDR_RESOL); in gap_attr_db_init()
443 {.uuid = Uuid::From16Bit(GATT_UUID_GAP_PREF_CONN_PARAM), in gap_attr_db_init()
/system/bt/test/suite/rfcomm/
Drfcomm_test.cc26 const Uuid RFCommTest::HFP_UUID = Uuid::From16Bit(0x111E);
/system/bt/bta/hf_client/
Dbta_hf_client_sdp.cc312 uuid_list[0] = Uuid::From16Bit(UUID_SERVCLASS_AG_HANDSFREE); in bta_hf_client_do_disc()
320 uuid_list[0] = Uuid::From16Bit(UUID_SERVCLASS_AG_HANDSFREE); in bta_hf_client_do_disc()
/system/bt/types/bluetooth/
Duuid.h74 static Uuid From16Bit(uint16_t uuid16bit);
/system/bt/vendor_libs/test_vendor_lib/types/bluetooth/
Duuid.h74 static Uuid From16Bit(uint16_t uuid16bit);
/system/bt/stack/srvc/
Dsrvc_dis.cc230 bluetooth::Uuid::From16Bit(dis_attr_uuid[dis_cb.dis_read_uuid_idx]); in dis_gatt_c_read_dis_req()
341 bluetooth::Uuid::From16Bit(UUID_SERVCLASS_DEVICE_INFO); in DIS_SrInit()
349 bluetooth::Uuid::From16Bit(dis_cb.dis_attr[i].uuid); in DIS_SrInit()
/system/bt/bta/hh/
Dbta_hh_le.cc450 if (desc.uuid == Uuid::From16Bit(short_uuid)) return &desc; in find_descriptor_by_short_uuid()
923 Uuid pri_srvc = Uuid::From16Bit(UUID_SERVCLASS_LE_HID); in bta_hh_le_pri_service_discovery()
1422 if (charac.uuid == Uuid::From16Bit(GATT_UUID_HID_PROTO_MODE)) { in bta_hh_le_search_hid_chars()
1457 if (service.uuid == Uuid::From16Bit(UUID_SERVCLASS_LE_HID) && in bta_hh_le_srvc_search_cmpl()
1471 } else if (service.uuid == Uuid::From16Bit(UUID_SERVCLASS_SCAN_PARAM)) { in bta_hh_le_srvc_search_cmpl()
1474 if (charac.uuid == Uuid::From16Bit(GATT_UUID_SCAN_REFRESH)) { in bta_hh_le_srvc_search_cmpl()
1484 } else if (service.uuid == Uuid::From16Bit(UUID_SERVCLASS_GAP_SERVER)) { in bta_hh_le_srvc_search_cmpl()
1488 if (charac.uuid == Uuid::From16Bit(GATT_UUID_GAP_PREF_CONN_PARAM)) { in bta_hh_le_srvc_search_cmpl()
1549 if (p_char->uuid == Uuid::From16Bit(GATT_UUID_HID_BT_MOUSE_INPUT)) in bta_hh_le_input_rpt_notify()
1551 else if (p_char->uuid == Uuid::From16Bit(GATT_UUID_HID_BT_KB_INPUT)) in bta_hh_le_input_rpt_notify()
/system/bt/stack/sdp/
Dsdp_api.cc259 *p_uuid = Uuid::From16Bit(p_sattr->attr_value.v.u16); in SDP_FindServiceUUIDInRec()
286 *p_uuid = Uuid::From16Bit(p_extra_sattr->attr_value.v.u16); in SDP_FindServiceUUIDInRec()
298 *p_uuid = Uuid::From16Bit(p_attr->attr_value.v.u16); in SDP_FindServiceUUIDInRec()
737 Uuid init_uuid = Uuid::From16Bit(di_uuid); in SDP_DiDiscover()

12