summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorDave Mankoff <mankoff@google.com>2021-07-27 13:10:42 -0400
committerDave Mankoff <mankoff@google.com>2021-08-04 13:46:45 -0400
commit06037712dd9bc6d5d2111b94991622f9c6bf42b4 (patch)
treec9a817b8ffc74e9edde04d5a88791853ff4090c0 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parent8661d451f99c73e5b3082cc523574254bf3df282 (diff)
Add new Flag class. New FlagReaderPlugin.
This CL is a stepping stone towards a more complete flag system. This cl allows for the definition of flags within systemui, each of which have a unique id and a default value. Methods for retrieving the value of a flag are defined. By default, reading a flag always returns its default value. A FlagReaderPlugin is also defined that, when loaded, allows for returning alternate values for a given flag. The details of how an alternate value are determined are left for the plugin to decide. The plugin interface should be considered incomplete with this cl. Methods for reading flags are defined, but hooks for knowing when flags change (and hooks for knowing when a flag plugin has been loaded), are not defined. Moreover, the flag plugin is not loaded early in the process with this cl, so anyone who reads flags before the plugin is may misss out on the values they care about. More changes to come. Bug: 194781951 Test: atest SystemUITests Change-Id: I888d5eba82359a37878a3a4d4747990b79a77804
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions