Home
last modified time | relevance | path

Searched refs:clientId (Results 1 - 25 of 131) sorted by relevance

123456

/foundation/communication/bluetooth/interfaces/inner_api/include/c_header/
H A Dohos_bt_gatt_client.h60 * @param clientId Indicates the ID of the GATT client.
64 typedef void (*ConnectionStateChangedCallback)(int clientId, int connectionState, int status);
69 * @param clientId Indicates the ID of the GATT client.
75 typedef void (*ConnectParaUpdateCallback)(int clientId, int interval, int latency, int timeout, int status);
80 * @param clientId Indicates the ID of the GATT client.
83 typedef void (*SearchServiceCompleteCallback)(int clientId, int status);
88 * @param clientId Indicates the ID of the GATT client.
92 typedef void (*ReadCharacteristicCallback)(int clientId, BtGattReadData *readData, int status);
97 * @param clientId Indicates the ID of the GATT client.
101 typedef void (*WriteCharacteristicCallback)(int clientId, BtGattCharacteristi
[all...]
H A Dohos_bt_spp.h83 * @param clientId The relative ID used to identify the current client socket.
86 int SppDisconnect(int clientId);
91 * @param clientId The relative ID used to identify the current client socket.
94 bool IsSppConnected(int clientId);
99 * @param clientId The relative ID used to identify the current client socket.
103 int SppGetRemoteAddr(int clientId, BdAddr *remoteAddr);
108 * @param clientId The relative ID used to identify the current client socket.
115 int SppRead(int clientId, char *buf, const unsigned int bufLen);
120 * @param clientId The relative ID used to identify the current client socket.
126 int SppWrite(int clientId, cons
[all...]
H A Dohos_bt_socket.h140 * @param clientId The relative ID used to identify the current client socket.
143 int SocketDisconnect(int clientId);
148 * @param clientId The relative ID used to identify the current client socket.
151 bool IsSocketConnected(int clientId);
156 * @param clientId The relative ID used to identify the current client socket.
160 int SocketGetRemoteAddr(int clientId, BdAddr *remoteAddr);
166 * @param clientId The relative ID used to identify the current client socket.
173 int SocketRead(int clientId, uint8_t *buf, uint32_t bufLen);
178 * @param clientId The relative ID used to identify the current client socket.
184 int SocketWrite(int clientId, cons
[all...]
/foundation/communication/dsoftbus/adapter/common/net/bluetooth/ble/
H A Dsoftbus_adapter_ble_gatt_client.c38 static void GetGattcCallback(int32_t clientId, SoftBusGattcCallback *cb);
39 static int32_t SoftbusGattcAddMacAddrToList(int32_t clientId, const SoftBusBtAddr *addr);
40 static void SoftbusGattcDeleteMacAddrFromList(int32_t clientId);
48 int32_t clientId; member
52 static void GattcConnectionStateChangedCallback(int clientId, int connectionState, int status) in GattcConnectionStateChangedCallback() argument
54 CONN_LOGI(CONN_BLE, "clientId=%{public}d, state=%{public}d, status=%{public}d", clientId, connectionState, status); in GattcConnectionStateChangedCallback()
61 GetGattcCallback(clientId, &cb); in GattcConnectionStateChangedCallback()
66 cb.connectionStateCallback(clientId, connectionState, status); in GattcConnectionStateChangedCallback()
69 static void GattcConnectParaUpdateCallback(int clientId, in argument
79 GattcSearchServiceCompleteCallback(int clientId, int status) GattcSearchServiceCompleteCallback() argument
91 GattcReadCharacteristicCallback(int clientId, BtGattReadData *readData, int status) GattcReadCharacteristicCallback() argument
97 GattcWriteCharacteristicCallback(int clientId, BtGattCharacteristic *characteristic, int status) GattcWriteCharacteristicCallback() argument
108 GattcReadDescriptorCallback(int clientId, BtGattReadData *readData, int status) GattcReadDescriptorCallback() argument
114 GattcWriteDescriptorCallback(int clientId, BtGattDescriptor *descriptor, int status) GattcWriteDescriptorCallback() argument
120 GattcConfigureMtuSizeCallback(int clientId, int mtuSize, int status) GattcConfigureMtuSizeCallback() argument
132 GattcRegisterNotificationCallback(int clientId, int status) GattcRegisterNotificationCallback() argument
144 GattcNotificationCallback(int clientId, BtGattReadData *notifyData, int status) GattcNotificationCallback() argument
165 SoftbusGattcRegisterCallback(SoftBusGattcCallback *cb, int32_t clientId) SoftbusGattcRegisterCallback() argument
202 GetGattcCallback(int32_t clientId, SoftBusGattcCallback *cb) GetGattcCallback() argument
223 int32_t clientId = BleGattcRegister(appId); SoftbusGattcRegister() local
232 SoftbusGattcUnRegister(int32_t clientId) SoftbusGattcUnRegister() argument
282 SoftbusGattcAddMacAddrToList(int32_t clientId, const SoftBusBtAddr *addr) SoftbusGattcAddMacAddrToList() argument
306 SoftbusGattcDeleteMacAddrFromList(int32_t clientId) SoftbusGattcDeleteMacAddrFromList() argument
322 SoftbusGattcConnect(int32_t clientId, SoftBusBtAddr *addr) SoftbusGattcConnect() argument
344 SoftbusBleGattcDisconnect(int32_t clientId, bool refreshGatt) SoftbusBleGattcDisconnect() argument
354 SoftbusGattcSearchServices(int32_t clientId) SoftbusGattcSearchServices() argument
365 SoftbusGattcRefreshServices(int32_t clientId) SoftbusGattcRefreshServices() argument
371 SoftbusGattcGetService(int32_t clientId, SoftBusBtUuid *serverUuid) SoftbusGattcGetService() argument
388 SoftbusGattcRegisterNotification( int32_t clientId, SoftBusBtUuid *serverUuid, SoftBusBtUuid *charaUuid, SoftBusBtUuid *descriptorUuid) SoftbusGattcRegisterNotification() argument
405 SoftbusGattcConfigureMtuSize(int32_t clientId, int mtuSize) SoftbusGattcConfigureMtuSize() argument
435 SoftbusGattcWriteCharacteristic(int32_t clientId, SoftBusGattcData *clientData) SoftbusGattcWriteCharacteristic() argument
475 SoftbusGattcSetFastestConn(int32_t clientId) SoftbusGattcSetFastestConn() argument
489 SoftbusGattcSetPriority(int32_t clientId, SoftBusBtAddr *addr, SoftbusBleGattPriority priority) SoftbusGattcSetPriority() argument
[all...]
/foundation/communication/dsoftbus/adapter/common/net/bluetooth/include/
H A Dsoftbus_adapter_ble_gatt_client.h54 void (*connectionStateCallback)(int32_t clientId, int32_t connState, int32_t status);
55 void (*serviceCompleteCallback)(int32_t clientId, int32_t status);
56 void (*registNotificationCallback)(int32_t clientId, int status);
57 void (*notificationReceiveCallback)(int32_t clientId, SoftBusGattcNotify *param, int32_t status);
58 void (*configureMtuSizeCallback)(int clientId, int mtuSize, int status);
68 int32_t clientId; member
73 int32_t SoftbusGattcRegisterCallback(SoftBusGattcCallback *cb, int32_t clientId);
75 int32_t SoftbusGattcUnRegister(int32_t clientId);
76 int32_t SoftbusGattcConnect(int32_t clientId, SoftBusBtAddr *addr);
77 int32_t SoftbusBleGattcDisconnect(int32_t clientId, boo
[all...]
/foundation/communication/bluetooth/frameworks/inner/c_adapter/
H A Dohos_bt_spp.cpp115 * @param clientId The relative ID used to identify the current client socket.
118 int SppDisconnect(int clientId) in SppDisconnect() argument
120 HILOGI("clientId: %{public}d", clientId); in SppDisconnect()
121 return SocketDisconnect(clientId); in SppDisconnect()
127 * @param clientId The relative ID used to identify the current client socket.
131 int SppGetRemoteAddr(int clientId, BdAddr *remoteAddr) in SppGetRemoteAddr() argument
133 HILOGI("clientId: %{public}d", clientId); in SppGetRemoteAddr()
134 return SocketGetRemoteAddr(clientId, remoteAdd in SppGetRemoteAddr()
143 IsSppConnected(int clientId) IsSppConnected() argument
159 SppRead(int clientId, char *buf, const unsigned int bufLen) SppRead() argument
172 SppWrite(int clientId, const char *data, const unsigned int len) SppWrite() argument
185 SppSetSocketBufferSize(int clientId, int bufferSize) SppSetSocketBufferSize() argument
[all...]
H A Dohos_bt_socket.cpp167 int clientId = g_clientMap.AddObject(client); in SocketServerAccept() local
168 HILOGI("success, clientId: %{public}d", clientId); in SocketServerAccept()
169 return clientId; in SocketServerAccept()
258 int clientId = g_clientMap.AddObject(client); in SocketConnect() local
259 HILOGI("SocketConnect success, clientId: %{public}d", clientId); in SocketConnect()
260 return clientId; in SocketConnect()
309 int clientId = g_clientMap.AddObject(client); in SocketConnectEx() local
310 HILOGI("SocketConnect success, clientId in SocketConnectEx()
320 SocketDisconnect(int clientId) SocketDisconnect() argument
341 SocketGetRemoteAddr(int clientId, BdAddr *remoteAddr) SocketGetRemoteAddr() argument
365 IsSocketConnected(int clientId) IsSocketConnected() argument
389 SocketRead(int clientId, uint8_t *buf, uint32_t bufLen) SocketRead() argument
418 SocketWrite(int clientId, const uint8_t *data, uint32_t len) SocketWrite() argument
478 SetSocketBufferSize(int clientId, uint32_t bufferSize) SetSocketBufferSize() argument
[all...]
H A Dohos_bt_gatt_client.cpp83 static GattCharacteristic *GattcFindCharacteristic(int clientId, std::shared_ptr<GattClient> &client, in GattcFindCharacteristic() argument
87 ClientIterator iter = GATTCLIENT.find(clientId); in GattcFindCharacteristic()
89 HILOGE("clientId: %{public}d, has not been registered.", clientId); in GattcFindCharacteristic()
122 GattClientCallbackWrapper(BtGattClientCallbacks *callback, int clientId) in GattClientCallbackWrapper() argument
125 clientId_ = clientId; in GattClientCallbackWrapper()
135 HILOGD("clientId: %{public}d, connectionState: %{public}d, ret: %{public}d",
138 HILOGI("GattcOnConnectionStateChanged Connected, clientId: %{public}d", clientId_);
150 HILOGI("clientId: %{public}d, status: %{public}d, interval: %{public}d, latency: %{public}d, "
162 HILOGI("GattcOnServicesDiscovered complete, clientId
345 int clientId = g_clientIncrease.load(); BleGattcRegister() local
357 BleGattcUnRegister(int clientId) BleGattcUnRegister() argument
383 BleGattcSetFastestConn(int clientId, bool fastestConnFlag) BleGattcSetFastestConn() argument
405 BleGattcConnect(int clientId, BtGattClientCallbacks *func, const BdAddr *bdAddr, bool isAutoConnect, BtTransportType transport) BleGattcConnect() argument
469 BleGattcSetPriority(int clientId, const BdAddr *bdAddr, BtGattPriority priority) BleGattcSetPriority() argument
503 BleGattcDisconnect(int clientId) BleGattcDisconnect() argument
529 BleGattcSearchServices(int clientId) BleGattcSearchServices() argument
558 BleGattcGetService(int clientId, BtUuid serviceUuid) BleGattcGetService() argument
603 BleGattcReadCharacteristic(int clientId, BtGattCharacteristic characteristic) BleGattcReadCharacteristic() argument
628 BleGattcWriteCharacteristic(int clientId, BtGattCharacteristic characteristic, BtGattWriteType writeType, int len, const char *value) BleGattcWriteCharacteristic() argument
657 BleGattcReadDescriptor(int clientId, BtGattDescriptor descriptor) BleGattcReadDescriptor() argument
692 BleGattcWriteDescriptor(int clientId, BtGattDescriptor descriptor, int len, const char *value) BleGattcWriteDescriptor() argument
726 BleGattcConfigureMtuSize(int clientId, int mtuSize) BleGattcConfigureMtuSize() argument
755 BleGattcRegisterNotification(int clientId, BtGattCharacteristic characteristic, bool enable) BleGattcRegisterNotification() argument
[all...]
/foundation/ai/ai_engine/services/server/communication_adapter/source/
H A Dsa_async_handler.cpp50 void SaAsyncHandler::StopClientListenerHandler(int clientId) in StopClientListenerHandler() argument
53 auto iter = clients_.find(clientId); in StopClientListenerHandler()
59 void SaAsyncHandler::RemoveClientListenerHandler(int clientId) in RemoveClientListenerHandler() argument
62 ClientListenerHandlerMap::iterator iter = clients_.find(clientId); in RemoveClientListenerHandler()
69 ClientListenerHandler *SaAsyncHandler::FindClientListenerHandler(int clientId) in FindClientListenerHandler() argument
72 ClientListenerHandlerMap::iterator iter = clients_.find(clientId); in FindClientListenerHandler()
78 ClientListenerHandler *SaAsyncHandler::AddClientListenerHandler(int clientId) in AddClientListenerHandler() argument
85 clients_[clientId] = handler; in AddClientListenerHandler()
108 void SaAsyncHandler::PushAsyncResponse(int clientId, IResponse *response) in PushAsyncResponse() argument
110 ClientListenerHandler *client = FindClientListenerHandler(clientId); in PushAsyncResponse()
115 RegisterAsyncHandler(int clientId) RegisterAsyncHandler() argument
126 StartAsyncProcess(int clientId, SaServerAdapter *adapter) StartAsyncProcess() argument
142 StopAsyncProcess(int clientId) StopAsyncProcess() argument
148 StartAsyncTransaction(long long transactionId, int clientId) StartAsyncTransaction() argument
[all...]
H A Dadapter_wrapper.cpp65 int clientId = adapter->GetAdapterId(); in AllocateClientAdapter() local
68 g_saServerAdapters[clientId] = adapter; in AllocateClientAdapter()
69 return clientId; in AllocateClientAdapter()
94 SaServerAdapter* FindAdapter(const int clientId) in FindAdapter() argument
97 ServerAdapters::iterator iter = g_saServerAdapters.find(clientId); in FindAdapter()
130 SaServerAdapter *adapter = FindAdapter(clientInfo->clientId); in SyncExecAlgoWrapper()
132 HILOGE("[AdapterWrapper]No adapter found for client[%d].", clientInfo->clientId); in SyncExecAlgoWrapper()
153 SaServerAdapter *adapter = FindAdapter(clientInfo->clientId); in AsyncExecAlgoWrapper()
155 HILOGE("[AdapterWrapper]No adapter found for client[%d].", clientInfo->clientId); in AsyncExecAlgoWrapper()
172 SaServerAdapter *adapter = FindAdapter(clientInfo->clientId); in LoadAlgoWrapper()
[all...]
/foundation/multimedia/audio_framework/services/audio_policy/test/unittest/stream_filter_router_test/src/
H A Dstream_filter_router_unit_test.cpp78 int32_t clientId = 1; in HWTEST() local
84 auto result = streamFilterRouter_->GetCallRenderDevice(streamUsage, clientId); in HWTEST()
87 result = streamFilterRouter_->GetMediaRenderDevice(streamUsage, clientId); in HWTEST()
101 int32_t clientId = 1; in HWTEST() local
105 auto result = streamFilterRouter_->GetCallRenderDevice(streamUsage, clientId); in HWTEST()
108 result = streamFilterRouter_->GetMediaRenderDevice(streamUsage, clientId); in HWTEST()
122 int32_t clientId = 1; in HWTEST() local
126 auto result = streamFilterRouter_->GetCallRenderDevice(streamUsage, clientId); in HWTEST()
129 result = streamFilterRouter_->GetMediaRenderDevice(streamUsage, clientId); in HWTEST()
133 result = streamFilterRouter_->GetMediaRenderDevice(streamUsage, clientId); in HWTEST()
147 int32_t clientId = 1; HWTEST() local
168 int32_t clientId = 1; HWTEST() local
189 int32_t clientId = 1; HWTEST() local
210 int32_t clientId = 1; HWTEST() local
231 int32_t clientId = 1; HWTEST() local
256 int32_t clientId = 1; HWTEST() local
277 int32_t clientId = 1; HWTEST() local
299 int32_t clientId = 1; HWTEST() local
[all...]
/foundation/ai/ai_engine/services/server/communication_adapter/include/
H A Dsa_async_handler.h38 * @param clientId Client of this handler.
41 void PushAsyncResponse(int clientId, IResponse *response);
46 * @param clientId Client ID.
49 int RegisterAsyncHandler(int clientId);
54 * @param clientId Client ID.
58 int StartAsyncProcess(int clientId, SaServerAdapter *adapter);
63 * @param clientId The client to be stopped.
65 void StopAsyncProcess(int clientId);
71 * @param clientId Client ID.
74 int StartAsyncTransaction(long long transactionId, int clientId);
[all...]
/foundation/communication/dsoftbus/tests/core/connection/ble/mock/
H A Dconnection_ble_mock.cpp49 int32_t SoftbusGattcConnect(int32_t clientId, SoftBusBtAddr *addr) in SoftbusGattcConnect() argument
51 return GetConnectionBleInterface()->SoftbusGattcConnect(clientId, addr); in SoftbusGattcConnect()
54 int32_t BleGattcDisconnect(int32_t clientId) in BleGattcDisconnect() argument
56 return GetConnectionBleInterface()->BleGattcDisconnect(clientId); in BleGattcDisconnect()
74 int32_t SoftbusGattcRefreshServices(int32_t clientId) in SoftbusGattcRefreshServices() argument
76 return GetConnectionBleInterface()->SoftbusGattcRefreshServices(clientId); in SoftbusGattcRefreshServices()
79 int32_t SoftbusGattcSearchServices(int32_t clientId) in SoftbusGattcSearchServices() argument
81 return GetConnectionBleInterface()->SoftbusGattcSearchServices(clientId); in SoftbusGattcSearchServices()
94 int32_t BleGattcUnRegister(int32_t clientId) in BleGattcUnRegister() argument
96 return GetConnectionBleInterface()->BleGattcUnRegister(clientId); in BleGattcUnRegister()
99 BleGattcSetPriority(int clientId, const BdAddr *bdAddr, BtGattPriority priority) BleGattcSetPriority() argument
[all...]
H A Dconnection_ble_client_mock.cpp117 int32_t SoftbusGattcSetFastestConn(int32_t clientId) in SoftbusGattcSetFastestConn() argument
119 return GetConnectionBleClientInterface()->SoftbusGattcSetFastestConn(clientId); in SoftbusGattcSetFastestConn()
122 int32_t SoftbusGattcRefreshServices(int32_t clientId) in SoftbusGattcRefreshServices() argument
124 return GetConnectionBleClientInterface()->SoftbusGattcRefreshServices(clientId); in SoftbusGattcRefreshServices()
127 int32_t SoftbusGattcConnect(int32_t clientId, SoftBusBtAddr *addr) in SoftbusGattcConnect() argument
129 return GetConnectionBleClientInterface()->SoftbusGattcConnect(clientId, addr); in SoftbusGattcConnect()
138 int32_t SoftbusGattcSearchServices(int32_t clientId) in SoftbusGattcSearchServices() argument
140 return GetConnectionBleClientInterface()->SoftbusGattcSearchServices(clientId); in SoftbusGattcSearchServices()
143 int32_t SoftbusGattcRegisterNotification(int32_t clientId, SoftBusBtUuid *serverUuid, in SoftbusGattcRegisterNotification() argument
146 return GetConnectionBleClientInterface()->SoftbusGattcRegisterNotification(clientId, in SoftbusGattcRegisterNotification()
150 SoftbusGattcConfigureMtuSize(int32_t clientId, int32_t mtuSize) SoftbusGattcConfigureMtuSize() argument
155 SoftbusGattcGetService(int32_t clientId, SoftBusBtUuid *serverUuid) SoftbusGattcGetService() argument
160 SoftbusBleGattcDisconnect(int32_t clientId, bool refreshGatt) SoftbusBleGattcDisconnect() argument
165 SoftbusGattcWriteCharacteristic(int32_t clientId, SoftBusGattcData *clientData) SoftbusGattcWriteCharacteristic() argument
170 SoftbusGattcSetPriority(int32_t clientId, SoftBusBtAddr *addr, SoftbusBleGattPriority priority) SoftbusGattcSetPriority() argument
[all...]
H A Dconnection_ble_client_mock.h33 virtual int32_t SoftbusGattcSetFastestConn(int32_t clientId) = 0;
34 virtual int32_t SoftbusGattcRefreshServices(int32_t clientId) = 0;
35 virtual int32_t SoftbusGattcConnect(int32_t clientId, SoftBusBtAddr *addr) = 0;
38 virtual int32_t SoftbusGattcGetService(int32_t clientId, SoftBusBtUuid *serverUuid) = 0;
39 virtual int32_t SoftbusGattcSearchServices(int32_t clientId) = 0;
40 virtual int32_t SoftbusGattcRegisterNotification(int32_t clientId,
42 virtual int32_t SoftbusGattcConfigureMtuSize(int32_t clientId, int32_t mtuSize) = 0;
43 virtual int32_t SoftbusBleGattcDisconnect(int32_t clientId, bool refreshGatt) = 0;
44 virtual int32_t SoftbusGattcWriteCharacteristic(int32_t clientId, SoftBusGattcData *clientData) = 0;
45 virtual int32_t SoftbusGattcSetPriority(int32_t clientId, SoftBusBtAdd
[all...]
H A Dconnection_ble_mock.h42 virtual int32_t SoftbusGattcConnect(int32_t clientId, SoftBusBtAddr *addr) = 0;
43 virtual int32_t BleGattcDisconnect(int32_t clientId) = 0;
47 virtual int32_t SoftbusGattcRefreshServices(int32_t clientId) = 0;
48 virtual int32_t SoftbusGattcSearchServices(int32_t clientId) = 0;
51 virtual int BleGattcUnRegister(int clientId) = 0;
52 virtual int BleGattcSetPriority(int clientId, const BdAddr *bdAddr, BtGattPriority priority) = 0;
/foundation/communication/dsoftbus/tests/adapter/bluetooth/
H A Dbluetooth_mock.cpp130 int32_t clientId, BtGattClientCallbacks *func, const BdAddr *bdAddr, bool isAutoConnect, BtTransportType transport) in BleGattcConnect()
132 return MockBluetooth::GetMocker()->BleGattcConnect(clientId, func, bdAddr, isAutoConnect, transport); in BleGattcConnect()
135 int32_t BleGattcDisconnect(int32_t clientId) in BleGattcDisconnect() argument
137 return MockBluetooth::GetMocker()->BleGattcDisconnect(clientId); in BleGattcDisconnect()
140 int32_t BleGattcSearchServices(int32_t clientId) in BleGattcSearchServices() argument
142 return MockBluetooth::GetMocker()->BleGattcSearchServices(clientId); in BleGattcSearchServices()
145 bool BleGattcGetService(int32_t clientId, BtUuid serviceUuid) in BleGattcGetService() argument
147 return MockBluetooth::GetMocker()->BleGattcGetService(clientId, serviceUuid); in BleGattcGetService()
150 int32_t BleGattcRegisterNotification(int32_t clientId, BtGattCharacteristic characteristic, bool enable) in BleGattcRegisterNotification() argument
152 return MockBluetooth::GetMocker()->BleGattcRegisterNotification(clientId, characteristi in BleGattcRegisterNotification()
129 BleGattcConnect( int32_t clientId, BtGattClientCallbacks *func, const BdAddr *bdAddr, bool isAutoConnect, BtTransportType transport) BleGattcConnect() argument
155 BleGattcConfigureMtuSize(int32_t clientId, int32_t mtuSize) BleGattcConfigureMtuSize() argument
160 BleGattcWriteCharacteristic( int32_t clientId, BtGattCharacteristic characteristic, BtGattWriteType writeType, int32_t len, const char *value) BleGattcWriteCharacteristic() argument
166 BleGattcUnRegister(int32_t clientId) BleGattcUnRegister() argument
171 BleGattcSetFastestConn(int32_t clientId, bool fastestConnFlag) BleGattcSetFastestConn() argument
176 BleGattcSetPriority(int32_t clientId, const BdAddr *bdAddr, BtGattPriority priority) BleGattcSetPriority() argument
[all...]
H A Dbluetooth_mock.h51 virtual int BleGattcConnect(int clientId, BtGattClientCallbacks *func, const BdAddr *bdAddr, bool isAutoConnect,
53 virtual int BleGattcDisconnect(int clientId) = 0;
54 virtual int BleGattcSearchServices(int clientId) = 0;
55 virtual bool BleGattcGetService(int clientId, BtUuid serviceUuid) = 0;
56 virtual int BleGattcRegisterNotification(int clientId, BtGattCharacteristic characteristic, bool enable) = 0;
57 virtual int BleGattcConfigureMtuSize(int clientId, int mtuSize) = 0;
59 int clientId, BtGattCharacteristic characteristic, BtGattWriteType writeType, int len, const char *value) = 0;
60 virtual int BleGattcUnRegister(int clientId) = 0;
61 virtual int BleGattcSetFastestConn(int clientId, bool fastestConnFlag) = 0;
62 virtual int BleGattcSetPriority(int clientId, cons
[all...]
H A Dsoftbus_adapter_ble_gatt_client_test.cpp72 int32_t clientId, BtGattClientCallbacks *func, const BdAddr *bdAddr, bool isAutoConnect, BtTransportType transport) in ActionBleGattcConnect()
74 (void)clientId; in ActionBleGattcConnect()
128 int32_t clientId = 10; in HWTEST_F() local
129 SoftbusGattcRegisterCallback(GetStubGattcCallback(), clientId); in HWTEST_F() local
131 EXPECT_EQ(SoftbusGattcUnRegister(clientId), SOFTBUS_OK); in HWTEST_F()
316 auto clientId = SoftbusGattcRegister(); in HWTEST_F() local
317 ASSERT_NE(clientId, -1); in HWTEST_F()
318 SoftbusGattcRegisterCallback(GetStubGattcCallback(), clientId); in HWTEST_F() local
322 ASSERT_EQ(SoftbusGattcConnect(clientId, &addr), SOFTBUS_OK); in HWTEST_F()
323 gattClientCallback->ConnectionStateCb(clientId, OHOS_STATE_CONNECTE in HWTEST_F()
71 ActionBleGattcConnect( int32_t clientId, BtGattClientCallbacks *func, const BdAddr *bdAddr, bool isAutoConnect, BtTransportType transport) ActionBleGattcConnect() argument
372 auto clientId = SoftbusGattcRegister(); HWTEST_F() local
373 SoftbusGattcRegisterCallback(GetStubGattcCallback(), clientId); HWTEST_F() local
536 StubConnectionStateCallback(int32_t clientId, int32_t connState, int32_t status) StubConnectionStateCallback() argument
541 StubServiceCompleteCallback(int32_t clientId, int32_t status) StubServiceCompleteCallback() argument
546 StubRegistNotificationCallback(int32_t clientId, int32_t status) StubRegistNotificationCallback() argument
551 StubNotificationReceiveCallback(int32_t clientId, SoftBusGattcNotify *param, int32_t status) StubNotificationReceiveCallback() argument
556 StubConfigureMtuSizeCallback(int32_t clientId, int32_t mtuSize, int32_t status) StubConfigureMtuSizeCallback() argument
[all...]
/foundation/ai/ai_engine/test/function/destroy/
H A Ddestroy_function_test.cpp88 .clientId = CLIENT_ID, in HWTEST_F()
111 ASSERT_TRUE(clientInfo.clientId > 0); in HWTEST_F()
115 ASSERT_EQ(clientInfo.clientId, INVALID_SESSION_ID); in HWTEST_F()
136 .clientId = CLIENT_ID, in HWTEST_F()
164 ASSERT_TRUE(clientInfo.clientId > 0); in HWTEST_F()
170 ASSERT_TRUE(clientInfo.clientId > 0); in HWTEST_F()
174 ASSERT_TRUE(clientInfo.clientId > 0); in HWTEST_F()
178 ASSERT_TRUE(clientInfo.clientId > 0); in HWTEST_F()
182 ASSERT_EQ(clientInfo.clientId, INVALID_SESSION_ID); in HWTEST_F()
203 .clientId in HWTEST_F()
[all...]
/foundation/communication/dsoftbus/tests/adapter/broadcast/
H A Dbluetooth_mock.cpp181 int32_t clientId, BtGattClientCallbacks *func, const BdAddr *bdAddr, bool isAutoConnect, BtTransportType transport) in BleGattcConnect()
183 return MockBluetooth::GetMocker()->BleGattcConnect(clientId, func, bdAddr, isAutoConnect, transport); in BleGattcConnect()
186 int32_t BleGattcDisconnect(int32_t clientId) in BleGattcDisconnect() argument
188 return MockBluetooth::GetMocker()->BleGattcDisconnect(clientId); in BleGattcDisconnect()
191 int32_t BleGattcSearchServices(int32_t clientId) in BleGattcSearchServices() argument
193 return MockBluetooth::GetMocker()->BleGattcSearchServices(clientId); in BleGattcSearchServices()
196 bool BleGattcGetService(int32_t clientId, BtUuid serviceUuid) in BleGattcGetService() argument
198 return MockBluetooth::GetMocker()->BleGattcGetService(clientId, serviceUuid); in BleGattcGetService()
201 int32_t BleGattcRegisterNotification(int32_t clientId, BtGattCharacteristic characteristic, bool enable) in BleGattcRegisterNotification() argument
203 return MockBluetooth::GetMocker()->BleGattcRegisterNotification(clientId, characteristi in BleGattcRegisterNotification()
180 BleGattcConnect( int32_t clientId, BtGattClientCallbacks *func, const BdAddr *bdAddr, bool isAutoConnect, BtTransportType transport) BleGattcConnect() argument
206 BleGattcConfigureMtuSize(int32_t clientId, int32_t mtuSize) BleGattcConfigureMtuSize() argument
211 BleGattcWriteCharacteristic( int32_t clientId, BtGattCharacteristic characteristic, BtGattWriteType writeType, int32_t len, const char *value) BleGattcWriteCharacteristic() argument
217 BleGattcUnRegister(int32_t clientId) BleGattcUnRegister() argument
222 BleGattcSetFastestConn(int32_t clientId, bool fastestConnFlag) BleGattcSetFastestConn() argument
227 BleGattcSetPriority(int32_t clientId, const BdAddr *bdAddr, BtGattPriority priority) BleGattcSetPriority() argument
[all...]
H A Dbluetooth_mock.h58 virtual int32_t BleGattcConnect(int32_t clientId, BtGattClientCallbacks *func,
60 virtual int32_t BleGattcDisconnect(int32_t clientId) = 0;
61 virtual int32_t BleGattcSearchServices(int32_t clientId) = 0;
62 virtual bool BleGattcGetService(int32_t clientId, BtUuid serviceUuid) = 0;
63 virtual int32_t BleGattcRegisterNotification(int32_t clientId,
65 virtual int32_t BleGattcConfigureMtuSize(int32_t clientId, int32_t mtuSize) = 0;
66 virtual int32_t BleGattcWriteCharacteristic(int32_t clientId, BtGattCharacteristic characteristic,
68 virtual int32_t BleGattcUnRegister(int32_t clientId) = 0;
69 virtual int32_t BleGattcSetFastestConn(int32_t clientId, bool fastestConnFlag) = 0;
70 virtual int32_t BleGattcSetPriority(int32_t clientId, cons
[all...]
/foundation/ai/ai_engine/test/function/release/
H A Drelease_function_test.cpp88 .clientId = CLIENT_ID, in HWTEST_F()
116 ASSERT_TRUE(clientInfo.clientId > 0); in HWTEST_F()
122 ASSERT_TRUE(clientInfo.clientId > 0); in HWTEST_F()
126 ASSERT_TRUE(clientInfo.clientId > 0); in HWTEST_F()
150 .clientId = CLIENT_ID, in HWTEST_F()
178 ASSERT_TRUE(clientInfo.clientId > 0); in HWTEST_F()
184 ASSERT_TRUE(clientInfo.clientId > 0); in HWTEST_F()
188 ASSERT_TRUE(clientInfo.clientId > 0); in HWTEST_F()
212 .clientId = CLIENT_ID, in HWTEST_F()
240 ASSERT_TRUE(clientInfo.clientId > in HWTEST_F()
[all...]
/foundation/communication/netstack/frameworks/js/napi/socket/async_context/include/
H A Dlocal_socket_server_context.h100 for (const auto &[clientId, connectFd] : acceptFds_) { in GetClientId()
102 return clientId; in GetClientId()
132 void RemoveAccept(int clientId) in RemoveAccept()
135 if (auto ite = acceptFds_.find(clientId); ite != acceptFds_.end()) { in RemoveAccept()
143 int GetAcceptFd(int clientId) in GetAcceptFd()
146 if (auto ite = acceptFds_.find(clientId); ite != acceptFds_.end()) { in GetAcceptFd()
157 EventManager *WaitForManager(int clientId) in WaitForManager()
161 cond_.wait(lock, [&manager, &clientId, this]() { in WaitForManager()
162 if (auto iter = clientEventManagers_.find(clientId); iter != clientEventManagers_.end()) { in WaitForManager()
178 void AddEventManager(int clientId, EventManage in NotifyRegisterEvent()
[all...]
/foundation/communication/bluetooth_service/test/unittest/gatt_c/
H A Dgatt_client_c_test.cpp46 * @tc.desc: Test BleGattcSetPriority when clientId is not found
52 int clientId = 0; in HWTEST_F() local
55 int res = BleGattcSetPriority(clientId, &bdAddr, priority); in HWTEST_F()
71 int clientId = BleGattcRegister(appId); in HWTEST_F() local
74 int res = BleGattcSetPriority(clientId, &bdAddr, priority); in HWTEST_F()
76 BleGattcUnRegister(clientId); in HWTEST_F()

Completed in 12 milliseconds

123456