/foundation/communication/bluetooth/interfaces/inner_api/include/c_header/ |
H A D | ohos_bt_gatt_server.h | 187 typedef void (*ServiceAddCallback)(int status, int serverId, BtUuid *uuid, int srvcHandle); 194 typedef void (*IncludeServiceAddCallback)(int status, int serverId, int srvcHandle, int includeSrvcHandle); 202 int srvcHandle, int characteristicHandle); 210 int srvcHandle, int descriptorHandle); 217 typedef void (*ServiceStartCallback)(int status, int serverId, int srvcHandle); 224 typedef void (*ServiceStopCallback)(int status, int serverId, int srvcHandle); 231 typedef void (*ServiceDeleteCallback)(int status, int serverId, int srvcHandle); 471 * @param srvcHandle Indicates the handle ID of the service. 477 int BleGattsAddIncludedService(int serverId, int srvcHandle, int includedHandle); 485 * @param srvcHandle Indicate [all...] |
/foundation/communication/dsoftbus/adapter/common/net/bluetooth/include/ |
H A D | softbus_adapter_ble_gatt_server.h | 99 void (*serviceAddCallback)(int status, SoftBusBtUuid *uuid, int srvcHandle); 100 void (*characteristicAddCallback)(int status, SoftBusBtUuid *uuid, int srvcHandle, int characteristicHandle); 101 void (*descriptorAddCallback)(int status, SoftBusBtUuid *uuid, int srvcHandle, int descriptorHandle); 102 void (*serviceStartCallback)(int status, int srvcHandle); 103 void (*serviceStopCallback)(int status, int srvcHandle); 104 void (*serviceDeleteCallback)(int status, int srvcHandle); 112 bool (*isConcernedAttrHandle)(int srvcHandle, int attrHandle); 158 int SoftBusGattsAddCharacteristic(int srvcHandle, SoftBusBtUuid characUuid, int properties, int permissions); 159 int SoftBusGattsAddDescriptor(int srvcHandle, SoftBusBtUuid descUuid, int permissions); 160 int SoftBusGattsStartService(int srvcHandle); [all...] |
/foundation/communication/dsoftbus/adapter/common/net/bluetooth/ble/ |
H A D | softbus_adapter_ble_gatt_server.c | 45 int32_t srvcHandle); 113 int SoftBusGattsAddCharacteristic(int srvcHandle, SoftBusBtUuid characUuid, int properties, int permissions) in SoftBusGattsAddCharacteristic() argument 127 if (BleGattsAddCharacteristic(g_halServerId, srvcHandle, uuid, properties, permissions) != SOFTBUS_OK) { in SoftBusGattsAddCharacteristic() 134 int SoftBusGattsAddDescriptor(int srvcHandle, SoftBusBtUuid descUuid, int permissions) in SoftBusGattsAddDescriptor() argument 148 if (BleGattsAddDescriptor(g_halServerId, srvcHandle, uuid, permissions) != SOFTBUS_OK) { in SoftBusGattsAddDescriptor() 155 int SoftBusGattsStartService(int srvcHandle) in SoftBusGattsStartService() argument 161 CONN_LOGI(CONN_BLE, "halServerId = %{public}d, srvcHandle = %{public}d", g_halServerId, srvcHandle); in SoftBusGattsStartService() 162 if (BleGattsStartService(g_halServerId, srvcHandle) != SOFTBUS_OK) { in SoftBusGattsStartService() 169 int SoftBusGattsStopService(int srvcHandle) in SoftBusGattsStopService() argument 183 SoftBusGattsDeleteService(int srvcHandle) SoftBusGattsDeleteService() argument 381 BleServiceAddCallback(int status, int serverId, BtUuid *uuid, int srvcHandle) BleServiceAddCallback() argument 402 BleIncludeServiceAddCallback(int status, int serverId, int srvcHandle, int includeSrvcHandle) BleIncludeServiceAddCallback() argument 409 BleCharacteristicAddCallback(int status, int serverId, BtUuid *uuid, int srvcHandle, int characteristicHandle) BleCharacteristicAddCallback() argument 427 BleDescriptorAddCallback(int status, int serverId, BtUuid *uuid, int srvcHandle, int descriptorHandle) BleDescriptorAddCallback() argument 445 BleServiceStartCallback(int status, int serverId, int srvcHandle) BleServiceStartCallback() argument 461 BleServiceStopCallback(int status, int serverId, int srvcHandle) BleServiceStopCallback() argument 476 BleServiceDeleteCallback(int status, int serverId, int srvcHandle) BleServiceDeleteCallback() argument 726 FindCallbackByUdidAndSetHandle( SoftBusBtUuid *serviceUuid, SoftBusGattsCallback *callback, int32_t srvcHandle) FindCallbackByUdidAndSetHandle() argument 730 CONN_BLE, "try to lock failed, srvcHandle=%{public}d", srvcHandle); FindCallbackByUdidAndSetHandle() local [all...] |
/foundation/communication/dsoftbus/tests/adapter/bluetooth/ |
H A D | bluetooth_mock.cpp | 201 int32_t BleGattsAddCharacteristic(int32_t serverId, int32_t srvcHandle, in BleGattsAddCharacteristic() argument 205 serverId, srvcHandle, characUuid, properties, permissions); in BleGattsAddCharacteristic() 208 int32_t BleGattsAddDescriptor(int32_t serverId, int32_t srvcHandle, BtUuid descUuid, int32_t permissions) in BleGattsAddDescriptor() argument 210 return MockBluetooth::GetMocker()->BleGattsAddDescriptor(serverId, srvcHandle, descUuid, permissions); in BleGattsAddDescriptor() 213 int32_t BleGattsStartService(int32_t serverId, int32_t srvcHandle) in BleGattsStartService() argument 215 return MockBluetooth::GetMocker()->BleGattsStartService(serverId, srvcHandle); in BleGattsStartService() 218 int32_t BleGattsStopService(int32_t serverId, int32_t srvcHandle) in BleGattsStopService() argument 220 return MockBluetooth::GetMocker()->BleGattsStopService(serverId, srvcHandle); in BleGattsStopService() 223 int32_t BleGattsDeleteService(int32_t serverId, int32_t srvcHandle) in BleGattsDeleteService() argument 225 return MockBluetooth::GetMocker()->BleGattsDeleteService(serverId, srvcHandle); in BleGattsDeleteService() [all...] |
H A D | bluetooth_mock.h | 70 int serverId, int srvcHandle, BtUuid characUuid, int properties, int permissions) = 0; 71 virtual int BleGattsAddDescriptor(int serverId, int srvcHandle, BtUuid descUuid, int permissions) = 0; 72 virtual int BleGattsStartService(int serverId, int srvcHandle) = 0; 73 virtual int BleGattsStopService(int serverId, int srvcHandle) = 0; 74 virtual int BleGattsDeleteService(int serverId, int srvcHandle) = 0; 126 (int serverId, int srvcHandle, BtUuid characUuid, int properties, int permissions), (override)); 128 int32_t, BleGattsAddDescriptor, (int serverId, int srvcHandle, BtUuid descUuid, int permissions), (override)); 129 MOCK_METHOD(int32_t, BleGattsStartService, (int serverId, int srvcHandle), (override)); 130 MOCK_METHOD(int32_t, BleGattsStopService, (int serverId, int srvcHandle), (override)); 131 MOCK_METHOD(int32_t, BleGattsDeleteService, (int serverId, int srvcHandle), (overrid [all...] |
H A D | softbus_adapter_ble_gatt_server_test.cpp | 723 static void StubServiceAddCallback(int32_t status, SoftBusBtUuid *uuid, int32_t srvcHandle) in StubServiceAddCallback() argument 725 AdapterBleGattServerTest::serviceAddCtx.Update(srvcHandle, status, uuid); in StubServiceAddCallback() 729 int32_t srvcHandle, int32_t characteristicHandle) in StubCharacteristicAddCallback() 731 AdapterBleGattServerTest::characteristicAddCtx.Update(srvcHandle, status, characteristicHandle, uuid); in StubCharacteristicAddCallback() 734 static void StubDescriptorAddCallback(int32_t status, SoftBusBtUuid *uuid, int32_t srvcHandle, int32_t descriptorHandle) in StubDescriptorAddCallback() argument 736 AdapterBleGattServerTest::descriptorAddCtx.Update(srvcHandle, status, descriptorHandle, uuid); in StubDescriptorAddCallback() 739 static void StubServiceStartCallback(int32_t status, int32_t srvcHandle) in StubServiceStartCallback() argument 741 AdapterBleGattServerTest::serviceStartCtx.Update(srvcHandle, status); in StubServiceStartCallback() 744 static void StubServiceStopCallback(int32_t status, int32_t srvcHandle) in StubServiceStopCallback() argument 746 AdapterBleGattServerTest::serviceStopCtx.Update(srvcHandle, statu in StubServiceStopCallback() 728 StubCharacteristicAddCallback(int32_t status, SoftBusBtUuid *uuid, int32_t srvcHandle, int32_t characteristicHandle) StubCharacteristicAddCallback() argument 749 StubServiceDeleteCallback(int32_t status, int32_t srvcHandle) StubServiceDeleteCallback() argument [all...] |
/foundation/communication/bluetooth/frameworks/inner/c_adapter/ |
H A D | ohos_bt_gatt_server.cpp | 302 HILOGE("add service failed, invalid srvcHandle: %{public}u", Service->GetHandle()); 728 HILOGD("add srvcHandle: %{public}d", i); in BleGattsAddService() 753 * @param srvcHandle Indicates the handle ID of the service. 759 int BleGattsAddIncludedService(int serverId, int srvcHandle, int includedHandle) in BleGattsAddIncludedService() argument 770 * @param srvcHandle Indicates the handle ID of the service. 780 int BleGattsAddCharacteristic(int serverId, int srvcHandle, BtUuid characUuid, in BleGattsAddCharacteristic() argument 786 srvcHandle >= MAXIMUM_NUMBER_GATTSERVICE || srvcHandle < 0) { in BleGattsAddCharacteristic() 787 HILOGE("serverId srvcHandle is invalid!"); in BleGattsAddCharacteristic() 800 if (GATTSERVICE(serverId, srvcHandle) in BleGattsAddCharacteristic() 838 BleGattsAddDescriptor(int serverId, int srvcHandle, BtUuid descUuid, int permissions) BleGattsAddDescriptor() argument 889 BleGattsStartService(int serverId, int srvcHandle) BleGattsStartService() argument 917 BleGattsStopService(int serverId, int srvcHandle) BleGattsStopService() argument 953 BleGattsDeleteService(int serverId, int srvcHandle) BleGattsDeleteService() argument 1149 BleGattsStartServiceEx(int *srvcHandle, BleGattService *srvcInfo) BleGattsStartServiceEx() argument 1164 BleGattsStopServiceEx(int srvcHandle) BleGattsStopServiceEx() argument [all...] |
/foundation/communication/dsoftbus/core/connection/ble/src/ |
H A D | softbus_conn_ble_server.c | 62 int32_t srvcHandle; member 68 int32_t srvcHandle; member 75 int32_t srvcHandle; member 82 int32_t srvcHandle; member 210 static void BleServiceAddCallback(int32_t status, SoftBusBtUuid *uuid, int32_t srvcHandle) in BleServiceAddCallback() argument 213 "gatt server callback, server added, srvcHandle=%{public}u, status=%{public}d", srvcHandle, status); in BleServiceAddCallback() 218 ctx->srvcHandle = srvcHandle; in BleServiceAddCallback() 254 g_serverState.serviceHandle = ctx->srvcHandle; in CheckUuidAndSetServiceHandle() 300 BleCharacteristicAddCallback( int32_t status, SoftBusBtUuid *uuid, int32_t srvcHandle, int32_t characteristicHandle) BleCharacteristicAddCallback() argument 412 BleDescriptorAddCallback(int32_t status, SoftBusBtUuid *uuid, int32_t srvcHandle, int32_t descriptorHandle) BleDescriptorAddCallback() argument 545 BleServiceStartCallback(int32_t status, int32_t srvcHandle) BleServiceStartCallback() argument 750 BleServiceStopCallback(int32_t status, int32_t srvcHandle) BleServiceStopCallback() argument 812 BleServiceDeleteCallback(int32_t status, int32_t srvcHandle) BleServiceDeleteCallback() argument 1186 BleIsConcernedAttrHandle(int32_t srvcHandle, int32_t attrHandle) BleIsConcernedAttrHandle() argument [all...] |
/foundation/communication/dsoftbus/tests/core/connection/ble/mock/ |
H A D | connection_ble_manager_mock.cpp | 114 int SoftBusGattsAddDescriptor(int srvcHandle, SoftBusBtUuid descUuid, int permissions) in SoftBusGattsAddDescriptor() argument 116 return GetConnectionBleInterface()->SoftBusGattsAddDescriptor(srvcHandle, descUuid, permissions); in SoftBusGattsAddDescriptor() 119 int SoftBusGattsStartService(int srvcHandle) in SoftBusGattsStartService() argument 121 return GetConnectionBleInterface()->SoftBusGattsStartService(srvcHandle); in SoftBusGattsStartService() 140 int SoftBusGattsAddCharacteristic(int srvcHandle, SoftBusBtUuid characUuid, int properties, int permissions) in SoftBusGattsAddCharacteristic() argument 142 return GetConnectionBleInterface()->SoftBusGattsAddCharacteristic(srvcHandle, characUuid, properties, permissions); in SoftBusGattsAddCharacteristic()
|
H A D | connection_ble_mock.cpp | 64 int32_t SoftBusGattsStopService(int32_t srvcHandle) in SoftBusGattsStopService() argument 66 return GetConnectionBleInterface()->SoftBusGattsStopService(srvcHandle); in SoftBusGattsStopService()
|
H A D | connection_ble_manager_mock.h | 50 virtual int32_t SoftBusGattsAddDescriptor(int32_t srvcHandle, SoftBusBtUuid descUuid, int32_t permissions) = 0; 52 int32_t srvcHandle, SoftBusBtUuid characUuid, int32_t properties, int32_t permissions) = 0; 53 virtual int32_t SoftBusGattsStartService(int32_t srvcHandle) = 0;
|
H A D | connection_ble_mock.h | 45 virtual int32_t SoftBusGattsStopService(int32_t srvcHandle) = 0;
|
/foundation/communication/dsoftbus/tests/adapter/broadcast/ |
H A D | bluetooth_mock.cpp | 252 int32_t BleGattsAddCharacteristic(int32_t serverId, int32_t srvcHandle, in BleGattsAddCharacteristic() argument 256 serverId, srvcHandle, characUuid, properties, permissions); in BleGattsAddCharacteristic() 259 int32_t BleGattsAddDescriptor(int32_t serverId, int32_t srvcHandle, BtUuid descUuid, int32_t permissions) in BleGattsAddDescriptor() argument 261 return MockBluetooth::GetMocker()->BleGattsAddDescriptor(serverId, srvcHandle, descUuid, permissions); in BleGattsAddDescriptor() 264 int32_t BleGattsStartService(int32_t serverId, int32_t srvcHandle) in BleGattsStartService() argument 266 return MockBluetooth::GetMocker()->BleGattsStartService(serverId, srvcHandle); in BleGattsStartService() 269 int32_t BleGattsStopService(int32_t serverId, int32_t srvcHandle) in BleGattsStopService() argument 271 return MockBluetooth::GetMocker()->BleGattsStopService(serverId, srvcHandle); in BleGattsStopService() 274 int32_t BleGattsDeleteService(int32_t serverId, int32_t srvcHandle) in BleGattsDeleteService() argument 276 return MockBluetooth::GetMocker()->BleGattsDeleteService(serverId, srvcHandle); in BleGattsDeleteService() [all...] |
H A D | bluetooth_mock.h | 78 int32_t serverId, int32_t srvcHandle, BtUuid characUuid, int32_t properties, int32_t permissions) = 0; 80 int32_t srvcHandle, BtUuid descUuid, int32_t permissions) = 0; 81 virtual int32_t BleGattsStartService(int32_t serverId, int32_t srvcHandle) = 0; 82 virtual int32_t BleGattsStopService(int32_t serverId, int32_t srvcHandle) = 0; 83 virtual int32_t BleGattsDeleteService(int32_t serverId, int32_t srvcHandle) = 0; 148 (int32_t serverId, int32_t srvcHandle, BtUuid characUuid, 151 (int32_t serverId, int32_t srvcHandle, BtUuid descUuid, int32_t permissions), (override)); 152 MOCK_METHOD(int32_t, BleGattsStartService, (int32_t serverId, int32_t srvcHandle), (override)); 153 MOCK_METHOD(int32_t, BleGattsStopService, (int32_t serverId, int32_t srvcHandle), (override)); 154 MOCK_METHOD(int32_t, BleGattsDeleteService, (int32_t serverId, int32_t srvcHandle), (overrid [all...] |