/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
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 | ZenModeFilteringTest.java | 37 import android.service.notification.ZenModeConfig; 124 ZenModeConfig config = mock(ZenModeConfig.class); in testSuppressDNDInfo_yes_VisEffectsAllowed() 136 ZenModeConfig config = mock(ZenModeConfig.class); in testSuppressDNDInfo_yes_WrongId() 147 ZenModeConfig config = mock(ZenModeConfig.class); in testSuppressDNDInfo_yes_WrongPackage() 158 ZenModeConfig config = mock(ZenModeConfig.class); in testSuppressDNDInfo_no() 170 ZenModeConfig config = mock(ZenModeConfig.class); in testSuppressAnything_yes_ZenModeOff()
|
D | ZenModeHelperTest.java | 54 import android.service.notification.ZenModeConfig; 55 import android.service.notification.ZenModeConfig.ScheduleInfo; 119 mZenModeHelperSpy.setConfig(new ZenModeConfig(), "writing xml"); in writeXmlAndPurge() 576 mZenModeHelperSpy.mConfig.manualRule = new ZenModeConfig.ZenRule(); in testParcelConfig() 581 ZenModeConfig actual = mZenModeHelperSpy.mConfig.copy(); in testParcelConfig() 598 mZenModeHelperSpy.mConfig.manualRule = new ZenModeConfig.ZenRule(); in testWriteXml() 605 ZenModeConfig expected = mZenModeHelperSpy.mConfig.copy(); in testWriteXml() 622 ArrayMap<String, ZenModeConfig.ZenRule> enabledAutoRule = new ArrayMap<>(); in testReadXml() 623 ZenModeConfig.ZenRule customRule = new ZenModeConfig.ZenRule(); in testReadXml() 628 customRule.conditionId = ZenModeConfig.toScheduleConditionId(weeknights); in testReadXml() [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 | ZenModeHelper.java | 54 import android.service.notification.ZenModeConfig; 55 import android.service.notification.ZenModeConfig.EventInfo; 56 import android.service.notification.ZenModeConfig.ScheduleInfo; 57 import android.service.notification.ZenModeConfig.ZenRule; 100 protected ZenModeConfig mDefaultConfig; 106 private final SparseArray<ZenModeConfig> mConfigs = new SparseArray<>(); 112 @VisibleForTesting protected ZenModeConfig mConfig; 133 mDefaultConfig = new ZenModeConfig(); in ZenModeHelper() 221 ZenModeConfig config = mConfigs.get(user); in loadConfigForUser() 303 ZenModeConfig newConfig; in addAutomaticZenRule() [all …]
|
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 | ZenModeConditions.java | 24 import android.service.notification.ZenModeConfig; 25 import android.service.notification.ZenModeConfig.ZenRule; 46 if (mConditionProviders.isSystemProviderEnabled(ZenModeConfig.COUNTDOWN_PATH)) { in ZenModeConditions() 49 if (mConditionProviders.isSystemProviderEnabled(ZenModeConfig.SCHEDULE_PATH)) { in ZenModeConditions() 52 if (mConditionProviders.isSystemProviderEnabled(ZenModeConfig.EVENT_PATH)) { in ZenModeConditions() 62 public void evaluateConfig(ZenModeConfig config, boolean processSubscriptions) { in evaluateConfig() 111 ZenModeConfig config = mHelper.getConfig(); in onConditionChanged() 168 final ZenModeConfig config = mHelper.getConfig(); in isAutomaticActive()
|
D | ZenModeFiltering.java | 31 import android.service.notification.ZenModeConfig; 91 public static boolean matchesCallFilter(Context context, int zen, ZenModeConfig config, in matchesCallFilter() 119 public boolean shouldIntercept(int zen, ZenModeConfig config, NotificationRecord record) { in shouldIntercept() 265 case ZenModeConfig.SOURCE_ANYONE: in audienceMatches() 267 case ZenModeConfig.SOURCE_CONTACT: in audienceMatches() 269 case ZenModeConfig.SOURCE_STAR: in audienceMatches()
|
D | ZenLog.java | 29 import android.service.notification.ZenModeConfig; 127 public static void traceConfig(String reason, ZenModeConfig oldConfig, in traceConfig() 128 ZenModeConfig newConfig) { in traceConfig() 131 + "," + ZenModeConfig.diff(oldConfig, newConfig)); in traceConfig()
|
D | EventConditionProvider.java | 36 import android.service.notification.ZenModeConfig; 37 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 | 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 | 22 import android.service.notification.ZenModeConfig; 23 import android.service.notification.ZenModeConfig.ZenRule; 31 ZenModeConfig getConfig(); in getConfig() 47 default void onConfigChanged(ZenModeConfig config) {} in onConfigChanged()
|
D | ZenModeControllerImpl.java | 36 import android.service.notification.ZenModeConfig; 37 import android.service.notification.ZenModeConfig.ZenRule; 67 private ZenModeConfig mConfig; 149 public ZenModeConfig getConfig() { in getConfig() 180 .isSystemConditionProviderEnabled(ZenModeConfig.COUNTDOWN_PATH); in isCountdownConditionSupported() 209 protected void fireConfigChanged(ZenModeConfig config) { in fireConfigChanged() 220 final ZenModeConfig config = mNoMan.getZenModeConfig(); in updateZenModeConfig()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/ |
D | FakeZenModeController.java | 19 import android.service.notification.ZenModeConfig; 20 import android.service.notification.ZenModeConfig.ZenRule; 47 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 | 67 public class ZenModeConfig implements Parcelable { class 166 public ZenModeConfig() { } in ZenModeConfig() method in ZenModeConfig 168 public ZenModeConfig(Parcel source) { in ZenModeConfig() method in ZenModeConfig 229 return new StringBuilder(ZenModeConfig.class.getSimpleName()).append('[') in toString() 248 private Diff diff(ZenModeConfig to) { in diff() 309 public static Diff diff(ZenModeConfig from, ZenModeConfig to) { in diff() 382 if (!(o instanceof ZenModeConfig)) return false; in equals() 384 final ZenModeConfig other = (ZenModeConfig) o; in equals() 452 public static ZenModeConfig readXml(XmlPullParser parser) in readXml() 458 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 | 26 import android.service.notification.ZenModeConfig; 46 private static final int[] MINUTE_BUCKETS = ZenModeConfig.MINUTE_BUCKETS; 276 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; 52 ZenModeConfig mConfig; 69 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; 177 Uri conditionId = ZenModeConfig.toTimeCondition(mContext, zenDuration, in showDetail() 227 state.secondaryLabel = TextUtils.emptyIfNull(ZenModeConfig.getDescription(mContext, in handleUpdateState() 315 public void onConfigChanged(ZenModeConfig config) { 388 ZenModeConfig config = mController.getConfig(); in updatePanel()
|
/frameworks/base/core/java/android/app/ |
D | INotificationManager.aidl | 38 import android.service.notification.ZenModeConfig; 147 ZenModeConfig getZenModeConfig(); in getZenModeConfig() 157 List<ZenModeConfig.ZenRule> getZenRules(); in getZenRules()
|
D | NotificationManager.java | 43 import android.service.notification.ZenModeConfig; 693 public ZenModeConfig getZenModeConfig() { in getZenModeConfig() 724 List<ZenModeConfig.ZenRule> rules = service.getZenRules(); in getAutomaticZenRules() 726 for (ZenModeConfig.ZenRule rule : rules) { in getAutomaticZenRules()
|
/frameworks/base/core/java/android/preference/ |
D | SeekBarVolumizer.java | 37 import android.service.notification.ZenModeConfig; 105 mAllowRinger = !ZenModeConfig.areAllPriorityOnlyNotificationZenSoundsMuted( in SeekBarVolumizer() 459 mAllowRinger = !ZenModeConfig.areAllPriorityOnlyNotificationZenSoundsMuted( in onReceive()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | KeyguardSliceProvider.java | 34 import android.service.notification.ZenModeConfig; 207 public void onConfigChanged(ZenModeConfig config) { in onConfigChanged()
|