Home
last modified time | relevance | path

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

12345678910>>...199

/external/libvncserver/libvncclient/
Dvncviewer.c44 static void Dummy(rfbClient* client) { in Dummy() argument
46 static rfbBool DummyPoint(rfbClient* client, int x, int y) { in DummyPoint() argument
49 static void DummyRect(rfbClient* client, int x, int y, int w, int h) { in DummyRect() argument
53 static char* NoPassword(rfbClient* client) { in NoPassword() argument
62 static char* ReadPassword(rfbClient* client) { in ReadPassword() argument
66 return NoPassword(client); in ReadPassword()
91 static rfbBool MallocFrameBuffer(rfbClient* client) { in MallocFrameBuffer() argument
94 if(client->frameBuffer) in MallocFrameBuffer()
95 free(client->frameBuffer); in MallocFrameBuffer()
101 allocSize = (uint64_t)client->width * client->height * client->format.bitsPerPixel/8; in MallocFrameBuffer()
[all …]
Dtight.c53 (((CARD##bpp)(r) & client->format.redMax) << client->format.redShift | \
54 ((CARD##bpp)(g) & client->format.greenMax) << client->format.greenShift | \
55 ((CARD##bpp)(b) & client->format.blueMax) << client->format.blueShift)
58 ((((CARD##bpp)(r) & 0xFF) * client->format.redMax + 127) / 255 \
59 << client->format.redShift | \
60 (((CARD##bpp)(g) & 0xFF) * client->format.greenMax + 127) / 255 \
61 << client->format.greenShift | \
62 (((CARD##bpp)(b) & 0xFF) * client->format.blueMax + 127) / 255 \
63 << client->format.blueShift)
66 (((uint32_t)(r) & 0xFF) << client->format.redShift | \
[all …]
Drfbproto.c119 void rfbClientSetClientData(rfbClient* client, void* tag, void* data) in rfbClientSetClientData() argument
121 rfbClientData* clientData = client->clientData; in rfbClientSetClientData()
127 clientData->next = client->clientData; in rfbClientSetClientData()
128 client->clientData = clientData; in rfbClientSetClientData()
135 void* rfbClientGetClientData(rfbClient* client, void* tag) in rfbClientGetClientData() argument
137 rfbClientData* clientData = client->clientData; in rfbClientGetClientData()
150 static void FillRectangle(rfbClient* client, int x, int y, int w, int h, uint32_t colour) { in FillRectangle() argument
154 for(j=y*client->width;j<(y+h)*client->width;j+=client->width) \ in FillRectangle()
156 ((uint##BPP##_t*)client->frameBuffer)[j+i]=colour; in FillRectangle()
158 switch(client->format.bitsPerPixel) { in FillRectangle()
[all …]
Dlisten.c49 listenForIncomingConnections(rfbClient* client) in listenForIncomingConnections() argument
59 client->listenSpecified = TRUE; in listenForIncomingConnections()
61 listenSocket = ListenAtTcpPortAndAddress(client->listenPort, client->listenAddress); in listenForIncomingConnections()
67 client->programName,client->listenPort); in listenForIncomingConnections()
69 "a connection comes in.\n", client->programName); in listenForIncomingConnections()
73 if (client->listen6Port > 0) in listenForIncomingConnections()
75 listen6Socket = ListenAtTcpPortAndAddress(client->listen6Port, client->listen6Address); in listenForIncomingConnections()
81 client->programName,client->listenPort); in listenForIncomingConnections()
83 "a connection comes in.\n", client->programName); in listenForIncomingConnections()
106 client->sock = AcceptTcpConnection(client->listenSock); in listenForIncomingConnections()
[all …]
Dultra.c35 HandleUltraBPP (rfbClient* client, int rx, int ry, int rw, int rh) in HandleUltraBPP() argument
42 if (!ReadFromRFBServer(client, (char *)&hdr, sz_rfbZlibHeader)) in HandleUltraBPP()
60 if ( client->raw_buffer_size < (int)uncompressedBytes) { in HandleUltraBPP()
61 if ( client->raw_buffer != NULL ) { in HandleUltraBPP()
62 free( client->raw_buffer ); in HandleUltraBPP()
64 client->raw_buffer_size = uncompressedBytes; in HandleUltraBPP()
66 if ((client->raw_buffer_size % 4)!=0) in HandleUltraBPP()
67 client->raw_buffer_size += (4-(client->raw_buffer_size % 4)); in HandleUltraBPP()
68 client->raw_buffer = (char*) malloc( client->raw_buffer_size ); in HandleUltraBPP()
72 if ( client->ultra_buffer_size < toRead ) { in HandleUltraBPP()
[all …]
Dcursor.c32 ((((uint##bpp##_t)(r) & 0xFF) * client->format.redMax + 127) / 255 \
33 << client->format.redShift | \
34 (((uint##bpp##_t)(g) & 0xFF) * client->format.greenMax + 127) / 255 \
35 << client->format.greenShift | \
36 (((uint##bpp##_t)(b) & 0xFF) * client->format.blueMax + 127) / 255 \
37 << client->format.blueShift)
46 rfbBool HandleCursorShape(rfbClient* client,int xhot, int yhot, int width, int height, uint32_t enc) in HandleCursorShape() argument
56 bytesPerPixel = client->format.bitsPerPixel / 8; in HandleCursorShape()
64 if(client->rcSource) in HandleCursorShape()
65 free(client->rcSource); in HandleCursorShape()
[all …]
Dzlib.c36 HandleZlibBPP (rfbClient* client, int rx, int ry, int rw, int rh) in HandleZlibBPP() argument
49 if ( client->raw_buffer_size < (( rw * rh ) * ( BPP / 8 ))) { in HandleZlibBPP()
51 if ( client->raw_buffer != NULL ) { in HandleZlibBPP()
53 free( client->raw_buffer ); in HandleZlibBPP()
57 client->raw_buffer_size = (( rw * rh ) * ( BPP / 8 )); in HandleZlibBPP()
58 client->raw_buffer = (char*) malloc( client->raw_buffer_size ); in HandleZlibBPP()
62 if (!ReadFromRFBServer(client, (char *)&hdr, sz_rfbZlibHeader)) in HandleZlibBPP()
68 client->decompStream.next_in = ( Bytef * )client->buffer; in HandleZlibBPP()
69 client->decompStream.avail_in = 0; in HandleZlibBPP()
70 client->decompStream.next_out = ( Bytef * )client->raw_buffer; in HandleZlibBPP()
[all …]
Dzrle.c79 static int HandleZRLETile(rfbClient* client,
84 HandleZRLE (rfbClient* client, int rx, int ry, int rw, int rh) in HandleZRLE() argument
98 if ( client->raw_buffer_size < min_buffer_size) { in HandleZRLE()
100 if ( client->raw_buffer != NULL ) { in HandleZRLE()
102 free( client->raw_buffer ); in HandleZRLE()
106 client->raw_buffer_size = min_buffer_size; in HandleZRLE()
107 client->raw_buffer = (char*) malloc( client->raw_buffer_size ); in HandleZRLE()
111 if (!ReadFromRFBServer(client, (char *)&header, sz_rfbZRLEHeader)) in HandleZRLE()
117 client->decompStream.next_in = ( Bytef * )client->buffer; in HandleZRLE()
118 client->decompStream.avail_in = 0; in HandleZRLE()
[all …]
Dtls_gnutls.c90 rfbClient *client = (rfbClient*)transport; in PushTLS() local
95 ret = write(client->sock, data, len); in PushTLS()
112 rfbClient *client = (rfbClient*)transport; in PullTLS() local
117 ret = read(client->sock, data, len); in PullTLS()
131 InitializeTLSSession(rfbClient* client, rfbBool anonTLS) in InitializeTLSSession() argument
136 if (client->tlsSession) return TRUE; in InitializeTLSSession()
138 if ((ret = gnutls_init((gnutls_session_t*)&client->tlsSession, GNUTLS_CLIENT)) < 0) in InitializeTLSSession()
144 if ((ret = gnutls_priority_set_direct((gnutls_session_t)client->tlsSession, in InitializeTLSSession()
150 gnutls_transport_set_ptr((gnutls_session_t)client->tlsSession, (gnutls_transport_ptr_t)client); in InitializeTLSSession()
151 gnutls_transport_set_push_function((gnutls_session_t)client->tlsSession, PushTLS); in InitializeTLSSession()
[all …]
Dtls_openssl.c176 rfbClient *client; in ssl_verify() local
188 client = SSL_CTX_get_app_data (ssl->ctx); in ssl_verify()
261 open_ssl_connection (rfbClient *client, int sockfd, rfbBool anonTLS) in open_ssl_connection() argument
276 SSL_CTX_set_app_data (ssl_ctx, client); in open_ssl_connection()
302 InitializeTLSSession(rfbClient* client, rfbBool anonTLS) in InitializeTLSSession() argument
304 if (client->tlsSession) return TRUE; in InitializeTLSSession()
306 client->tlsSession = open_ssl_connection (client, client->sock, anonTLS); in InitializeTLSSession()
308 if (!client->tlsSession) in InitializeTLSSession()
317 SetTLSAnonCredential(rfbClient* client) in SetTLSAnonCredential() argument
324 HandshakeTLS(rfbClient* client) in HandshakeTLS() argument
[all …]
/external/adhd/cras/src/libcras/
Dcras_client.c156 struct cras_client *client; member
251 struct cras_client client; member
256 ((struct client_int *)((char *)cptr - offsetof(struct client_int, client)))
262 static int client_thread_rm_stream(struct cras_client *client,
264 static int handle_message_from_server(struct cras_client *client);
265 static int reregister_notifications(struct cras_client *client);
275 static void server_state_unlock(const struct cras_client *client, in server_state_unlock() argument
280 if (!client) in server_state_unlock()
282 client_int = to_client_int(client); in server_state_unlock()
298 static int server_state_rdlock(const struct cras_client *client) in server_state_rdlock() argument
[all …]
Dcras_client.h77 typedef int (*cras_playback_cb_t)(struct cras_client *client,
99 typedef int (*cras_unified_cb_t)(struct cras_client *client,
115 typedef int (*cras_error_cb_t)(struct cras_client *client,
135 typedef void (*cras_server_error_cb_t)(struct cras_client *client,
169 typedef void (*cras_connection_status_cb_t)(struct cras_client *client,
174 typedef void (*cras_thread_priority_cb_t)(struct cras_client *client);
177 typedef void (*get_hotword_models_cb_t)(struct cras_client *client,
191 int cras_client_create(struct cras_client **client);
197 void cras_client_destroy(struct cras_client *client);
206 int cras_client_connect(struct cras_client *client);
[all …]
/external/fio/
Dclient.c28 static void handle_du(struct fio_client *client, struct fio_net_cmd *cmd);
29 static void handle_ts(struct fio_client *client, struct fio_net_cmd *cmd);
30 static void handle_gs(struct fio_client *client, struct fio_net_cmd *cmd);
31 static void handle_probe(struct fio_client *client, struct fio_net_cmd *cmd);
32 static void handle_text(struct fio_client *client, struct fio_net_cmd *cmd);
33 static void handle_stop(struct fio_client *client, struct fio_net_cmd *cmd);
34 static void handle_start(struct fio_client *client, struct fio_net_cmd *cmd);
77 static void fio_client_add_hash(struct fio_client *client) in fio_client_add_hash() argument
79 int bucket = hash_long(client->fd, FIO_CLIENT_HASH_BITS); in fio_client_add_hash()
82 flist_add(&client->hash_list, &client_hash[bucket]); in fio_client_add_hash()
[all …]
/external/adhd/cras/src/server/
Dcras_observer.c88 struct cras_observer_client *client; in output_volume_alert() local
92 DL_FOREACH(g_observer->clients, client) { in output_volume_alert()
93 if (client->ops.output_volume_changed) in output_volume_alert()
94 client->ops.output_volume_changed( in output_volume_alert()
95 client->context, in output_volume_alert()
102 struct cras_observer_client *client; in output_mute_alert() local
106 DL_FOREACH(g_observer->clients, client) { in output_mute_alert()
107 if (client->ops.output_mute_changed) in output_mute_alert()
108 client->ops.output_mute_changed( in output_mute_alert()
109 client->context, in output_mute_alert()
[all …]
Dcras_rclient.c36 static int handle_client_stream_connect(struct cras_rclient *client, in handle_client_stream_connect() argument
68 stream_config.client = client; in handle_client_stream_connect()
86 rc = cras_rclient_send_message(client, &reply.header, stream_fds, 2); in handle_client_stream_connect()
100 cras_rclient_send_message(client, &reply.header, NULL, 0); in handle_client_stream_connect()
111 struct cras_rclient *client, in handle_client_stream_disconnect() argument
119 static void dump_audio_thread_info(struct cras_rclient *client) in dump_audio_thread_info() argument
128 cras_rclient_send_message(client, &msg.header, NULL, 0); in dump_audio_thread_info()
131 static void handle_get_hotword_models(struct cras_rclient *client, in handle_get_hotword_models() argument
151 cras_rclient_send_message(client, &msg->header, NULL, 0); in handle_get_hotword_models()
157 cras_rclient_send_message(client, &msg->header, NULL, 0); in handle_get_hotword_models()
[all …]
/external/wayland/src/
Dwayland-server.c121 struct wl_client *client; member
140 struct wl_display *display = resource->client->display; in log_closure()
174 resource->client->error = 1; in wl_resource_post_event_array()
178 if (wl_closure_send(closure, resource->client->connection)) in wl_resource_post_event_array()
179 resource->client->error = 1; in wl_resource_post_event_array()
213 resource->client->error = 1; in wl_resource_queue_event_array()
217 if (wl_closure_queue(closure, resource->client->connection)) in wl_resource_queue_event_array()
218 resource->client->error = 1; in wl_resource_queue_event_array()
244 struct wl_client *client = resource->client; in wl_resource_post_error() local
252 client->error = 1; in wl_resource_post_error()
[all …]
/external/webrtc/webrtc/base/
Dsocket_unittest.cc197 scoped_ptr<AsyncSocket> client(ss_->CreateAsyncSocket(loopback.family(), in ConnectInternal() local
199 sink.Monitor(client.get()); in ConnectInternal()
200 EXPECT_EQ(AsyncSocket::CS_CLOSED, client->GetState()); in ConnectInternal()
201 EXPECT_PRED1(IsUnspecOrEmptyIP, client->GetLocalAddress().ipaddr()); in ConnectInternal()
217 EXPECT_EQ(0, client->Connect(server->GetLocalAddress())); in ConnectInternal()
218 EXPECT_FALSE(client->GetLocalAddress().IsNil()); in ConnectInternal()
219 EXPECT_NE(server->GetLocalAddress(), client->GetLocalAddress()); in ConnectInternal()
222 EXPECT_EQ(AsyncSocket::CS_CONNECTING, client->GetState()); in ConnectInternal()
223 EXPECT_FALSE(sink.Check(client.get(), testing::SSE_OPEN)); in ConnectInternal()
224 EXPECT_FALSE(sink.Check(client.get(), testing::SSE_CLOSE)); in ConnectInternal()
[all …]
/external/autotest/client/common_lib/cros/
Dcr50_utils.py9 from autotest_lib.client.common_lib import error
185 def GetSavedVersion(client): argument
195 if not client.path_exists(CR50_VERSION):
198 result = client.run(GET_CR50_VERSION).stdout.strip()
202 def GetRLZ(client): argument
211 result = client.run('vpd -g rlz_brand_code', ignore_status=True)
218 def SetRLZ(client, rlz): argument
232 if rlz == GetRLZ(client):
235 client.run('vpd -s rlz_brand_code=%s' % rlz)
237 client.run('vpd -d rlz_brand_code')
[all …]
/external/libvncserver/rfb/
Drfbclient.h47 (*(char *)&client->endianTest ? ((((s) & 0xff) << 8) | (((s) >> 8) & 0xff)) : (s))
50 (*(char *)&client->endianTest ? ((((l) & 0xff000000) >> 24) | \
56 (*(char *)&client->endianTest ? ((((l) & 0xff00000000000000ULL) >> 56) | \
154 typedef void (*HandleTextChatProc)(struct _rfbClient* client, int value, char *text);
164 typedef void (*HandleXvpMsgProc)(struct _rfbClient* client, uint8_t version, uint8_t opcode);
165 typedef void (*HandleKeyboardLedStateProc)(struct _rfbClient* client, int value, int pad);
166 typedef rfbBool (*HandleCursorPosProc)(struct _rfbClient* client, int x, int y);
167 typedef void (*SoftCursorLockAreaProc)(struct _rfbClient* client, int x, int y, int w, int h);
168 typedef void (*SoftCursorUnlockScreenProc)(struct _rfbClient* client);
169 typedef void (*GotFrameBufferUpdateProc)(struct _rfbClient* client, int x, int y, int w, int h);
[all …]
/external/adhd/cras/src/tests/
Dcras_test_client.c118 static int got_samples(struct cras_client *client, in got_samples() argument
155 static int got_hotword(struct cras_client *client, in got_hotword() argument
170 static int put_samples(struct cras_client *client, in put_samples() argument
220 static int put_stdin_samples(struct cras_client *client, in put_stdin_samples() argument
241 static int stream_error(struct cras_client *client, in stream_error() argument
306 static void print_device_lists(struct cras_client *client) in print_device_lists() argument
315 rc = cras_client_get_output_devices(client, devs, nodes, &num_devs, in print_device_lists()
326 rc = cras_client_get_input_devices(client, devs, nodes, &num_devs, in print_device_lists()
334 static void print_attached_client_list(struct cras_client *client) in print_attached_client_list() argument
340 num_clients = cras_client_get_attached_clients(client, in print_attached_client_list()
[all …]
/external/python/cpython3/Lib/test/
Dtest_ftplib.py467 self.client = ftplib.FTP(timeout=TIMEOUT)
468 self.client.connect(self.server.host, self.server.port)
471 self.client.close()
479 self.assertEqual(self.client.getwelcome(), '220 welcome')
482 self.assertEqual(self.client.sanitize('foo'), repr('foo'))
483 self.assertEqual(self.client.sanitize('pass 12345'), repr('pass *****'))
484 self.assertEqual(self.client.sanitize('PASS 12345'), repr('PASS *****'))
487 self.assertRaises(ftplib.error_temp, self.client.sendcmd, 'echo 400')
488 self.assertRaises(ftplib.error_temp, self.client.sendcmd, 'echo 499')
489 self.assertRaises(ftplib.error_perm, self.client.sendcmd, 'echo 500')
[all …]
/external/python/cpython2/Lib/test/
Dtest_ftplib.py420 self.client = ftplib.FTP(timeout=10)
421 self.client.connect(self.server.host, self.server.port)
424 self.client.close()
428 self.assertEqual(self.client.getwelcome(), '220 welcome')
431 self.assertEqual(self.client.sanitize('foo'), repr('foo'))
432 self.assertEqual(self.client.sanitize('pass 12345'), repr('pass *****'))
433 self.assertEqual(self.client.sanitize('PASS 12345'), repr('PASS *****'))
436 self.assertRaises(ftplib.error_temp, self.client.sendcmd, 'echo 400')
437 self.assertRaises(ftplib.error_temp, self.client.sendcmd, 'echo 499')
438 self.assertRaises(ftplib.error_perm, self.client.sendcmd, 'echo 500')
[all …]
/external/nos/host/android/hals/authsecret/test/
Dtest.cpp71 MockNuggetClient client; in TEST() local
72 AuthSecret hal{client}; in TEST()
74 EXPECT_CALL(client, CallApp(APP_ID_NUGGET, NUGGET_PARAM_CHANGE_UPDATE_PASSWORD, in TEST()
77 EXPECT_CALL(client, CallApp(APP_ID_NUGGET, NUGGET_PARAM_ENABLE_UPDATE, _, _)) in TEST()
79 EXPECT_CALL(client, CallApp(APP_ID_NUGGET, NUGGET_PARAM_REBOOT, _, _)) in TEST()
88 MockNuggetClient client; in TEST() local
89 AuthSecret hal{client}; in TEST()
91 EXPECT_CALL(client, CallApp(APP_ID_NUGGET, NUGGET_PARAM_CHANGE_UPDATE_PASSWORD, in TEST()
94 EXPECT_CALL(client, CallApp(APP_ID_NUGGET, NUGGET_PARAM_ENABLE_UPDATE, _, _)) in TEST()
96 EXPECT_CALL(client, CallApp(APP_ID_NUGGET, NUGGET_PARAM_REBOOT, _, _)) in TEST()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DOkHttpClientTest.java61 OkHttpClient client = new OkHttpClient(); in timeoutDefaults() local
62 assertEquals(10_000, client.getConnectTimeout()); in timeoutDefaults()
63 assertEquals(10_000, client.getReadTimeout()); in timeoutDefaults()
64 assertEquals(10_000, client.getWriteTimeout()); in timeoutDefaults()
68 OkHttpClient client = new OkHttpClient(); in timeoutValidRange() local
70 client.setConnectTimeout(1, TimeUnit.NANOSECONDS); in timeoutValidRange()
74 client.setWriteTimeout(1, TimeUnit.NANOSECONDS); in timeoutValidRange()
78 client.setReadTimeout(1, TimeUnit.NANOSECONDS); in timeoutValidRange()
82 client.setConnectTimeout(365, TimeUnit.DAYS); in timeoutValidRange()
86 client.setWriteTimeout(365, TimeUnit.DAYS); in timeoutValidRange()
[all …]
/external/nos/host/android/citadel/validation/
Dcitadel_validation_tool.cpp61 bool ReadRegister(NuggetClientInterface& client, uint32_t address, uint32_t* value) { in ReadRegister() argument
67 const uint32_t status = client.CallApp(APP_ID_NUGGET, NUGGET_PARAM_READ32, buffer, &buffer); in ReadRegister()
84 bool WriteRegister(NuggetClientInterface& client, uint32_t address, uint32_t value) { in WriteRegister() argument
92 const uint32_t status = client.CallApp(APP_ID_NUGGET, NUGGET_PARAM_WRITE32, buffer, nullptr); in WriteRegister()
106 bool CheckRegisterInRange(NuggetClientInterface& client, uint32_t address, in CheckRegisterInRange() argument
109 if (!ReadRegister(client, address, &value)) { in CheckRegisterInRange()
124 bool CheckRegisterNotInRange(NuggetClientInterface& client, uint32_t address, in CheckRegisterNotInRange() argument
127 if (!ReadRegister(client, address, &value)) { in CheckRegisterNotInRange()
139 bool CyclesSinceBoot(NuggetClientInterface & client, uint32_t* cycles) { in CyclesSinceBoot() argument
142 if (client.CallApp(APP_ID_NUGGET, NUGGET_PARAM_CYCLES_SINCE_BOOT, in CyclesSinceBoot()
[all …]

12345678910>>...199