From d9159854149c98ca321027e955b00329ac95217d Mon Sep 17 00:00:00 2001 From: Caitlin Cassidy Date: Mon, 1 Aug 2022 19:15:38 +0000 Subject: [PATCH] [Media TTT] Increase the default timeout to 10s, and the timeout for the "transfer started but not finished" state to 30s. Fixes: 240306550 Test: manual Change-Id: I27d2e4aecbc26c2b7f990c4ee83106c6c80fe443 --- .../systemui/media/taptotransfer/common/ChipInfoCommon.kt | 2 +- .../systemui/media/taptotransfer/sender/ChipStateSender.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/media/taptotransfer/common/ChipInfoCommon.kt b/packages/SystemUI/src/com/android/systemui/media/taptotransfer/common/ChipInfoCommon.kt index e95976f555f88..a29c5883118cb 100644 --- a/packages/SystemUI/src/com/android/systemui/media/taptotransfer/common/ChipInfoCommon.kt +++ b/packages/SystemUI/src/com/android/systemui/media/taptotransfer/common/ChipInfoCommon.kt @@ -27,4 +27,4 @@ interface ChipInfoCommon { fun getTimeoutMs(): Long } -const val DEFAULT_TIMEOUT_MILLIS = 4000L +const val DEFAULT_TIMEOUT_MILLIS = 10000L diff --git a/packages/SystemUI/src/com/android/systemui/media/taptotransfer/sender/ChipStateSender.kt b/packages/SystemUI/src/com/android/systemui/media/taptotransfer/sender/ChipStateSender.kt index cd86fff1c6f8e..a153cb6c0d31b 100644 --- a/packages/SystemUI/src/com/android/systemui/media/taptotransfer/sender/ChipStateSender.kt +++ b/packages/SystemUI/src/com/android/systemui/media/taptotransfer/sender/ChipStateSender.kt @@ -243,6 +243,6 @@ enum class ChipStateSender( // Give the Transfer*Triggered states a longer timeout since those states represent an active // process and we should keep the user informed about it as long as possible (but don't allow it to // continue indefinitely). -private const val TRANSFER_TRIGGERED_TIMEOUT_MILLIS = 15000L +private const val TRANSFER_TRIGGERED_TIMEOUT_MILLIS = 30000L private const val TAG = "ChipStateSender"