Shorten interval between device scans and reduce duration of retries.

This CL modifies Manager to shorten the interval between device scans at
initialization or after resuming from suspend mode. That helps improve
the auto-connect performance. It also reduces the duration of retries as
the previous value is much longer than needed.

TEST=Observe interval between device scans and number of retries.

Change-Id: If31192a926f3d76ea583706b03a813312d2e02d2
Reviewed-by: Darin Petkov <>
Tested-by: Ben Chan <>
Commit-Ready: Ben Chan <>
diff --git a/ b/
index bcec695..7460383 100644
--- a/
+++ b/
@@ -17,8 +17,8 @@
 namespace {
-const int kMaxNumberOfDeviceScans = 10;
-const int kDefaultDeviceScanIntervalInSeconds = 3;
+const int kMaxNumberOfDeviceScans = 15;
+const int kDefaultDeviceScanIntervalInSeconds = 1;
 gboolean OnDeviceScanNeeded(gpointer data) {