History log of /packages/apps/StorageManager/src/com/android/storagemanager/utils/PreferenceListCache.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
21399ab1f0995e4890cafe74016d8269b50db064 29-Aug-2016 Daniel Nishi <dhnishi@google.com> Harden the PreferenceListCache against invalid keys.

If multiple preferences have the same key, we can no longer ensure
the PreferenceListCache can return the correct preference for the
duplicated key. If the preference has no key, we similarly cannot
guarantee correctness.

By throwing an exception in this case, we stop an app from getting
into an invalid state.

Bug: 31158678
Test: m -j32 RunStorageManagerRoboTests
Change-Id: I371b316e72328450b569293ec8735734a85b112a
/packages/apps/StorageManager/src/com/android/storagemanager/utils/PreferenceListCache.java
80f8ec612704639f209346f09c208eb3fc8cab56 19-Aug-2016 Daniel Nishi <dhnishi@google.com> Add tests for the PreferenceListCache.

This patch also moves the PreferenceListCache into the utils
package.

Bug: 30900642
Test: m -j32 RunStorageManagerRobotests
Change-Id: I32a33a1720622bf5204841830e22f14f6e2c8f10
/packages/apps/StorageManager/src/com/android/storagemanager/utils/PreferenceListCache.java