Home | History | Annotate | Download | only in adb

Lines Matching refs:service

74     std::string service;
76 service += "host:transport-id:";
77 service += std::to_string(__adb_transport_id);
79 service += "host:transport:";
80 service += __adb_serial;
97 service += "host:";
98 service += transport_type;
101 if (!SendProtocolString(fd, service)) {
138 static int _adb_connect(const std::string& service, std::string* error) {
139 D("_adb_connect: %s", service.c_str());
140 if (service.empty() || service.size() > MAX_PAYLOAD) {
141 *error = android::base::StringPrintf("bad service name length (%zd)",
142 service.size());
154 if (memcmp(&service[0], "host", 4) != 0 && switch_socket_transport(fd, error)) {
158 if (!SendProtocolString(fd, service)) {
192 int adb_connect(const std::string& service, std::string* error) {
196 D("adb_connect: service %s", service.c_str());
237 // If fd is -1 check for "unknown host service" which would
240 if (*error != "unknown host service") {
254 if (service == "host:start-server") {
258 fd = _adb_connect(service, error);
270 bool adb_command(const std::string& service) {
272 int fd = adb_connect(service, &error);
289 bool adb_query(const std::string& service, std::string* result, std::string* error) {
290 D("adb_query: %s", service.c_str());
291 int fd = adb_connect(service, error);