Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DNotificationMultiChannelAppRowTest.java44 private NotificationBackend mNotificationBackend; field in NotificationMultiChannelAppRowTest
58 mNotificationBackend, mPackageInfo); in setUp()
63 doReturn(3).when(mNotificationBackend).getChannelCount(any(String.class), in call_isMultiChannel_shouldLoadAppRow()
68 verify(mNotificationBackend).loadAppRow(any(Context.class), any(PackageManager.class), in call_isMultiChannel_shouldLoadAppRow()
74 doReturn(1).when(mNotificationBackend).getChannelCount(any(String.class), in call_isNotMultiChannel_shouldNotLoadAppRow()
79 verify(mNotificationBackend, never()).loadAppRow(any(Context.class), in call_isNotMultiChannel_shouldNotLoadAppRow()
DNotificationChannelSliceTest.java82 private NotificationBackend mNotificationBackend; field in NotificationChannelSliceTest
106 mNotificationChannelSlice.mNotificationBackend = mNotificationBackend; in setUp()
346 doReturn(buildNotificationChannelGroups(channels)).when(mNotificationBackend).getGroups( in mockNotificationBackend()
348 doReturn(appRow).when(mNotificationBackend).loadAppRow(any(Context.class), in mockNotificationBackend()
350 doReturn(channelCount).when(mNotificationBackend).getChannelCount( in mockNotificationBackend()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationAssistantPickerTest.java63 private NotificationBackend mNotificationBackend; field in NotificationAssistantPickerTest
70 mNotificationBackend); in setUp()
75 when(mNotificationBackend.getAllowedNotificationAssistant()).thenReturn(TEST_COMPONENT); in getCurrentAssistant()
82 when(mNotificationBackend.getAllowedNotificationAssistant()).thenReturn(null); in getCurrentAssistant_None()
90 verify(mNotificationBackend).setNotificationAssistantGranted(TEST_COMPONENT); in setAssistant()
96 verify(mNotificationBackend).setNotificationAssistantGranted(null); in setAssistant_None()
161 mNotificationBackend = notificationBackend; in TestNotificationAssistantPicker()
DNotificationAssistantPreferenceControllerTest.java77 mNotificationBackend = backend; in TestPreferenceController()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DNotificationMultiChannelAppRow.java34 private final NotificationBackend mNotificationBackend; field in NotificationMultiChannelAppRow
40 mNotificationBackend = notificationBackend; in NotificationMultiChannelAppRow()
46 final int channelCount = mNotificationBackend.getChannelCount( in call()
49 return mNotificationBackend.loadAppRow(mContext, mContext.getPackageManager(), in call()
DNotificationChannelSlice.java136 NotificationBackend mNotificationBackend; field in NotificationChannelSlice
143 mNotificationBackend = new NotificationBackend(); in NotificationChannelSlice()
195 final NotificationChannel channel = mNotificationBackend.getChannel(packageName, uid, in onNotifyChange()
200 mNotificationBackend.updateChannel(packageName, uid, channel); in onNotifyChange()
342 mNotificationBackend.getGroups(appRow.pkg, appRow.uid).getList(); in getDisplayableChannels()
375 mContext, mNotificationBackend, packageInfo); in getEligibleNotificationsPackage()
418 final int channelCount = mNotificationBackend.getChannelCount(packageName, uid); in getSubTitle()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/
DNotificationChannelSlice.java133 NotificationBackend mNotificationBackend; field in NotificationChannelSlice
140 mNotificationBackend = new NotificationBackend(); in NotificationChannelSlice()
199 final NotificationChannel channel = mNotificationBackend.getChannel(packageName, uid, in onNotifyChange()
204 mNotificationBackend.updateChannel(packageName, uid, channel); in onNotifyChange()
311 final int channelCount = mNotificationBackend.getChannelCount(packageInfo.packageName, in getMultiChannelPackages()
355 mNotificationBackend.getGroups(appRow.pkg, appRow.uid).getList(); in getDisplayableChannels()
388 final NotificationBackend.AppRow appRow = mNotificationBackend.loadAppRow(mContext, in getMaxSentNotificationsPackage()
417 final int channelCount = mNotificationBackend.getChannelCount(packageName, uid); in getSubTitle()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DNotificationAssistantPicker.java51 protected NotificationBackend mNotificationBackend; field in NotificationAssistantPicker
61 mNotificationBackend = new NotificationBackend(); in onAttach()
91 ComponentName cn = mNotificationBackend.getAllowedNotificationAssistant(); in getDefaultKey()
97 return mNotificationBackend.setNotificationAssistantGranted( in setDefaultKey()
DZenModeBypassingAppsPreferenceController.java12 private NotificationBackend mNotificationBackend = new NotificationBackend(); field in ZenModeBypassingAppsPreferenceController
20 return mNotificationBackend.getNumAppsBypassingDnd(UserHandle.getCallingUserId()) != 0; in isAvailable()
26 mNotificationBackend.getNumAppsBypassingDnd(UserHandle.getCallingUserId()); in getSummary()
DNotificationAssistantPreferenceController.java33 protected NotificationBackend mNotificationBackend; field in NotificationAssistantPreferenceController
38 mNotificationBackend = new NotificationBackend(); in NotificationAssistantPreferenceController()
50 ComponentName assistant = mNotificationBackend.getAllowedNotificationAssistant(); in getSummary()
DZenModeAllBypassingAppsPreferenceController.java56 private NotificationBackend mNotificationBackend = new NotificationBackend(); field in ZenModeAllBypassingAppsPreferenceController
120 for (NotificationChannel channel : mNotificationBackend in updateNotificationChannelList()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationAssistantPicker.java51 protected NotificationBackend mNotificationBackend; field in NotificationAssistantPicker
61 mNotificationBackend = new NotificationBackend(); in onAttach()
91 ComponentName cn = mNotificationBackend.getAllowedNotificationAssistant(); in getDefaultKey()
97 return mNotificationBackend.setNotificationAssistantGranted( in setDefaultKey()
DZenModeBypassingAppsPreferenceController.java12 private NotificationBackend mNotificationBackend = new NotificationBackend(); field in ZenModeBypassingAppsPreferenceController
20 return mNotificationBackend.getNumAppsBypassingDnd(UserHandle.getCallingUserId()) != 0; in isAvailable()
26 mNotificationBackend.getNumAppsBypassingDnd(UserHandle.getCallingUserId()); in getSummary()
DNotificationAssistantPreferenceController.java33 protected NotificationBackend mNotificationBackend; field in NotificationAssistantPreferenceController
38 mNotificationBackend = new NotificationBackend(); in NotificationAssistantPreferenceController()
50 ComponentName assistant = mNotificationBackend.getAllowedNotificationAssistant(); in getSummary()
DRecentNotifyingAppsPreferenceController.java80 private final NotificationBackend mNotificationBackend; field in RecentNotifyingAppsPreferenceController
109 mNotificationBackend = backend; in RecentNotifyingAppsPreferenceController()
280 pref.setSwitchEnabled(mNotificationBackend.isBlockable(mContext, appEntry.info)); in displayRecentApps()
283 mNotificationBackend.setNotificationsEnabledForPackage( in displayRecentApps()
288 !mNotificationBackend.getNotificationsBanned(pkgName, appEntry.info.uid)); in displayRecentApps()
DZenModeAllBypassingAppsPreferenceController.java56 private NotificationBackend mNotificationBackend = new NotificationBackend(); field in ZenModeAllBypassingAppsPreferenceController
120 for (NotificationChannel channel : mNotificationBackend in updateNotificationChannelList()
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/
DManageApplications.java232 private NotificationBackend mNotificationBackend; field in ManageApplications
301 mNotificationBackend = new NotificationBackend(); in onCreate()
962 manageApplications.mNotificationBackend); in ApplicationsAdapter()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/manageapplications/
DManageApplications.java226 private NotificationBackend mNotificationBackend; field in ManageApplications
295 mNotificationBackend = new NotificationBackend(); in onCreate()
949 manageApplications.mNotificationBackend); in ApplicationsAdapter()