diff options
author | Dave Mankoff <mankoff@google.com> | 2021-11-05 14:26:41 -0400 |
---|---|---|
committer | Dave Mankoff <mankoff@google.com> | 2021-11-05 15:27:09 -0400 |
commit | d1d488687bd26361f38cc810c8c17e796c86b82a (patch) | |
tree | 55feaf124b812329d96c5a4f80d0aababdb2cb82 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp | |
parent | 7c1c6a691ccfe6b517c5c9b6a2dfd68932678908 (diff) |
Communicate flags from systemui async
Flags are no longer statically compiled into the shared library.
A "GET_FLAGS" api has been added to SystemUI that returns a list
of Flag objects, as defined in SystemUI.
Communication happens via a simple "ordered" broadcast.
FlagManager#getFlagsFuture() returns a ListenableFuture pointing at
the list of flags. Be sure not to call Future#get on the main
thread - the call will block indefinitely as the broadcast receiver
is handled on the main thread.
Instead, add a listener to the future or call #get on a separate
thread.
Bug: 203548827
Test: manual
Change-Id: I8720e0905662a6371e7aabf04341df46b8943a9c
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions