Home
last modified time | relevance | path

Searched refs:mAssistants (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationAssistantsTest.java87 NotificationAssistants mAssistants; field in NotificationAssistantsTest
108 mAssistants = spy(mNm.new NotificationAssistants(mContext, mLock, mUserProfiles, miPm)); in setUp()
145 mAssistants.resetDefaultAssistantsIfNecessary(); in testXmlUpgrade()
155 mAssistants.loadDefaultsFromConfig(true); in testWriteXml_userTurnedOffNAS()
157 mAssistants.setPackageOrComponentEnabled(mCn.flattenToString(), userId, true, in testWriteXml_userTurnedOffNAS()
161 mAssistants.getAllowedComponents(userId)); in testWriteXml_userTurnedOffNAS()
163 mAssistants.setUserSet(userId, true); in testWriteXml_userTurnedOffNAS()
164 mAssistants.setPackageOrComponentEnabled(current.flattenToString(), userId, true, false, in testWriteXml_userTurnedOffNAS()
171 mAssistants.writeXml(serializer, true, userId); in testWriteXml_userTurnedOffNAS()
184 mAssistants = spy(mNm.new NotificationAssistants(mContext, mLock, mUserProfiles, miPm)); in testWriteXml_userTurnedOffNAS()
[all …]
DNotificationManagerServiceTest.java473 @Mock private NotificationAssistants mAssistants; field in NotificationManagerServiceTest
682 when(mAssistants.getDefaultComponents()).thenReturn(components); in setUp()
683 when(mAssistants.queryPackageForServices( in setUp()
691 when(mAssistants.getConfig()).thenReturn(assistantConfig); in setUp()
696 when(mAssistants.isAdjustmentAllowed(anyString())).thenReturn(true); in setUp()
749 mLightsManager, mListeners, mAssistants, mConditionProviders, mCompanionMgr, in initNMS()
1451 when(mAssistants.queryPackageForServices(isNull(), anyInt(), anyInt())) in testDefaultAssistant_overrideDefault()
1453 when(mAssistants.getDefaultComponents()).thenReturn(validAssistants); in testDefaultAssistant_overrideDefault()
1458 verify(mAssistants).setPackageOrComponentEnabled( in testDefaultAssistant_overrideDefault()
1873 when(mAssistants.isSameUser(any(), anyInt())).thenReturn(true); in testBlockedNotifications_blockedByAssistant()
[all …]
DNotificationListenersTest.java158 mNm.mAssistants = mock(NotificationManagerService.NotificationAssistants.class); in setUp()
814 mNm.mAssistants = mock(NotificationManagerService.NotificationAssistants.class); in testRedaction_whenRemoved()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java706 NotificationAssistants mAssistants; field in NotificationManagerService
892 mAssistants.loadDefaultsFromConfig(); in loadDefaultApprovedServices()
937 List<ComponentName> allowedComponents = mAssistants.getAllowedComponents(userId); in migrateDefaultNAS()
941 mAssistants.clearDefaults(); in migrateDefaultNAS()
946 mAssistants.resetDefaultAssistantsIfNecessary(); in migrateDefaultNAS()
977 ArraySet<ComponentName> defaults = mAssistants.getDefaultComponents(); in setDefaultAssistantForUser()
1050 mAssistants.queryPackageForServices( in allowAssistant()
1086 } else if (mAssistants.getConfig().xmlTag.equals(parser.getName())) { in readPolicyXml()
1090 mAssistants.readXml(parser, mAllowedManagedServicePackages, forRestore, userId); in readPolicyXml()
1113 mAssistants.migrateToXml(); in readPolicyXml()
[all …]