commit | 9ec6cdde9f8f22356dcc9f811d99ebf813194721 | [log] [tgz] |
---|---|---|
author | Dianne Hackborn <hackbod@google.com> | Thu May 31 10:57:54 2012 -0700 |
committer | Dianne Hackborn <hackbod@google.com> | Mon Jul 30 17:31:19 2012 -0700 |
tree | 93322ac5ce0a87965a664b9d54c2b269e550f193 | |
parent | 619e4dca8e9dfe4daa0754b0568a7590788cd50e [diff] [blame] |
Optimize memory use of IntentResolver. Use raw arrays instead of ArrayList for data structures. Temporarily includes a copy of the old intent resolver for validating the new implementation. Change-Id: I988925669b6686ac73b779be6cd6fe3a9fd86660
diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java index db24c9c..26ebb98 100644 --- a/services/java/com/android/server/am/ActivityManagerService.java +++ b/services/java/com/android/server/am/ActivityManagerService.java
@@ -513,6 +513,11 @@ } @Override + protected BroadcastFilter[] newArray(int size) { + return new BroadcastFilter[size]; + } + + @Override protected String packageForFilter(BroadcastFilter filter) { return filter.packageName; }