Home | History | Annotate | Download | only in adb

Lines Matching refs:buffer

736 // Write a single line describing a listener to a user-provided buffer.
739 // If |buffer| is NULL, does not write but returns required size.
740 static int format_listener(alistener* l, char* buffer, size_t buffer_len) {
749 if (buffer != NULL) {
750 snprintf(buffer, buffer_len, "%s %s %s\n",
759 // user-provided buffer. Appends a trailing zero, even in case of
761 // If |buffer| is NULL, does not write but returns required size.
1314 ** AID_GRAPHICS to access the frame buffer
1404 void connect_device(char* host, char* buffer, int buffer_size)
1414 snprintf(buffer, buffer_size, "bad host name %s", host);
1420 snprintf(buffer, buffer_size, "bad port number %s", portstr);
1429 snprintf(buffer, buffer_size, "already connected to %s", serial);
1435 snprintf(buffer, buffer_size, "unable to connect to %s:%d", host, port);
1443 snprintf(buffer, buffer_size, "connected to %s", serial);
1446 void connect_emulator(char* port_spec, char* buffer, int buffer_size)
1450 snprintf(buffer, buffer_size,
1462 snprintf(buffer, buffer_size,
1477 snprintf(buffer, buffer_size,
1486 snprintf(buffer, buffer_size, "Cannot accept more emulators.");
1492 snprintf(buffer, buffer_size,
1495 snprintf(buffer, buffer_size,
1548 char buffer[4096];
1552 memset(buffer, 0, sizeof(buffer));
1554 list_transports(buffer, sizeof(buffer), use_long);
1555 snprintf(buf, sizeof(buf), "OKAY%04x%s",(unsigned)strlen(buffer),buffer);
1564 char buffer[4096];
1567 connect_emulator(host + 4, buffer, sizeof(buffer));
1569 connect_device(host, buffer, sizeof(buffer));
1572 snprintf(buf, sizeof(buf), "OKAY%04x%s",(unsigned)strlen(buffer), buffer);
1579 char buffer[4096];
1580 memset(buffer, 0, sizeof(buffer));
1597 snprintf(buffer, sizeof(buffer), "No such device %s", serial);
1601 snprintf(buf, sizeof(buf), "OKAY%04x%s",(unsigned)strlen(buffer), buffer);
1649 char* buffer = malloc(buffer_size+1);
1650 (void) format_listeners(buffer, buffer_size+1);
1653 writex(reply_fd, buffer, buffer_size);
1654 free(buffer);