android_system_core/adb/client
Josh Gao 1115e29faf adb: fix timeout-related test flakiness.
When running tests against cuttlefish, `adb root` sometimes flakes
because of a 6 second timeout in wait_for_device, which can get
triggered when adbd's restart gets throttled by init. The adb client
would notice that the socket went down, try to reconnect and fail
because adbd still hasn't started yet, and then wait up to 10 seconds to
reconnect, before which the `adb root` invocation would have failed due
to timeout. Increase the timeout to be long enough to handle this, and
also reduce the interval of reconnections to speed things up when we're
in this scenario.

Bug: http://b/170707786
Test: while true; do adb root; adb wait-for-device; adb unroot; adb wait-for-device; done
Change-Id: I140d721dfcfd635d45813a55990684a25e32228c
2020-10-15 18:46:45 -07:00
..
pairing [adb] generic "cast_handle_to_int" function 2020-03-26 22:25:46 -07:00
adb_client.cpp adb: don't cache failure to get features. 2020-05-15 16:22:31 -07:00
adb_client.h [adb client] Add "mdns services" command. 2020-04-22 08:43:15 -07:00
adb_install.cpp install-multi-package fix 2020-07-16 04:57:07 +00:00
adb_install.h Adds atomic install support to adb 2019-01-11 18:13:36 +00:00
adb_wifi.cpp 'adb pair' by mdns instance name. 2020-05-18 14:23:01 -07:00
auth.cpp Fix quoting of paths in auth code. 2020-07-15 11:55:40 -07:00
bugreport.cpp Clarify adb bugreport failures on pre-N devices. 2020-10-06 13:53:38 -07:00
bugreport.h adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
commandline.cpp adb: fix timeout-related test flakiness. 2020-10-15 18:46:45 -07:00
commandline.h adb: report error in copy_to_file. 2020-02-04 13:47:57 -08:00
console.cpp NFC: Fix potentially uninitialized 'port' variable. 2019-05-09 12:55:41 -07:00
fastdeploy.cpp adb: add dry-run option to push/sync. 2020-04-02 17:11:08 -07:00
fastdeploy.h FastDeploy refactor: 2+GB APK support, optimizations, tests. 2019-10-02 13:25:03 -07:00
fastdeploycallbacks.cpp FastDeploy refactor: 2+GB APK support, optimizations, tests. 2019-10-02 13:25:03 -07:00
fastdeploycallbacks.h FastDeploy refactor: 2+GB APK support, optimizations, tests. 2019-10-02 13:25:03 -07:00
file_sync_client.cpp adb: fix push --sync with multiple inputs. 2020-09-08 18:07:47 -07:00
file_sync_client.h adb: add dry-run option to push/sync. 2020-04-02 17:11:08 -07:00
incremental.cpp Revert "[adb] fix signature check" 2020-08-14 23:45:00 +00:00
incremental.h Passing additional flags to incremental installation. 2020-05-14 13:58:47 -07:00
incremental_server.cpp Signature checks. 2020-06-02 23:12:58 +00:00
incremental_server.h [adb data server] wait for installation results before terminates 2020-03-24 10:27:47 -07:00
incremental_utils.cpp adb: switch to ZipEntry64. 2020-09-15 14:31:08 -07:00
incremental_utils.h Signature checks. 2020-06-02 23:12:58 +00:00
line_printer.cpp adb: win32: LinePrinter Unicode support 2018-09-02 16:27:12 -07:00
line_printer.h adb: don't spew push/pull progress to dumb terminals. 2018-08-22 17:28:33 -07:00
main.cpp adbd: avoid compiling more code in the daemon. 2020-04-27 14:38:28 -07:00
mdns_utils.cpp Add mDNS service instance name parser. 2020-05-07 10:25:15 -07:00
mdns_utils.h Add mDNS service instance name parser. 2020-05-07 10:25:15 -07:00
mdns_utils_test.cpp Add mDNS service instance name parser. 2020-05-07 10:25:15 -07:00
transport_local.cpp adb: split transport_local.cpp into client/daemon. 2020-04-22 23:15:02 -07:00
transport_mdns.cpp [adb] Fix crash in mdns service removal. 2020-07-01 15:06:33 -07:00
transport_usb.cpp Move adbd's legacy USB implementation to fastboot. 2020-03-30 16:43:06 -07:00
usb.h Move adbd's legacy USB implementation to fastboot. 2020-03-30 16:43:06 -07:00
usb_dispatch.cpp Move adbd's legacy USB implementation to fastboot. 2020-03-30 16:43:06 -07:00
usb_libusb.cpp Move adbd's legacy USB implementation to fastboot. 2020-03-30 16:43:06 -07:00
usb_linux.cpp Move adbd's legacy USB implementation to fastboot. 2020-03-30 16:43:06 -07:00
usb_osx.cpp Move adbd's legacy USB implementation to fastboot. 2020-03-30 16:43:06 -07:00
usb_windows.cpp Move adbd's legacy USB implementation to fastboot. 2020-03-30 16:43:06 -07:00