/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenModeConfigTest.java | 52 import android.service.notification.ZenModeConfig; 53 import android.service.notification.ZenModeConfig.EventInfo; 126 ZenModeConfig config = getMutedRingerConfig(); in testPriorityOnlyMutingAllNotifications() 127 assertTrue(ZenModeConfig.areAllPriorityOnlyRingerSoundsMuted(config)); in testPriorityOnlyMutingAllNotifications() 136 assertFalse(ZenModeConfig.areAllPriorityOnlyRingerSoundsMuted(config)); in testPriorityOnlyMutingAllNotifications() 144 assertTrue(ZenModeConfig.areAllPriorityOnlyRingerSoundsMuted(config)); in testPriorityOnlyMutingAllNotifications() 147 assertTrue(ZenModeConfig.areAllPriorityOnlyRingerSoundsMuted(config)); in testPriorityOnlyMutingAllNotifications() 157 assertFalse(ZenModeConfig.areAllPriorityOnlyRingerSoundsMuted(config)); in testPriorityOnlyMutingAllNotifications() 168 assertTrue(ZenModeConfig.areAllPriorityOnlyRingerSoundsMuted(config)); in testPriorityOnlyMutingAllNotifications() 173 ZenModeConfig config = getCustomConfig(); in testZenPolicyNothingSetToNotificationPolicy() [all …]
|
D | ScheduleConditionProviderTest.java | 15 import android.service.notification.ZenModeConfig; 70 ZenModeConfig.ScheduleInfo info = new ZenModeConfig.ScheduleInfo(); in testIsValidConditionId() 78 Uri conditionId = ZenModeConfig.toScheduleConditionId(info); in testIsValidConditionId() 87 ZenModeConfig.ScheduleInfo info = new ZenModeConfig.ScheduleInfo(); in testEvaluateSubscription_noAlarmExit_InSchedule() 95 Uri conditionId = ZenModeConfig.toScheduleConditionId(info); in testEvaluateSubscription_noAlarmExit_InSchedule() 111 ZenModeConfig.ScheduleInfo info = new ZenModeConfig.ScheduleInfo(); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() 119 Uri conditionId = ZenModeConfig.toScheduleConditionId(info); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() 142 ZenModeConfig.ScheduleInfo info = new ZenModeConfig.ScheduleInfo(); in testEvaluateSubscription_noAlarmExit_beforeSchedule() 150 Uri conditionId = ZenModeConfig.toScheduleConditionId(info); in testEvaluateSubscription_noAlarmExit_beforeSchedule() 165 ZenModeConfig.ScheduleInfo info = new ZenModeConfig.ScheduleInfo(); in testEvaluateSubscription_noAlarmExit_endSchedule() [all …]
|
D | ZenModeDiffTest.java | 40 import android.service.notification.ZenModeConfig; 113 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() 161 ZenModeConfig c = new ZenModeConfig(); in testConfigDiff_addRemoveSame() 178 ZenModeConfig c1 = new ZenModeConfig(); in testConfigDiff_fieldDiffs() 179 ZenModeConfig c2 = new ZenModeConfig(); in testConfigDiff_fieldDiffs() 185 ZenModeConfig.class, getConfigExemptAndFlaggedFields()); in testConfigDiff_fieldDiffs() 207 ZenModeConfig c1 = new ZenModeConfig(); in testConfigDiff_fieldDiffs_flagOn() [all …]
|
D | SystemZenRulesTest.java | 31 import android.service.notification.ZenModeConfig; 32 import android.service.notification.ZenModeConfig.EventInfo; 33 import android.service.notification.ZenModeConfig.ScheduleInfo; 34 import android.service.notification.ZenModeConfig.ZenRule; 77 ZenModeConfig config = new ZenModeConfig(); in maybeUpgradeRules_oldSystemRules_upgraded() 80 timeRule.conditionId = ZenModeConfig.toScheduleConditionId(SCHEDULE_INFO); in maybeUpgradeRules_oldSystemRules_upgraded() 84 calendarRule.conditionId = ZenModeConfig.toEventConditionId(EVENT_INFO); in maybeUpgradeRules_oldSystemRules_upgraded() 100 ZenModeConfig config = new ZenModeConfig(); in maybeUpgradeRules_newSystemRules_untouched() 104 timeRule.conditionId = ZenModeConfig.toScheduleConditionId(SCHEDULE_INFO); in maybeUpgradeRules_newSystemRules_untouched() 116 ZenModeConfig config = new ZenModeConfig(); in maybeUpgradeRules_appOwnedRules_untouched() [all …]
|
D | ZenModeHelperTest.java | 58 import static android.service.notification.ZenModeConfig.UPDATE_ORIGIN_APP; 59 import static android.service.notification.ZenModeConfig.UPDATE_ORIGIN_INIT; 60 import static android.service.notification.ZenModeConfig.UPDATE_ORIGIN_INIT_USER; 61 import static android.service.notification.ZenModeConfig.UPDATE_ORIGIN_SYSTEM_OR_SYSTEMUI; 62 import static android.service.notification.ZenModeConfig.UPDATE_ORIGIN_UNKNOWN; 63 import static android.service.notification.ZenModeConfig.UPDATE_ORIGIN_USER; 149 import android.service.notification.ZenModeConfig; 150 import android.service.notification.ZenModeConfig.ScheduleInfo; 151 import android.service.notification.ZenModeConfig.ZenRule; 218 private static final String EVENTS_DEFAULT_RULE_ID = ZenModeConfig.EVENTS_DEFAULT_RULE_ID; [all …]
|
D | DefaultDeviceEffectsApplierTest.java | 21 import static android.service.notification.ZenModeConfig.UPDATE_ORIGIN_APP; 22 import static android.service.notification.ZenModeConfig.UPDATE_ORIGIN_USER; 51 import android.service.notification.ZenModeConfig; 82 ORIGIN_UNKNOWN(ZenModeConfig.UPDATE_ORIGIN_UNKNOWN), 83 ORIGIN_INIT(ZenModeConfig.UPDATE_ORIGIN_INIT), 84 ORIGIN_INIT_USER(ZenModeConfig.UPDATE_ORIGIN_INIT_USER), 85 ORIGIN_USER(ZenModeConfig.UPDATE_ORIGIN_USER), 86 ORIGIN_APP(ZenModeConfig.UPDATE_ORIGIN_APP), 87 ORIGIN_SYSTEM_OR_SYSTEMUI(ZenModeConfig.UPDATE_ORIGIN_SYSTEM_OR_SYSTEMUI), 88 ORIGIN_RESTORE_BACKUP(ZenModeConfig.UPDATE_ORIGIN_RESTORE_BACKUP); [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ZenModeConditions.java | 25 import android.service.notification.ZenModeConfig; 26 import android.service.notification.ZenModeConfig.ZenRule; 52 if (mConditionProviders.isSystemProviderEnabled(ZenModeConfig.COUNTDOWN_PATH)) { in ZenModeConditions() 55 if (mConditionProviders.isSystemProviderEnabled(ZenModeConfig.SCHEDULE_PATH)) { in ZenModeConditions() 58 if (mConditionProviders.isSystemProviderEnabled(ZenModeConfig.EVENT_PATH)) { in ZenModeConditions() 68 public void evaluateConfig(ZenModeConfig config, ComponentName trigger, in evaluateConfig() 116 callingUid == Process.SYSTEM_UID ? ZenModeConfig.UPDATE_ORIGIN_SYSTEM_OR_SYSTEMUI in onServiceAdded() 117 : ZenModeConfig.UPDATE_ORIGIN_APP, in onServiceAdded() 124 ZenModeConfig config = mHelper.getConfig(); in onConditionChanged() 128 callingUid == Process.SYSTEM_UID ? ZenModeConfig.UPDATE_ORIGIN_SYSTEM_OR_SYSTEMUI in onConditionChanged() [all …]
|
D | ZenModeEventLogger.java | 36 import android.service.notification.ZenModeConfig; 37 import android.service.notification.ZenModeConfig.ConfigChangeOrigin; 38 import android.service.notification.ZenModeConfig.ZenRule; 168 if (ruleInfo == null || ruleInfo.first.equals(ZenModeConfig.SYSTEM_AUTHORITY)) { in maybeReassignCallingUid() 215 final ZenModeConfig mConfig; 218 ZenModeInfo(int zenMode, ZenModeConfig config, NotificationManager.Policy policy) { in ZenModeInfo() 235 ZenModeConfig mPrevConfig, mNewConfig; 238 @ConfigChangeOrigin int mOrigin = ZenModeConfig.UPDATE_ORIGIN_UNKNOWN; 391 @NonNull List<ZenRule> activeRulesList(ZenModeConfig config) { in activeRulesList() 404 for (ZenModeConfig.ZenRule rule : config.automaticRules.values()) { in activeRulesList() [all …]
|
D | CountdownConditionProvider.java | 29 import android.service.notification.ZenModeConfig; 69 return ZenModeConfig.isValidCountdownConditionId(id); in isValidConditionId() 115 mTime = ZenModeConfig.tryParseCountdownConditionId(conditionId); in onSubscribe() 116 mIsAlarm = ZenModeConfig.isValidCountdownToAlarmConditionId(conditionId); in onSubscribe() 159 final boolean alarm = ZenModeConfig.isValidCountdownToAlarmConditionId(conditionId); in onReceive() 160 final long time = ZenModeConfig.tryParseCountdownConditionId(conditionId); in onReceive() 170 return new Condition(ZenModeConfig.toCountdownConditionId(time, alarm), in newCondition() 175 final long time = ZenModeConfig.tryParseCountdownConditionId(conditionUri); in tryParseDescription()
|
D | ZenModeHelper.java | 32 import static android.service.notification.ZenModeConfig.UPDATE_ORIGIN_APP; 33 import static android.service.notification.ZenModeConfig.UPDATE_ORIGIN_INIT; 34 import static android.service.notification.ZenModeConfig.UPDATE_ORIGIN_INIT_USER; 35 import static android.service.notification.ZenModeConfig.UPDATE_ORIGIN_RESTORE_BACKUP; 36 import static android.service.notification.ZenModeConfig.UPDATE_ORIGIN_SYSTEM_OR_SYSTEMUI; 37 import static android.service.notification.ZenModeConfig.UPDATE_ORIGIN_USER; 96 import android.service.notification.ZenModeConfig; 97 import android.service.notification.ZenModeConfig.ConfigChangeOrigin; 98 import android.service.notification.ZenModeConfig.ZenRule; 174 private final ZenModeConfig mDefaultConfig; [all …]
|
D | DefaultDeviceEffectsApplier.java | 33 import android.service.notification.ZenModeConfig; 34 import android.service.notification.ZenModeConfig.ConfigChangeOrigin; 129 if (origin == ZenModeConfig.UPDATE_ORIGIN_INIT in updateOrScheduleNightMode() 130 || origin == ZenModeConfig.UPDATE_ORIGIN_INIT_USER in updateOrScheduleNightMode() 131 || origin == ZenModeConfig.UPDATE_ORIGIN_USER in updateOrScheduleNightMode()
|
D | EventConditionProvider.java | 35 import android.service.notification.ZenModeConfig; 36 import android.service.notification.ZenModeConfig.EventInfo; 91 return ZenModeConfig.isValidEventConditionId(id); in isValidConditionId() 148 if (!ZenModeConfig.isValidEventConditionId(conditionId)) { in onSubscribe() 218 final EventInfo event = ZenModeConfig.tryParseEventConditionId(conditionId); in evaluateSubscriptionsW()
|
D | ZenLog.java | 29 import android.service.notification.ZenModeConfig; 124 ZenModeConfig oldConfig, ZenModeConfig newConfig, int callingUid) { in traceConfig()
|
D | ScheduleConditionProvider.java | 33 import android.service.notification.ZenModeConfig; 87 return ZenModeConfig.isValidScheduleConditionId(id); in isValidConditionId() 132 if (!ZenModeConfig.isValidScheduleConditionId(conditionId)) { in onSubscribe() 137 mSubscriptions.put(conditionId, ZenModeConfig.toScheduleCalendar(conditionId)); in onSubscribe()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | ZenModeController.java | 23 import android.service.notification.ZenModeConfig; 24 import android.service.notification.ZenModeConfig.ZenRule; 32 ZenModeConfig getConfig(); in getConfig() 50 default void onConfigChanged(ZenModeConfig config) {} in onConfigChanged()
|
D | ZenModeControllerImpl.java | 39 import android.service.notification.ZenModeConfig; 40 import android.service.notification.ZenModeConfig.ZenRule; 82 private ZenModeConfig mConfig; 226 public ZenModeConfig getConfig() { in getConfig() 250 .isSystemConditionProviderEnabled(ZenModeConfig.COUNTDOWN_PATH); in isCountdownConditionSupported() 294 protected void fireConfigChanged(ZenModeConfig config) { in fireConfigChanged() 315 final ZenModeConfig config = mNoMan.getZenModeConfig(); in updateZenModeConfig()
|
/frameworks/base/core/java/android/service/notification/ |
D | SystemZenRules.java | 25 import android.service.notification.ZenModeConfig.EventInfo; 26 import android.service.notification.ZenModeConfig.ScheduleInfo; 27 import android.service.notification.ZenModeConfig.ZenRule; 50 public static void maybeUpgradeRules(Context context, ZenModeConfig config) { in maybeUpgradeRules() 73 ScheduleInfo scheduleInfo = ZenModeConfig.tryParseScheduleConditionId(rule.conditionId); in upgradeSystemProviderRule() 79 EventInfo eventInfo = ZenModeConfig.tryParseEventConditionId(rule.conditionId); in upgradeSystemProviderRule() 95 ScheduleInfo scheduleInfo = ZenModeConfig.tryParseScheduleConditionId(rule.conditionId); in updateTriggerDescription() 100 EventInfo eventInfo = ZenModeConfig.tryParseEventConditionId(rule.conditionId); in updateTriggerDescription()
|
D | ZenModeConfig.aidl | 19 parcelable ZenModeConfig; 20 parcelable ZenModeConfig.ZenRule;
|
D | ZenModeDiff.java | 240 public ConfigDiff(ZenModeConfig from, ZenModeConfig to) { in ConfigDiff() 321 final ZenModeConfig.ZenRule in ConfigDiff() 324 final ZenModeConfig.ZenRule in ConfigDiff() 391 sb.append(ZenModeConfig.sourceToString((int) diff.from())); in toString() 393 sb.append(ZenModeConfig.sourceToString((int) diff.to())); in toString() 486 public RuleDiff(ZenModeConfig.ZenRule from, ZenModeConfig.ZenRule to) { in RuleDiff()
|
D | DeviceEffectsApplier.java | 19 import android.service.notification.ZenModeConfig.ConfigChangeOrigin;
|
D | ZenModeConfig.java | 31 import static android.service.notification.ZenModeConfig.EventInfo.REPLY_YES_OR_MAYBE; 111 public class ZenModeConfig implements Parcelable { class 340 public ZenModeConfig() { in ZenModeConfig() method in ZenModeConfig 346 public ZenModeConfig(Parcel source) { in ZenModeConfig() method in ZenModeConfig 399 public static ZenModeConfig getDefaultConfig() { in getDefaultConfig() 400 ZenModeConfig config = new ZenModeConfig(); in getDefaultConfig() 510 StringBuilder sb = new StringBuilder(ZenModeConfig.class.getSimpleName()).append('[') in toString() 828 if (!(o instanceof ZenModeConfig)) return false; in equals() 830 final ZenModeConfig other = (ZenModeConfig) o; in equals() 932 public static ZenModeConfig readXml(TypedXmlPullParser parser) in readXml() [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/ |
D | FakeZenModeController.java | 20 import android.service.notification.ZenModeConfig; 21 import android.service.notification.ZenModeConfig.ZenRule; 48 public ZenModeConfig getConfig() { in getConfig()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/ |
D | EnableZenModeDialog.java | 29 import android.service.notification.ZenModeConfig; 61 private static final int[] MINUTE_BUCKETS = ZenModeConfig.MINUTE_BUCKETS; 296 return c != null && ZenModeConfig.isValidCountdownToAlarmConditionId(c.id); in isAlarm() 301 return c != null && ZenModeConfig.isValidCountdownConditionId(c.id); in isCountdown() 336 return ZenModeConfig.toNextAlarmCondition(mContext, nextAlarmMs, in getTimeUntilNextAlarmCondition() 346 Condition countdown = ZenModeConfig.toTimeCondition(mContext, in bindGenericCountdown() 387 final long time = ZenModeConfig.tryParseCountdownConditionId(conditionId); in updateUi() 412 final Condition maxCondition = ZenModeConfig.toTimeCondition(mContext, in updateUi() 454 final long time = ZenModeConfig.tryParseCountdownConditionId(conditionId); in onClickTimeButton() 462 newCondition = ZenModeConfig.toTimeCondition(mContext, in onClickTimeButton() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/statusbar/notification/domain/interactor/ |
D | NotificationsSoundPolicyInteractor.kt | 22 import android.service.notification.ZenModeConfig in <lambda>() 58 !ZenModeConfig.areAllPriorityOnlyRingerSoundsMuted(policy) in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | ZenModeControllerImplTest.java | 29 import android.service.notification.ZenModeConfig; 62 ZenModeConfig mConfig; 93 public void onConfigChanged(ZenModeConfig config) { in testRemoveDuringCallback()
|