From 3612487d618df84530645c45c7c3979383b39c12 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Thu, 8 Oct 2009 16:22:03 -0700 Subject: [PATCH 1/4] Fix issue #2174566: HOT STABILITY: NPE in activity manager - Don't crash if the service's app process doesn't have a thread (this can happen if we are currently starting the process and then try to start the service again). - Be more robust about deciding to start a service's process: try each time it is started; the startProcess call will take care of ignoring it if the process is already started. - Fix some issues where we would leave dead processes on the low memory list. Change-Id: I490e01ba7b45adc191bab7ace377b6873e284897 --- .../server/am/ActivityManagerService.java | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java index c611795f79a27..3460d3ac98a30 100644 --- a/services/java/com/android/server/am/ActivityManagerService.java +++ b/services/java/com/android/server/am/ActivityManagerService.java @@ -4556,7 +4556,7 @@ public final class ActivityManagerService extends ActivityManagerNative implemen long now = SystemClock.uptimeMillis(); for (i=0; i Date: Thu, 8 Oct 2009 18:34:57 -0700 Subject: [PATCH 2/4] Fix issue #2177262: Improve animations Slower is better. Change-Id: Id609f253e43814b4c7689ed9b076ef75f4e345a6 --- core/res/res/anim/lock_screen_behind_enter.xml | 2 +- core/res/res/anim/lock_screen_exit.xml | 2 +- core/res/res/values/config.xml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/res/res/anim/lock_screen_behind_enter.xml b/core/res/res/anim/lock_screen_behind_enter.xml index 9e03e15ab966a..b2432232ab31e 100644 --- a/core/res/res/anim/lock_screen_behind_enter.xml +++ b/core/res/res/anim/lock_screen_behind_enter.xml @@ -19,5 +19,5 @@ + android:duration="@android:integer/config_longAnimTime" /> diff --git a/core/res/res/anim/lock_screen_exit.xml b/core/res/res/anim/lock_screen_exit.xml index 0d329216f5d2b..58bc6dbf0f7ee 100644 --- a/core/res/res/anim/lock_screen_exit.xml +++ b/core/res/res/anim/lock_screen_exit.xml @@ -19,5 +19,5 @@ + android:duration="@android:integer/config_longAnimTime" /> diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 6fd7657979023..c87a11c6de539 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -35,10 +35,10 @@ 150 - 200 + 300 - 350 + 400 From 2c6c5e6e49795e6e24cd089c9018377d837ba931 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Thu, 8 Oct 2009 17:55:49 -0700 Subject: [PATCH 3/4] Fix issue #2176944: Need API so browser, others can determine memory size of device Change-Id: I65d91cdb70df91b67fe84297dd6a94d26a785131 --- api/current.xml | 11 ++++++++++ core/java/android/app/ActivityManager.java | 21 +++++++++++++++++++ .../server/am/ActivityManagerService.java | 2 ++ 3 files changed, 34 insertions(+) diff --git a/api/current.xml b/api/current.xml index f4d81c7b02ac7..b72fea0e91c20 100644 --- a/api/current.xml +++ b/api/current.xml @@ -17299,6 +17299,17 @@ visibility="public" > + + Date: Thu, 8 Oct 2009 18:49:53 -0700 Subject: [PATCH 4/4] Fix for 2177367: Reduce duration of vibrate in RotaryLockScreen BUG=2177367 --- core/java/com/android/internal/widget/RotarySelector.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/com/android/internal/widget/RotarySelector.java b/core/java/com/android/internal/widget/RotarySelector.java index e103a5b07d9ec..a2a38dcc9b510 100644 --- a/core/java/com/android/internal/widget/RotarySelector.java +++ b/core/java/com/android/internal/widget/RotarySelector.java @@ -106,8 +106,8 @@ public class RotarySelector extends View { // Vibration (haptic feedback) private Vibrator mVibrator; - private static final long VIBRATE_SHORT = 30; // msec - private static final long VIBRATE_LONG = 60; // msec + private static final long VIBRATE_SHORT = 20; // msec + private static final long VIBRATE_LONG = 20; // msec /** * The drawable for the arrows need to be scrunched this many dips towards the rotary bg below