From cafdc2e50da6bd3ea3fc3f25e1603fc321903c75 Mon Sep 17 00:00:00 2001 From: Suprabh Shukla Date: Mon, 15 Aug 2016 12:50:32 -0700 Subject: Changing user inactivity and warning dialog timeouts Increasing the inactivity timeout to 90 seconds to accomodate the longest app. demo video for retail. Also, removing the warning dialog by setting the countdown timeout to 0, so it can be re-enabled by overriding the value through gservices if needed. Bug: 30426773 Bug: 30866394 Change-Id: I6735943adfaf3d210ed9eb9163b5c7ce8dcf53ec --- .../java/com/android/server/retaildemo/RetailDemoModeService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/retaildemo/java/com/android/server/retaildemo/RetailDemoModeService.java b/services/retaildemo/java/com/android/server/retaildemo/RetailDemoModeService.java index 7525e87c0e12..6b273210263d 100644 --- a/services/retaildemo/java/com/android/server/retaildemo/RetailDemoModeService.java +++ b/services/retaildemo/java/com/android/server/retaildemo/RetailDemoModeService.java @@ -89,8 +89,8 @@ public class RetailDemoModeService extends SystemService { private static final long SCREEN_WAKEUP_DELAY = 2500; private static final long USER_INACTIVITY_TIMEOUT_MIN = 10000; - private static final long USER_INACTIVITY_TIMEOUT_DEFAULT = 30000; - private static final long WARNING_DIALOG_TIMEOUT_DEFAULT = 6000; + private static final long USER_INACTIVITY_TIMEOUT_DEFAULT = 90000; + private static final long WARNING_DIALOG_TIMEOUT_DEFAULT = 0; private static final long MILLIS_PER_SECOND = 1000; private static final int[] VOLUME_STREAMS_TO_MUTE = { -- cgit v1.2.3-59-g8ed1b