Home
last modified time | relevance | path

Searched refs:GattIdentifier (Results 1 – 23 of 23) sorted by relevance

/system/bt/service/common/bluetooth/
Dgatt_identifier.cpp30 std::unique_ptr<GattIdentifier> GattIdentifier::CreateServiceId( in CreateServiceId()
38 std::unique_ptr<GattIdentifier> gatt_id(new GattIdentifier()); in CreateServiceId()
49 std::unique_ptr<GattIdentifier> GattIdentifier::CreateCharacteristicId( in CreateCharacteristicId()
51 const GattIdentifier& service_id) { in CreateCharacteristicId()
55 std::unique_ptr<GattIdentifier> gatt_id(new GattIdentifier(service_id)); in CreateCharacteristicId()
64 std::unique_ptr<GattIdentifier> GattIdentifier::CreateDescriptorId( in CreateDescriptorId()
66 const GattIdentifier& char_id) { in CreateDescriptorId()
70 std::unique_ptr<GattIdentifier> gatt_id(new GattIdentifier(char_id)); in CreateDescriptorId()
79 GattIdentifier::GattIdentifier() in GattIdentifier() function in bluetooth::GattIdentifier
86 GattIdentifier::GattIdentifier(const GattIdentifier& other) { in GattIdentifier() function in bluetooth::GattIdentifier
[all …]
Dgatt_identifier.h33 class GattIdentifier final {
37 static std::unique_ptr<GattIdentifier> CreateServiceId(
42 static std::unique_ptr<GattIdentifier> CreateCharacteristicId(
44 const GattIdentifier& service_id);
45 static std::unique_ptr<GattIdentifier> CreateDescriptorId(
47 const GattIdentifier& characteristic_id);
50 GattIdentifier();
51 GattIdentifier(
60 ~GattIdentifier() = default;
61 GattIdentifier(const GattIdentifier& other);
[all …]
/system/bt/service/test/
Dgatt_identifier_unittest.cpp35 auto service0 = GattIdentifier::CreateServiceId(kAddr0, kId0, kUUID0, true); in TEST()
45 auto service1 = GattIdentifier::CreateServiceId(kAddr1, kId0, kUUID0, true); in TEST()
46 auto service2 = GattIdentifier::CreateServiceId(kAddr0, kId1, kUUID0, true); in TEST()
47 auto service3 = GattIdentifier::CreateServiceId(kAddr0, kId0, kUUID1, true); in TEST()
48 auto service4 = GattIdentifier::CreateServiceId(kAddr0, kId0, kUUID0, false); in TEST()
55 GattIdentifier service_copy = *service0; in TEST()
60 auto service0 = GattIdentifier::CreateServiceId(kAddr0, kId0, kUUID0, true); in TEST()
61 auto char0 = GattIdentifier::CreateCharacteristicId(kId1, kUUID1, *service0); in TEST()
70 auto service1 = GattIdentifier::CreateServiceId(kAddr1, kId0, kUUID0, true); in TEST()
72 auto char1 = GattIdentifier::CreateCharacteristicId(kId0, kUUID1, *service0); in TEST()
[all …]
Dparcel_helpers_unittest.cpp27 using bluetooth::GattIdentifier;
67 bool TestGattIdentifier(const GattIdentifier& id_in) { in TestGattIdentifier()
150 TEST(ParcelHelpersTest, GattIdentifier) { in TEST() argument
155 auto service_id = GattIdentifier::CreateServiceId( in TEST()
157 auto char_id = GattIdentifier::CreateCharacteristicId(3, uuid1, *service_id); in TEST()
158 auto desc_id = GattIdentifier::CreateDescriptorId(10, uuid2, *char_id); in TEST()
Dgatt_server_unittest.cpp68 GattIdentifier gatt_id;
77 const bluetooth::GattIdentifier& characteristic_id) override { in OnCharacteristicReadRequest()
91 const bluetooth::GattIdentifier& descriptor_id) override { in OnDescriptorReadRequest()
106 const bluetooth::GattIdentifier& characteristic_id) override { in OnCharacteristicWriteRequest()
123 const bluetooth::GattIdentifier& descriptor_id) override { in OnDescriptorWriteRequest()
256 BLEStatus status, const GattIdentifier& gatt_id) { in SetUpTestService()
290 GattIdentifier test_service_id_;
291 GattIdentifier test_char_id_;
292 GattIdentifier test_desc_id_;
387 GattIdentifier cb_id; in TEST_F()
[all …]
/system/bt/service/
Dgatt_server.h56 const bluetooth::GattIdentifier& characteristic_id) = 0;
66 const bluetooth::GattIdentifier& descriptor_id) = 0;
82 const bluetooth::GattIdentifier& characteristic_id) = 0;
98 const bluetooth::GattIdentifier& descriptor_id) = 0;
127 std::function<void(BLEStatus status, const GattIdentifier& id)>;
139 std::unique_ptr<GattIdentifier> BeginServiceDeclaration(
146 std::unique_ptr<GattIdentifier> AddCharacteristic(
154 std::unique_ptr<GattIdentifier> AddDescriptor(
190 const GattIdentifier& characteristic_id,
200 AttributeEntry(const GattIdentifier& id, in AttributeEntry()
[all …]
Dgatt_server.cpp76 std::unique_ptr<GattIdentifier> GattServer::BeginServiceDeclaration( in BeginServiceDeclaration()
107 std::unique_ptr<GattIdentifier> GattServer::AddCharacteristic( in AddCharacteristic()
136 std::unique_ptr<GattIdentifier> GattServer::AddDescriptor( in AddDescriptor()
192 std::unique_ptr<GattIdentifier> service_id = PopNextId(); in EndServiceDeclaration()
214 std::unique_ptr<GattIdentifier> GattServer::GetIdForService( in GetIdForService()
220 const GattIdentifier* gatt_id = &iter.first; in GetIdForService()
230 return GattIdentifier::CreateServiceId("", inst_id, uuid, is_primary); in GetIdForService()
233 std::unique_ptr<GattIdentifier> GattServer::GetIdForCharacteristic( in GetIdForCharacteristic()
241 const GattIdentifier& gatt_id = entry.id; in GetIdForCharacteristic()
252 return GattIdentifier::CreateCharacteristicId( in GetIdForCharacteristic()
[all …]
/system/bt/service/example/heart_rate/
Dheart_rate_server.h58 const bluetooth::GattIdentifier& service_id) override;
62 const bluetooth::GattIdentifier& characteristic_id) override;
66 const bluetooth::GattIdentifier& descriptor_id) override;
71 const bluetooth::GattIdentifier& characteristic_id) override;
76 const bluetooth::GattIdentifier& descriptor_id) override;
116 bluetooth::GattIdentifier hr_service_id_;
117 bluetooth::GattIdentifier hr_measurement_id_;
118 bluetooth::GattIdentifier hr_measurement_cccd_id_;
119 bluetooth::GattIdentifier body_sensor_loc_id_;
120 bluetooth::GattIdentifier hr_control_point_id_;
Dheart_rate_server.cpp232 std::unique_ptr<bluetooth::GattIdentifier> gatt_id; in OnServerRegistered()
307 const bluetooth::GattIdentifier& service_id) { in OnServiceAdded()
342 const bluetooth::GattIdentifier& characteristic_id) { in OnCharacteristicReadRequest()
363 const bluetooth::GattIdentifier& descriptor_id) { in OnDescriptorReadRequest()
394 const bluetooth::GattIdentifier& characteristic_id) { in OnCharacteristicWriteRequest()
435 const bluetooth::GattIdentifier& descriptor_id) { in OnDescriptorWriteRequest()
/system/bt/service/common/bluetooth/binder/
DIBluetoothGattServerCallback.h60 int status, const bluetooth::GattIdentifier& service_id) = 0;
65 const bluetooth::GattIdentifier& characteristic_id) = 0;
70 const bluetooth::GattIdentifier& descriptor_id) = 0;
76 const bluetooth::GattIdentifier& characteristic_id) = 0;
82 const bluetooth::GattIdentifier& descriptor_id) = 0;
124 const bluetooth::GattIdentifier& service_id) override;
128 const bluetooth::GattIdentifier& characteristic_id) override;
132 const bluetooth::GattIdentifier& descriptor_id) override;
137 const bluetooth::GattIdentifier& characteristic_id) override;
142 const bluetooth::GattIdentifier& descriptor_id) override;
DIBluetoothGattServer.h69 std::unique_ptr<bluetooth::GattIdentifier>* out_id) = 0;
73 std::unique_ptr<bluetooth::GattIdentifier>* out_id) = 0;
76 std::unique_ptr<bluetooth::GattIdentifier>* out_id) = 0;
89 const bluetooth::GattIdentifier& characteristic_id,
131 std::unique_ptr<bluetooth::GattIdentifier>* out_id) override;
135 std::unique_ptr<bluetooth::GattIdentifier>* out_id) override;
138 std::unique_ptr<bluetooth::GattIdentifier>* out_id) override;
149 const bluetooth::GattIdentifier& characteristic_id,
DIBluetoothGattServer.cpp69 std::unique_ptr<bluetooth::GattIdentifier> out_id; in onTransact()
89 std::unique_ptr<bluetooth::GattIdentifier> out_id; in onTransact()
108 std::unique_ptr<bluetooth::GattIdentifier> out_id; in onTransact()
208 std::unique_ptr<bluetooth::GattIdentifier>* out_id) { in BeginServiceDeclaration()
231 std::unique_ptr<bluetooth::GattIdentifier>* out_id) { in AddCharacteristic()
253 std::unique_ptr<bluetooth::GattIdentifier>* out_id) { in AddDescriptor()
309 const bluetooth::GattIdentifier& characteristic_id, in SendNotification()
Dparcel_helpers.h65 const bluetooth::GattIdentifier& gatt_id,
68 std::unique_ptr<bluetooth::GattIdentifier> CreateGattIdentifierFromParcel(
DIBluetoothGattServerCallback.cpp165 const bluetooth::GattIdentifier& service_id) { in OnServiceAdded()
181 const bluetooth::GattIdentifier& characteristic_id) { in OnCharacteristicReadRequest()
201 const bluetooth::GattIdentifier& descriptor_id) { in OnDescriptorReadRequest()
222 const bluetooth::GattIdentifier& characteristic_id) { in OnCharacteristicWriteRequest()
245 const bluetooth::GattIdentifier& descriptor_id) { in OnDescriptorWriteRequest()
Dparcel_helpers.cpp25 using bluetooth::GattIdentifier;
145 const GattIdentifier& gatt_id, in WriteGattIdentifierToParcel()
159 std::unique_ptr<GattIdentifier> CreateGattIdentifierFromParcel( in CreateGattIdentifierFromParcel()
172 return std::unique_ptr<GattIdentifier>( in CreateGattIdentifierFromParcel()
173 new GattIdentifier( in CreateGattIdentifierFromParcel()
/system/bt/service/ipc/binder/
Dbluetooth_gatt_server_binder_server.h48 std::unique_ptr<bluetooth::GattIdentifier>* out_id) override;
52 std::unique_ptr<bluetooth::GattIdentifier>* out_id) override;
55 std::unique_ptr<bluetooth::GattIdentifier>* out_id) override;
63 const bluetooth::GattIdentifier& characteristic_id,
72 const bluetooth::GattIdentifier& characteristic_id) override;
77 const bluetooth::GattIdentifier& descriptor_id) override;
83 const bluetooth::GattIdentifier& characteristic_id) override;
89 const bluetooth::GattIdentifier& descriptor_id) override;
Dbluetooth_gatt_server_binder_server.cpp56 std::unique_ptr<bluetooth::GattIdentifier>* out_id) { in BeginServiceDeclaration()
82 std::unique_ptr<bluetooth::GattIdentifier>* out_id) { in AddCharacteristic()
107 std::unique_ptr<bluetooth::GattIdentifier>* out_id) { in AddDescriptor()
145 const bluetooth::GattIdentifier& service_id) { in EndServiceDeclaration()
192 const bluetooth::GattIdentifier& characteristic_id, in SendNotification()
238 const bluetooth::GattIdentifier& characteristic_id) { in OnCharacteristicReadRequest()
256 const bluetooth::GattIdentifier& descriptor_id) { in OnDescriptorReadRequest()
306 const bluetooth::GattIdentifier& characteristic_id) { in OnCharacteristicWriteRequest()
326 const bluetooth::GattIdentifier& descriptor_id) { in OnDescriptorWriteRequest()
/system/bt/service/hal/
Dgatt_helpers.cpp24 void GetHALServiceId(const GattIdentifier& id, btgatt_srvc_id_t* hal_id) { in GetHALServiceId()
34 std::unique_ptr<GattIdentifier> GetServiceIdFromHAL( in GetServiceIdFromHAL()
38 return GattIdentifier::CreateServiceId( in GetServiceIdFromHAL()
Dgatt_helpers.h33 void GetHALServiceId(const GattIdentifier& id, btgatt_srvc_id_t* hal_id);
37 std::unique_ptr<GattIdentifier> GetServiceIdFromHAL(
/system/bt/service/doc/
DIBluetoothGattClientCallback.txt38 void onGetService(in boolean is_primary, in GattIdentifier service_id);
44 void onGetIncludedService(in GattIdentifier included_service_id);
52 void onGetCharacteristic(in GattIdentifier characteristic_id,
60 void onGetDescriptor(in GattIdentifier descriptor_id);
77 void onCharacteristicRead(in int status, in GattIdentifier characteristic_id,
87 in GattIdentifier characteristic_id);
105 void onDescriptorRead(in int status, in GattIdentifier descriptor_id,
114 void onDescriptorWrite(in int status, in GattIdentifier descriptor_id);
120 void onNotify(in GattIdentifier characteristic_id, in byte[] value);
DIBluetoothGattServer.txt55 out GattIdentifier out_id);
65 out GattIdentifier out_id);
76 out GattIdentifier out_id);
112 in GattIdentifier characteristic_id,
DIBluetoothGattServerCallback.txt37 void onServiceAdded(in int status, in GattIdentifier service_id);
55 in GattIdentifier characteristic_id);
73 in GattIdentifier descriptor_id);
93 in GattIdentifier characteristic_id);
113 in GattIdentifier descriptor_id);
DIBluetoothGattClient.txt74 in GattIdentifier characteristic_id);
95 in GattIdentifier characteristic_id,
112 in GattIdentifier descriptor_id);
133 in GattIdentifier descriptor_id,
144 in GattIdentifier characteristic_id);
153 in GattIdentifier characteristic_id);