Home
last modified time | relevance | path

Searched refs:mConditions (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/condition/
DMonitor.java47 private final HashMap<Condition, ArraySet<Subscription.Token>> mConditions = new HashMap<>(); field in Monitor
64 return mSubscription.mConditions; in getConditions()
88 final Boolean result = Evaluator.INSTANCE.evaluate(mSubscription.mConditions, in update()
182 final ArraySet<Subscription.Token> subscriptions = mConditions.get(condition); in updateConditionMetState()
219 if (!mConditions.containsKey(condition)) { in addSubscription()
220 mConditions.put(condition, new ArraySet<>()); in addSubscription()
224 mConditions.get(condition).add(token); in addSubscription()
253 if (!mConditions.containsKey(condition)) { in removeSubscription()
258 final Set<Subscription.Token> conditionSubscriptions = mConditions.get(condition); in removeSubscription()
263 mConditions.remove(condition); in removeSubscription()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/condition/
DConditionMonitorTest.java59 private HashSet<Condition> mConditions; field in ConditionMonitorTest
76 mConditions = new HashSet<>(Arrays.asList(mCondition1, mCondition2, mCondition3)); in setup()
84 .addConditions(mConditions); in getDefaultBuilder()
209 mConditions.forEach(condition -> verify(condition).addCallback(any())); in addCallback_addFirstCallback_addCallbackToAllConditions()
215 mConditions.forEach(condition -> verify(condition, times(1)).addCallback(any())); in addCallback_addFirstCallback_addCallbackToAllConditions()
330 mConditions.forEach(condition -> verify(condition, never()).removeCallback(any())); in removeCallback_removeLastCallback_removeCallbackFromAllConditions()
334 mConditions.forEach(condition -> verify(condition).removeCallback(any())); in removeCallback_removeLastCallback_removeCallbackFromAllConditions()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/condition/
DConditionalCoreStartableTest.java79 final Set<Condition> mConditions = new HashSet<>(); field in ConditionalCoreStartableTest
96 mConditions.clear(); in setup()
/frameworks/base/services/core/java/com/android/server/wm/
DTransition.java1633 for (int i = mReadyTracker.mConditions.size() - 1; i >= 0; --i) { in playNow()
1634 mReadyTracker.mConditions.get(i).meetAlternate("play-now"); in playNow()
3532 Slog.e(TAG, "#" + mSyncId + " unmet conditions: " + mReadyTracker.mConditions); in onReadyTimeout()
3627 final ArrayList<ReadyCondition> mConditions = new ArrayList<>(); field in Transition.ReadyTracker
3641 mConditions.add(condition); in add()
3655 if (!mConditions.remove(condition)) { in meet()
3666 + " left)", condition, mTransition.mSyncId, mConditions.size()); in meet()
3672 return mConditions.isEmpty() && !mMet.isEmpty(); in isReady()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java179 @VisibleForTesting protected final ZenModeConditions mConditions; field in ZenModeHelper
239 mConditions = new ZenModeConditions(this, conditionProviders); in ZenModeHelper()
1632 mConditions.dump(pw, prefix); in dump()
1899 mConditions.evaluateConfig(config, null, false /*processSubscriptions*/); in setConfigLocked()
1914 mConditions.evaluateConfig(config, triggeringComponent, true /*processSubscriptions*/); in setConfigLocked()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeHelperTest.java2141 mZenModeHelper.mConditions.evaluateConfig(mZenModeHelper.mConfig, null, true); in testCountdownConditionSubscription()
2142 assertEquals(0, mZenModeHelper.mConditions.mSubscriptions.size()); in testCountdownConditionSubscription()
2154 mZenModeHelper.mConditions.evaluateConfig(mZenModeHelper.mConfig, null, true); in testCountdownConditionSubscription()
2158 assertEquals(1, mZenModeHelper.mConditions.mSubscriptions.size()); in testCountdownConditionSubscription()