/system/bt/service/common/bluetooth/ |
D | gatt_identifier.cpp | 30 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 …]
|
D | gatt_identifier.h | 33 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/ |
D | gatt_identifier_unittest.cpp | 35 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 …]
|
D | parcel_helpers_unittest.cpp | 27 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()
|
D | gatt_server_unittest.cpp | 68 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/ |
D | gatt_server.h | 56 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 …]
|
D | gatt_server.cpp | 76 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/ |
D | heart_rate_server.h | 58 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_;
|
D | heart_rate_server.cpp | 232 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/ |
D | IBluetoothGattServerCallback.h | 60 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;
|
D | IBluetoothGattServer.h | 69 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,
|
D | IBluetoothGattServer.cpp | 69 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()
|
D | parcel_helpers.h | 65 const bluetooth::GattIdentifier& gatt_id, 68 std::unique_ptr<bluetooth::GattIdentifier> CreateGattIdentifierFromParcel(
|
D | IBluetoothGattServerCallback.cpp | 165 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()
|
D | parcel_helpers.cpp | 25 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/ |
D | bluetooth_gatt_server_binder_server.h | 48 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;
|
D | bluetooth_gatt_server_binder_server.cpp | 56 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/ |
D | gatt_helpers.cpp | 24 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()
|
D | gatt_helpers.h | 33 void GetHALServiceId(const GattIdentifier& id, btgatt_srvc_id_t* hal_id); 37 std::unique_ptr<GattIdentifier> GetServiceIdFromHAL(
|
/system/bt/service/doc/ |
D | IBluetoothGattClientCallback.txt | 38 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);
|
D | IBluetoothGattServer.txt | 55 out GattIdentifier out_id); 65 out GattIdentifier out_id); 76 out GattIdentifier out_id); 112 in GattIdentifier characteristic_id,
|
D | IBluetoothGattServerCallback.txt | 37 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);
|
D | IBluetoothGattClient.txt | 74 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);
|