Home
last modified time | relevance | path

Searched refs:AutomaticZenRule (Results 1 – 25 of 25) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/app/
DAutomaticZenRuleTest.java59 AutomaticZenRule rule1 = new AutomaticZenRule( in testLongFields_inConstructor()
68 assertEquals(AutomaticZenRule.MAX_STRING_LENGTH, rule1.getName().length()); in testLongFields_inConstructor()
69 assertEquals(AutomaticZenRule.MAX_STRING_LENGTH, in testLongFields_inConstructor()
71 assertEquals(AutomaticZenRule.MAX_STRING_LENGTH, rule1.getOwner().getClassName().length()); in testLongFields_inConstructor()
73 AutomaticZenRule rule2 = new AutomaticZenRule( in testLongFields_inConstructor()
82 assertEquals(AutomaticZenRule.MAX_STRING_LENGTH, rule2.getName().length()); in testLongFields_inConstructor()
83 assertEquals(AutomaticZenRule.MAX_STRING_LENGTH, in testLongFields_inConstructor()
85 assertEquals(AutomaticZenRule.MAX_STRING_LENGTH, in testLongFields_inConstructor()
94 AutomaticZenRule rule = new AutomaticZenRule( in testLongFields_inSetters()
105 assertEquals(AutomaticZenRule.MAX_STRING_LENGTH, rule.getName().length()); in testLongFields_inSetters()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeHelperTest.java19 import static android.app.AutomaticZenRule.TYPE_BEDTIME;
20 import static android.app.AutomaticZenRule.TYPE_IMMERSIVE;
114 import android.app.AutomaticZenRule;
705 AutomaticZenRule azr = new AutomaticZenRule.Builder("OriginalName", CONDITION_ID) in testTotalSilence_consolidatedPolicyDisallowsAll()
739 AutomaticZenRule azr = new AutomaticZenRule.Builder("OriginalName", CONDITION_ID) in testAlarmsOnly_consolidatedPolicyOnlyAllowsAlarmsAndMedia()
1292 rule.userModifiedFields = AutomaticZenRule.FIELD_NAME; in testProtoWithAutoRuleWithModifiedFields()
2261 AutomaticZenRule zenRule = new AutomaticZenRule("name" + i, in testAddAutomaticZenRule_beyondSystemLimit()
2274 AutomaticZenRule zenRule = new AutomaticZenRule("name", in testAddAutomaticZenRule_beyondSystemLimit()
2295 AutomaticZenRule zenRule = new AutomaticZenRule("name" + i, in testAddAutomaticZenRule_beyondSystemLimit_differentComponents()
2306 AutomaticZenRule zenRule = new AutomaticZenRule("name", in testAddAutomaticZenRule_beyondSystemLimit_differentComponents()
[all …]
DSystemZenRulesTest.java24 import android.app.AutomaticZenRule;
89 assertThat(timeRule.type).isEqualTo(AutomaticZenRule.TYPE_SCHEDULE_TIME); in maybeUpgradeRules_oldSystemRules_upgraded()
91 assertThat(calendarRule.type).isEqualTo(AutomaticZenRule.TYPE_SCHEDULE_CALENDAR); in maybeUpgradeRules_oldSystemRules_upgraded()
103 timeRule.type = AutomaticZenRule.TYPE_SCHEDULE_TIME; in maybeUpgradeRules_newSystemRules_untouched()
119 timeRule.type = AutomaticZenRule.TYPE_SCHEDULE_TIME; in maybeUpgradeRules_appOwnedRules_untouched()
DZenEnumTest.java21 import android.app.AutomaticZenRule;
58 testEnum(AutomaticZenRule.class, "TYPE", ActiveRuleType.class, "TYPE"); in testEnum_activeRuleType()
DZenModeConfigTest.java19 import static android.app.AutomaticZenRule.TYPE_BEDTIME;
39 import android.app.AutomaticZenRule;
767 rule.userModifiedFields |= AutomaticZenRule.FIELD_NAME; in testRuleXml_userModifiedField()
885 newRule.type = AutomaticZenRule.TYPE_OTHER; in testisManualActive_stateTrue()
902 newRule.type = AutomaticZenRule.TYPE_OTHER; in testisManualActive_stateFalse()
919 newRule.type = AutomaticZenRule.TYPE_OTHER; in testisManualActive_noState()
942 newRule.type = AutomaticZenRule.TYPE_OTHER; in testRuleXml_manual_upgrade()
DZenModeDiffTest.java30 import android.app.AutomaticZenRule;
337 rule.type = AutomaticZenRule.TYPE_SCHEDULE_TIME; in makeRule()
343 rule.userModifiedFields = AutomaticZenRule.FIELD_NAME; in makeRule()
DNotificationManagerServiceTest.java175 import android.app.AutomaticZenRule;
376 private static final AutomaticZenRule SOME_ZEN_RULE =
377 new AutomaticZenRule.Builder("rule", Uri.parse("uri"))
9675 AutomaticZenRule rule = new AutomaticZenRule("test", owner, owner, mock(Uri.class), in testAutomaticZenRuleValidation_policyFilterAgreement()
9685 rule = new AutomaticZenRule("test", owner, owner, mock(Uri.class), in testAutomaticZenRuleValidation_policyFilterAgreement()
9689 rule = new AutomaticZenRule("test", owner, owner, mock(Uri.class), in testAutomaticZenRuleValidation_policyFilterAgreement()
9704 AutomaticZenRule rule = new AutomaticZenRule("test", owner, owner, mock(Uri.class), in testAddAutomaticZenRule_systemCallTakesPackageFromOwner()
9726 AutomaticZenRule rule = new AutomaticZenRule("test", owner, owner, mock(Uri.class), in testAddAutomaticZenRule_systemAppIdCallTakesPackageFromOwner()
9746 AutomaticZenRule rule = new AutomaticZenRule("test", owner, owner, mock(Uri.class), in testAddAutomaticZenRule_nonSystemCallTakesPackageFromArg()
9762 AutomaticZenRule rule = new AutomaticZenRule.Builder("rule", Uri.parse("uri")) in testAddAutomaticZenRule_typeManagedCanBeUsedByDeviceOwners()
[all …]
/frameworks/base/core/java/android/app/
DAutomaticZenRule.java44 public final class AutomaticZenRule implements Parcelable { class
186 public AutomaticZenRule(String name, ComponentName owner, Uri conditionId, in AutomaticZenRule() method in AutomaticZenRule
218 public AutomaticZenRule(@NonNull String name, @Nullable ComponentName owner, in AutomaticZenRule() method in AutomaticZenRule
234 public AutomaticZenRule(String name, ComponentName owner, ComponentName configurationActivity, in AutomaticZenRule() method in AutomaticZenRule
241 public AutomaticZenRule(Parcel source) { in AutomaticZenRule() method in AutomaticZenRule
557 StringBuilder sb = new StringBuilder(AutomaticZenRule.class.getSimpleName()).append('[') in toString()
596 if (!(o instanceof AutomaticZenRule)) return false; in equals()
598 final AutomaticZenRule other = (AutomaticZenRule) o; in equals()
631 public static final @android.annotation.NonNull Parcelable.Creator<AutomaticZenRule> CREATOR
632 = new Parcelable.Creator<AutomaticZenRule>() {
[all …]
DAutomaticZenRule.aidl19 parcelable AutomaticZenRule;
DINotificationManager.aidl43 import android.app.AutomaticZenRule;
221 AutomaticZenRule getAutomaticZenRule(String id); in getAutomaticZenRule()
222 Map<String, AutomaticZenRule> getAutomaticZenRules(); in getAutomaticZenRules()
225 String addAutomaticZenRule(in AutomaticZenRule automaticZenRule, String pkg, boolean fromUser); in addAutomaticZenRule()
226 … boolean updateAutomaticZenRule(String id, in AutomaticZenRule automaticZenRule, boolean fromUser); in updateAutomaticZenRule()
DNotificationManager.java1314 public Map<String, AutomaticZenRule> getAutomaticZenRules() { in getAutomaticZenRules()
1321 Map<String, AutomaticZenRule> ruleMap = new HashMap<>(); in getAutomaticZenRules()
1323 AutomaticZenRule azr = new AutomaticZenRule(rule.name, rule.component, in getAutomaticZenRules()
1348 public AutomaticZenRule getAutomaticZenRule(String id) { in getAutomaticZenRule()
1367 public String addAutomaticZenRule(AutomaticZenRule automaticZenRule) { in addAutomaticZenRule()
1375 public String addAutomaticZenRule(@NonNull AutomaticZenRule automaticZenRule, in addAutomaticZenRule()
1403 public boolean updateAutomaticZenRule(String id, AutomaticZenRule automaticZenRule) { in updateAutomaticZenRule()
1411 @NonNull AutomaticZenRule automaticZenRule, boolean fromUser) { in updateAutomaticZenRule()
/frameworks/base/core/java/android/service/notification/
DSystemZenRules.java22 import android.app.AutomaticZenRule;
53 if (rule.type == AutomaticZenRule.TYPE_UNKNOWN) { in maybeUpgradeRules()
75 rule.type = AutomaticZenRule.TYPE_SCHEDULE_TIME; in upgradeSystemProviderRule()
81 rule.type = AutomaticZenRule.TYPE_SCHEDULE_CALENDAR; in upgradeSystemProviderRule()
DZenModeConfig.java54 import android.app.AutomaticZenRule;
435 newRule.type = AutomaticZenRule.TYPE_OTHER; in ensureManualZenRule()
1163 rt.type = safeInt(parser, RULE_ATT_TYPE, AutomaticZenRule.TYPE_UNKNOWN); in readRuleXml()
2481 @AutomaticZenRule.Type
2482 public int type = AutomaticZenRule.TYPE_UNKNOWN;
2486 @AutomaticZenRule.ModifiableField public int userModifiedFields;
2633 .append(AutomaticZenRule.fieldsToString(userModifiedFields)); in toString()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java19 import static android.app.AutomaticZenRule.TYPE_UNKNOWN;
50 import android.app.AutomaticZenRule;
426 Map<String, AutomaticZenRule> getAutomaticZenRules() { in getAutomaticZenRules()
428 HashMap<String, AutomaticZenRule> rules = new HashMap<>(ruleList.size()); in getAutomaticZenRules()
435 public AutomaticZenRule getAutomaticZenRule(String id) { in getAutomaticZenRule()
448 public String addAutomaticZenRule(String pkg, AutomaticZenRule automaticZenRule, in addAutomaticZenRule()
499 AutomaticZenRule azrToAdd, @ConfigChangeOrigin int origin) { in maybeRestoreRemovedRule()
529 private static void maybeReplaceDefaultRule(ZenModeConfig config, AutomaticZenRule addedRule) { in maybeReplaceDefaultRule()
533 if (addedRule.getType() == AutomaticZenRule.TYPE_BEDTIME) { in maybeReplaceDefaultRule()
548 public boolean updateAutomaticZenRule(String ruleId, AutomaticZenRule automaticZenRule, in updateAutomaticZenRule()
[all …]
DNotificationManagerService.java181 import android.app.AutomaticZenRule;
5500 public Map<String, AutomaticZenRule> getAutomaticZenRules() {
5509 public AutomaticZenRule getAutomaticZenRule(String id) throws RemoteException {
5516 public String addAutomaticZenRule(AutomaticZenRule automaticZenRule, String pkg,
5550 public boolean updateAutomaticZenRule(String id, AutomaticZenRule automaticZenRule,
5560 private void validateAutomaticZenRule(@Nullable String updateId, AutomaticZenRule rule) {
5595 if (rule.getType() == AutomaticZenRule.TYPE_MANAGED) {
5602 } else if (rule.getType() == AutomaticZenRule.TYPE_BEDTIME) {
/frameworks/proto_logging/stats/enums/dnd/
Ddnd_enums.proto75 // Mirrors values in AutomaticZenRule, with one additional value for
/frameworks/base/core/api/
Dtest-current.txt391 …s_api") @NonNull public String addAutomaticZenRule(@NonNull android.app.AutomaticZenRule, boolean);
399 …ic boolean updateAutomaticZenRule(@NonNull String, @NonNull android.app.AutomaticZenRule, boolean);
Dcurrent.txt5395 public final class AutomaticZenRule implements android.os.Parcelable {
5396 …ctor @Deprecated public AutomaticZenRule(String, android.content.ComponentName, android.net.Uri, i…
5397 …ctor public AutomaticZenRule(@NonNull String, @Nullable android.content.ComponentName, @Nullable a…
5398 ctor public AutomaticZenRule(android.os.Parcel);
5421 …field @NonNull public static final android.os.Parcelable.Creator<android.app.AutomaticZenRule> CRE…
5433 @FlaggedApi("android.app.modes_api") public static final class AutomaticZenRule.Builder {
5434 ctor public AutomaticZenRule.Builder(@NonNull android.app.AutomaticZenRule);
5435 ctor public AutomaticZenRule.Builder(@NonNull String, @NonNull android.net.Uri);
5436 method @NonNull public android.app.AutomaticZenRule build();
5437 …method @NonNull public android.app.AutomaticZenRule.Builder setConditionId(@NonNull android.net.Ur…
[all …]
/frameworks/base/core/java/android/provider/
DSettings.java41 import android.app.AutomaticZenRule;
/frameworks/base/boot/
Dpreloaded-classes388 android.app.AutomaticZenRule$1
389 android.app.AutomaticZenRule
Dboot-image-profile.txt22763 Landroid/app/AutomaticZenRule$1;
22764 Landroid/app/AutomaticZenRule;
/frameworks/base/config/
Dpreloaded-classes388 android.app.AutomaticZenRule$1
389 android.app.AutomaticZenRule
Dboot-image-profile.txt32893 Landroid/app/AutomaticZenRule$1;
32894 Landroid/app/AutomaticZenRule;
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt4052 Landroid/app/AutomaticZenRule;-><init>(Ljava/lang/String;Landroid/content/ComponentName;Landroid/ne…
4053 Landroid/app/AutomaticZenRule;->conditionId:Landroid/net/Uri;
4054 Landroid/app/AutomaticZenRule;->creationTime:J
4055 Landroid/app/AutomaticZenRule;->enabled:Z
4056 Landroid/app/AutomaticZenRule;->interruptionFilter:I
4057 Landroid/app/AutomaticZenRule;->name:Ljava/lang/String;
4058 Landroid/app/AutomaticZenRule;->owner:Landroid/content/ComponentName;
6410 Landroid/app/INotificationManager$Stub$Proxy;->addAutomaticZenRule(Landroid/app/AutomaticZenRule;)L…
6435 …ificationManager$Stub$Proxy;->getAutomaticZenRule(Ljava/lang/String;)Landroid/app/AutomaticZenRule;
6504 …ationManager$Stub$Proxy;->updateAutomaticZenRule(Ljava/lang/String;Landroid/app/AutomaticZenRule;)Z
[all …]
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...