/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenModeConfigTest.java | 28 import android.service.notification.ZenModeConfig; 29 import android.service.notification.ZenModeConfig.EventInfo; 55 ZenModeConfig config = getMutedNotificationsConfig(); in testPriorityOnlyMutingAllNotifications() 56 assertEquals(true, ZenModeConfig.areAllPriorityOnlyNotificationZenSoundsMuted(config)); in testPriorityOnlyMutingAllNotifications() 59 assertEquals(false, ZenModeConfig.areAllPriorityOnlyNotificationZenSoundsMuted(config)); in testPriorityOnlyMutingAllNotifications() 63 assertEquals(false, ZenModeConfig.areAllPriorityOnlyNotificationZenSoundsMuted(config)); in testPriorityOnlyMutingAllNotifications() 66 assertEquals(true, ZenModeConfig.areAllPriorityOnlyNotificationZenSoundsMuted(config)); in testPriorityOnlyMutingAllNotifications() 71 ZenModeConfig config = getCustomConfig(); in testZenPolicyNothingSetToNotificationPolicy() 78 ZenModeConfig config = getMutedAllConfig(); in testZenPolicyToNotificationPolicy() 108 ZenModeConfig config = getMutedAllConfig(); in testPriorityOnlyMutingAll() [all …]
|
D | ScheduleConditionProviderTest.java | 12 import android.service.notification.ZenModeConfig; 66 ZenModeConfig.ScheduleInfo info = new ZenModeConfig.ScheduleInfo(); in testIsValidConditionId() 74 Uri conditionId = ZenModeConfig.toScheduleConditionId(info); in testIsValidConditionId() 83 ZenModeConfig.ScheduleInfo info = new ZenModeConfig.ScheduleInfo(); in testEvaluateSubscription_noAlarmExit_InSchedule() 91 Uri conditionId = ZenModeConfig.toScheduleConditionId(info); in testEvaluateSubscription_noAlarmExit_InSchedule() 107 ZenModeConfig.ScheduleInfo info = new ZenModeConfig.ScheduleInfo(); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() 115 Uri conditionId = ZenModeConfig.toScheduleConditionId(info); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() 138 ZenModeConfig.ScheduleInfo info = new ZenModeConfig.ScheduleInfo(); in testEvaluateSubscription_noAlarmExit_beforeSchedule() 146 Uri conditionId = ZenModeConfig.toScheduleConditionId(info); in testEvaluateSubscription_noAlarmExit_beforeSchedule() 161 ZenModeConfig.ScheduleInfo info = new ZenModeConfig.ScheduleInfo(); in testEvaluateSubscription_noAlarmExit_endSchedule() [all …]
|
D | ZenModeHelperTest.java | 64 import android.service.notification.ZenModeConfig; 65 import android.service.notification.ZenModeConfig.ScheduleInfo; 173 mZenModeHelperSpy.setConfig(new ZenModeConfig(), null, "writing xml"); in writeXmlAndPurge() 186 ZenModeConfig newConfig = new ZenModeConfig(); in writeXmlAndPurgeForUser() 200 private ArrayMap<String, ZenModeConfig.ZenRule> getCustomAutomaticRules() { in getCustomAutomaticRules() 201 ArrayMap<String, ZenModeConfig.ZenRule> automaticRules = new ArrayMap<>(); in getCustomAutomaticRules() 202 ZenModeConfig.ZenRule customRule = new ZenModeConfig.ZenRule(); in getCustomAutomaticRules() 209 customRule.conditionId = ZenModeConfig.toScheduleConditionId(customRuleInfo); in getCustomAutomaticRules() 615 mZenModeHelperSpy.mConfig = new ZenModeConfig(); in testSilentRingerSavedInZenOff_startsZenOff() 636 mZenModeHelperSpy.mConfig = new ZenModeConfig(); in testSilentRingerSavedOnZenOff_startsZenOn() [all …]
|
D | ScheduleCalendarTest.java | 25 import android.service.notification.ZenModeConfig; 45 private ZenModeConfig.ScheduleInfo mScheduleInfo; 50 mScheduleInfo = new ZenModeConfig.ScheduleInfo(); in setUp()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | CountdownConditionProvider.java | 29 import android.service.notification.ZenModeConfig; 68 return ZenModeConfig.isValidCountdownConditionId(id); in isValidConditionId() 113 mTime = ZenModeConfig.tryParseCountdownConditionId(conditionId); in onSubscribe() 114 mIsAlarm = ZenModeConfig.isValidCountdownToAlarmConditionId(conditionId); in onSubscribe() 151 final boolean alarm = ZenModeConfig.isValidCountdownToAlarmConditionId(conditionId); in onReceive() 152 final long time = ZenModeConfig.tryParseCountdownConditionId(conditionId); in onReceive() 162 return new Condition(ZenModeConfig.toCountdownConditionId(time, alarm), in newCondition() 167 final long time = ZenModeConfig.tryParseCountdownConditionId(conditionUri); in tryParseDescription()
|
D | ZenModeHelper.java | 56 import android.service.notification.ZenModeConfig; 57 import android.service.notification.ZenModeConfig.ZenRule; 101 @VisibleForTesting protected ZenModeConfig mDefaultConfig; 107 @VisibleForTesting final SparseArray<ZenModeConfig> mConfigs = new SparseArray<>(); 114 @VisibleForTesting protected ZenModeConfig mConfig; 227 ZenModeConfig config = mConfigs.get(user); in loadConfigForUser() 314 ZenModeConfig newConfig; in addAutomaticZenRule() 336 ZenModeConfig newConfig; in updateAutomaticZenRule() 344 ZenModeConfig.ZenRule rule; in updateAutomaticZenRule() 360 ZenModeConfig newConfig; in removeAutomaticZenRule() [all …]
|
D | ZenModeConditions.java | 23 import android.service.notification.ZenModeConfig; 24 import android.service.notification.ZenModeConfig.ZenRule; 50 if (mConditionProviders.isSystemProviderEnabled(ZenModeConfig.COUNTDOWN_PATH)) { in ZenModeConditions() 53 if (mConditionProviders.isSystemProviderEnabled(ZenModeConfig.SCHEDULE_PATH)) { in ZenModeConditions() 56 if (mConditionProviders.isSystemProviderEnabled(ZenModeConfig.EVENT_PATH)) { in ZenModeConditions() 66 public void evaluateConfig(ZenModeConfig config, ComponentName trigger, in evaluateConfig() 117 ZenModeConfig config = mHelper.getConfig(); in onConditionChanged()
|
D | ZenLog.java | 29 import android.service.notification.ZenModeConfig; 137 public static void traceConfig(String reason, ZenModeConfig oldConfig, in traceConfig() 138 ZenModeConfig newConfig) { in traceConfig() 141 + "," + ZenModeConfig.diff(oldConfig, newConfig)); in traceConfig()
|
D | EventConditionProvider.java | 35 import android.service.notification.ZenModeConfig; 36 import android.service.notification.ZenModeConfig.EventInfo; 90 return ZenModeConfig.isValidEventConditionId(id); in isValidConditionId() 147 if (!ZenModeConfig.isValidEventConditionId(conditionId)) { in onSubscribe() 217 final EventInfo event = ZenModeConfig.tryParseEventConditionId(conditionId); in evaluateSubscriptionsW()
|
D | ZenModeFiltering.java | 29 import android.service.notification.ZenModeConfig; 281 case ZenModeConfig.SOURCE_ANYONE: in audienceMatches() 283 case ZenModeConfig.SOURCE_CONTACT: in audienceMatches() 285 case ZenModeConfig.SOURCE_STAR: in audienceMatches()
|
D | ScheduleConditionProvider.java | 33 import android.service.notification.ZenModeConfig; 86 return ZenModeConfig.isValidScheduleConditionId(id); in isValidConditionId() 131 if (!ZenModeConfig.isValidScheduleConditionId(conditionId)) { in onSubscribe() 136 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 | 37 import android.service.notification.ZenModeConfig; 38 import android.service.notification.ZenModeConfig.ZenRule; 76 private ZenModeConfig mConfig; 161 public ZenModeConfig getConfig() { in getConfig() 197 .isSystemConditionProviderEnabled(ZenModeConfig.COUNTDOWN_PATH); in isCountdownConditionSupported() 242 protected void fireConfigChanged(ZenModeConfig config) { in fireConfigChanged() 265 final ZenModeConfig config = mNoMan.getZenModeConfig(); in updateZenModeConfig()
|
/frameworks/base/packages/SystemUI/tests/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/core/java/android/service/notification/ |
D | ZenModeConfig.aidl | 19 parcelable ZenModeConfig; 20 parcelable ZenModeConfig.ZenRule;
|
D | ZenModeConfig.java | 68 public class ZenModeConfig implements Parcelable { class 183 public ZenModeConfig() { } in ZenModeConfig() method in ZenModeConfig 185 public ZenModeConfig(Parcel source) { in ZenModeConfig() method in ZenModeConfig 246 return new StringBuilder(ZenModeConfig.class.getSimpleName()).append('[') in toString() 283 public Diff diff(ZenModeConfig to) { in diff() 344 public static Diff diff(ZenModeConfig from, ZenModeConfig to) { in diff() 417 if (!(o instanceof ZenModeConfig)) return false; in equals() 419 final ZenModeConfig other = (ZenModeConfig) o; in equals() 496 public static ZenModeConfig readXml(XmlPullParser parser) in readXml() 502 final ZenModeConfig rt = new ZenModeConfig(); in readXml() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/ |
D | EnableZenModeDialog.java | 29 import android.service.notification.ZenModeConfig; 60 private static final int[] MINUTE_BUCKETS = ZenModeConfig.MINUTE_BUCKETS; 269 return c != null && ZenModeConfig.isValidCountdownToAlarmConditionId(c.id); in isAlarm() 274 return c != null && ZenModeConfig.isValidCountdownConditionId(c.id); in isCountdown() 309 return ZenModeConfig.toNextAlarmCondition(mContext, nextAlarmMs, in getTimeUntilNextAlarmCondition() 319 Condition countdown = ZenModeConfig.toTimeCondition(mContext, in bindGenericCountdown() 379 final long time = ZenModeConfig.tryParseCountdownConditionId(conditionId); in updateUi() 389 final Condition maxCondition = ZenModeConfig.toTimeCondition(mContext, in updateUi() 426 final long time = ZenModeConfig.tryParseCountdownConditionId(conditionId); in onClickTimeButton() 434 newCondition = ZenModeConfig.toTimeCondition(mContext, in onClickTimeButton() [all …]
|
D | ZenDurationDialog.java | 25 import android.service.notification.ZenModeConfig; 47 private static final int[] MINUTE_BUCKETS = ZenModeConfig.MINUTE_BUCKETS; 279 Condition condition = ZenModeConfig.toTimeCondition(mContext, in updateUi()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | ZenModePanel.java | 35 import android.service.notification.ZenModeConfig; 36 import android.service.notification.ZenModeConfig.ZenRule; 83 private static final int[] MINUTE_BUCKETS = ZenModeConfig.MINUTE_BUCKETS; 421 if (ZenModeConfig.isValidCountdownToAlarmConditionId(conditionId)) { in createCondition() 422 long time = ZenModeConfig.tryParseCountdownConditionId(conditionId); in createCondition() 423 Condition c = ZenModeConfig.toNextAlarmCondition( in createCondition() 426 } else if (ZenModeConfig.isValidCountdownConditionId(conditionId)) { in createCondition() 427 long time = ZenModeConfig.tryParseCountdownConditionId(conditionId); in createCondition() 430 Condition c = ZenModeConfig.toTimeCondition(mContext, time, mins, in createCondition() 497 final long time = ZenModeConfig.tryParseCountdownConditionId(mSessionExitCondition.id); in computeAlarmWarningText() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | ZenModeControllerImplTest.java | 29 import android.service.notification.ZenModeConfig; 53 ZenModeConfig mConfig; 70 public void onConfigChanged(ZenModeConfig config) { in testRemoveDuringCallback()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | DndTile.java | 36 import android.service.notification.ZenModeConfig; 37 import android.service.notification.ZenModeConfig.ZenRule; 185 Uri conditionId = ZenModeConfig.toTimeCondition(mContext, zenDuration, in showDetail() 236 state.secondaryLabel = TextUtils.emptyIfNull(ZenModeConfig.getDescription(mContext, in handleUpdateState() 322 public void onConfigChanged(ZenModeConfig config) { 395 ZenModeConfig config = mController.getConfig(); in updatePanel()
|
/frameworks/base/core/java/android/app/ |
D | INotificationManager.aidl | 38 import android.service.notification.ZenModeConfig; 175 ZenModeConfig getZenModeConfig(); in getZenModeConfig() 186 List<ZenModeConfig.ZenRule> getZenRules(); in getZenRules()
|
D | NotificationManager.java | 48 import android.service.notification.ZenModeConfig; 880 public ZenModeConfig getZenModeConfig() { in getZenModeConfig() 923 List<ZenModeConfig.ZenRule> rules = service.getZenRules(); in getAutomaticZenRules() 925 for (ZenModeConfig.ZenRule rule : rules) { in getAutomaticZenRules()
|
/frameworks/base/core/java/android/preference/ |
D | SeekBarVolumizer.java | 41 import android.service.notification.ZenModeConfig; 154 mAllowRinger = !ZenModeConfig.areAllPriorityOnlyNotificationZenSoundsMuted( in SeekBarVolumizer() 574 mAllowRinger = !ZenModeConfig.areAllPriorityOnlyNotificationZenSoundsMuted( in onReceive()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QuickStatusBarHeader.java | 37 import android.service.notification.ZenModeConfig; 226 if (!ZenModeConfig.isZenOverridingRinger(mZenController.getZen(), in updateRingerStatus() 479 public void onConfigChanged(ZenModeConfig config) { in onConfigChanged()
|