From 2833f45b3ff6e90b87fc5a36749895273dae57ac Mon Sep 17 00:00:00 2001 From: Fabian Kozynski Date: Fri, 14 Feb 2020 16:50:04 -0500 Subject: [PATCH] Increase Load timeout This is a temporary increase. It will go down once the publisher mechanism for notifying errors is established. Test: manual Bug: 149583239 Change-Id: Iaa0995e2baf058649e9dfa119a360e7c09f3558f --- .../controls/controller/ControlsProviderLifecycleManager.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/controls/controller/ControlsProviderLifecycleManager.kt b/packages/SystemUI/src/com/android/systemui/controls/controller/ControlsProviderLifecycleManager.kt index e09d20b5069e9..9ec71c754bb5b 100644 --- a/packages/SystemUI/src/com/android/systemui/controls/controller/ControlsProviderLifecycleManager.kt +++ b/packages/SystemUI/src/com/android/systemui/controls/controller/ControlsProviderLifecycleManager.kt @@ -86,7 +86,7 @@ class ControlsProviderLifecycleManager( private const val MSG_ACTION = 2 private const val MSG_UNBIND = 3 private const val BIND_RETRY_DELAY = 1000L // ms - private const val LOAD_TIMEOUT = 5000L // ms + private const val LOAD_TIMEOUT_SECONDS = 30L // seconds private const val MAX_BIND_RETRIES = 5 private const val MAX_CONTROLS_REQUEST = 100000L private const val DEBUG = true @@ -231,7 +231,7 @@ class ControlsProviderLifecycleManager( // Don't accept load callbacks after this lastLoadCallback = null unbindService() - }, LOAD_TIMEOUT, TimeUnit.MILLISECONDS) + }, LOAD_TIMEOUT_SECONDS, TimeUnit.SECONDS) invokeOrQueue(::load, Message.Load) }