Home
last modified time | relevance | path

Searched refs:UUID (Results 1 – 25 of 39) sorted by relevance

12

/system/bt/service/common/bluetooth/
Duuid.cpp33 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 …]
Duuid.h28 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 …]
Dscan_filter.cpp28 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()
Dgatt_identifier.h40 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 …]
Dscan_filter.h52 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_;
Dgatt_identifier.cpp32 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/
Duuid_unittest.cpp29 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 …]
Dparcel_helpers_unittest.cpp31 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()
Dgatt_client_unittest.cpp102 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()
Dgatt_server_unittest.cpp198 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/
Dgatt_server_old.h74 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);
Dgatt_client.h38 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_;
Dgatt_server.h121 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 …]
Dbluetooth_instance.h37 virtual const UUID& GetAppIdentifier() const = 0;
61 BLEStatus status, const UUID& app_uuid,
68 virtual bool RegisterInstance(const UUID& app_uuid,
Dgatt_client.cpp29 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()
Dlow_energy_client.cpp80 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 …]
Dgatt_server_old.cpp84 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 …]
Dlow_energy_client.h139 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/
Dconstants.h31 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/
DIBluetoothGattServer.h68 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,
Dparcel_helpers.cpp29 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/
Dlinux_ipc_host.cpp41 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/
Dinterface_with_instances_base.cpp37 bluetooth::UUID app_uuid = bluetooth::UUID::GetRandom(); in RegisterInstanceBase()
51 const bluetooth::UUID& in_uuid, in RegisterInstanceBase()
106 const bluetooth::UUID& uuid, in OnRegisterInstance()
Dbluetooth_gatt_server_binder_server.h47 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,
Dinterface_with_instances_base.h79 const bluetooth::UUID& uuid,
95 RemoteCallbackMap<bluetooth::UUID, android::IInterface> pending_callbacks_;

12