Searched refs:dndPolicy (Results 1 – 2 of 2) sorted by relevance
150 Policy dndPolicy = new Policy(Policy.PRIORITY_CATEGORY_ALARMS, in getModes_containsManualDndAndZenRules() local155 config.applyNotificationPolicy(dndPolicy); in getModes_containsManualDndAndZenRules()168 .setZenPolicy(ZenAdapters.notificationPolicyToZenPolicy(dndPolicy)) in getModes_containsManualDndAndZenRules()179 Policy dndPolicy = new Policy(Policy.PRIORITY_CATEGORY_ALARMS, in getMode_manualDnd_returnsMode() local182 config.applyNotificationPolicy(dndPolicy); in getMode_manualDnd_returnsMode()193 .setZenPolicy(ZenAdapters.notificationPolicyToZenPolicy(dndPolicy)) in getMode_manualDnd_returnsMode()224 Policy dndPolicy = new Policy(0, 0, 0); in getMode_manualDnd_returnsCorrectActiveState() local225 configWithActiveRule.applyNotificationPolicy(dndPolicy); in getMode_manualDnd_returnsCorrectActiveState()
192 NotificationManager.Policy dndPolicy = in updateMode() local194 mNotificationManager.setNotificationPolicy(dndPolicy, /* fromUser= */ true); in updateMode()