Home
last modified time | relevance | path

Searched refs:ZenRule (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DZenModeController.java23 import android.service.notification.ZenModeConfig.ZenRule;
30 ZenRule getManualRule(); in getManualRule()
46 default void onManualRuleChanged(ZenRule rule) {} in onManualRuleChanged()
DZenModeControllerImpl.java37 import android.service.notification.ZenModeConfig.ZenRule;
144 public ZenRule getManualRule() { in getManualRule()
204 private void fireManualRuleChanged(ZenRule rule) { in fireManualRuleChanged()
222 final ZenRule oldRule = mConfig != null ? mConfig.manualRule : null; in updateZenModeConfig()
225 final ZenRule newRule = config != null ? config.manualRule : null; in updateZenModeConfig()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeConditions.java25 import android.service.notification.ZenModeConfig.ZenRule;
71 for (ZenRule automaticRule : config.automaticRules.values()) { in evaluateConfig()
114 for (ZenRule automaticRule : config.automaticRules.values()) { in onConditionChanged()
123 private void evaluateRule(ZenRule rule, ArraySet<Uri> current, boolean processSubscriptions) { in evaluateRule()
170 for (ZenRule rule : config.automaticRules.values()) { in isAutomaticActive()
178 private boolean updateSnoozing(ZenRule rule) { in updateSnoozing()
187 private boolean updateCondition(Uri id, Condition condition, ZenRule rule) { in updateCondition()
DZenModeHelper.java57 import android.service.notification.ZenModeConfig.ZenRule;
259 public List<ZenRule> getZenRules() { in getZenRules()
260 List<ZenRule> rules = new ArrayList<>(); in getZenRules()
263 for (ZenRule rule : mConfig.automaticRules.values()) { in getZenRules()
273 ZenRule rule; in getAutomaticZenRule()
312 ZenRule rule = new ZenRule(); in addAutomaticZenRule()
333 ZenModeConfig.ZenRule rule; in updateAutomaticZenRule()
354 ZenRule rule = newConfig.automaticRules.get(id); in removeAutomaticZenRule()
373 ZenRule rule = newConfig.automaticRules.get(newConfig.automaticRules.keyAt(i)); in removeAutomaticZenRules()
386 for (ZenRule rule : mConfig.automaticRules.values()) { in getCurrentInstanceCount()
[all …]
/frameworks/base/core/java/android/service/notification/
DZenModeConfig.java163 public ZenRule manualRule;
164 public ArrayMap<String, ZenRule> automaticRules = new ArrayMap<>();
181 final ZenRule[] rules = new ZenRule[len]; in ZenModeConfig()
183 source.readTypedArray(rules, ZenRule.CREATOR); in ZenModeConfig()
209 final ZenRule[] rules = new ZenRule[len]; in writeToParcel()
296 final ZenRule fromRule = automaticRules != null ? automaticRules.get(rule) : null; in diff()
297 final ZenRule toRule = to.automaticRules != null ? to.automaticRules.get(rule) : null; in diff()
298 ZenRule.appendDiff(d, "automaticRule[" + rule + "]", fromRule, toRule); in diff()
300 ZenRule.appendDiff(d, "manualRule", manualRule, to.manualRule); in diff()
337 private static boolean isValidManualRule(ZenRule rule) { in isValidManualRule()
[all …]
DZenModeConfig.aidl20 parcelable ZenModeConfig.ZenRule;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
DFakeZenModeController.java20 import android.service.notification.ZenModeConfig.ZenRule;
42 public ZenRule getManualRule() { in getManualRule()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeHelperTest.java576 mZenModeHelperSpy.mConfig.manualRule = new ZenModeConfig.ZenRule(); in testParcelConfig()
598 mZenModeHelperSpy.mConfig.manualRule = new ZenModeConfig.ZenRule(); in testWriteXml()
622 ArrayMap<String, ZenModeConfig.ZenRule> enabledAutoRule = new ArrayMap<>(); in testReadXml()
623 ZenModeConfig.ZenRule customRule = new ZenModeConfig.ZenRule(); in testReadXml()
771 ArrayMap<String, ZenModeConfig.ZenRule> rules = mZenModeHelperSpy.mConfig.automaticRules; in testReadXmlResetDefaultRules()
787 ArrayMap<String, ZenModeConfig.ZenRule> enabledAutoRule = new ArrayMap<>(); in testReadXmlAllDisabledRulesResetDefaultRules()
788 ZenModeConfig.ZenRule customRule = new ZenModeConfig.ZenRule(); in testReadXmlAllDisabledRulesResetDefaultRules()
806 ArrayMap<String, ZenModeConfig.ZenRule> rules = mZenModeHelperSpy.mConfig.automaticRules; in testReadXmlAllDisabledRulesResetDefaultRules()
827 mZenModeHelperSpy.mConfig.manualRule = new ZenModeConfig.ZenRule(); in setupZenConfig()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DZenModePanel.java36 import android.service.notification.ZenModeConfig.ZenRule;
292 ZenRule manualRule = mController.getManualRule(); in onAttach()
410 void handleUpdateManualRule(ZenRule rule) { in handleUpdateManualRule()
844 public void onManualRuleChanged(ZenRule rule) {
860 case MANUAL_RULE_CHANGED: handleUpdateManualRule((ZenRule) msg.obj); break; in handleMessage()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DDndTile.java37 import android.service.notification.ZenModeConfig.ZenRule;
393 for (ZenRule automaticRule : config.automaticRules.values()) { in updatePanel()
/frameworks/base/core/java/android/app/
DINotificationManager.aidl157 List<ZenModeConfig.ZenRule> getZenRules(); in getZenRules()
DNotificationManager.java724 List<ZenModeConfig.ZenRule> rules = service.getZenRules(); in getAutomaticZenRules()
726 for (ZenModeConfig.ZenRule rule : rules) { in getAutomaticZenRules()
/frameworks/base/core/proto/android/service/
Dnotification.proto169 // An android.service.notification.ZenModeConfig.ZenRule object.
/frameworks/base/config/
Dhiddenapi-light-greylist.txt5180 Landroid/service/notification/ZenModeConfig$ZenRule;->conditionId:Landroid/net/Uri;
5181 Landroid/service/notification/ZenModeConfig$ZenRule;->creationTime:J
5182 Landroid/service/notification/ZenModeConfig$ZenRule;->enabled:Z
5183 Landroid/service/notification/ZenModeConfig$ZenRule;->name:Ljava/lang/String;
5184 Landroid/service/notification/ZenModeConfig$ZenRule;->snoozing:Z
5185 Landroid/service/notification/ZenModeConfig$ZenRule;->zenMode:I
Dpreloaded-classes2808 android.service.notification.ZenModeConfig$ZenRule$1
Dboot-image-profile.txt5105 HPLandroid/service/notification/ZenModeConfig$ZenRule;->isAutomaticActive()Z
5106 HPLandroid/service/notification/ZenModeConfig$ZenRule;->isTrueOrUnknown()Z
29704 HSPLandroid/service/notification/ZenModeConfig$ZenRule$1;-><init>()V
29705 …otification/ZenModeConfig$ZenRule$1;->createFromParcel(Landroid/os/Parcel;)Landroid/service/notifi…
29706 HSPLandroid/service/notification/ZenModeConfig$ZenRule$1;->createFromParcel(Landroid/os/Parcel;)Lja…
29707 HSPLandroid/service/notification/ZenModeConfig$ZenRule;-><init>(Landroid/os/Parcel;)V
29708 …Config$ZenRule;->appendDiff(Landroid/service/notification/ZenModeConfig$Diff;Ljava/lang/String;Lan…
29709 HSPLandroid/service/notification/ZenModeConfig$ZenRule;->equals(Ljava/lang/Object;)Z
29710 HSPLandroid/service/notification/ZenModeConfig$ZenRule;->hashCode()I
29711 HSPLandroid/service/notification/ZenModeConfig$ZenRule;->toString()Ljava/lang/String;
[all …]