History log of /system/core/property_service/libpropertyinfoserializer/property_info_file.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
927c5d5fdc46eb60c28e569a922659733d927ada 11-Dec-2017 Tom Cherry <tomcherry@google.com> Introduce property types

Properties right now can take any format, but that makes it hard to
specify an API for these properties as Treble intends to do.
Therefore this change introduces the idea of property types, described below.

1) 'string' this is the default type and allows any property to be set.
2) 'bool' this allows only boolean values (true|false|1|0)
3) 'int' and 'uint' these allow signed and unsigned integer values
respectively.
4) 'double' this allows floating point numbers with double precision.
5) 'size' this allows for strings matching [0-9]+[gkm].
6) 'enum' this allows only a specific set of space deliminated values
to be set, e.g. 'enum allow these strings' only allows one of 'allow',
'these', or 'strings' to be set.

Bug: 70858511
Test: unit tests, test that properties are only set if their type matches
Change-Id: I7a6b00fb43ec630d1f56c9e9a1f1b61d3914f603
/system/core/property_service/libpropertyinfoserializer/property_info_file.cpp
4094e5ee2eacc11ce7f062ceb9bb9df9028f492f 12-Jan-2018 Tom Cherry <tomcherry@google.com> Rename property 'schema' to 'type'

Bug: 70858511
Test: boot
Change-Id: I8e17596ddd8393f245c7e02ff72765c84d3bb208
/system/core/property_service/libpropertyinfoserializer/property_info_file.cpp
919458c350563e578e2d55852fbae187756c130a 03-Jan-2018 Tom Cherry <tomcherry@google.com> Create a host side checker for property info file correctness

Bug: 36001741
Test: verify a valid property info file and fail due to various failures
Change-Id: Iadd38796aa619f87ec559fe5687bbe2009df8b2d
/system/core/property_service/libpropertyinfoserializer/property_info_file.cpp