/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/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...] |
/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/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 | uuid.h | 51 explicit UUID(const bt_uuid_t& uuid); 54 explicit UUID(std::string uuid); 57 explicit UUID(const UUID16Bit& uuid); 58 explicit UUID(const UUID32Bit& uuid); 59 explicit UUID(const UUID128Bit& 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/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...] |
H A D | gatt_client.h | 25 #include "service/common/bluetooth/uuid.h" 46 GattClient(const UUID& uuid, int client_id); 67 bool RegisterInstance(const UUID& uuid,
|
H A D | gatt_server.h | 30 #include "service/common/bluetooth/uuid.h" 140 const UUID& uuid, bool is_primary); 147 const UUID& uuid, int properties, int permissions); 155 const UUID& uuid, int permissions); 247 GattServer(const UUID& uuid, int server_id); 251 std::unique_ptr<GattIdentifier> GetIdForService(const UUID& uuid, 253 std::unique_ptr<GattIdentifier> GetIdForCharacteristic(const UUID& uuid); 254 std::unique_ptr<GattIdentifier> GetIdForDescriptor(const UUID& uuid); 270 const bt_uuid_t& uuid, 276 const bt_uuid_t& uuid, [all...] |
/system/bt/service/hal/ |
H A D | gatt_helpers.cpp | 31 hal_id->id.uuid = id.service_uuid().GetBlueDroid(); 36 UUID uuid(srvc_id.id.uuid); 39 "", srvc_id.id.inst_id, uuid, srvc_id.is_primary);
|
/system/bt/btif/include/ |
H A D | btif_profile_queue.h | 32 typedef bt_status_t (*btif_connect_cb_t) (bt_bdaddr_t *bda, uint16_t uuid); 34 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 | 34 bt_status_t btsock_rfc_listen(const char* name, const uint8_t* uuid, int channel, 36 bt_status_t btsock_rfc_connect(const bt_bdaddr_t *bd_addr, const uint8_t* uuid,
|
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/src/ |
H A D | btif_profile_queue.c | 51 uint16_t uuid; member in struct:__anon670 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_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...] |
H A D | btif_gatt_server.c | 90 bt_uuid_t uuid; member in struct:__anon655 173 bta_to_btif_uuid(&app_uuid, &p_data->reg_oper.uuid); 212 bta_to_btif_uuid(&srvc_id.id.uuid, &p_data->create.uuid); 231 bt_uuid_t uuid; local 232 bta_to_btif_uuid(&uuid, &p_data->add_result.char_uuid); 237 &uuid, 245 bt_uuid_t uuid; local 246 bta_to_btif_uuid(&uuid, &p_data->add_result.char_uuid); 251 &uuid, 370 tBT_UUID uuid; local 444 tBT_UUID uuid; local 460 tBT_UUID uuid; local 470 tBT_UUID uuid; local 521 btif_gatts_register_app(bt_uuid_t *uuid) argument 587 btif_gatts_add_characteristic(int server_if, int service_handle, bt_uuid_t *uuid, int properties, int permissions) argument 602 btif_gatts_add_descriptor(int server_if, int service_handle, bt_uuid_t *uuid, int permissions) argument [all...] |
/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/connectivity/shill/mobile_operator_db/ |
H A D | serviceproviders.prototxt | 27 uuid : "dc490885-2628-4b85-8ef5-0fdbd5438608" 59 uuid : "a262a56f-1823-49ed-9559-e4ba134adf30" 75 uuid : "d2d81c64-f6c8-4e12-a415-ece420235fd1" 93 uuid : "1cb3046b-e6a2-4879-94da-ef2e3b7e9f56" 119 uuid : "628b3ab2-393c-4b81-975f-5fba4a1cda7e" 137 uuid : "83909445-bde5-4c93-81e7-a90ac408f2a8" 156 uuid : "025e4b69-e14b-4a4b-b0d8-eaf363df538e" 182 uuid : "2ef1db58-b4a0-42da-bcbd-5d8743a5a67b" 208 uuid : "3499e4b5-11d1-4789-a53c-e223eea1ac24" 226 uuid [all...] |
/system/bt/service/doc/ |
H A D | IBluetoothGattServer.txt | 54 in ParcelUuid uuid, 63 boolean addCharacteristic(in int server_if, in ParcelUuid uuid, 74 boolean addDescriptor(in int server_if, in ParcelUuid uuid,
|
/system/bt/stack/gap/ |
H A D | gap_ble.c | 177 BOOLEAN gap_ble_enqueue_request (tGAP_CLCB *p_clcb, UINT16 uuid, tGAP_BLE_CMPL_CBACK *p_cback) argument 182 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:__anon490 104 ** specific profile uuid. 111 extern tBTA_SDP_STATUS BTA_SdpSearch(BD_ADDR bd_addr,tSDP_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));
|
/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...] |
H A D | IBluetoothGattServer.h | 68 int server_if, bool is_primary, const bluetooth::UUID& uuid, 71 int server_if, const bluetooth::UUID& uuid, 75 int server_if, const bluetooth::UUID& uuid, int permissions, 130 int server_if, bool is_primary, const bluetooth::UUID& uuid, 133 int server_if, const bluetooth::UUID& uuid, 137 int server_if, const bluetooth::UUID& uuid, int permissions,
|
/system/core/trusty/libtrusty/tipc-test/ |
H A D | tipc_test.c | 32 static const char *uuid_name = "com.android.ipc-unittest.srv.uuid"; 81 " dev-uuid - print device uuid\n" 609 typedef struct uuid struct 617 static void print_uuid(const char *dev, uuid_t *uuid) argument 620 printf("uuid: %08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x\n", 621 uuid->time_low, 622 uuid->time_mid, 623 uuid->time_hi_and_version, 624 uuid 639 uuid_t uuid; local [all...] |