summaryrefslogtreecommitdiff
path: root/libs/androidfw/Util.cpp
diff options
context:
space:
mode:
author Sarp Misoglu <sarpm@google.com> 2022-10-03 16:10:57 +0100
committer Sarp Misoglu <sarpm@google.com> 2022-11-15 16:38:45 +0000
commita7de6bf8bf195d300871dcd45d503240de32ba35 (patch)
tree22ad9116c30392196d5a7e71cc28a9ab8b83eee3 /libs/androidfw/Util.cpp
parent90e81227d9857041b6fdbc8d6ed411504bcf3602 (diff)
Add a class for retrieving server flag values
Also adding two flags for previously hardcoded timeout values to test out the new flag system. The reason for adding a util class is to avoid calling DeviceConfig and passing in the same strings every time a flag value is retrieved. Bug: 210083465 Test: atest BackupAndRestoreFeatureFlagsTest.java Manual: adb shell device_config put backup_and_restore backup_transport_callback_timeout_millis 1 Observe that transport status callbacks fail with a timeout error adb shell device_config put backup_and_restore backup_transport_future_timeout_millis 1 Observe that many transport futures timeout Note that the timeouts that turned into flags are not unit-testable since they use the system clock to keep track of time. AFAIU this can't be mocked. Change-Id: I6953fd480ec217a854a57e3c369cadb0947bd55c
Diffstat (limited to 'libs/androidfw/Util.cpp')
0 files changed, 0 insertions, 0 deletions