From 33dba2dfaae43c1669d0b7070f4a888313c9ef37 Mon Sep 17 00:00:00 2001 From: Roshan Pius Date: Tue, 30 Jun 2020 11:58:07 -0700 Subject: WifiDiagnostics: Reduce timeout for logcat collection Bug: 160135978 Test: verified logcat collection of wifi connection failure. Change-Id: Idb423caf63262e5dc8b5b7e4387617e81dcfe596 --- service/java/com/android/server/wifi/WifiDiagnostics.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/java/com/android/server/wifi/WifiDiagnostics.java b/service/java/com/android/server/wifi/WifiDiagnostics.java index db9b075a4..6fc75c6ea 100644 --- a/service/java/com/android/server/wifi/WifiDiagnostics.java +++ b/service/java/com/android/server/wifi/WifiDiagnostics.java @@ -110,10 +110,10 @@ class WifiDiagnostics extends BaseWifiDiagnostics { public static final long MIN_DUMP_TIME_WINDOW_MILLIS = 10 * 60 * 1000; // 10 mins // Timeout for logcat process termination - private static final long LOGCAT_PROC_TIMEOUT_MILLIS = 500; + private static final long LOGCAT_PROC_TIMEOUT_MILLIS = 50; // Timeout for logcat read from input/error stream each. @VisibleForTesting - public static final long LOGCAT_READ_TIMEOUT_MILLIS = 500; + public static final long LOGCAT_READ_TIMEOUT_MILLIS = 50; private long mLastBugReportTime; -- cgit v1.2.3