Home
last modified time | relevance | path

Searched refs:getNotificationPolicy (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/notification/
DEnableZenModeDialogTest.java87 doReturn(alarmsEnabledPolicy).when(mNotificationManager).getNotificationPolicy(); in setup()
172 when(mNotificationManager.getNotificationPolicy()).thenReturn( in testNoAlarmWarning()
188 when(mNotificationManager.getNotificationPolicy()).thenReturn( in testAlarmWarning()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java723 return getNotificationPolicy(); in getNotificationPolicyFromImplicitZenRule()
738 return getNotificationPolicy(); in getNotificationPolicyFromImplicitZenRule()
1749 public Policy getNotificationPolicy() { in getNotificationPolicy() method in ZenModeHelper
1751 return getNotificationPolicy(mConfig); in getNotificationPolicy()
1755 private static Policy getNotificationPolicy(ZenModeConfig config) { in getNotificationPolicy() method in ZenModeHelper
1908 Policy newPolicy = getNotificationPolicy(config); in setConfigLocked()
1909 boolean policyChanged = !Objects.equals(getNotificationPolicy(mConfig), newPolicy); in setConfigLocked()
DPreferencesHelper.java1863 mCurrentUserHasChannelsBypassingDnd = (mZenModeHelper.getNotificationPolicy().state in syncChannelsBypassingDnd()
1925 NotificationManager.Policy policy = mZenModeHelper.getNotificationPolicy(); in updateZenPolicy()
DNotificationManagerService.java5998 public Policy getNotificationPolicy(String pkg) {
6005 return mZenModeHelper.getNotificationPolicy();
6042 Policy currPolicy = mZenModeHelper.getNotificationPolicy();
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeHelperTest.java1573 Policy originalPolicy = mZenModeHelper.getNotificationPolicy(); in testReadXmlRulesNotOverridden()
1596 assertEquals(originalPolicy, mZenModeHelper.getNotificationPolicy()); in testReadXmlRulesNotOverridden()
1726 Policy originalPolicy = mZenModeHelper.getNotificationPolicy(); in testReadXmlResetDefaultRules()
1747 assertEquals(originalPolicy, mZenModeHelper.getNotificationPolicy()); in testReadXmlResetDefaultRules()
1754 Policy originalPolicy = mZenModeHelper.getNotificationPolicy(); in testReadXmlAllDisabledRulesResetDefaultRules()
1785 assertEquals(originalPolicy, mZenModeHelper.getNotificationPolicy()); in testReadXmlAllDisabledRulesResetDefaultRules()
1791 Policy originalPolicy = mZenModeHelper.getNotificationPolicy(); in testReadXmlOnlyOneDefaultRuleExists()
1838 assertEquals(originalPolicy, mZenModeHelper.getNotificationPolicy()); in testReadXmlOnlyOneDefaultRuleExists()
1844 Policy originalPolicy = mZenModeHelper.getNotificationPolicy(); in testReadXmlDefaultRulesExist()
1908 assertEquals(originalPolicy, mZenModeHelper.getNotificationPolicy()); in testReadXmlDefaultRulesExist()
[all …]
DRankingHelperTest.java157 when(mMockZenModeHelper.getNotificationPolicy()).thenReturn(mTestNotificationPolicy); in setUp()
DPreferencesHelperTest.java341 when(mMockZenModeHelper.getNotificationPolicy()).thenReturn(mTestNotificationPolicy); in setUp()
475 when(mMockZenModeHelper.getNotificationPolicy()).thenReturn(mTestNotificationPolicy); in resetZenModeHelper()
2673 when(mMockZenModeHelper.getNotificationPolicy()).thenReturn(mTestNotificationPolicy); in testBlockedGroupDoesNotBypassDnd()
2700 when(mMockZenModeHelper.getNotificationPolicy()).thenReturn(mTestNotificationPolicy); in testBlockedAppsDoNotBypassDnd_localSettings()
2722 when(mMockZenModeHelper.getNotificationPolicy()).thenReturn(mTestNotificationPolicy); in testBlockedAppsDoNotBypassDnd_permissionHelper()
2774 when(mMockZenModeHelper.getNotificationPolicy()).thenReturn(mTestNotificationPolicy); in testSetupNewZenModeHelper_canBypass()
2785 when(mMockZenModeHelper.getNotificationPolicy()).thenReturn(mTestNotificationPolicy); in testSetupNewZenModeHelper_cannotBypass()
DNotificationManagerServiceTest.java6992 when(mZenModeHelper.getNotificationPolicy()).thenReturn(userPolicy); in testSetNotificationPolicy_preP_setOldFields()
7012 when(mZenModeHelper.getNotificationPolicy()).thenReturn(userPolicy); in testSetNotificationPolicy_preP_setNewFields()
7029 when(mZenModeHelper.getNotificationPolicy()).thenReturn(userPolicy); in testSetNotificationPolicy_preP_setOldNewFields()
7047 when(mZenModeHelper.getNotificationPolicy()).thenReturn(userPolicy); in testSetNotificationPolicy_P_setOldFields()
7066 when(mZenModeHelper.getNotificationPolicy()).thenReturn(userPolicy); in testSetNotificationPolicy_P_setNewFields()
7086 when(mZenModeHelper.getNotificationPolicy()).thenReturn(userPolicy); in testSetNotificationPolicy_P_setOldNewFields()
14992 mBinderService.getNotificationPolicy("package");
/frameworks/base/core/java/android/app/
DINotificationManager.aidl215 NotificationManager.Policy getNotificationPolicy(String pkg); in getNotificationPolicy() method
DNotificationManager.java1764 public Policy getNotificationPolicy() { in getNotificationPolicy() method in NotificationManager
1767 return service.getNotificationPolicy(mContext.getOpPackageName()); in getNotificationPolicy()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
DEnableZenModeDialog.java492 boolean allowAlarms = (mNotificationManager.getNotificationPolicy().priorityCategories in computeAlarmWarningText()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/
DPeopleSpaceWidgetManager.java1200 NotificationManager.Policy policy = mNotificationManager.getNotificationPolicy(); in getNotificationPolicyState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/widget/
DPeopleSpaceWidgetManagerTest.java302 when(mNotificationManager.getNotificationPolicy()).thenReturn(mNotificationPolicy); in setUp()
/frameworks/base/services/
Dart-wear-profile15893 PLcom/android/server/notification/NotificationManagerService$12;->getNotificationPolicy(Ljava/lang/…
16595 PLcom/android/server/notification/ZenModeHelper;->getNotificationPolicy()Landroid/app/NotificationM…
16596 PLcom/android/server/notification/ZenModeHelper;->getNotificationPolicy(Landroid/service/notificati…
/frameworks/base/boot/
Dboot-image-profile.txt1946 HSPLandroid/app/INotificationManager$Stub$Proxy;->getNotificationPolicy(Ljava/lang/String;)Landroid…
2382 HSPLandroid/app/NotificationManager;->getNotificationPolicy()Landroid/app/NotificationManager$Polic…
/frameworks/base/config/
Dboot-image-profile.txt1946 HSPLandroid/app/INotificationManager$Stub$Proxy;->getNotificationPolicy(Ljava/lang/String;)Landroid…
2382 HSPLandroid/app/NotificationManager;->getNotificationPolicy()Landroid/app/NotificationManager$Polic…
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt6457 Landroid/app/INotificationManager$Stub$Proxy;->getNotificationPolicy(Ljava/lang/String;)Landroid/ap…
6647 Landroid/app/INotificationManager;->getNotificationPolicy(Ljava/lang/String;)Landroid/app/Notificat…
/frameworks/base/core/api/
Dcurrent.txt7031 method public android.app.NotificationManager.Policy getNotificationPolicy();