Lines Matching refs:client
151 void requestHubInfo(SocketClient &client) { in requestHubInfo() argument
156 if (!client.sendMessage(builder.GetBufferPointer(), builder.GetSize())) { in requestHubInfo()
161 void requestNanoappList(SocketClient &client) { in requestNanoappList() argument
166 if (!client.sendMessage(builder.GetBufferPointer(), builder.GetSize())) { in requestNanoappList()
171 void sendMessageToNanoapp(SocketClient &client) { in sendMessageToNanoapp() argument
180 if (!client.sendMessage(builder.GetBufferPointer(), builder.GetSize())) { in sendMessageToNanoapp()
206 void sendNanoappLoad(SocketClient &client, uint64_t appId, uint32_t appVersion, in sendNanoappLoad() argument
221 if (!client.sendMessage(builder.GetBufferPointer(), builder.GetSize())) { in sendNanoappLoad()
226 void sendLoadNanoappRequest(SocketClient &client, const char *headerPath, in sendLoadNanoappRequest() argument
243 sendNanoappLoad(client, appHeader->appId, appHeader->appVersion, in sendLoadNanoappRequest()
249 void sendLoadNanoappRequest(SocketClient &client, const char *filename, in sendLoadNanoappRequest() argument
260 sendNanoappLoad(client, appId, appVersion, apiVersion, appFlags, buffer); in sendLoadNanoappRequest()
264 void sendUnloadNanoappRequest(SocketClient &client, uint64_t appId) { in sendUnloadNanoappRequest() argument
272 if (!client.sendMessage(builder.GetBufferPointer(), builder.GetSize())) { in sendUnloadNanoappRequest()
277 void sendSelfTestRequest(SocketClient &client) { in sendSelfTestRequest() argument
282 if (!client.sendMessage(builder.GetBufferPointer(), builder.GetSize())) { in sendSelfTestRequest()
308 SocketClient client; in main() local
312 if (!client.connect("chre", callbacks)) { in main()
316 requestHubInfo(client); in main()
317 requestNanoappList(client); in main()
318 sendMessageToNanoapp(client); in main()
319 sendLoadNanoappRequest(client, "/data/activity.so", in main()
323 sendUnloadNanoappRequest(client, 0x476f6f676c00100b /* appId */); in main()
336 sendLoadNanoappRequest(client, headerPath.c_str(), binaryPath.c_str()); in main()
365 sendLoadNanoappRequest(client, path.c_str(), id, appVersion, apiVersion, in main()
378 sendUnloadNanoappRequest(client, id); in main()
381 sendSelfTestRequest(client); in main()