Home
last modified time | relevance | path

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

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationAssistantsTest.java68 NotificationAssistants mAssistants; field in NotificationAssistantsTest
84 mAssistants = spy(mNm.new NotificationAssistants(getContext(), mLock, mUserProfiles, miPm)); in setUp()
117 mAssistants.resetDefaultAssistantsIfNecessary(); in testXmlUpgrade()
133 mAssistants.readXml(parser, null, false, UserHandle.USER_ALL); in testXmlUpgradeExistingApprovedComponents()
136 verify(mAssistants, times(1)).addApprovedList( in testXmlUpgradeExistingApprovedComponents()
144 mAssistants.setPackageOrComponentEnabled(component1.flattenToString(), mZero.id, true, in testSetPackageOrComponentEnabled_onlyOnePackage()
149 mAssistants.setPackageOrComponentEnabled(component2.flattenToString(), mZero.id, true, in testSetPackageOrComponentEnabled_onlyOnePackage()
158 mAssistants.setPackageOrComponentEnabled(component1.flattenToString(), mZero.id, true, in testSetPackageOrComponentEnabled_samePackage()
160 mAssistants.setPackageOrComponentEnabled(component1.flattenToString(), mZero.id, true, in testSetPackageOrComponentEnabled_samePackage()
DNotificationManagerServiceTest.java222 @Mock private NotificationAssistants mAssistants; field in NotificationManagerServiceTest
381 when(mAssistants.getConfig()).thenReturn(assistantConfig); in setUp()
386 when(mAssistants.isAdjustmentAllowed(anyString())).thenReturn(true); in setUp()
391 mListeners, mAssistants, mConditionProviders, in setUp() local
932 when(mAssistants.isSameUser(any(), anyInt())).thenReturn(true); in testBlockedNotifications_blockedByAssistant()
1932 when(mAssistants.isServiceTokenValidLocked(any())).thenReturn(true); in testGetNotificationChannelFromPrivilegedListener_assistant_success()
1946 when(mAssistants.isServiceTokenValidLocked(any())).thenReturn(false); in testGetNotificationChannelFromPrivilegedListener_assistant_noAccess()
2189 verify(mAssistants, never()).setPackageOrComponentEnabled( in testSetListenerAccessForUser()
2206 verify(mAssistants, times(1)).setPackageOrComponentEnabled( in testSetAssistantAccessForUser()
2208 verify(mAssistants).setUserSet(10, true); in testSetAssistantAccessForUser()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java452 private NotificationAssistants mAssistants; field in NotificationManagerService
564 mAssistants.queryPackageForServices( in setDefaultAssistantForUser()
609 } else if (mAssistants.getConfig().xmlTag.equals(parser.getName())) { in readPolicyXml()
613 mAssistants.readXml(parser, mAllowedManagedServicePackages, forRestore, userId); in readPolicyXml()
635 mAssistants.migrateToXml(); in readPolicyXml()
640 mAssistants.resetDefaultAssistantsIfNecessary(); in readPolicyXml()
709 mAssistants.writeXml(out, forBackup, userId); in writePolicyXml()
856 mAssistants.notifyAssistantActionClicked(
984 mAssistants.notifyAssistantExpansionChangedLocked(r.sbn, userAction, expanded);
1000 mAssistants.notifyAssistantNotificationDirectReplyLocked(r.sbn);
[all …]