| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
DeviceConfig is alerting us to all server pushes (pulls?). Even if
the flags is checking on aren't actually changing.
This CL ensures we only restart if the flag value has actually
changed.
Fixes: 272780732
Test: atest SystemUITests
Change-Id: I3571d210885472dc69f50c76922a89733f1a5d83
|
| |
|
|
|
|
|
|
|
|
|
| |
Log the name of the flag that is causing restarts.
Also, we weren't copying old overrriden-id's into the new
overridden-names. Fix that.
Fixes: 267753212
Test: atest SystemUITests and some manual flag flipping.
Change-Id: I7df265a54e657453c664c3d77987ee498c1c97cd
|
| |
|
|
|
|
|
|
|
|
|
|
| |
With this change, we start relying more directly on the string names
that are now associated with flags. The ids persist so that we can
look up existing overrides and push them into the new system.
After a couple of weeks, the plan will be to remove the ids entirely.
Bug: 265188950
Test: manually built before and after cl to ensure overrides persist.
Change-Id: I0faac671b43a0d24262e78ccdb4e23e44f73eeea
|
| |
|
|
|
|
|
|
|
|
| |
This reverts commit d4c3da1be348b14b355df23c156f4a5d47262fff.
Reason for revert: Need to restore this functionality. Problem fixed.
Bug: 257302229
Test: manual via the flag app
Change-Id: Ieefc76bda09431ed2f7a0fe28d91a59ef02184b8
|
| |
|
|
|
|
|
|
|
| |
This reverts commit e0d2a5117d20b04cacf673cb72f34ab681679927.
Reason for revert: LockscreenShiftSecurity#testSecurityShiftsWhenTappingOnTheOtherSide test is broken
Bug: 259595527
Change-Id: I16bca337d77a9fa88a2d90881d7b6a34fca33b08
|
| |
|
|
|
|
|
|
|
|
| |
A prior change broke restarting Android by replacing it
with restarting SystemUI. Meanwhile, restarting SystemUI
remained unchanged - restarting immediately.
Bug: 257302229
Test: manual via the flag app.
Change-Id: I4674cfd7c136b15a41ee36caea5b853e801d52fe
|
| |
|
|
|
|
|
|
|
| |
Removes reflection from our flag infrastructure.
Bug: 249121873
Fixes: 258235428
Test: manual
Change-Id: I29bf2065ba5885789e3fe94c0d6cdbae5e42a4d0
|
| |
|
|
|
|
| |
Bug: 249121873
Test: atest SystemUITests
Change-Id: I7fe0bd122cbcc3365abe7f4071a76a04783ff3d0
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Puts mechanics in to support IntFlag and ResourceIntFlag.
Also adds support for both IntFlag and StringFlag via the
command line.
Support in the app will come later.
Bug: 257066497
Test: manual via the command line.
Change-Id: I378f0f1e0db028cee33f729c47a63262124389d7
|
| |
|
|
|
|
| |
Bug: 253062545
Test: atest SystemUITests
Change-Id: I905b17a6b4ba639749d6d82d08cecc55bda422a7
|
| |
|
|
|
|
|
|
| |
A step along they way to sharing the flagging code as a library.
Bug: 249121873
Test: atest SystemUITests
Change-Id: Id48d33a6ce0d058c4b2d3c282865297841753bb7
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This works in both debug and release builds. In debug builds,
all flags can be overridden via the same mechanisms as before,
but can also be overridden by flags defined on the server.
On release builds, only `ReleasedFlag`s can be overridden.
`UnreleasedFlag`s remain set in their default state.
With this cl, server side flags do not get their new value
until SystemUI is restarted (via a reboot or a crash).
Bug: 239863271
Test: atest SystemUITests
Change-Id: I08166cb90675dea06b2671669cecfc16ac58ab61
Merged-In: I08166cb90675dea06b2671669cecfc16ac58ab61
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Adds support of DeviceConfig feature flags.
DeviceConfig flags are used by Phenotype
A/B testing framework.
Bug: 218314434
Test: change phenotype flag =>
check that FeatureFlags returns correct value
Test: atest com.android.systemui.flags.FeatureFlagsDebugTest
Test: atest com.android.systemui.flags.FeatureFlagsReleaseTest
Change-Id: I7dd9e47280ba56b7f9ea552c0d44d3e36fc6b041
|
| |
|
|
|
|
|
|
|
|
| |
This is the first step in moving over to the new public
android.util.Dumpable api.
Bug: 217567642
Test: m SystemUI
Merged-In: Ibaebcfb2c6c5326d0c45b8c72d868c76655d89a0
Change-Id: Ibaebcfb2c6c5326d0c45b8c72d868c76655d89a0
|
| |
|
|
|
|
|
|
|
| |
Caching them doesn't offer any performance wins. It does prevent
the compiler/proguard from inlining any function calls to them.
Bug: 204319780
Test: manual
Change-Id: I0057fd4b399731d6ac96ed0ad59c1be12ab3ca73
|
| |
|
|
|
|
|
|
|
|
|
| |
This will allow the flag flippin' app to change boolean system
properties that launcher, settings, and system server can read.
Some of these flags are already being read between the various systems
and this gives a unified ux for changing the flags.
Bug: 219067621
Test: manual
Change-Id: I7d1a1e758915f43cac114054a2c2e055706ef3f3
|
| |
|
|
|
|
| |
Bug: 209081785
Test: atest FeatureFlagsDebugTest FlagManagerTest
Change-Id: Ie92667e33e7c086258cdd03e7b9ebccdefef5938
|
| |
|
|
|
|
|
|
|
|
| |
* Convert FlagReader interface to FlagListenable.
* Move Flag reading to FeatureFlags interface.
* Remove isEnabled(id, boolean) from all interfaces; make private in implementations where used.
Bug: 209081785
Test: atest FlagManagerTest
Change-Id: I8c90a67def242b5d2fa55d5effab8270ecafabb4
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Introduce ResourceFlag class and ParcelableFlag classes, from which
other flag types are based.
ResourceFlags always pull there default values out of
context.getResources. They can not, however, be directly
serialized and sent to the flag app.
For that, we now have ParcelableFlag. Prior to this change, we
were not properly alerting the Flag app about the current value of
flags when it asked. This change now also fixes that.
All flags are coerced into ParcelableFlag before being sent to the
app.
Note that ResourceFlags perform runtime logic, even in release builds,
meaing that the opportunity for optimizing them at compile time is
much smaller. Tools such as proguard will not have the opportunity
to strip them out entirely.
Bug: 203548827
Test: atest SystemUITests
Change-Id: I3c37ccae16c00237f9cffffc9c22580454ecb8cc
|
| |
|
|
|
|
| |
Bug: 203548827
Test: manual
Change-Id: I651cb9a42e8ebb6ea11599cde97a5d8eaeb5d1b2
|
|
|
Rename FeatureFlagManager version to
FeatureFlagsDebug and FeatureFlagsRelease, implementing
the FeatureFlags interface.
Bug: 203548827
Test: manual
Change-Id: I4b78757a5e7ee3d5ee06f9124e2b8f670e611d4f
|