/system/bt/service/common/bluetooth/ |
D | uuid.cpp | 33 const UUID::UUID128Bit kSigBaseUUID = { 41 UUID UUID::GetRandom() { in GetRandom() 44 return UUID(bytes); in GetRandom() 48 UUID UUID::GetNil() { in GetNil() 51 return UUID(bytes); in GetNil() 55 UUID UUID::GetMax() { in GetMax() 58 return UUID(bytes); in GetMax() 61 void UUID::InitializeDefault() { in InitializeDefault() 67 UUID::UUID() { in UUID() function in bluetooth::UUID 71 UUID::UUID(std::string uuid) { in UUID() function in bluetooth::UUID [all …]
|
D | uuid.h | 28 class UUID { 39 static UUID GetRandom(); 42 static UUID GetNil(); 45 static UUID GetMax(); 48 UUID(); 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); [all …]
|
D | scan_filter.cpp | 28 service_uuid_.reset(new UUID(*other.service_uuid_)); in ScanFilter() 31 service_uuid_mask_.reset(new UUID(*other.service_uuid_mask_)); in ScanFilter() 39 service_uuid_.reset(new UUID(*other.service_uuid_)); in operator =() 44 service_uuid_mask_.reset(new UUID(*other.service_uuid_mask_)); in operator =() 59 void ScanFilter::SetServiceUuid(const UUID& service_uuid) { in SetServiceUuid() 60 service_uuid_.reset(new UUID(service_uuid)); in SetServiceUuid() 64 void ScanFilter::SetServiceUuidWithMask(const UUID& service_uuid, in SetServiceUuidWithMask() 65 const UUID& mask) { in SetServiceUuidWithMask() 66 service_uuid_.reset(new UUID(service_uuid)); in SetServiceUuidWithMask() 67 service_uuid_mask_.reset(new UUID(mask)); in SetServiceUuidWithMask()
|
D | gatt_identifier.h | 40 const UUID& uuid, 43 int id, const UUID& uuid, 46 int id, const UUID& uuid, 54 const UUID& service_uuid, 55 const UUID& characteristic_uuid, 56 const UUID& descriptor_uuid, 86 const UUID& service_uuid() const { return service_uuid_; } in service_uuid() 87 const UUID& characteristic_uuid() const { return char_uuid_; } in characteristic_uuid() 88 const UUID& descriptor_uuid() const { return desc_uuid_; } in descriptor_uuid() 105 UUID service_uuid_; [all …]
|
D | scan_filter.h | 52 UUID* service_uuid() const { return service_uuid_.get(); } in service_uuid() 53 UUID* service_uuid_mask() const { return service_uuid_mask_.get(); } in service_uuid_mask() 56 void SetServiceUuid(const UUID& service_uuid); 62 void SetServiceUuidWithMask(const UUID& service_uuid, const UUID& mask); 71 std::unique_ptr<UUID> service_uuid_; 72 std::unique_ptr<UUID> service_uuid_mask_;
|
D | gatt_identifier.cpp | 32 int id, const UUID& uuid, in CreateServiceId() 50 int id, const UUID& uuid, in CreateCharacteristicId() 65 int id, const UUID& uuid, in CreateDescriptorId() 101 const UUID& service_uuid, in GattIdentifier() 102 const UUID& characteristic_uuid, in GattIdentifier() 103 const UUID& descriptor_uuid, in GattIdentifier()
|
/system/bt/service/test/ |
D | uuid_unittest.cpp | 29 const std::array<uint8_t, UUID::kNumBytes128> kBtSigBaseUUID = { 39 UUID uuid; in TEST() 50 UUID uuid(UUID::UUID16Bit({{ 0xde, 0xad }})); in TEST() 53 ASSERT_TRUE(UUID::kNumBytes16 == uuid.GetShortestRepresentationSize()); in TEST() 62 UUID uuid("dead"); in TEST() 65 ASSERT_TRUE(UUID::kNumBytes16 == uuid.GetShortestRepresentationSize()); in TEST() 67 uuid = UUID("0xdead"); in TEST() 70 ASSERT_TRUE(UUID::kNumBytes16 == uuid.GetShortestRepresentationSize()); in TEST() 82 UUID uuid(UUID::UUID32Bit({{ 0xde, 0xad, 0xbe, 0xef }})); in TEST() 85 ASSERT_TRUE(UUID::kNumBytes32 == uuid.GetShortestRepresentationSize()); in TEST() [all …]
|
D | parcel_helpers_unittest.cpp | 31 using bluetooth::UUID; 57 bool TestUUID(const UUID& uuid_in) { in TestUUID() 142 TEST(ParcelHelpersTest, UUID) { in TEST() argument 145 UUID uuid = UUID::GetRandom(); in TEST() 151 UUID uuid0 = UUID::GetRandom(); in TEST() 152 UUID uuid1 = UUID::GetRandom(); in TEST() 153 UUID uuid2 = UUID::GetRandom(); in TEST() 186 UUID uuid = UUID::GetRandom(); in TEST() 190 UUID mask = UUID::GetRandom(); in TEST()
|
D | gatt_client_unittest.cpp | 102 UUID cb_uuid; in TEST_F() 106 auto callback = [&](BLEStatus in_status, const UUID& uuid, in TEST_F() 115 UUID uuid0 = UUID::GetRandom(); in TEST_F() 132 UUID uuid1 = UUID::GetRandom(); in TEST_F() 139 UUID uuid2 = UUID::GetRandom(); in TEST_F()
|
D | gatt_server_unittest.cpp | 198 UUID uuid = UUID::GetRandom(); in SetUp() 199 auto callback = [&](BLEStatus status, const UUID& in_uuid, in SetUp() 244 UUID uuid0 = UUID::GetRandom(); in SetUpTestService() 245 UUID uuid1 = UUID::GetRandom(); in SetUpTestService() 246 UUID uuid2 = UUID::GetRandom(); in SetUpTestService() 310 UUID cb_uuid; in TEST_F() 314 auto callback = [&](BLEStatus in_status, const UUID& uuid, in TEST_F() 323 UUID uuid0 = UUID::GetRandom(); in TEST_F() 340 UUID uuid1 = UUID::GetRandom(); in TEST_F() 347 UUID uuid2 = UUID::GetRandom(); in TEST_F() [all …]
|
/system/bt/service/ |
D | gatt_server_old.h | 74 bool Initialize(const UUID& service_id, int* gatt_pipe); 77 bool SetAdvertisement(const std::vector<UUID>& ids, 83 bool SetScanResponse(const std::vector<UUID>& ids, 89 bool AddCharacteristic(const UUID &id, int properties, int permissions); 93 bool AddBlob(const UUID &id, const UUID &control_id, int properties, 98 bool SetCharacteristicValue(const UUID &id, const std::vector<uint8_t> &value); 101 bool GetCharacteristicValue(const UUID &id, std::vector<uint8_t> *value);
|
D | gatt_client.h | 38 const UUID& GetAppIdentifier() const override; 46 GattClient(const UUID& uuid, int client_id); 49 UUID app_identifier_; 67 bool RegisterInstance(const UUID& uuid, 79 std::unordered_map<UUID, RegisterCallback> pending_calls_;
|
D | gatt_server.h | 121 const UUID& GetAppIdentifier() const override; 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); 326 UUID app_identifier_; 373 bool RegisterInstance(const UUID& uuid, [all …]
|
D | bluetooth_instance.h | 37 virtual const UUID& GetAppIdentifier() const = 0; 61 BLEStatus status, const UUID& app_uuid, 68 virtual bool RegisterInstance(const UUID& app_uuid,
|
D | gatt_client.cpp | 29 GattClient::GattClient(const UUID& uuid, int client_id) in GattClient() 42 const UUID& GattClient::GetAppIdentifier() const { in GetAppIdentifier() 62 const UUID& uuid, in RegisterInstance() 89 UUID uuid(app_uuid); in RegisterClientCallback()
|
D | low_energy_client.cpp | 80 bool ProcessUUID(const uint8_t* uuid_data, size_t uuid_len, UUID* out_uuid) { in ProcessUUID() 86 if (uuid_len == UUID::kNumBytes16) { in ProcessUUID() 87 UUID::UUID16Bit uuid_bytes; in ProcessUUID() 90 *out_uuid = UUID(uuid_bytes); in ProcessUUID() 91 } else if (uuid_len == UUID::kNumBytes32) { in ProcessUUID() 92 UUID::UUID32Bit uuid_bytes; in ProcessUUID() 95 *out_uuid = UUID(uuid_bytes); in ProcessUUID() 96 } else if (uuid_len == UUID::kNumBytes128) { in ProcessUUID() 97 UUID::UUID128Bit uuid_bytes; in ProcessUUID() 100 *out_uuid = UUID(uuid_bytes); in ProcessUUID() [all …]
|
D | gatt_server_old.cpp | 84 UUID uuid; 99 const UUID& uuid, 104 std::map<UUID, int> uuid_to_attribute; 114 UUID last_write; 233 const bluetooth::UUID::UUID128Bit &attr_uuid = ch.uuid.GetFullBigEndian(); in RequestWriteCallback() 275 const bluetooth::UUID::UUID128Bit uuid = in RequestExecWriteCallback() 302 bluetooth::UUID id(*uuid); in CharacteristicAddedCallback() 511 const UUID& uuid, in AddCharacteristic() 541 bool Server::Initialize(const UUID& service_id, int* gatt_pipe) { in Initialize() 576 bool Server::SetAdvertisement(const std::vector<UUID>& ids, in SetAdvertisement() [all …]
|
D | low_energy_client.h | 139 const UUID& GetAppIdentifier() const override; 147 LowEnergyClient(Adapter& adapter, const UUID& uuid, int client_id); 192 UUID app_identifier_; 254 bool RegisterInstance(const UUID& uuid, 268 std::map<UUID, RegisterCallback> pending_calls_;
|
/system/bt/service/example/heart_rate/ |
D | constants.h | 31 const bluetooth::UUID kCCCDescriptorUUID("2902"); 32 const bluetooth::UUID kHRServiceUUID("180D"); 33 const bluetooth::UUID kHRMeasurementUUID("2A37"); 34 const bluetooth::UUID kBodySensorLocationUUID("2A38"); 35 const bluetooth::UUID kHRControlPointUUID("2A39");
|
/system/bt/service/common/bluetooth/binder/ |
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,
|
D | parcel_helpers.cpp | 29 using bluetooth::UUID; 84 void WriteUUIDToParcel(const UUID& uuid, android::Parcel* parcel) { in WriteUUIDToParcel() 90 UUID::UUID128Bit bytes = uuid.GetFullBigEndian(); in WriteUUIDToParcel() 116 std::unique_ptr<UUID> CreateUUIDFromParcel( in CreateUUIDFromParcel() 118 UUID::UUID128Bit bytes; in CreateUUIDFromParcel() 141 return std::unique_ptr<UUID>(new UUID(bytes)); in CreateUUIDFromParcel() 213 std::unique_ptr<UUID> service_uuid, service_uuid_mask; in CreateScanFilterFromParcel()
|
/system/bt/service/ipc/ |
D | linux_ipc_host.cpp | 41 using bluetooth::UUID; 117 UUID(service_uuid), &gattfd); in OnCreateService() 163 UUID(characteristic_uuid), properties_mask, permissions_mask); in OnAddCharacteristic() 165 gatt_servers_[service_uuid]->AddBlob(UUID(characteristic_uuid), in OnAddCharacteristic() 166 UUID(control_uuid), properties_mask, in OnAddCharacteristic() 178 gatt_servers_[service_uuid]->SetCharacteristicValue(UUID(characteristic_uuid), in OnSetCharacteristicValue() 195 std::vector<UUID> ids; in OnSetAdvertisement() 223 std::vector<UUID> ids; in OnSetScanResponse() 312 UUID::UUID128Bit id; in OnGattWrite() 324 server->second->GetCharacteristicValue(UUID(id), &value); in OnGattWrite()
|
/system/bt/service/ipc/binder/ |
D | interface_with_instances_base.cpp | 37 bluetooth::UUID app_uuid = bluetooth::UUID::GetRandom(); in RegisterInstanceBase() 51 const bluetooth::UUID& in_uuid, in RegisterInstanceBase() 106 const bluetooth::UUID& uuid, in OnRegisterInstance()
|
D | bluetooth_gatt_server_binder_server.h | 47 int server_id, bool is_primary, const bluetooth::UUID& uuid, 50 int server_id, const bluetooth::UUID& uuid, 54 int server_id, const bluetooth::UUID& uuid, int permissions,
|
D | interface_with_instances_base.h | 79 const bluetooth::UUID& uuid, 95 RemoteCallbackMap<bluetooth::UUID, android::IInterface> pending_callbacks_;
|