summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2013-05-08 16:43:58 -0700
committerAmith Yamasani <yamasani@google.com>2013-05-09 14:44:38 -0700
commit6fc1d4e8e6549b0d58ea23b4dd3f26329ec19f38 (patch)
treeed2e6217249eb1305202fcbbecbb67c55c5f4e9e /services
parente2322bdd7865552aa31f93bbf4e60d4d9a7d0973 (diff)
downloadframeworks_base-6fc1d4e8e6549b0d58ea23b4dd3f26329ec19f38.zip
frameworks_base-6fc1d4e8e6549b0d58ea23b4dd3f26329ec19f38.tar.gz
frameworks_base-6fc1d4e8e6549b0d58ea23b4dd3f26329ec19f38.tar.bz2
Cache the scaled avatar drawables in the keyguard user switcher
Loading the avatar icons and drawing them into the sized bitmap turns out to be quite expensive and the cost increases with number of users. Caching them shaves off several hundred milliseconds from Keyguard inflation time during user switching on the lockscreen. For instance, 15ms vs. 750ms with 3 avatars on a certain 7" tablet. Bug: 7986933 Change-Id: I3e2065bfa25aa263133ba204ca364c3b04d7c0ff
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/pm/UserManagerService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/java/com/android/server/pm/UserManagerService.java b/services/java/com/android/server/pm/UserManagerService.java
index 11c6dab..1323c93 100644
--- a/services/java/com/android/server/pm/UserManagerService.java
+++ b/services/java/com/android/server/pm/UserManagerService.java
@@ -296,7 +296,7 @@ public class UserManagerService extends IUserManager.Stub {
Intent changedIntent = new Intent(Intent.ACTION_USER_INFO_CHANGED);
changedIntent.putExtra(Intent.EXTRA_USER_HANDLE, userId);
changedIntent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
- mContext.sendBroadcastAsUser(changedIntent, new UserHandle(userId));
+ mContext.sendBroadcastAsUser(changedIntent, UserHandle.ALL);
}
@Override