/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenModeConfigTest.java | 29 import android.service.notification.ZenModeConfig; 30 import android.service.notification.ZenModeConfig.EventInfo; 58 ZenModeConfig config = getMutedRingerConfig(); in testPriorityOnlyMutingAllNotifications() 59 assertTrue(ZenModeConfig.areAllPriorityOnlyRingerSoundsMuted(config)); in testPriorityOnlyMutingAllNotifications() 62 assertFalse(ZenModeConfig.areAllPriorityOnlyRingerSoundsMuted(config)); in testPriorityOnlyMutingAllNotifications() 66 assertFalse(ZenModeConfig.areAllPriorityOnlyRingerSoundsMuted(config)); in testPriorityOnlyMutingAllNotifications() 69 assertTrue(ZenModeConfig.areAllPriorityOnlyRingerSoundsMuted(config)); in testPriorityOnlyMutingAllNotifications() 74 ZenModeConfig config = getCustomConfig(); in testZenPolicyNothingSetToNotificationPolicy() 81 ZenModeConfig config = getMutedAllConfig(); in testZenPolicyToNotificationPolicy() 120 ZenModeConfig config = getMutedAllConfig(); in testZenConfigToZenPolicy() [all …]
|
D | ScheduleConditionProviderTest.java | 14 import android.service.notification.ZenModeConfig; 68 ZenModeConfig.ScheduleInfo info = new ZenModeConfig.ScheduleInfo(); in testIsValidConditionId() 76 Uri conditionId = ZenModeConfig.toScheduleConditionId(info); in testIsValidConditionId() 85 ZenModeConfig.ScheduleInfo info = new ZenModeConfig.ScheduleInfo(); in testEvaluateSubscription_noAlarmExit_InSchedule() 93 Uri conditionId = ZenModeConfig.toScheduleConditionId(info); in testEvaluateSubscription_noAlarmExit_InSchedule() 109 ZenModeConfig.ScheduleInfo info = new ZenModeConfig.ScheduleInfo(); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() 117 Uri conditionId = ZenModeConfig.toScheduleConditionId(info); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() 140 ZenModeConfig.ScheduleInfo info = new ZenModeConfig.ScheduleInfo(); in testEvaluateSubscription_noAlarmExit_beforeSchedule() 148 Uri conditionId = ZenModeConfig.toScheduleConditionId(info); in testEvaluateSubscription_noAlarmExit_beforeSchedule() 163 ZenModeConfig.ScheduleInfo info = new ZenModeConfig.ScheduleInfo(); in testEvaluateSubscription_noAlarmExit_endSchedule() [all …]
|
D | ZenModeHelperTest.java | 97 import android.service.notification.ZenModeConfig; 98 import android.service.notification.ZenModeConfig.ScheduleInfo; 229 mZenModeHelperSpy.setConfig(new ZenModeConfig(), null, "writing xml"); in writeXmlAndPurge() 242 ZenModeConfig newConfig = new ZenModeConfig(); in writeXmlAndPurgeForUser() 256 private ArrayMap<String, ZenModeConfig.ZenRule> getCustomAutomaticRules() { in getCustomAutomaticRules() 260 private ArrayMap<String, ZenModeConfig.ZenRule> getCustomAutomaticRules(int zenMode) { in getCustomAutomaticRules() 261 ArrayMap<String, ZenModeConfig.ZenRule> automaticRules = new ArrayMap<>(); in getCustomAutomaticRules() 262 ZenModeConfig.ZenRule rule = createCustomAutomaticRule(zenMode, CUSTOM_RULE_ID); in getCustomAutomaticRules() 267 private ZenModeConfig.ZenRule createCustomAutomaticRule(int zenMode, String id) { in createCustomAutomaticRule() 268 ZenModeConfig.ZenRule customRule = new ZenModeConfig.ZenRule(); in createCustomAutomaticRule() [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 | 65 import android.service.notification.ZenModeConfig; 66 import android.service.notification.ZenModeConfig.ZenRule; 117 @VisibleForTesting protected ZenModeConfig mDefaultConfig; 123 @VisibleForTesting final SparseArray<ZenModeConfig> mConfigs = new SparseArray<>(); 130 @VisibleForTesting protected ZenModeConfig mConfig; 246 ZenModeConfig config = mConfigs.get(user); in loadConfigForUser() 334 ZenModeConfig newConfig; in addAutomaticZenRule() 356 ZenModeConfig newConfig; in updateAutomaticZenRule() 364 ZenModeConfig.ZenRule rule; in updateAutomaticZenRule() 386 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; 141 public static void traceConfig(String reason, ZenModeConfig oldConfig, in traceConfig() 142 ZenModeConfig newConfig) { in traceConfig() 143 ZenModeConfig.Diff diff = ZenModeConfig.diff(oldConfig, newConfig); in traceConfig() 149 + ",\n" + 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 | 30 import android.service.notification.ZenModeConfig; 302 case ZenModeConfig.SOURCE_ANYONE: in audienceMatches() 304 case ZenModeConfig.SOURCE_CONTACT: in audienceMatches() 306 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 | 35 import android.service.notification.ZenModeConfig; 36 import android.service.notification.ZenModeConfig.ZenRule; 77 private ZenModeConfig mConfig; 163 public ZenModeConfig getConfig() { in getConfig() 199 .isSystemConditionProviderEnabled(ZenModeConfig.COUNTDOWN_PATH); in isCountdownConditionSupported() 244 protected void fireConfigChanged(ZenModeConfig config) { in fireConfigChanged() 267 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 | 75 public class ZenModeConfig implements Parcelable { class 198 public ZenModeConfig() { } in ZenModeConfig() method in ZenModeConfig 200 public ZenModeConfig(Parcel source) { in ZenModeConfig() method in ZenModeConfig 265 return new StringBuilder(ZenModeConfig.class.getSimpleName()).append('[') in toString() 305 public Diff diff(ZenModeConfig to) { in diff() 366 public static Diff diff(ZenModeConfig from, ZenModeConfig to) { in diff() 439 if (!(o instanceof ZenModeConfig)) return false; in equals() 441 final ZenModeConfig other = (ZenModeConfig) o; in equals() 521 public static ZenModeConfig readXml(TypedXmlPullParser parser) in readXml() 527 final ZenModeConfig rt = new ZenModeConfig(); in readXml() [all …]
|
D | ScheduleCalendar.java | 19 import android.service.notification.ZenModeConfig.ScheduleInfo;
|
/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; 270 return c != null && ZenModeConfig.isValidCountdownToAlarmConditionId(c.id); in isAlarm() 275 return c != null && ZenModeConfig.isValidCountdownConditionId(c.id); in isCountdown() 310 return ZenModeConfig.toNextAlarmCondition(mContext, nextAlarmMs, in getTimeUntilNextAlarmCondition() 320 Condition countdown = ZenModeConfig.toTimeCondition(mContext, in bindGenericCountdown() 361 final long time = ZenModeConfig.tryParseCountdownConditionId(conditionId); in updateUi() 386 final Condition maxCondition = ZenModeConfig.toTimeCondition(mContext, in updateUi() 428 final long time = ZenModeConfig.tryParseCountdownConditionId(conditionId); in onClickTimeButton() 436 newCondition = ZenModeConfig.toTimeCondition(mContext, in onClickTimeButton() [all …]
|
D | ZenDurationDialog.java | 25 import android.service.notification.ZenModeConfig; 48 private static final int[] MINUTE_BUCKETS = ZenModeConfig.MINUTE_BUCKETS; 283 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; 86 private static final int[] MINUTE_BUCKETS = ZenModeConfig.MINUTE_BUCKETS; 425 if (ZenModeConfig.isValidCountdownToAlarmConditionId(conditionId)) { in createCondition() 426 long time = ZenModeConfig.tryParseCountdownConditionId(conditionId); in createCondition() 427 Condition c = ZenModeConfig.toNextAlarmCondition( in createCondition() 430 } else if (ZenModeConfig.isValidCountdownConditionId(conditionId)) { in createCondition() 431 long time = ZenModeConfig.tryParseCountdownConditionId(conditionId); in createCondition() 434 Condition c = ZenModeConfig.toTimeCondition(mContext, time, mins, in createCondition() 501 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; 54 ZenModeConfig mConfig; 74 public void onConfigChanged(ZenModeConfig config) { in testRemoveDuringCallback()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | DndTile.java | 35 import android.service.notification.ZenModeConfig; 36 import android.service.notification.ZenModeConfig.ZenRule; 187 Uri conditionId = ZenModeConfig.toTimeCondition(mContext, zenDuration, in showDetail() 238 state.secondaryLabel = TextUtils.emptyIfNull(ZenModeConfig.getDescription(mContext, in handleUpdateState() 327 public void onConfigChanged(ZenModeConfig config) { 391 ZenModeConfig config = mController.getConfig(); in updatePanel()
|
/frameworks/base/core/java/android/app/ |
D | INotificationManager.aidl | 41 import android.service.notification.ZenModeConfig; 198 ZenModeConfig getZenModeConfig(); in getZenModeConfig() 209 List<ZenModeConfig.ZenRule> getZenRules(); in getZenRules()
|
/frameworks/base/core/java/android/preference/ |
D | SeekBarVolumizer.java | 41 import android.service.notification.ZenModeConfig; 165 mAllowRinger = !ZenModeConfig.areAllPriorityOnlyRingerSoundsMuted( in SeekBarVolumizer() 615 mAllowRinger = !ZenModeConfig.areAllPriorityOnlyRingerSoundsMuted( in onReceive()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | KeyguardSliceProvider.java | 38 import android.service.notification.ZenModeConfig; 349 public void onConfigChanged(ZenModeConfig config) { in onConfigChanged()
|