summaryrefslogtreecommitdiff
path: root/services/appfunctions/java
diff options
context:
space:
mode:
author Matías Hernández <matiashe@google.com> 2025-02-13 12:45:48 +0100
committer Matías Hernández <matiashe@google.com> 2025-02-14 13:28:10 +0100
commitdfce623b20a061b9ff6426ae918d4ab4622ce041 (patch)
tree749a700b21b6b1f2fe711f71111da04412632c13 /services/appfunctions/java
parent6dd098aca7921ad73629365c4046e73d37947949 (diff)
Remove long unused (and non-user-modified) implicit ZenRules
We now track the last time each ZenRule was activated. On ZenModeConfig load (e.g. reboot, user switch) if 30 days have passed since the last activation of an implicit rule, it is deleted. For rules created before we started tracking activation, we also set lastActivation=now -- in essence, so that we wait 30 days before deciding whether they are actually used or not. As a side-change, rename ZenRule.canBeUpdatedByApp() to ZenRule.isUserModified(), inverting is logic. The latter is the condition that almost all callsites are interested in. Bug: 394087495 Test: atest ZenModeConfigTest ZenModeHelperTest Flag: android.app.modes_cleanup_implicit Change-Id: If9f7916e59b47871f14bd4b1b4efaf6cd2d41af7
Diffstat (limited to 'services/appfunctions/java')
0 files changed, 0 insertions, 0 deletions