Lines Matching refs:sinfo
345 std::unique_ptr<state_info> sinfo(reinterpret_cast<state_info*>(data));
347 D("wait_for_state %d", sinfo->state);
352 const char* serial = sinfo->serial.length() ? sinfo->serial.c_str() : NULL;
353 atransport* t = acquire_one_transport(sinfo->transport_type, serial, sinfo->transport_id,
355 if (t != nullptr && (sinfo->state == kCsAny || sinfo->state == t->GetConnectionState())) {
451 std::unique_ptr<state_info> sinfo(new state_info);
452 if (sinfo == nullptr) {
457 if (serial) sinfo->serial = serial;
458 sinfo->transport_id = transport_id;
462 sinfo->transport_type = kTransportLocal;
465 sinfo->transport_type = kTransportUsb;
468 sinfo->transport_type = kTransportAny;
474 sinfo->state = kCsDevice;
476 sinfo->state = kCsRecovery;
478 sinfo->state = kCsSideload;
480 sinfo->state = kCsBootloader;
482 sinfo->state = kCsAny;
487 int fd = create_service_thread("wait", wait_for_state, sinfo.get());
489 sinfo.release();