summaryrefslogtreecommitdiffstats
path: root/init/persistent_properties_test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* switch to using android-base/file.h instead of android-base/test_utils.hMark Salyzyn2018-11-141-1/+1
| | | | | | Test: compile Bug: 119313545 Change-Id: I4f7ad84743e974b4b4d1d7256088f6c8b749a237
* init: fix typoTom Cherry2017-09-191-1/+1
| | | | | Test: build Change-Id: I2f6ff60356087f9fd6c6f24e3923d70b9e93dcf8
* init: use protobuf for serialization of persistent propertiesTom Cherry2017-09-191-68/+51
| | | | | | | | | | I probably should have done this from the start... There's a shim to convert my manually serialized format to protobuf, and since that has not yet shipped, it'll be reverted in a short period of time. Test: init unit tests Test: upgrade from legacy and intermediate property formats successfully Change-Id: Iad25f6c30d0b44d294230a53dd6876222d1c785b
* use a single file for storing persistent propertiesTom Cherry2017-08-291-0/+173
We have seen that storing persistent properties in separate files causes increased boot latency compared to if they were stored in a single contiguous file. This change creates a simple format for a contiguously stored property file, and adds the support for arbitrary characters in the names of persistent properties, which previously had been restricted. It has a mechanism for converting older devices to the new format as well. Bug: 64392887 Test: boot bullhead with new properties Test: boot bullhead and verify old properties are converted to the new property file Test: corrupt property file and ensure that it gets recovered from memory Test: new unit tests Change-Id: I60d8201d655ce5c97b33faae81d5ca8dbbb21a14