Home
last modified time | relevance | path

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

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeConfigTest.java457 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testCanBeUpdatedByApp_nullPolicyAndDeviceEffects()
469 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testCanBeUpdatedByApp_policyModified()
480 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testCanBeUpdatedByApp_deviceEffectsModified()
491 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testWriteToParcel()
518 ZenModeConfig.ZenRule parceled = new ZenModeConfig.ZenRule(parcel); in testWriteToParcel()
550 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testRuleXml_classic()
567 ZenModeConfig.ZenRule fromXml = readRuleXml(bais); in testRuleXml_classic()
587 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testRuleXml()
627 ZenModeConfig.ZenRule fromXml = readRuleXml(bais); in testRuleXml()
660 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testRuleXml_weirdEffects()
[all …]
DSystemZenRulesTest.java34 import android.service.notification.ZenModeConfig.ZenRule;
78 ZenRule timeRule = new ZenRule(); in maybeUpgradeRules_oldSystemRules_upgraded()
82 ZenRule calendarRule = new ZenRule(); in maybeUpgradeRules_oldSystemRules_upgraded()
101 ZenRule timeRule = new ZenRule(); in maybeUpgradeRules_newSystemRules_untouched()
106 ZenRule original = timeRule.copy(); in maybeUpgradeRules_newSystemRules_untouched()
117 ZenRule timeRule = new ZenRule(); in maybeUpgradeRules_appOwnedRules_untouched()
122 ZenRule original = timeRule.copy(); in maybeUpgradeRules_appOwnedRules_untouched()
DZenModeHelperTest.java151 import android.service.notification.ZenModeConfig.ZenRule;
428 private ArrayMap<String, ZenModeConfig.ZenRule> getCustomAutomaticRules() { in getCustomAutomaticRules()
432 private ArrayMap<String, ZenModeConfig.ZenRule> getCustomAutomaticRules(int zenMode) { in getCustomAutomaticRules()
433 ArrayMap<String, ZenModeConfig.ZenRule> automaticRules = new ArrayMap<>(); in getCustomAutomaticRules()
434 ZenModeConfig.ZenRule rule = createCustomAutomaticRule(zenMode, CUSTOM_RULE_ID); in getCustomAutomaticRules()
439 private ZenModeConfig.ZenRule createCustomAutomaticRule(int zenMode, String id) { in createCustomAutomaticRule()
440 ZenModeConfig.ZenRule customRule = new ZenModeConfig.ZenRule(); in createCustomAutomaticRule()
1213 ZenRule rule = createCustomAutomaticRule(ZEN_MODE_IMPORTANT_INTERRUPTIONS, CUSTOM_RULE_ID); in testProtoWithAutoRuleCustomPolicy_classic()
1252 ZenRule rule = createCustomAutomaticRule(ZEN_MODE_IMPORTANT_INTERRUPTIONS, CUSTOM_RULE_ID); in testProtoWithAutoRuleCustomPolicy()
1291 ZenRule rule = createCustomAutomaticRule(ZEN_MODE_IMPORTANT_INTERRUPTIONS, CUSTOM_RULE_ID); in testProtoWithAutoRuleWithModifiedFields()
[all …]
DZenModeDiffTest.java113 ZenModeConfig.ZenRule r = makeRule(); in testRuleDiff_addRemoveSame()
133 ZenModeConfig.ZenRule r1 = makeRule(); in testRuleDiff_fieldDiffs()
134 ZenModeConfig.ZenRule r2 = makeRule(); in testRuleDiff_fieldDiffs()
140 ZenModeConfig.ZenRule.class, ZEN_RULE_EXEMPT_FIELDS); in testRuleDiff_fieldDiffs()
277 ZenModeConfig.ZenRule r1 = makeRule(); in testConfigDiff_hasRuleDiffs()
278 ZenModeConfig.ZenRule r2 = makeRule(); in testConfigDiff_hasRuleDiffs()
281 ZenModeConfig.ZenRule m = makeRule(); in testConfigDiff_hasRuleDiffs()
321 private ZenModeConfig.ZenRule makeRule() { in makeRule()
322 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in makeRule()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java98 import android.service.notification.ZenModeConfig.ZenRule;
408 public List<ZenRule> getZenRules() { in getZenRules()
409 List<ZenRule> rules = new ArrayList<>(); in getZenRules()
412 for (ZenRule rule : mConfig.automaticRules.values()) { in getZenRules()
427 List<ZenRule> ruleList = getZenRules(); in getAutomaticZenRules()
429 for (ZenRule rule : ruleList) { in getAutomaticZenRules()
436 ZenRule rule; in getAutomaticZenRule()
483 ZenRule rule = new ZenRule(); in addAutomaticZenRule()
498 private ZenRule maybeRestoreRemovedRule(ZenModeConfig config, ZenRule ruleToAdd, in maybeRestoreRemovedRule()
509 ZenRule ruleToRestore = config.deletedRules.get(deletedKey); in maybeRestoreRemovedRule()
[all …]
DZenModeEventLogger.java38 import android.service.notification.ZenModeConfig.ZenRule;
391 @NonNull List<ZenRule> activeRulesList(ZenModeConfig config) { in activeRulesList()
392 ArrayList<ZenRule> rules = new ArrayList<>(); in activeRulesList()
398 ZenRule rule = config.manualRule.copy(); in activeRulesList()
404 for (ZenModeConfig.ZenRule rule : config.automaticRules.values()) { in activeRulesList()
444 List<ZenRule> activeRules = activeRulesList(mNewConfig); in getActiveRuleTypes()
449 for (ZenRule rule : activeRules) { in getActiveRuleTypes()
676 ZenModeConfig.ZenRule rule = configForSearch.automaticRules.getOrDefault(id, null); in getRulePackageAndUser()
DZenModeConditions.java26 import android.service.notification.ZenModeConfig.ZenRule;
79 for (ZenRule automaticRule : config.automaticRules.values()) { in evaluateConfig()
134 private void evaluateRule(ZenRule rule, ArraySet<Uri> current, ComponentName trigger, in evaluateRule()
188 private boolean updateSnoozing(ZenRule rule) { in updateSnoozing()
DNotificationManagerService.java5494 public List<ZenModeConfig.ZenRule> getZenRules() throws RemoteException {
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DZenModeController.java24 import android.service.notification.ZenModeConfig.ZenRule;
31 ZenRule getManualRule(); in getManualRule()
49 default void onManualRuleChanged(ZenRule rule) {} in onManualRuleChanged()
DZenModeControllerImpl.java40 import android.service.notification.ZenModeConfig.ZenRule;
221 public ZenRule getManualRule() { in getManualRule()
274 private void fireManualRuleChanged(ZenRule rule) { in fireManualRuleChanged()
317 final ZenRule oldRule = mConfig != null ? mConfig.manualRule : null; in updateZenModeConfig()
322 final ZenRule newRule = config != null ? config.manualRule : null; in updateZenModeConfig()
/frameworks/base/core/java/android/service/notification/
DSystemZenRules.java27 import android.service.notification.ZenModeConfig.ZenRule;
51 for (ZenRule rule : config.automaticRules.values()) { in maybeUpgradeRules()
67 public static boolean isSystemOwnedRule(ZenRule rule) { in isSystemOwnedRule()
72 private static void upgradeSystemProviderRule(Context context, ZenRule rule) { in upgradeSystemProviderRule()
94 public static boolean updateTriggerDescription(Context context, ZenRule rule) { in updateTriggerDescription()
109 private static boolean updateTriggerDescription(ZenRule rule, String triggerDescription) { in updateTriggerDescription()
DZenModeConfig.java331 public ZenRule manualRule;
333 public ArrayMap<String, ZenRule> automaticRules = new ArrayMap<>();
337 public final ArrayMap<String, ZenRule> deletedRules = new ArrayMap<>();
357 manualRule = source.readParcelable(null, ZenRule.class); in ZenModeConfig()
404 ZenRule events = new ZenRule(); in getDefaultConfig()
419 ZenRule sleeping = new ZenRule(); in getDefaultConfig()
434 final ZenRule newRule = new ZenRule(); in ensureManualZenRule()
445 private static void readRulesFromParcel(ArrayMap<String, ZenRule> ruleMap, Parcel source) { in readRulesFromParcel()
449 final ZenRule[] rules = new ZenRule[len]; in readRulesFromParcel()
451 source.readTypedArray(rules, ZenRule.CREATOR); in readRulesFromParcel()
[all …]
DZenModeConfig.aidl20 parcelable ZenModeConfig.ZenRule;
DZenModeDiff.java321 final ZenModeConfig.ZenRule in ConfigDiff()
324 final ZenModeConfig.ZenRule in ConfigDiff()
486 public RuleDiff(ZenModeConfig.ZenRule from, ZenModeConfig.ZenRule to) { in RuleDiff()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/
DFakeZenModeController.java21 import android.service.notification.ZenModeConfig.ZenRule;
43 public ZenRule getManualRule() { in getManualRule()
/frameworks/base/core/proto/android/service/
Dnotification.proto188 // An android.service.notification.ZenModeConfig.ZenRule object.
218 // Indicates whether this ZenRule has been modified after its initial creation
/frameworks/base/core/java/android/app/
DINotificationManager.aidl224 List<ZenModeConfig.ZenRule> getZenRules(); in getZenRules()
DNotificationManager.java1320 List<ZenModeConfig.ZenRule> rules = service.getZenRules(); in getAutomaticZenRules()
1322 for (ZenModeConfig.ZenRule rule : rules) { in getAutomaticZenRules()
/frameworks/base/boot/
Dpreloaded-classes7102 android.service.notification.ZenModeConfig$ZenRule$1
7103 android.service.notification.ZenModeConfig$ZenRule
14364 [Landroid.service.notification.ZenModeConfig$ZenRule;
Dboot-image-profile.txt13696 …otification/ZenModeConfig$ZenRule$1;->createFromParcel(Landroid/os/Parcel;)Landroid/service/notifi…
13697 HSPLandroid/service/notification/ZenModeConfig$ZenRule$1;->createFromParcel(Landroid/os/Parcel;)Lja…
13698 HSPLandroid/service/notification/ZenModeConfig$ZenRule;-><init>(Landroid/os/Parcel;)V
13699 HSPLandroid/service/notification/ZenModeConfig$ZenRule;->equals(Ljava/lang/Object;)Z
29506 Landroid/service/notification/ZenModeConfig$ZenRule$1;
29507 Landroid/service/notification/ZenModeConfig$ZenRule;
36811 [Landroid/service/notification/ZenModeConfig$ZenRule;
/frameworks/base/config/
Dpreloaded-classes7106 android.service.notification.ZenModeConfig$ZenRule$1
7107 android.service.notification.ZenModeConfig$ZenRule
17387 [Landroid.service.notification.ZenModeConfig$ZenRule;
Dboot-image-profile.txt13699 …otification/ZenModeConfig$ZenRule$1;->createFromParcel(Landroid/os/Parcel;)Landroid/service/notifi…
13700 HSPLandroid/service/notification/ZenModeConfig$ZenRule$1;->createFromParcel(Landroid/os/Parcel;)Lja…
13701 HSPLandroid/service/notification/ZenModeConfig$ZenRule;-><init>(Landroid/os/Parcel;)V
13702 HSPLandroid/service/notification/ZenModeConfig$ZenRule;->equals(Ljava/lang/Object;)Z
39640 Landroid/service/notification/ZenModeConfig$ZenRule$1;
39641 Landroid/service/notification/ZenModeConfig$ZenRule;
49978 [Landroid/service/notification/ZenModeConfig$ZenRule;
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt49243 Landroid/service/notification/ZenModeConfig$ZenRule;-><init>()V
49244 Landroid/service/notification/ZenModeConfig$ZenRule;-><init>(Landroid/os/Parcel;)V
49245 …Config$ZenRule;->appendDiff(Landroid/service/notification/ZenModeConfig$Diff;Ljava/lang/String;Lan…
49246ZenRule;->appendDiff(Landroid/service/notification/ZenModeConfig$Diff;Ljava/lang/String;Landroid/s…
49247 Landroid/service/notification/ZenModeConfig$ZenRule;->component:Landroid/content/ComponentName;
49248 Landroid/service/notification/ZenModeConfig$ZenRule;->condition:Landroid/service/notification/Condi…
49249 Landroid/service/notification/ZenModeConfig$ZenRule;->CREATOR:Landroid/os/Parcelable$Creator;
49250 Landroid/service/notification/ZenModeConfig$ZenRule;->enabler:Ljava/lang/String;
49251 Landroid/service/notification/ZenModeConfig$ZenRule;->id:Ljava/lang/String;
49252 Landroid/service/notification/ZenModeConfig$ZenRule;->isAutomaticActive()Z
[all …]
/frameworks/base/services/
Dart-wear-profile16528 …odeConditions;->evaluateRule(Landroid/service/notification/ZenModeConfig$ZenRule;Landroid/util/Arr…
16532 …ification/ZenModeConditions;->updateSnoozing(Landroid/service/notification/ZenModeConfig$ZenRule;)Z
16607 …/Uri;Landroid/service/notification/Condition;Landroid/service/notification/ZenModeConfig$ZenRule;)Z