Home
last modified time | relevance | path

Searched refs:setNotificationsEnabledForPackage (Results 1 – 12 of 12) sorted by relevance

/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/
DNotificationsPreferenceTest.java95 setNotificationsEnabledForPackage(PACKAGE_NAME, true); in testNotificationsPreference_systemAppNotificationsEnabledInRes()
107 setNotificationsEnabledForPackage(PACKAGE_NAME, true); in testNotificationsPreference_systemAppNotificationsEnabledNotInRes()
119 setNotificationsEnabledForPackage(PACKAGE_NAME, true); in testNotificationsPreference_notSystemAppNotificationsEnabledInRes()
131 setNotificationsEnabledForPackage(PACKAGE_NAME, true); in testNotificationsPreference_notSystemAppNotificationsEnabledNotInRes()
143 setNotificationsEnabledForPackage(PACKAGE_NAME, false); in testNotificationsPreference_systemAppNotificationsDisabledNotInRes()
155 setNotificationsEnabledForPackage(PACKAGE_NAME, false); in testNotificationsPreference_notSystemAppNotificationsEDisabledInRes()
167 setNotificationsEnabledForPackage(PACKAGE_NAME, false); in testNotificationsPreference_notSystemAppNotificationsDisabledNotInRes()
179 setNotificationsEnabledForPackage(PACKAGE_NAME, false); in testNotificationsPreference_systemAppNotificationsDisabledInRes()
192 private void setNotificationsEnabledForPackage(String packageName, in setNotificationsEnabledForPackage() method in NotificationsPreferenceTest
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
DNotificationsPreferenceControllerTest.java114 verify(mMockManager).setNotificationsEnabledForPackage(PKG_NAME, UID, true); in callChangeListener_setEnable_enablingNotification()
123 verify(mMockManager).setNotificationsEnabledForPackage(PKG_NAME, UID, false); in callChangeListener_setDisable_disablingNotification()
/packages/apps/Settings/src/com/android/settings/notification/app/
DBlockPreferenceController.java127 mBackend.setNotificationsEnabledForPackage(mAppRow.pkg, mAppRow.uid, !blocked); in onSwitchChanged()
135 mBackend.setNotificationsEnabledForPackage(mAppRow.pkg, mAppRow.uid, !blocked); in onSwitchChanged()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DResetAppPrefFragmentTest.java132 .setNotificationsEnabledForPackage(ENABLED_PKG_NAME, UID, true); in resetClicked_resetsNotificationsForApps()
134 .setNotificationsEnabledForPackage(DISABLED_PKG_NAME, UID, true); in resetClicked_resetsNotificationsForApps()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/notifications/
DNotificationsAppListPreferenceControllerTest.java164 verify(mMockManager).setNotificationsEnabledForPackage(PKG_NAME, UID, true); in toggle_setEnable_enablingNotification()
180 verify(mMockManager).setNotificationsEnabledForPackage(PKG_NAME, UID, false); in toggle_setDisable_disablingNotification()
/packages/apps/Car/Settings/src/com/android/car/settings/notifications/
DBaseNotificationsPreferenceController.java77 mNotificationManager.setNotificationsEnabledForPackage(packageName, uid, enabled); in toggleNotificationsSetting()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DNotificationsPreference.java92 mNotificationManager.setNotificationsEnabledForPackage( in setNotificationsEnabled()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DResetAppPrefFragment.java113 notificationManagerService.setNotificationsEnabledForPackage( in doInBackground()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationBackend.java197 public boolean setNotificationsEnabledForPackage(String pkg, int uid, boolean enabled) { in setNotificationsEnabledForPackage() method in NotificationBackend
205 sINM.setNotificationsEnabledForPackage(pkg, uid, enabled); in setNotificationsEnabledForPackage()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateNotificationBridge.java232 mBackend.setNotificationsEnabledForPackage( in getSwitchOnCheckedListener()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DBlockPreferenceControllerTest.java394 verify(mBackend, times(2)).setNotificationsEnabledForPackage( in testOnSwitchChanged_channel_default()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppStateNotificationBridgeTest.java568 verify(mBackend).setNotificationsEnabledForPackage( in testSwitchOnChangeListener()