commit | a0284ace424d1653f36208da24b5ce878d393c7e | [log] [tgz] |
---|---|---|
author | Alex Deymo <deymo@google.com> | Fri Jul 22 12:51:41 2016 -0700 |
committer | Treehugger Robot <treehugger-gerrit@google.com> | Mon Jul 25 22:42:42 2016 +0000 |
tree | 90bdcd4c9a578a27be5e8808ca9e850b64742b29 | |
parent | ade107995c68a10f0b2ba23368eeb002efe52771 [diff] |
Implement a memory-based Prefs class. When the /data storage is not available, we need to store the required prefs in memory to keep all the code working. This patch splits the Prefs class functionality and implements a MemoryPrefs class which stores all the values in memory. Bug: 27178350 TEST=Added unittest for the MemoryPrefs. Change-Id: I11f871ddb73e2f33db4101705efb293e1cbe0023