Searched defs:serial (Results 1 - 14 of 14) sorted by relevance

/system/core/liblog/
H A Dlog_is_loggable.c28 uint32_t serial; member in struct:cache
34 uint32_t serial; local
43 serial = __system_property_serial(cache->pinfo);
44 if (serial == cache->serial) {
47 cache->serial = serial;
100 tag_cache[i].serial = -1;
/system/core/toolbox/
H A Dwatchprops.c61 unsigned *serial; local
64 serial = hashmapGet(watchlist, name);
65 if (!serial) {
70 if (*serial != tmp) {
71 *serial = tmp;
79 unsigned serial; local
87 for(serial = 0;;) {
88 serial = __system_property_wait_any(serial);
/system/core/adb/
H A Dadb_client.cpp67 void adb_set_transport(transport_type type, const char* serial) argument
70 __adb_serial = serial;
85 // The user specified a serial number; is it an emulator?
H A Dtransport_local.cpp109 std::string serial = android::base::StringPrintf("emulator-%d", console_port); local
110 register_socket_transport(fd, serial.c_str(), adb_port, 1);
H A Dservices.cpp518 char* serial; member in struct:state_info
529 atransport* t = acquire_one_transport(sinfo->state, sinfo->transport, sinfo->serial, &error_msg);
536 if (sinfo->serial)
537 free(sinfo->serial);
562 std::string serial = android::base::StringPrintf("%s:%d", hostname.c_str(), port); local
575 int ret = register_socket_transport(fd, serial.c_str(), port, 0);
578 *response = android::base::StringPrintf("already connected to %s", serial.c_str());
580 *response = android::base::StringPrintf("connected to %s", serial.c_str());
648 asocket* host_service_to_socket(const char* name, const char *serial) argument
659 if (serial)
[all...]
H A Dsockets.cpp455 static asocket *create_host_service_socket(const char *name, const char* serial) argument
459 s = host_service_to_socket(name, serial);
655 skipping over the 'serial' parameter in the ADB protocol,
693 char* serial = NULL; local
739 if(!strncmp(service, "host-serial:", strlen("host-serial:"))) {
741 service += strlen("host-serial:");
743 // serial number should follow "host:" and could be a host:port string.
747 serial = service;
771 if(handle_host_request(service, ttype, serial,
[all...]
H A Dusb_osx.cpp119 char serial[256]; local
239 // skip first word, and copy the rest to the serial string,
243 serial[i] = buffer[i + 1];
244 serial[i] = 0;
252 DBG("INFO: Found vid=%04x pid=%04x serial=%s\n", vendor, product,
253 serial);
264 register_usb_transport(handle, (serial[0] ? serial : NULL), devpath, 1);
H A Dadb.cpp485 p->msg.arg0, p->msg.arg1, s->peer->id, p->msg.arg1, t->serial);
506 p->msg.arg1, t->serial, s->peer->transport->serial);
699 int handle_forward_request(const char* service, transport_type ttype, char* serial, int reply_fd) argument
760 transport = acquire_one_transport(CS_ANY, ttype, serial, &error_msg);
799 int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s) argument
811 // "transport:" is used for switching transport with a specified serial number
826 serial = service;
830 transport = acquire_one_transport(CS_ANY, type, serial, &error_msg);
859 char* serial local
[all...]
H A Dadb.h197 char *serial; member in struct:atransport
277 asocket *host_service_to_socket(const char* name, const char *serial);
287 int handle_forward_request(const char* service, transport_type ttype, char* serial, int reply_fd);
374 int handle_host_request(char *service, transport_type ttype, char* serial, int reply_fd, asocket *s);
H A Dusb_linux.cpp631 // Read the device's serial number.
633 "/sys/bus/usb/devices/%s/serial", dev_path + 4);
634 std::string serial; local
635 if (!android::base::ReadFileToString(serial_path, &serial)) {
637 // We don't actually want to treat an unknown serial as an error because
638 // devices aren't able to communicate a serial number in early bringup.
640 serial = "";
642 serial = android::base::Trim(serial);
652 register_usb_transport(usb, serial
[all...]
H A Dcommandline.cpp50 static int install_app(transport_type t, const char* serial, int argc, const char** argv);
51 static int install_multiple_app(transport_type t, const char* serial, int argc, const char** argv);
52 static int uninstall_app(transport_type t, const char* serial, int argc, const char** argv);
84 " serial number or qualifier. Overrides ANDROID_SERIAL\n"
120 " <serial> \" \" <local> \" \" <remote> \"\\n\"\n"
205 " adb get-serialno - prints: <serial-number>\n"
235 " ANDROID_SERIAL - The serial number to connect to. -s takes priority over this if given.\n"
435 static std::string format_host_command(const char* command, transport_type type, const char* serial) { argument
436 if (serial) {
437 return android::base::StringPrintf("host-serial
677 wait_for_device(const char* service, transport_type t, const char* serial) argument
701 send_shell_command(transport_type transport_type, const char* serial, const std::string& command) argument
723 logcat(transport_type transport, const char* serial, int argc, const char** argv) argument
959 const char* serial = NULL; local
1489 pm_command(transport_type transport, const char* serial, int argc, const char** argv) argument
1501 uninstall_app(transport_type transport, const char* serial, int argc, const char** argv) argument
1520 delete_file(transport_type transport, const char* serial, char* filename) argument
1537 install_app(transport_type transport, const char* serial, int argc, const char** argv) argument
1591 install_multiple_app(transport_type transport, const char* serial, int argc, const char** argv) argument
[all...]
H A Dtransport.cpp87 D("%s: run_transport_disconnects\n", t->serial);
195 if(read_packet(fd, t->serial, &p)){
196 D("%s: failed to read packet from transport socket on fd %d\n", t->serial, fd);
228 if(write_packet(t->transport_socket, t->serial, &p)){
252 t->serial, t->fd, t->sync_token + 1);
258 if(write_packet(t->fd, t->serial, &p)) {
260 D("%s: failed to write SYNC packet\n", t->serial);
264 D("%s: data pump started\n", t->serial);
270 t->serial);
271 if(write_packet(t->fd, t->serial,
743 acquire_one_transport(int state, transport_type ttype, const char* serial, std::string* error_out) argument
873 const char* serial = t->serial; local
917 register_socket_transport(int s, const char *serial, int port, int local) argument
966 find_transport(const char *serial) argument
1020 register_usb_transport(usb_handle *usb, const char *serial, const char *devpath, unsigned writeable) argument
[all...]
/system/core/include/system/
H A Dradio.h138 char serial[RADIO_STRING_LEN_MAX]; /* serial number (for subscription services) */ member in struct:radio_hal_properties
154 char serial[RADIO_STRING_LEN_MAX]; member in struct:radio_properties
/system/core/fastboot/
H A Dfastboot.cpp62 static const char *serial = 0; variable
211 // require matching serial number or device path if requested
220 return match_fastboot_with_serial(info, serial);
226 const char* serial = info->serial_number; local
228 serial = "no permissions"; // like "adb devices"
230 if (!serial[0]) {
231 serial = "????????????";
235 printf("%s\tfastboot\n", serial);
237 printf("%-22s fastboot\n", serial);
239 printf("%-22s fastboot %s\n", serial, inf
[all...]

Completed in 255 milliseconds