Home
last modified time | relevance | path

Searched refs:setZenMode (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/
DZenModeSliceBuilderTest.java121 verify(mNm).setZenMode(eq(ZEN_MODE_IMPORTANT_INTERRUPTIONS), any(), any(), eq(true)); in handleUriChange_turnOn_zenModeTurnsOn()
123 verify(mNm).setZenMode(eq(ZEN_MODE_IMPORTANT_INTERRUPTIONS), any(), any()); in handleUriChange_turnOn_zenModeTurnsOn()
135 verify(mNm).setZenMode(eq(ZEN_MODE_OFF), any(), any(), eq(true)); in handleUriChange_turnOff_zenModeTurnsOff()
137 verify(mNm).setZenMode(eq(ZEN_MODE_OFF), any(), any()); in handleUriChange_turnOff_zenModeTurnsOff()
/packages/apps/Settings/src/com/android/settings/notification/modes/
DZenModesListItemPreference.java33 setZenMode(zenMode); in ZenModesListItemPreference()
42 public void setZenMode(ZenMode zenMode) { in setZenMode() method in ZenModesListItemPreference
DZenModesBackend.java214 mNotificationManager.setZenMode(Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS, in activateMode()
231 mNotificationManager.setZenMode(Settings.Global.ZEN_MODE_OFF, null, TAG, in deactivateMode()
DAbstractZenModePreferenceController.java82 protected final void setZenMode(@NonNull ZenMode zenMode) { in setZenMode() method in AbstractZenModePreferenceController
DZenModesListPreferenceController.java90 modePreference.setZenMode(mode); in updateState()
DZenModeFragmentBase.java69 ((AbstractZenModePreferenceController) controller).setZenMode(mZenMode); in onAttach()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/modes/
DZenModeButtonPreferenceControllerTest.java82 mController.setZenMode(zenMode); in isAvailable_notIfAppOptsOut()
96 mController.setZenMode(zenMode); in isAvailable_notIfModeDisabled()
110 mController.setZenMode(zenMode); in isAvailable_appOptedIn_modeEnabled()
DZenModesBackendTest.java304 verify(mNm).setZenMode(eq(Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS), eq(null), in activateMode_manualDnd_setsZenModeImportant()
313 verify(mNm).setZenMode(eq(Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS), in activateMode_manualDndWithDuration_setsZenModeImportantWithCondition()
339 verify(mNm).setZenMode(eq(ZEN_MODE_OFF), eq(null), any(), eq(true)); in deactivateMode_manualDnd_setsZenModeOff()
DZenModeIconPickerListPreferenceControllerTest.java87 mController.setZenMode(ZEN_MODE); in selectIcon_updatesMode()
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenModeBackend.java105 protected void setZenMode(int zenMode) { in setZenMode() method in ZenModeBackend
107 mNotificationManager.setZenMode(zenMode, null, TAG, /* fromUser= */ true); in setZenMode()
109 NotificationManager.from(mContext).setZenMode(zenMode, null, TAG); in setZenMode()
118 mNotificationManager.setZenMode(Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS, in setZenModeForDuration()
121 mNotificationManager.setZenMode(Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS, in setZenModeForDuration()
DZenModeButtonPreferenceController.java83 mBackend.setZenMode(Settings.Global.ZEN_MODE_OFF); in updateState()
124 mBackend.setZenMode(Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS); in updateZenButtonOnClickListener()
DZenModeVoiceActivity.java81 NotificationManager.from(this).setZenMode(mode, condition.id, TAG); in setZenModeConfig()
83 NotificationManager.from(this).setZenMode(mode, null, TAG); in setZenModeConfig()
DZenModeSliceBuilder.java121 NotificationManager.from(context).setZenMode(zenMode, /* conditionId= */ null, TAG, in handleUriChange()
124 NotificationManager.from(context).setZenMode(zenMode, null /* conditionId */, TAG); in handleUriChange()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DDndConditionCardController.java91 mNotificationManager.setZenMode(Settings.Global.ZEN_MODE_OFF, null, TAG, in onActionClick()
94 mNotificationManager.setZenMode(Settings.Global.ZEN_MODE_OFF, null, TAG); in onActionClick()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowNotificationManager.java37 protected void setZenMode(int mode, Uri conditionId, String reason) { in setZenMode() method in ShadowNotificationManager