98bf12f99989ba2550fac83ee48ecbb6f1582f07 |
|
26-May-2016 |
Jeff Sharkey <jsharkey@android.com> |
Release AssetManagers when ejecting storage. When ejecting a storage device, the system process needs to rapidly release any open FDs to prevent itself from being killed by vold. This change examines all ResourceImpls cached inside the system process and evicts any that reference the storage device being ejected. (ResourcesManager will gladly recreate any evicted entries when asked again in the future.) Also replace broken use of WeakHashMap, since we want the values to be weak references, not the keys. Bug: 28867548 Change-Id: Ib9cfc66497149b6d3f8d49213e9779408a331d2a
/frameworks/base/core/java/android/content/res/ResourcesKey.java
|
082614c6a57a115ee0c5975e3579bf34a178c0f8 |
|
04-Mar-2016 |
Adam Lesinski <adamlesinski@google.com> |
Cache per-Activity Resources objects Each Activity has a Resources object whose underlying state changes when a configuration change occurs, both global and for that activity only (multi-window). Views and other clients of the Resources object can safely cache it knowing that they always have a reference to the most up-to-date resources. This applies to Resources.Theme objects as well. Bug:26854894 Change-Id: Ifd3da5a1086e17f747dfc265a447fe92a3a5c692
/frameworks/base/core/java/android/content/res/ResourcesKey.java
|
a01f48681cdaf34e0943609683d0bbb26e761a58 |
|
04-Aug-2015 |
Filip Gruszczynski <gruszczy@google.com> |
Make ResourceKey always use non-null configuration override. We don't differentiate between null conifguration and Configuration.EMPTY, but if ResourceKey uses both, it will produce different hashes and won't be equal. This CL makes ResourceKey always hold a non null reference to the Configuration object. We started delivering the configuration overrides in Ib2c7be0b427f5ce05e7a362bcdd496ddbc9164f0, which changed behavior from using always null, to using both null and Conifguration.EMPTY for empty confgiuration. Now we will switch to using only one value, which is Configuration.EMPTY. Bug: 22620824 Change-Id: I090fd90ac21a6b3ebc7f2974a91dd7c861af10d7
/frameworks/base/core/java/android/content/res/ResourcesKey.java
|
60454dbc4d815c90ff2713e224953d6547fc3ad5 |
|
24-Jan-2015 |
Wale Ogunwale <ogunwale@google.com> |
Support activities in the same process having different resources. Activities can be of various sizes in a multi-window environment. This change allows them to have override configurations that allows different resources to the loaded if needed. Bug: 19002213 Change-Id: Ib2c7be0b427f5ce05e7a362bcdd496ddbc9164f0
/frameworks/base/core/java/android/content/res/ResourcesKey.java
|
05e6dde3a0b9ba1eb3d13d511fe2e27a0d10c851 |
|
01-Sep-2014 |
Wink Saville <wink@google.com> |
ksd to lmp-sprout-dev Change-Id: I94eb65c62231b5831570bb0cbbbd9c916bee0a37
/frameworks/base/core/java/android/content/res/ResourcesKey.java
|
54130de7d2a0827179acaa35980dbce419cb4fca |
|
20-Aug-2014 |
Adam Lesinski <adamlesinski@google.com> |
Fix crash when launching Activities in 'android' package The LoadedApk for the 'android' package doesn't have a resource directory set. This is fine since the AssetManager loads the 'android' package's resources by default. This is a regression caused by https://googleplex-android-review.googlesource.com/#/c/525840/ Bug:17104110 Change-Id: I8a2158a75b4ff0e941837c11a2cb77a7aad09270
/frameworks/base/core/java/android/content/res/ResourcesKey.java
|
88c0589969b17e66559cd2f132094cdaa0ee351d |
|
28-Jun-2013 |
Craig Mautner <cmautner@google.com> |
Refactor ActivityThread cache - Baby step 1. Introduce ResourcesManager and ResourcesKey as standalone classes. Move DisplayMetrics and Resources HashMaps from ActivityThread to ResourcesManager. Change-Id: I20cc6c0dd1b74667354839e5ac9a660f4ee2d00d
/frameworks/base/core/java/android/content/res/ResourcesKey.java
|