Home
last modified time | relevance | path

Searched refs:Condition (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Settings/src/com/android/settings/notification/
DZenModeConditionSelection.java27 import android.service.notification.Condition;
48 private final List<Condition> mConditions;
49 private Condition mCondition;
54 mConditions = new ArrayList<Condition>(); in ZenModeConditionSelection()
69 private RadioButton newRadioButton(Condition condition) { in newRadioButton()
76 setCondition((Condition) button.getTag()); in newRadioButton()
87 requestZenModeConditions(Condition.FLAG_RELEVANT_NOW); in onAttachedToWindow()
97 if (DEBUG) Log.d(TAG, "requestZenModeConditions " + Condition.relevanceToString(relevance)); in requestZenModeConditions()
105 protected void handleConditions(Condition[] conditions) { in handleConditions()
106 for (Condition c : conditions) { in handleConditions()
[all …]
DZenModeAutomaticConditionSelection.java27 import android.service.notification.Condition;
60 final Condition[] automatic = mNoMan.getAutomaticZenModeConditions(); in refreshSelectedConditions()
63 for (Condition c : automatic) { in refreshSelectedConditions()
107 requestZenModeConditions(Condition.FLAG_RELEVANT_ALWAYS); in onAttachedToWindow()
117 if (DEBUG) Log.d(TAG, "requestZenModeConditions " + Condition.relevanceToString(relevance)); in requestZenModeConditions()
125 protected void handleConditions(Condition[] conditions) { in handleConditions()
126 for (final Condition c : conditions) { in handleConditions()
128 if (c.state != Condition.STATE_ERROR) { in handleConditions()
135 v.setEnabled(c.state != Condition.STATE_ERROR); in handleConditions()
143 public void onConditionsReceived(Condition[] conditions) {
[all …]
DZenModeSettings.java45 import android.service.notification.Condition;
453 final Condition[] automatic = nm.getAutomaticZenModeConditions(); in getEntryConditionSummary()
/packages/apps/Email/tests/src/com/android/email/
DTestUtils.java38 public interface Condition { interface in TestUtils
109 public static void waitUntil(Condition condition, int timeoutSeconds) { in waitUntil()
116 public static void waitUntil(String message, Condition condition, int timeoutSeconds) { in waitUntil()
133 waitUntil("message", new Condition() { in testWaitUntil()
142 waitUntil("message", new Condition() { in testWaitUntil()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DBarrierConsumer.java20 import java.util.concurrent.locks.Condition;
31 private final Condition mNotFull = mLock.newCondition();
/packages/apps/Exchange/src/com/android/exchange/service/
DPingSyncSynchronizer.java37 import java.util.concurrent.locks.Condition;
121 private Condition mCondition;
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGLRootView.java47 import java.util.concurrent.locks.Condition;
106 private final Condition mFreezeCondition =