Home
last modified time | relevance | path

Searched refs:mUserProfiles (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DManagedServicesTest.java115 private ManagedServices.UserProfiles mUserProfiles; field in ManagedServicesTest
168 when(mUserProfiles.getCurrentProfileIds()).thenReturn(profileIds); in setUp()
198 mService = new TestManagedServices(getContext(), mLock, mUserProfiles, in setUp()
205 ManagedServices service = new TestManagedServices(getContext(), mLock, mUserProfiles, in testBackupAndRestore_migration()
254 ManagedServices service = new TestManagedServices(getContext(), mLock, mUserProfiles, in testBackupAndRestore_migration_preO()
294 ManagedServices service = new TestManagedServices(getContext(), mLock, mUserProfiles, in testReadXml_migrationFromSettings()
313 mUserProfiles, mIpm, approvalLevel); in testReadXml_noLongerMigrateFromSettings()
342 ManagedServices service = new TestManagedServices(getContext(), mLock, mUserProfiles, in testReadXml()
362 ManagedServices service = new TestManagedServices(getContext(), mLock, mUserProfiles, in testReadXml_appendsListOfApprovedComponents()
391 getContext(), mLock, mUserProfiles, mIpm, approvalLevel); in testReadXml_onlyRestoresForTargetUser()
[all …]
DSnoozeHelperTest.java87 @Mock ManagedServices.UserProfiles mUserProfiles; field in SnoozeHelperTest
95 mSnoozeHelper = new SnoozeHelper(getContext(), mCallback, mUserProfiles); in setUp()
585 when(mUserProfiles.getCurrentProfileIds()).thenReturn(profileIds);
607 when(mUserProfiles.getCurrentProfileIds()).thenReturn(profileIds);
624 when(mUserProfiles.getCurrentProfileIds()).thenReturn(profileIds);
645 when(mUserProfiles.getCurrentProfileIds()).thenReturn(profileIds);
673 when(mUserProfiles.getCurrentProfileIds()).thenReturn(profileIds);
704 when(mUserProfiles.getCurrentProfileIds()).thenReturn(profileIds);
DConditionProvidersTest.java59 private ManagedServices.UserProfiles mUserProfiles; field in ConditionProvidersTest
72 mProviders = new ConditionProviders(mContext, mUserProfiles, mIpm); in setUp()
DNotificationAssistantsTest.java90 private ManagedServices.UserProfiles mUserProfiles; field in NotificationAssistantsTest
108 mAssistants = spy(mNm.new NotificationAssistants(mContext, mLock, mUserProfiles, miPm)); in setUp()
138 when(mUserProfiles.getCurrentProfileIds()).thenReturn(profileIds); in setUp()
184 mAssistants = spy(mNm.new NotificationAssistants(mContext, mLock, mUserProfiles, miPm)); in testWriteXml_userTurnedOffNAS()
DPreferencesHelperTest.java217 @Mock ManagedServices.UserProfiles mUserProfiles; field in PreferencesHelperTest
357 when(mUserProfiles.getCurrentProfileIds()).thenReturn(currentProfileIds); in setUp()
361 mPermissionHelper, mPermissionManager, mLogger, mAppOpsManager, mUserProfiles, in setUp()
364 mPermissionHelper, mPermissionManager, mLogger, mAppOpsManager, mUserProfiles, in setUp()
740 mPermissionHelper, mPermissionManager, mLogger, mAppOpsManager, mUserProfiles, in testReadXml_oldXml_migrates()
876 mPermissionHelper, mPermissionManager, mLogger, mAppOpsManager, mUserProfiles, in testReadXml_newXml_noMigration_showPermissionNotification()
935 mPermissionHelper, mPermissionManager, mLogger, mAppOpsManager, mUserProfiles, in testReadXml_newXml_permissionNotificationOff()
994 mPermissionHelper, mPermissionManager, mLogger, mAppOpsManager, mUserProfiles, in testReadXml_newXml_noMigration_noPermissionNotification()
1591 mPermissionHelper, mPermissionManager, mLogger, mAppOpsManager, mUserProfiles, in testRestoreXml_delayedRestore_afterReboot()
1646 mPermissionHelper, mPermissionManager, mLogger, mAppOpsManager, mUserProfiles, in testRestoreXml_delayedRestore_packageMissingAfterTwoDays()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DFgsManagerControllerTest.java113 private List<UserInfo> mUserProfiles; field in FgsManagerControllerTest
125 mUserProfiles = new ArrayList<>(); in setUp()
126 Mockito.doReturn(mUserProfiles).when(mUserTracker).getUserProfiles(); in setUp()
507 mUserProfiles.clear(); in setUserProfiles()
508 mUserProfiles.add(new UserInfo(current, "current:" + current, 0)); in setUserProfiles()
510 mUserProfiles.add(new UserInfo(id, "profile:" + id, 0)); in setUserProfiles()
515 mUserTrackerCallback.onProfilesChanged(mUserProfiles); in setUserProfiles()
/frameworks/base/services/core/java/com/android/server/notification/
DSnoozeHelper.java88 private final ManagedServices.UserProfiles mUserProfiles; field in SnoozeHelper
116 mUserProfiles = userProfiles; in SnoozeHelper()
268 userIds = mUserProfiles.getCurrentProfileIds(); in cancel()
DManagedServices.java134 private final UserProfiles mUserProfiles; field in ManagedServices
193 mUserProfiles = userProfiles; in ManagedServices()
1437 IntArray userIds = mUserProfiles.getCurrentProfileIds(); in rebindServices()
1438 boolean rebindAllCurrentUsers = mUserProfiles.isProfileUser(userToRebind, mContext) in rebindServices()
1931 && mUserProfiles.isCurrentProfile(nid) in enabledAndUserMatches()
1964 if (!mUserProfiles.isProfileUser(userId, mContext)) { in isPermittedForProfile()
DNotificationManagerService.java703 private final UserProfiles mUserProfiles = new UserProfiles(); field in NotificationManagerService
2047 mUserProfiles.updateCache(context);
2048 if (!mUserProfiles.isProfileUser(userId, context)) {
2063 mUserProfiles.updateCache(context);
2064 if (!mUserProfiles.isProfileUser(userId, context)) {
2072 mUserProfiles.updateCache(context);
2083 mUserProfiles.updateCache(context);
2085 if (!mUserProfiles.isProfileUser(userId, context)) {
2509 mUserProfiles.updateCache(getContext()); in init()
2518 mUserProfiles, in init()
[all …]
DPreferencesHelper.java208 private final ManagedServices.UserProfiles mUserProfiles; field in PreferencesHelper
238 mUserProfiles = userProfiles; in PreferencesHelper()
1879 final IntArray currentUserIds = mUserProfiles.getCurrentProfileIds(); in updateCurrentUserHasChannelsBypassingDnd()