Home
last modified time | relevance | path

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

/ohos5.0/foundation/communication/dsoftbus/core/connection/ble/include/
H A Dsoftbus_conn_ble_connection.h131 } ConnBleConnection; typedef
167 int32_t (*bleClientConnect)(ConnBleConnection *connection);
174 int32_t (*bleServerConnect)(ConnBleConnection *connection);
175 int32_t (*bleServerDisconnect)(ConnBleConnection *connection);
180 ConnBleConnection *ConnBleCreateConnection(
182 void ConnBleFreeConnection(ConnBleConnection *connection);
185 int32_t ConnBleConnect(ConnBleConnection *connection);
188 int32_t ConnBleOnReferenceRequest(ConnBleConnection *connection, const cJSON *json);
192 void ConnBleRefreshIdleTimeout(ConnBleConnection *connection);
193 void ConnBleOccupy(ConnBleConnection *connection);
[all …]
H A Dsoftbus_conn_ble_manager.h115 int32_t ConnBleSaveConnection(ConnBleConnection *connection);
116 void ConnBleRemoveConnection(ConnBleConnection *connection);
117 ConnBleConnection *ConnBleGetConnectionByAddr(const char *addr, ConnSideType side, BleProtocolType …
118 ConnBleConnection *ConnBleGetConnectionById(uint32_t connectionId);
119 ConnBleConnection *ConnBleGetConnectionByHandle(int32_t underlayerHandle, ConnSideType side, BlePro…
121 ConnBleConnection *ConnBleGetConnectionByUdid(const char *addr, const char *udid, BleProtocolType p…
123 ConnBleConnection *ConnBleGetClientConnectionByUdid(const char *udid, BleProtocolType protocol);
124 void ConnBleReturnConnection(ConnBleConnection **connection);
H A Dsoftbus_conn_ble_client.h31 int32_t ConnGattClientConnect(ConnBleConnection *connection);
32 int32_t ConnGattClientDisconnect(ConnBleConnection *connection, bool grace, bool refreshGatt);
33 int32_t ConnGattClientSend(ConnBleConnection *connection, const uint8_t *data, uint32_t dataLen, in…
34 int32_t ConnGattClientUpdatePriority(ConnBleConnection *connection, ConnectBlePriority priority);
H A Dsoftbus_conn_ble_server.h33 int32_t ConnGattServerSend(ConnBleConnection *connection, const uint8_t *data, uint32_t dataLen, in…
34 int32_t ConnGattServerDisconnect(ConnBleConnection *connection);
35 int32_t ConnGattServerConnect(ConnBleConnection *connection);
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/ble/mock/
H A Dconnection_ble_manager_mock.h56 virtual ConnBleConnection *LegacyBleCreateConnection(
58 virtual int32_t LegacyBleSaveConnection(ConnBleConnection *connection) = 0;
59 virtual int32_t ConnGattClientConnect(ConnBleConnection *connection) = 0;
62 ConnBleConnection *connection, const uint8_t *data, uint32_t dataLen, int32_t module) = 0;
67 ConnBleConnection *connection, const uint8_t *data, uint32_t dataLen, int32_t module) = 0;
68 virtual int32_t ConnGattServerConnect(ConnBleConnection *connection) = 0;
69 virtual int32_t ConnGattServerDisconnect(ConnBleConnection *connection) = 0;
106 MOCK_METHOD(int32_t, LegacyBleSaveConnection, (ConnBleConnection *), (override));
107 MOCK_METHOD(int32_t, ConnGattClientConnect, (ConnBleConnection *), (override));
114 MOCK_METHOD(int32_t, ConnGattServerConnect, (ConnBleConnection *), (override));
[all …]
H A Dconnection_ble_manager_mock.cpp129 ConnBleConnection *LegacyBleCreateConnection( in LegacyBleCreateConnection()
135 int32_t LegacyBleSaveConnection(ConnBleConnection *connection) in LegacyBleSaveConnection()
145 int32_t ConnGattClientConnect(ConnBleConnection *connection) in ConnGattClientConnect()
150 int32_t ConnGattClientDisconnect(ConnBleConnection *connection, bool grace, bool refreshGatt) in ConnGattClientDisconnect()
155 int32_t ConnGattClientSend(ConnBleConnection *connection, const uint8_t *data, uint32_t dataLen, in… in ConnGattClientSend()
160 int32_t ConnGattClientUpdatePriority(ConnBleConnection *connection, ConnectBlePriority priority) in ConnGattClientUpdatePriority()
175 int32_t ConnGattServerSend(ConnBleConnection *connection, const uint8_t *data, uint32_t dataLen, in… in ConnGattServerSend()
180 int32_t ConnGattServerConnect(ConnBleConnection *connection) in ConnGattServerConnect()
185 int32_t ConnGattServerDisconnect(ConnBleConnection *connection) in ConnGattServerDisconnect()
H A Dconnection_ble_trans_mock.h29 virtual ConnBleConnection *ConnBleGetConnectionById(uint32_t connectionId) = 0;
31 ConnBleConnection *connection, const uint8_t *data, uint32_t dataLen, int32_t module) = 0;
43 MOCK_METHOD(ConnBleConnection *, ConnBleGetConnectionById, (uint32_t), (override));
44 …MOCK_METHOD(int32_t, ConnBleSend, (ConnBleConnection *, const uint8_t *, uint32_t, int32_t), (over…
H A Dconnection_ble_trans_mock.cpp40 ConnBleConnection *ConnBleGetConnectionById(uint32_t connectionId) in ConnBleGetConnectionById()
45 int32_t ConnBleSend(ConnBleConnection *connection, const uint8_t *data, uint32_t dataLen, int32_t m… in ConnBleSend()
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/ble/
H A Dble_service_connection_test.cpp117 ConnBleConnection connection;
161 ConnBleConnection connection;
162 (void)memset_s(&connection, sizeof(ConnBleConnection), 0, sizeof(ConnBleConnection));
194 ConnBleConnection connection;
228 ConnBleConnection connection;
268 ConnBleConnection connection;
300 ConnBleConnection bleConnection = {{0}};
306 ConnBleConnection *connection =
331 ConnBleConnection bleConnection = {{0}};
337 ConnBleConnection *connection =
[all …]
H A Dconnection_ble_client_test.cpp52 int32_t ConnGattServerDisconnect(ConnBleConnection *connection) in ConnGattServerDisconnect()
57 int32_t ConnGattServerConnect(ConnBleConnection *connection) in ConnGattServerConnect()
62 int32_t ConnGattServerSend(ConnBleConnection *connection, const uint8_t *data, uint32_t dataLen, in… in ConnGattServerSend()
230ConnBleConnection *connection = ConnBleCreateConnection(addr, BLE_GATT, CONN_SIDE_CLIENT, 100, fal…
292ConnBleConnection *connection = ConnBleCreateConnection(addr, BLE_GATT, CONN_SIDE_CLIENT, 100, fal…
307ConnBleConnection *bleConnection = ConnBleCreateConnection(bleAddr, BLE_GATT, CONN_SIDE_CLIENT, 2,…
349ConnBleConnection *bleConnection = ConnBleCreateConnection(bleAddr, BLE_GATT, CONN_SIDE_CLIENT, 3,…
472ConnBleConnection *connection = ConnBleCreateConnection(addr, BLE_GATT, CONN_SIDE_CLIENT, 17, fals…
662ConnBleConnection *connection = ConnBleCreateConnection(addr, BLE_GATT, CONN_SIDE_CLIENT, 9, false…
701ConnBleConnection *connection = ConnBleCreateConnection(addr, BLE_GATT, CONN_SIDE_CLIENT, 11, fals…
[all …]
H A Dconnection_ble_manager_test.cpp203 ConnBleConnection *connection =
227 ConnBleConnection *connection =
270 ConnBleConnection *connection =
357 ConnBleConnection *connection =
385 ConnBleConnection *connection =
435 ConnBleConnection *connection =
730 ConnBleConnection connection;
773 ConnBleConnection connection;
799 ConnBleConnection *connection = (ConnBleConnection *)SoftBusCalloc(sizeof(ConnBleConnection));
845 ConnBleConnection *connection = (ConnBleConnection *)SoftBusCalloc(sizeof(ConnBleConnection));
[all …]
H A Dconnection_ble_trans_test.cpp45 void ConnBleReturnConnection(ConnBleConnection **connection) in ConnBleReturnConnection()
60 void ConnBleRefreshIdleTimeout(ConnBleConnection *connection) in ConnBleRefreshIdleTimeout()
208 ConnBleConnection *connection = (ConnBleConnection *)SoftBusCalloc(sizeof(ConnBleConnection));
217ConnBleConnection *bleConnectionconnection = (ConnBleConnection *)SoftBusCalloc(sizeof(ConnBleConn…
/ohos5.0/foundation/communication/dsoftbus/core/connection/ble/src/
H A Dsoftbus_conn_ble_manager.c482 ConnBleConnection *connection = ConnBleCreateConnection( in BleConnectDeviceDirectly()
701 ConnBleConnection *serverConnection = in BleTryReuseServerOrRetryConnect()
1159 ConnBleConnection *connectionIt = NULL; in BleReset()
1185 ConnBleConnection *it = NULL; in AllocateConnectionIdUnsafe()
1216 void ConnBleRemoveConnection(ConnBleConnection *connection) in ConnBleRemoveConnection()
1222 ConnBleConnection *it = NULL; in ConnBleRemoveConnection()
1321 ConnBleConnection *it = NULL; in GetConnectionByOption()
1322 ConnBleConnection *target = NULL; in GetConnectionByOption()
1408 ConnBleConnection *underlayer = *connection; in ConnBleReturnConnection()
1846 ConnBleConnection *connection = in BleDisconnectDeviceNow()
[all …]
H A Dsoftbus_conn_ble_connection.c105 ConnBleConnection *ConnBleCreateConnection( in ConnBleCreateConnection()
110 ConnBleConnection *connection = (ConnBleConnection *)SoftBusCalloc(sizeof(ConnBleConnection)); in ConnBleCreateConnection()
156 void ConnBleFreeConnection(ConnBleConnection *connection) in ConnBleFreeConnection()
241 int32_t ConnBleConnect(ConnBleConnection *connection) in ConnBleConnect()
522 void ConnBleRefreshIdleTimeout(ConnBleConnection *connection) in ConnBleRefreshIdleTimeout()
530 void ConnBleInnerComplementDeviceId(ConnBleConnection *connection) in ConnBleInnerComplementDeviceId()
563 static int32_t SendBasicInfo(ConnBleConnection *connection) in SendBasicInfo()
761 ConnBleConnection *connection = ConnBleGetConnectionById(connectionId); in BleOnClientConnected()
795 ConnBleConnection *connection = ConnBleGetConnectionById(connectionId); in BleOnClientFailed()
863 ConnBleConnection *connection = ConnBleGetConnectionById(connectionId); in BleOnDataReceived()
[all …]
H A Dsoftbus_conn_ble_client.c62 static int32_t NotificatedConnHandler(int32_t underlayerHandle, ConnBleConnection *connection);
63 static int32_t NotificatedNetHandler(int32_t underlayerHandle, ConnBleConnection *connection);
66 static int32_t RetrySearchService(ConnBleConnection *connection, enum RetrySearchServiceReason reas…
110 static int32_t SetConnectionHandleAndState(ConnBleConnection *connection, int32_t underlayerHandle) in SetConnectionHandleAndState()
128 int32_t ConnGattClientConnect(ConnBleConnection *connection) in ConnGattClientConnect()
277 ConnBleConnection *connection = ConnBleGetConnectionById(connectionId); in ClientWaitFastConnectTimeoutMsgHandler()
527 static int32_t NotificatedConnHandler(int32_t underlayerHandle, ConnBleConnection *connection) in NotificatedConnHandler()
565 static int32_t NotificatedNetHandler(int32_t underlayerHandle, ConnBleConnection *connection) in NotificatedNetHandler()
655 int32_t ConnGattClientDisconnect(ConnBleConnection *connection, bool grace, bool refreshGatt) in ConnGattClientDisconnect()
723 ConnBleConnection *connection = ConnBleGetConnectionById(connectionId); in ClientWaitDiconnetTimeoutMsgHandler()
[all …]
H A Dsoftbus_conn_ble_virtual.c30 ConnBleConnection *ConnBleGetClientConnectionByUdid(const char *udid, BleProtocolType protocol) in ConnBleGetClientConnectionByUdid()
37 ConnBleConnection *ConnBleGetConnectionByUdid(const char *addr, const char *udid, BleProtocolType p… in ConnBleGetConnectionByUdid()
45 void ConnBleReturnConnection(ConnBleConnection **connection) in ConnBleReturnConnection()
H A Dsoftbus_conn_ble_server.c637ConnBleConnection *connection = ConnBleGetConnectionByHandle(underlayerHandle, CONN_SIDE_SERVER, B… in BleConnectServerCallback()
667ConnBleConnection *connection = ConnBleGetConnectionByHandle(underlayerHandle, CONN_SIDE_SERVER, B… in BleMtuChangeCallback()
693 ConnBleConnection *connection = ConnBleGetConnectionById(connectionId); in BleServerWaitMtuTimeoutHandler()
898 int32_t ConnGattServerSend(ConnBleConnection *connection, const uint8_t *data, uint32_t dataLen, in… in ConnGattServerSend()
924 int32_t ConnGattServerConnect(ConnBleConnection *connection) in ConnGattServerConnect()
956 int32_t ConnGattServerDisconnect(ConnBleConnection *connection) in ConnGattServerDisconnect()
1006ConnBleConnection *connection = ConnBleGetConnectionByHandle(underlayerHandle, CONN_SIDE_SERVER, B… in BleDisconnectServerCallback()
1021 ConnBleConnection *connection = ConnBleGetConnectionById(connectionId); in BleServerWaitDisconnectTimeoutHandler()
1072ConnBleConnection *connection = ConnBleGetConnectionByHandle(underlayerHandle, CONN_SIDE_SERVER, B… in BleRequestWriteCallback()
H A Dsoftbus_conn_ble_trans.c269 static int32_t ConnGattTransSend(ConnBleConnection *connection, const uint8_t *data, uint32_t dataL… in ConnGattTransSend()
329 ConnBleConnection *connection = ConnBleGetConnectionById(connectionId); in ConnBlePostBytesInner()
565 static int32_t ConnCocTransSend(ConnBleConnection *connection, const uint8_t *data, uint32_t dataLe… in ConnCocTransSend()
615 ConnBleConnection *connection = ConnBleGetConnectionById(sendNode->connectionId); in BleSendTask()
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/br/
H A Dbr_mock.h49 virtual ConnBleConnection *ConnBleGetConnectionByAddr(
51 virtual void ConnBleReturnConnection(ConnBleConnection **connection) = 0;
79 …MOCK_METHOD3(ConnBleGetConnectionByAddr, ConnBleConnection *(const char *, ConnSideType, BleProtoc…
80 MOCK_METHOD1(ConnBleReturnConnection, void(ConnBleConnection **));
H A Dbr_mock.cpp97 ConnBleConnection *ConnBleGetConnectionByAddr(const char *addr, ConnSideType side, BleProtocolType … in ConnBleGetConnectionByAddr()
102 void ConnBleReturnConnection(ConnBleConnection **connection) in ConnBleReturnConnection()
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/lane/include/
H A Dlnn_lane_deps_mock.h78 virtual ConnBleConnection *ConnBleGetConnectionByUdid(const char *addr, const char *udid,
88 …virtual ConnBleConnection *ConnBleGetClientConnectionByUdid(const char *udid, BleProtocolType prot…
89 virtual void ConnBleReturnConnection(ConnBleConnection **connection) = 0;
144 …MOCK_METHOD3(ConnBleGetConnectionByUdid, ConnBleConnection *(const char *, const char *, BleProtoc…
153 …MOCK_METHOD2(ConnBleGetClientConnectionByUdid, ConnBleConnection *(const char *, BleProtocolType));
154 MOCK_METHOD1(ConnBleReturnConnection, void (ConnBleConnection **));
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/lane/src/
H A Dlnn_lane_deps_mock.cpp286 ConnBleConnection *ConnBleGetConnectionByUdid(const char *addr, const char *udid, BleProtocolType p… in ConnBleGetConnectionByUdid()
329 ConnBleConnection *ConnBleGetClientConnectionByUdid(const char *udid, BleProtocolType protocol) in ConnBleGetClientConnectionByUdid()
334 void ConnBleReturnConnection(ConnBleConnection **connection) in ConnBleReturnConnection()
H A Dlnn_lane_test.cpp1603 ConnBleConnection *connection = (ConnBleConnection*)SoftBusCalloc(sizeof(ConnBleConnection));
1675 ConnBleConnection *connection = (ConnBleConnection *)SoftBusCalloc(sizeof(ConnBleConnection));
1856 ConnBleConnection *connection = (ConnBleConnection *)SoftBusCalloc(sizeof(ConnBleConnection));
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/
H A Dlnn_lane_link.c1196 ConnBleConnection *connection = ConnBleGetConnectionByUdid(NULL, udid, type); in LaneLinkOfBleReuseCommon()
/ohos5.0/foundation/communication/dsoftbus/core/connection/br/src/
H A Dsoftbus_conn_br_manager.c330ConnBleConnection *bleConnection = ConnBleGetConnectionByAddr(device->addr, CONN_SIDE_ANY, BLE_GAT… in KeepAliveBleIfSameAddress()