summaryrefslogtreecommitdiff
path: root/frameworks/base/base.git-2.patch
blob: 6d599358b13a1894e89edc9e0200a25387a52a60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From f2b54f715e2054761c149a5c7429f8ff738a9571 Mon Sep 17 00:00:00 2001
From: Amit Pundir <amit.pundir@linaro.org>
Date: Mon, 19 Aug 2013 15:04:35 +0530
Subject: [PATCH] ActivityManagerService: Increase key dispatching timeout
 value

Increase key dispatching timeout value for Fast Models to make sure
that applications e.g. Monkey wait for enough time before raising ANR
(Application Not Responding) errors.

Change-Id: Id11267567c5ef49ee578048c9bc6d98e8b153836
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
---
 .../android/server/am/ActivityManagerService.java  |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java
index 9201b1d..3ae4255 100644
--- a/services/java/com/android/server/am/ActivityManagerService.java
+++ b/services/java/com/android/server/am/ActivityManagerService.java
@@ -300,10 +300,10 @@ public final class ActivityManagerService extends ActivityManagerNative
     static final int BROADCAST_BG_TIMEOUT = 60*1000;
 
     // How long we wait until we timeout on key dispatching.
-    static final int KEY_DISPATCHING_TIMEOUT = 5*1000;
+    static final int KEY_DISPATCHING_TIMEOUT = 5*1000*10;
 
     // How long we wait until we timeout on key dispatching during instrumentation.
-    static final int INSTRUMENTATION_KEY_DISPATCHING_TIMEOUT = 60*1000;
+    static final int INSTRUMENTATION_KEY_DISPATCHING_TIMEOUT = 60*1000*10;
 
     // Amount of time we wait for observers to handle a user switch before
     // giving up on them and unfreezing the screen.
-- 
1.7.9.5