Searched refs:FieldDiff (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/java/android/service/notification/ |
D | ZenModeDiff.java | 62 public static class FieldDiff<T> { class in ZenModeDiff 71 public FieldDiff(@Nullable T from, @Nullable T to) { in FieldDiff() method in ZenModeDiff.FieldDiff 117 private ArrayMap<String, FieldDiff> mFields = new ArrayMap<>(); 159 final void addField(String name, FieldDiff diff) { in addField() 194 public final FieldDiff getDiffForField(String name) { in getDiffForField() 254 addField(FIELD_USER, new FieldDiff<>(from.user, to.user)); in ConfigDiff() 257 addField(FIELD_ALLOW_ALARMS, new FieldDiff<>(from.allowAlarms, to.allowAlarms)); in ConfigDiff() 260 addField(FIELD_ALLOW_MEDIA, new FieldDiff<>(from.allowMedia, to.allowMedia)); in ConfigDiff() 263 addField(FIELD_ALLOW_SYSTEM, new FieldDiff<>(from.allowSystem, to.allowSystem)); in ConfigDiff() 266 addField(FIELD_ALLOW_CALLS, new FieldDiff<>(from.allowCalls, to.allowCalls)); in ConfigDiff() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ZenModeEventLogger.java | 506 ZenModeDiff.FieldDiff enabled = d.getDiffForField( in getIsUserAction() 511 ZenModeDiff.FieldDiff snoozing = d.getDiffForField( in getIsUserAction()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenModeDiffTest.java | 265 ZenModeDiff.FieldDiff p = r.getDiffForField(RuleDiff.FIELD_ZEN_POLICY); in testConfigDiff_specialSenders()
|