Lines Matching defs:device_serial
104 void HandleRequest(const std::string& device_serial,
114 base::Unretained(this), device_serial, device_port, host_port,
158 void HandleRequestOnInternalThread(const std::string& device_serial,
162 const int adb_port = GetAdbPortForDevice(device_serial);
180 RemoveAdbPortForDeviceIfNeeded(device_serial);
223 void RemoveAdbPortForDeviceIfNeeded(const std::string& device_serial) {
225 device_serial_to_adb_port_map_.find(device_serial);
239 LOG(INFO) << "Device " << device_serial << " has no more ports.";
240 device_serial_to_adb_port_map_.erase(device_serial);
241 const std::string serial_part = device_serial.empty() ?
242 std::string() : std::string("-s ") + device_serial;
257 LOG(INFO) << "Device " << device_serial << " port " << port << " unmap "
266 int GetAdbPortForDevice(const std::string& device_serial) {
268 device_serial_to_adb_port_map_.find(device_serial);
275 const std::string serial_part = device_serial.empty() ?
276 std::string() : std::string("-s ") + device_serial;
285 device_serial_to_adb_port_map_[device_serial] = port;
334 std::string device_serial;
335 CHECK(pickle_it.ReadString(&device_serial));
345 device_serial, device_port, host_port, client_socket.Pass());