commit | e6eef83c63a50f043b2c4a85175030b6d8b6b91d | [log] [tgz] |
---|---|---|
author | Alex Deymo <deymo@google.com> | Fri Jul 22 12:51:41 2016 -0700 |
committer | Alex Deymo <deymo@google.com> | Wed Aug 03 21:14:34 2016 -0700 |
tree | a0771b0ca4f77b1ea48cc90091fa5b8bc52daa57 | |
parent | 35bec180ab6e9948a048a44c2a79f38df5c7a322 [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. (cherry picked from commit a0284ace424d1653f36208da24b5ce878d393c7e) Change-Id: Iac6002b5c9b6c6f2cfd2d02f0a2aa6a4a8970404