Home
last modified time | relevance | path

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

1234567

/ohos5.0/foundation/communication/dsoftbus/adapter/common/net/bluetooth/ble/
H A Dsoftbus_adapter_ble_gatt_client.c49 int32_t clientId; member
61 GetGattcCallback(clientId, &cb); in GattcConnectionStateChangedCallback()
184 gattcManager->clientId = clientId; in SoftbusGattcRegisterCallback()
203 if (it->clientId == clientId) { in GetGattcCallback()
219 if (clientId <= 0) { in SoftbusGattcRegister()
224 return clientId; in SoftbusGattcRegister()
240 if (it->clientId == clientId) { in SoftbusGattcUnRegister()
289 bleConnAddr->clientId = clientId; in SoftbusGattcAddMacAddrToList()
308 if (it->clientId == clientId) { in SoftbusGattcDeleteMacAddrFromList()
368 if (clientId <= 0) { in SoftbusGattcGetService()
[all …]
/ohos5.0/foundation/communication/bluetooth/interfaces/inner_api/include/c_header/
H A Dohos_bt_gatt_client.h83 typedef void (*SearchServiceCompleteCallback)(int clientId, int status);
128 typedef void (*ConfigureMtuSizeCallback)(int clientId, int mtuSize, int status);
136 typedef void (*RegisterNotificationCallback)(int clientId, int status);
175 int BleGattcUnRegister(int clientId);
185 int BleGattcSetFastestConn(int clientId, bool fastestConnFlag);
215 int BleGattcDisconnect(int clientId);
223 int BleGattcSearchServices(int clientId);
232 bool BleGattcGetService(int clientId, BtUuid serviceUuid);
241 int BleGattcReadCharacteristic(int clientId, BtGattCharacteristic characteristic);
263 int BleGattcReadDescriptor(int clientId, BtGattDescriptor descriptor);
[all …]
H A Dohos_bt_spp.h86 int SppDisconnect(int clientId);
94 bool IsSppConnected(int clientId);
103 int SppGetRemoteAddr(int clientId, BdAddr *remoteAddr);
115 int SppRead(int clientId, char *buf, const unsigned int bufLen);
126 int SppWrite(int clientId, const char *data, const unsigned int len);
135 int SppSetSocketBufferSize(int clientId, int bufferSize);
H A Dohos_bt_socket.h143 int SocketDisconnect(int clientId);
151 bool IsSocketConnected(int clientId);
160 int SocketGetRemoteAddr(int clientId, BdAddr *remoteAddr);
173 int SocketRead(int clientId, uint8_t *buf, uint32_t bufLen);
184 int SocketWrite(int clientId, const uint8_t *data, uint32_t len);
213 int SetSocketBufferSize(int clientId, uint32_t bufferSize);
/ohos5.0/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
85 clients_[clientId] = handler; in AddClientListenerHandler()
115 int SaAsyncHandler::RegisterAsyncHandler(int clientId) in RegisterAsyncHandler() argument
117 if (FindClientListenerHandler(clientId) != nullptr) { in RegisterAsyncHandler()
122 AddClientListenerHandler(clientId); in RegisterAsyncHandler()
142 void SaAsyncHandler::StopAsyncProcess(int clientId) in StopAsyncProcess() argument
144 StopClientListenerHandler(clientId); in StopAsyncProcess()
145 RemoveClientListenerHandler(clientId); in StopAsyncProcess()
[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
130 SaServerAdapter *adapter = FindAdapter(clientInfo->clientId); in SyncExecAlgoWrapper()
153 SaServerAdapter *adapter = FindAdapter(clientInfo->clientId); in AsyncExecAlgoWrapper()
172 SaServerAdapter *adapter = FindAdapter(clientInfo->clientId); in LoadAlgoWrapper()
199 SaServerAdapter *adapter = FindAdapter(clientInfo->clientId); in UnloadAlgoWrapper()
239 SaServerAdapter *adapter = FindAdapter(clientInfo->clientId); in SetOptionWrapper()
257 SaServerAdapter *adapter = FindAdapter(clientInfo->clientId); in GetOptionWrapper()
[all …]
/ohos5.0/foundation/communication/dsoftbus/adapter/common/net/bluetooth/include/
H A Dsoftbus_adapter_ble_gatt_client.h55 void (*ServiceCompleteCallback)(int32_t clientId, int32_t status);
56 void (*RegistNotificationCallback)(int32_t clientId, int status);
58 void (*ConfigureMtuSizeCallback)(int clientId, int mtuSize, int status);
70 int32_t clientId; member
75 int32_t SoftbusGattcUnRegister(int32_t clientId);
76 int32_t SoftbusGattcConnect(int32_t clientId, SoftBusBtAddr *addr);
77 int32_t SoftbusBleGattcDisconnect(int32_t clientId, bool refreshGatt);
78 int32_t SoftbusGattcSearchServices(int32_t clientId);
79 int32_t SoftbusGattcRefreshServices(int32_t clientId);
84 int32_t SoftbusGattcConfigureMtuSize(int32_t clientId, int mtuSize);
[all …]
/ohos5.0/foundation/communication/bluetooth/frameworks/inner/c_adapter/
H A Dohos_bt_gatt_client.cpp128 clientId_ = clientId; in GattClientCallbackWrapper()
348 int clientId = g_clientIncrease.load(); in BleGattcRegister() local
350 HILOGI("clientId: %{public}d", clientId); in BleGattcRegister()
351 return clientId; in BleGattcRegister()
360 int BleGattcUnRegister(int clientId) in BleGattcUnRegister() argument
363 HILOGI("clientId: %{public}d", clientId); in BleGattcUnRegister()
446 func, clientId); in BleGattcConnect()
506 int BleGattcDisconnect(int clientId) in BleGattcDisconnect() argument
532 int BleGattcSearchServices(int clientId) in BleGattcSearchServices() argument
564 HILOGI("clientId: %{public}d", clientId); in BleGattcGetService()
[all …]
H A Dohos_bt_spp.cpp121 int SppDisconnect(int clientId) in SppDisconnect() argument
123 HILOGI("clientId: %{public}d", clientId); in SppDisconnect()
124 return SocketDisconnect(clientId); in SppDisconnect()
134 int SppGetRemoteAddr(int clientId, BdAddr *remoteAddr) in SppGetRemoteAddr() argument
136 HILOGI("clientId: %{public}d", clientId); in SppGetRemoteAddr()
137 return SocketGetRemoteAddr(clientId, remoteAddr); in SppGetRemoteAddr()
146 bool IsSppConnected(int clientId) in IsSppConnected() argument
148 HILOGI("clientId: %{public}d", clientId); in IsSppConnected()
149 return IsSocketConnected(clientId); in IsSppConnected()
188 int SppSetSocketBufferSize(int clientId, int bufferSize) in SppSetSocketBufferSize() argument
[all …]
H A Dohos_bt_socket.cpp172 int clientId = g_clientMap.AddObject(client); in SocketServerAccept() local
173 HILOGI("success, clientId: %{public}d", clientId); in SocketServerAccept()
174 return clientId; in SocketServerAccept()
263 int clientId = g_clientMap.AddObject(client); in SocketConnect() local
265 return clientId; in SocketConnect()
314 int clientId = g_clientMap.AddObject(client); in SocketConnectEx() local
318 return clientId; in SocketConnectEx()
327 int SocketDisconnect(int clientId) in SocketDisconnect() argument
336 g_clientMap.RemoveObject(clientId); in SocketDisconnect()
338 ClientCbIterator it = g_clientCbMap.find(clientId); in SocketDisconnect()
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/adapter/bluetooth/
H A Dbluetooth_mock.cpp135 int BleGattcDisconnect(int clientId) in BleGattcDisconnect() argument
137 return MockBluetooth::GetMocker()->BleGattcDisconnect(clientId); in BleGattcDisconnect()
140 int BleGattcSearchServices(int clientId) in BleGattcSearchServices() argument
142 return MockBluetooth::GetMocker()->BleGattcSearchServices(clientId); in BleGattcSearchServices()
145 bool BleGattcGetService(int clientId, BtUuid serviceUuid) in BleGattcGetService() argument
147 return MockBluetooth::GetMocker()->BleGattcGetService(clientId, serviceUuid); in BleGattcGetService()
155 int BleGattcConfigureMtuSize(int clientId, int mtuSize) in BleGattcConfigureMtuSize() argument
157 return MockBluetooth::GetMocker()->BleGattcConfigureMtuSize(clientId, mtuSize); in BleGattcConfigureMtuSize()
166 int BleGattcUnRegister(int clientId) in BleGattcUnRegister() argument
168 return MockBluetooth::GetMocker()->BleGattcUnRegister(clientId); in BleGattcUnRegister()
[all …]
H A Dsoftbus_adapter_ble_gatt_client_test.cpp74 (void)clientId; in ActionBleGattcConnect()
128 int32_t clientId = 10; variable
129 SoftbusGattcRegisterCallback(GetStubGattcCallback(), clientId);
131 EXPECT_EQ(SoftbusGattcUnRegister(clientId), SOFTBUS_OK);
316 auto clientId = SoftbusGattcRegister(); variable
317 ASSERT_NE(clientId, -1);
322 ASSERT_EQ(SoftbusGattcConnect(clientId, &addr), SOFTBUS_OK);
326 ASSERT_EQ(SoftbusGattcSearchServices(clientId), SOFTBUS_OK);
372 auto clientId = SoftbusGattcRegister(); variable
421 ASSERT_EQ(SoftbusGattcUnRegister(clientId), SOFTBUS_OK);
[all …]
H A Dbluetooth_mock.h53 virtual int BleGattcDisconnect(int clientId) = 0;
54 virtual int BleGattcSearchServices(int clientId) = 0;
55 virtual bool BleGattcGetService(int clientId, BtUuid serviceUuid) = 0;
57 virtual int BleGattcConfigureMtuSize(int clientId, int mtuSize) = 0;
60 virtual int BleGattcUnRegister(int clientId) = 0;
61 virtual int BleGattcSetFastestConn(int clientId, bool fastestConnFlag) = 0;
106 MOCK_METHOD(int, BleGattcDisconnect, (int clientId), (override));
107 MOCK_METHOD(int, BleGattcSearchServices, (int clientId), (override));
108 MOCK_METHOD(bool, BleGattcGetService, (int clientId, BtUuid serviceUuid), (override));
111 MOCK_METHOD(int, BleGattcConfigureMtuSize, (int clientId, int mtuSize), (override));
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/ble/mock/
H A Dconnection_ble_client_mock.cpp102 int32_t SoftbusGattcSetFastestConn(int32_t clientId) in SoftbusGattcSetFastestConn() argument
104 return GetConnectionBleClientInterface()->SoftbusGattcSetFastestConn(clientId); in SoftbusGattcSetFastestConn()
107 int32_t SoftbusGattcRefreshServices(int32_t clientId) in SoftbusGattcRefreshServices() argument
109 return GetConnectionBleClientInterface()->SoftbusGattcRefreshServices(clientId); in SoftbusGattcRefreshServices()
112 int32_t SoftbusGattcConnect(int32_t clientId, SoftBusBtAddr *addr) in SoftbusGattcConnect() argument
114 return GetConnectionBleClientInterface()->SoftbusGattcConnect(clientId, addr); in SoftbusGattcConnect()
123 int32_t SoftbusGattcSearchServices(int32_t clientId) in SoftbusGattcSearchServices() argument
125 return GetConnectionBleClientInterface()->SoftbusGattcSearchServices(clientId); in SoftbusGattcSearchServices()
135 int32_t SoftbusGattcConfigureMtuSize(int32_t clientId, int mtuSize) in SoftbusGattcConfigureMtuSize() argument
140 int32_t SoftbusGattcGetService(int32_t clientId, SoftBusBtUuid *serverUuid) in SoftbusGattcGetService() argument
[all …]
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 int BleGattcDisconnect(int 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 int BleGattcUnRegister(int clientId) in BleGattcUnRegister() argument
96 return GetConnectionBleInterface()->BleGattcUnRegister(clientId); in BleGattcUnRegister()
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, int mtuSize) = 0;
43 virtual int32_t SoftbusBleGattcDisconnect(int32_t clientId, bool refreshGatt) = 0;
44 …virtual int32_t SoftbusGattcWriteCharacteristic(int32_t clientId, SoftBusGattcData *clientData) = …
45 virtual int32_t SoftbusGattcSetPriority(int32_t clientId, SoftBusBtAddr *addr,
/ohos5.0/foundation/ai/ai_engine/test/function/destroy/
H A Ddestroy_function_test.cpp88 .clientId = CLIENT_ID,
111 ASSERT_TRUE(clientInfo.clientId > 0);
136 .clientId = CLIENT_ID,
164 ASSERT_TRUE(clientInfo.clientId > 0);
170 ASSERT_TRUE(clientInfo.clientId > 0);
174 ASSERT_TRUE(clientInfo.clientId > 0);
178 ASSERT_TRUE(clientInfo.clientId > 0);
203 .clientId = CLIENT_ID,
231 ASSERT_TRUE(clientInfo.clientId > 0);
271 .clientId = CLIENT_ID,
[all …]
/ohos5.0/foundation/ai/ai_engine/services/server/communication_adapter/include/
H A Dsa_async_handler.h41 void PushAsyncResponse(int clientId, IResponse *response);
49 int RegisterAsyncHandler(int clientId);
58 int StartAsyncProcess(int clientId, SaServerAdapter *adapter);
65 void StopAsyncProcess(int clientId);
74 int StartAsyncTransaction(long long transactionId, int clientId);
91 void StopClientListenerHandler(int clientId);
98 void RemoveClientListenerHandler(int clientId);
99 ClientListenerHandler *FindClientListenerHandler(int clientId);
100 ClientListenerHandler *AddClientListenerHandler(int clientId);
/ohos5.0/foundation/communication/dsoftbus/tests/adapter/broadcast/
H A Dbluetooth_mock.cpp186 int BleGattcDisconnect(int clientId) in BleGattcDisconnect() argument
188 return MockBluetooth::GetMocker()->BleGattcDisconnect(clientId); in BleGattcDisconnect()
191 int BleGattcSearchServices(int clientId) in BleGattcSearchServices() argument
193 return MockBluetooth::GetMocker()->BleGattcSearchServices(clientId); in BleGattcSearchServices()
196 bool BleGattcGetService(int clientId, BtUuid serviceUuid) in BleGattcGetService() argument
198 return MockBluetooth::GetMocker()->BleGattcGetService(clientId, serviceUuid); in BleGattcGetService()
206 int BleGattcConfigureMtuSize(int clientId, int mtuSize) in BleGattcConfigureMtuSize() argument
208 return MockBluetooth::GetMocker()->BleGattcConfigureMtuSize(clientId, mtuSize); in BleGattcConfigureMtuSize()
217 int BleGattcUnRegister(int clientId) in BleGattcUnRegister() argument
219 return MockBluetooth::GetMocker()->BleGattcUnRegister(clientId); in BleGattcUnRegister()
[all …]
H A Dbluetooth_mock.h60 virtual int BleGattcDisconnect(int clientId) = 0;
61 virtual int BleGattcSearchServices(int clientId) = 0;
62 virtual bool BleGattcGetService(int clientId, BtUuid serviceUuid) = 0;
64 virtual int BleGattcConfigureMtuSize(int clientId, int mtuSize) = 0;
67 virtual int BleGattcUnRegister(int clientId) = 0;
68 virtual int BleGattcSetFastestConn(int clientId, bool fastestConnFlag) = 0;
124 MOCK_METHOD(int, BleGattcDisconnect, (int clientId), (override));
125 MOCK_METHOD(int, BleGattcSearchServices, (int clientId), (override));
126 MOCK_METHOD(bool, BleGattcGetService, (int clientId, BtUuid serviceUuid), (override));
129 MOCK_METHOD(int, BleGattcConfigureMtuSize, (int clientId, int mtuSize), (override));
[all …]
/ohos5.0/foundation/ai/ai_engine/test/function/release/
H A Drelease_function_test.cpp88 .clientId = CLIENT_ID,
116 ASSERT_TRUE(clientInfo.clientId > 0);
122 ASSERT_TRUE(clientInfo.clientId > 0);
126 ASSERT_TRUE(clientInfo.clientId > 0);
150 .clientId = CLIENT_ID,
178 ASSERT_TRUE(clientInfo.clientId > 0);
184 ASSERT_TRUE(clientInfo.clientId > 0);
188 ASSERT_TRUE(clientInfo.clientId > 0);
212 .clientId = CLIENT_ID,
240 ASSERT_TRUE(clientInfo.clientId > 0);
[all …]
/ohos5.0/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()
143 int GetAcceptFd(int clientId) in GetAcceptFd()
157 EventManager *WaitForManager(int clientId) in WaitForManager()
161 cond_.wait(lock, [&manager, &clientId, this]() { in WaitForManager()
178 void AddEventManager(int clientId, EventManager *manager) in AddEventManager()
184 void RemoveEventManager(int clientId) in RemoveEventManager()
265 void SetClientId(int clientId);
305 void SetClientId(int clientId);
[all …]
/ohos5.0/foundation/ai/ai_engine/test/function/prepare/
H A Dprepare_function_test.cpp90 .clientId = INVALID_CLIENT_ID,
113 ASSERT_TRUE(clientInfo.clientId > 0);
147 .clientId = INVALID_CLIENT_ID,
170 ASSERT_TRUE(clientInfo.clientId > 0);
209 .clientId = INVALID_CLIENT_ID,
232 ASSERT_TRUE(clientInfo.clientId > 0);
270 .clientId = INVALID_CLIENT_ID,
293 ASSERT_TRUE(clientInfo.clientId > 0);
332 .clientId = INVALID_CLIENT_ID,
394 .clientId = INVALID_CLIENT_ID,
[all …]
/ohos5.0/foundation/communication/bluetooth_service/test/unittest/gatt_c/
H A Dgatt_client_c_test.cpp52 int clientId = 0; variable
55 int res = BleGattcSetPriority(clientId, &bdAddr, priority);
71 int clientId = BleGattcRegister(appId); variable
74 int res = BleGattcSetPriority(clientId, &bdAddr, priority);
76 BleGattcUnRegister(clientId);
/ohos5.0/foundation/resourceschedule/soc_perf/services/core/src/
H A Dsocperf.cpp191 int32_t clientId, int32_t resId, int32_t eventId) in SendLimitRequestEventOff() argument
193 auto iter = limitRequest_[clientId].find(resId); in SendLimitRequestEventOff()
194 if (iter != limitRequest_[clientId].end() in SendLimitRequestEventOff()
195 && limitRequest_[clientId][resId] != INVALID_VALUE) { in SendLimitRequestEventOff()
197 limitRequest_[clientId][resId], 0, clientId, EVENT_OFF, -1, MAX_INT_VALUE); in SendLimitRequestEventOff()
204 limitRequest_[clientId].erase(iter); in SendLimitRequestEventOff()
209 int32_t clientId, int32_t resId, int64_t resValue, int32_t eventId) in SendLimitRequestEventOn() argument
247 void SocPerf::LimitRequest(int32_t clientId, in LimitRequest() argument
258 if (clientId <= (int32_t)ACTION_TYPE_PERF || clientId >= (int32_t)ACTION_TYPE_MAX) { in LimitRequest()
264 clientId, tags[i], (long long)configs[i], msg.c_str()); in LimitRequest()
[all …]

1234567