summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Lucas Silva <lusilva@google.com> 2022-11-15 23:37:53 -0500
committer Lucas Silva <lusilva@google.com> 2022-11-16 10:18:22 -0500
commitfb2123974d5146b8f19f2f53591925d0de5136db (patch)
treefe0e7e0f8bcbc071adcccafd8465a678b4640738 /libs/androidfw/StringPool.cpp
parent2d7fb7b2b5456cd575d31b577a3a2641bec76235 (diff)
Add ability to AND and OR conditions together
In the dock setup flow, we have complex triggering which could be made simpler with the ability to OR conditions together. To cover the case where the value is undefined, this change introduces 3-valued AND/OR operators which can be used to construct new conditions from an existing condition. To keep the syntax readable, we add or() and and() methods to conditions, so the caller can simply say condition1.or(condition2) Bug: 255372044 Test: atest com.android.systemui.util.condition.ConditionTest Test: atest com.android.systemui.util.condition.ConditionMonitorTest Change-Id: Iac583492669cbb573c84807c9c0e78c35dfc02a0
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions