platform_system_core/adb/client
Josh Gao fd713e53e8 adb: wait for devices to come up instead of sleeping for 3s.
Replace a hard-coded 3 second sleep with logic to wait until we've
scanned USB devices once and they've all come online.

Before:
    adb shell true  0.00s user 0.00s system 0% cpu 3.047 total

After:
    adb shell true  0.00s user 0.00s system 9% cpu 0.041 total

Bug: http://b/37869663
Test: `time adb shell true` after adb kill-server
Change-Id: I251d42afb885908ed9d03167287594ea16650d3f
2017-05-04 16:03:12 -07:00
..
main.cpp adb: wait for devices to come up instead of sleeping for 3s. 2017-05-04 16:03:12 -07:00
usb_dispatch.cpp adb: use the actual wMaxPacketSize for usb endpoints. 2017-05-03 12:32:39 -07:00
usb_libusb.cpp adb: wait for devices to come up instead of sleeping for 3s. 2017-05-04 16:03:12 -07:00
usb_linux.cpp adb: use the actual wMaxPacketSize for usb endpoints. 2017-05-03 12:32:39 -07:00
usb_osx.cpp adb: make darwin build with thread safety analysis. 2017-05-04 16:03:12 -07:00
usb_windows.cpp adb: use the actual wMaxPacketSize for usb endpoints. 2017-05-03 12:32:39 -07:00