/system/bt/service/test/ |
H A D | uuid_unittest.cpp | 23 #include "service/common/bluetooth/uuid.h" 39 UUID uuid; local 40 ASSERT_TRUE(uuid.is_valid()); 41 ASSERT_TRUE(uuid.GetFullBigEndian() == kBtSigBaseUUID); 50 UUID uuid(UUID::UUID16Bit({{ 0xde, 0xad }})); 51 ASSERT_TRUE(uuid.is_valid()); 52 ASSERT_TRUE(uuid.GetFullBigEndian() == my_uuid_16); 53 ASSERT_TRUE(UUID::kNumBytes16 == uuid.GetShortestRepresentationSize()); 62 UUID uuid("dead"); 63 ASSERT_TRUE(uuid [all...] |
H A D | parcel_helpers_unittest.cpp | 145 UUID uuid = UUID::GetRandom(); local 146 TestUUID(uuid); 186 UUID uuid = UUID::GetRandom(); local 187 filter.SetServiceUuid(uuid); 191 filter.SetServiceUuidWithMask(uuid, mask);
|
/system/bt/btif/include/ |
H A D | btif_sock_sdp.h | 37 static inline bool is_uuid_empty(const uint8_t* uuid) argument 40 return uuid == NULL || memcmp(uuid, empty_uuid, sizeof(empty_uuid)) == 0; 43 int add_rfc_sdp_rec(const char* name, const uint8_t* uuid, int scn); 46 int get_reserved_rfc_channel(const uint8_t* uuid);
|
/system/bt/btif/test/ |
H A D | btif_storage_test.cpp | 31 bt_uuid_t uuid; local 32 memset(&uuid, 0, sizeof(uuid)); 33 EXPECT_FALSE(memcmp(&uuid, u1, sizeof(u1)) == 0); 35 bool rc = string_to_uuid(s1, &uuid); 37 EXPECT_TRUE(memcmp(&uuid, u1, sizeof(u1)) == 0); 41 bt_uuid_t uuid; local 42 bool rc = string_to_uuid("This is not a UUID", &uuid);
|
/system/bt/bta/sdp/ |
H A D | bta_sdp_api.c | 95 tBTA_SDP_STATUS BTA_SdpSearch(BD_ADDR bd_addr, tSDP_UUID *uuid) argument 104 // p_msg->uuid = uuid; 105 memcpy(&(p_msg->uuid), uuid, sizeof(tSDP_UUID));
|
H A D | bta_sdp_int.h | 68 tSDP_UUID uuid; member in struct:__anon547
|
H A D | bta_sdp_act.c | 59 // The btcore->uuid module should be used for all instances. 69 APPL_TRACE_DEBUG("%s() - uuid len:%d", __func__, u->len); 396 tBT_UUID *uuid = (tBT_UUID*)user_data; local 397 memcpy(&evt_data.uuid, uuid, sizeof(tBT_UUID)); 398 su = shorten_sdp_uuid(uuid); 407 if (IS_UUID(UUID_MAP_MAS,uuid->uu.uuid128)) { 408 APPL_TRACE_DEBUG("%s() - found MAP (MAS) uuid", __func__); 410 } else if (IS_UUID(UUID_MAP_MNS,uuid->uu.uuid128)) { 411 APPL_TRACE_DEBUG("%s() - found MAP (MNS) uuid", __func_ [all...] |
/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/test/suite/gatt/ |
H A D | gatt_unittest.cpp | 29 static void create_random_uuid(bt_uuid_t *uuid, int seed) { argument 32 uuid->uu[i] = (uint8_t) (rand() % 256); 113 create_random_uuid(&srvc_id.id.uuid, -1);
|
H A D | gatt_test.cpp | 125 int status, int server_if, const bt_uuid_t& uuid) { 123 RegisterServerCallback( bluetooth::hal::BluetoothGattInterface* , int status, int server_if, const bt_uuid_t& uuid) argument
|
/system/bt/service/ipc/binder/ |
H A D | interface_with_instances_base.cpp | 106 const bluetooth::UUID& uuid, 112 sp<IInterface> callback = pending_callbacks_.Remove(uuid); 104 OnRegisterInstance( bluetooth::BLEStatus status, const bluetooth::UUID& uuid, std::unique_ptr<bluetooth::BluetoothInstance> instance) argument
|
/system/bt/stack/srvc/ |
H A D | srvc_dis_int.h | 31 UINT16 uuid; member in struct:__anon1295
|
/system/bt/bta/include/ |
H A D | bta_sdp_api.h | 58 tBT_UUID uuid; member in struct:__anon491 104 ** specific profile uuid. 111 extern tBTA_SDP_STATUS BTA_SdpSearch(BD_ADDR bd_addr,tSDP_UUID *uuid);
|
/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)); 72 uuid->uu[i] = strtoul(buf, NULL, 16); 83 return uuid; 86 void uuid_free(bt_uuid_t *uuid) { argument 87 osi_free(uuid); 90 bool uuid_is_empty(const bt_uuid_t *uuid) { argument 91 return !uuid || !memcmp(uuid, 106 uuid_128_to_16(const bt_uuid_t *uuid, uint16_t *uuid16) argument 117 uuid_128_to_32(const bt_uuid_t *uuid, uint32_t *uuid32) argument 128 uuid_to_string(const bt_uuid_t *uuid, uuid_string_t *uuid_string) argument 155 uuid_is_base(const bt_uuid_t *uuid) argument [all...] |
/system/bt/btif/src/ |
H A D | btif_profile_queue.c | 51 uint16_t uuid; member in struct:__anon671 78 if (((connect_node_t *)list_node(node))->uuid == p_param->uuid) { 79 LOG_INFO(LOG_TAG, "%s dropping duplicate connect request for uuid: %04x", __func__, p_param->uuid); 119 bt_status_t btif_queue_connect(uint16_t uuid, const bt_bdaddr_t *bda, btif_connect_cb_t connect_cb) { argument 123 node.uuid = uuid; 159 return p_head->connect_cb(&p_head->bda, p_head->uuid);
|
H A D | btif_sdp.c | 75 &addr, (uint8_t*)(evt_data->uuid.uu.uuid128), 148 static bt_status_t search(bt_bdaddr_t *bd_addr, const uint8_t *uuid) argument 152 memcpy(sdp_uuid.uu.uuid128, uuid, sizeof(sdp_uuid.uu.uuid128));
|
H A D | btif_sock.c | 37 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, int app_uid); 38 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, int app_uid); 149 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, int app_uid) { argument 150 assert(uuid != NULL || channel > 0); 159 status = btsock_rfc_connect(bd_addr, uuid, channel, sock_fd, flags, app_uid);
|
H A D | btif_sock_sdp.c | 160 // Registers a service with the given |name|, |uuid|, and |channel| in the SDP 161 // database as a generic L2CAP RFCOMM protocol, storing its |uuid| as a service 163 static int add_sdp_by_uuid(const char *name, const uint8_t *uuid, argument 179 // Convert the |uuid| into a big-endian representation and add it as a 193 ARRAY_TO_BE_STREAM(tmp, uuid, UUID_MAX_LENGTH); 364 // Adds an RFCOMM SDP record for a service with the given |name|, |uuid|, and 366 // upon its |uuid|, and will override the |channel| with a reserved channel 367 // number if the |uuid| matches one of the preregistered bluez SDP records. 368 static int add_rfc_sdp_by_uuid(const char *name, const uint8_t *uuid, argument 385 int final_channel = get_reserved_rfc_channel(uuid); 420 get_reserved_rfc_channel(const uint8_t *uuid) argument 433 add_rfc_sdp_rec(const char *name, const uint8_t *uuid, const int channel) argument [all...] |
/system/bt/service/common/bluetooth/ |
H A D | uuid.cpp | 17 #include "service/common/bluetooth/uuid.h" 71 UUID::UUID(std::string uuid) { argument 75 if (uuid.empty()) 78 if (uuid.size() < 11 && uuid.find("0x") == 0) 79 uuid = uuid.substr(2); 81 if (uuid.size() != 4 && uuid.size() != 8 && uuid 116 UUID(const bt_uuid_t& uuid) argument 121 UUID(const UUID16Bit& uuid) argument 126 UUID(const UUID32Bit& uuid) argument 131 UUID(const UUID128Bit& uuid) argument [all...] |
H A D | gatt_identifier.cpp | 32 int id, const UUID& uuid, 41 gatt_id->service_uuid_ = uuid; 50 int id, const UUID& uuid, 57 gatt_id->char_uuid_ = uuid; 65 int id, const UUID& uuid, 72 gatt_id->desc_uuid_ = uuid; 30 CreateServiceId( const std::string& device_address, int id, const UUID& uuid, bool is_primary) argument 49 CreateCharacteristicId( int id, const UUID& uuid, const GattIdentifier& service_id) argument 64 CreateDescriptorId( int id, const UUID& uuid, const GattIdentifier& char_id) argument
|
/system/bt/service/ |
H A D | gatt_client.cpp | 29 GattClient::GattClient(const UUID& uuid, int client_id) argument 30 : app_identifier_(uuid), 62 const UUID& uuid, 64 VLOG(1) << __func__ << " - UUID: " << uuid.ToString(); 67 if (pending_calls_.find(uuid) != pending_calls_.end()) { 69 << "UUID: " << uuid.ToString(); 75 bt_uuid_t app_uuid = uuid.GetBlueDroid(); 80 pending_calls_[uuid] = callback; 89 UUID uuid(app_uuid); 91 auto iter = pending_calls_.find(uuid); 61 RegisterInstance( const UUID& uuid, const RegisterCallback& callback) argument [all...] |
/system/bt/stack/pan/ |
H A D | pan_utils.c | 61 UINT32 pan_register_with_sdp (UINT16 uuid, UINT8 sec_mask, char *p_name, char *p_desc) argument 78 SDP_AddServiceClassIdList (sdp_handle, 1, &uuid); 93 SDP_AddProfileDescriptorList (sdp_handle, uuid, PAN_PROFILE_VERSION); 111 if (uuid == UUID_SERVCLASS_NAP) 138 if (uuid == UUID_SERVCLASS_GN) 150 if (uuid == UUID_SERVCLASS_PANU)
|
/system/bt/service/common/bluetooth/binder/ |
H A D | IBluetoothGattServer.cpp | 66 auto uuid = CreateUUIDFromParcel(data); local 67 CHECK(uuid); 71 server_if, is_primary, *uuid, &out_id); 84 auto uuid = CreateUUIDFromParcel(data); local 85 CHECK(uuid); 91 server_if, *uuid, properties, permissions, &out_id); 104 auto uuid = CreateUUIDFromParcel(data); local 105 CHECK(uuid); 109 bool result = AddDescriptor(server_if, *uuid, permissions, &out_id); 207 int server_if, bool is_primary, const bluetooth::UUID& uuid, 206 BeginServiceDeclaration( int server_if, bool is_primary, const bluetooth::UUID& uuid, std::unique_ptr<bluetooth::GattIdentifier>* out_id) argument 228 AddCharacteristic( int server_if, const bluetooth::UUID& uuid, int properties, int permissions, std::unique_ptr<bluetooth::GattIdentifier>* out_id) argument 251 AddDescriptor( int server_if, const bluetooth::UUID& uuid, int permissions, std::unique_ptr<bluetooth::GattIdentifier>* out_id) argument [all...] |
/system/connectivity/shill/mobile_operator_db/ |
H A D | serviceproviders_converter.py | 24 import uuid namespace 451 self._SpewString(u'uuid', str(uuid.uuid4()))
|
/system/bt/bta/ag/ |
H A D | bta_ag_sdp.c | 141 APPL_TRACE_DEBUG("bta_ag_add_record uuid: %x", service_uuid); 310 UINT16 uuid; local 315 uuid = UUID_SERVCLASS_HF_HANDSFREE; 320 uuid = UUID_SERVCLASS_HEADSET_HS; 332 if ((p_rec = SDP_FindServiceInDb(p_scb->p_disc_db, uuid, p_rec)) == NULL) 334 if (uuid == UUID_SERVCLASS_HEADSET_HS) 337 uuid = UUID_SERVCLASS_HEADSET; 338 if ((p_rec = SDP_FindServiceInDb(p_scb->p_disc_db, uuid, p_rec)) == NULL) 361 SDP_FindProfileVersionInRec(p_rec, uuid, &p_scb->peer_version);
|