/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | InstallNonMarketAppsDeprecationTest.java | 51 private UserManager mUm; field in InstallNonMarketAppsDeprecationTest 89 mUm = (UserManager) getContext().getSystemService(Context.USER_SERVICE); in setUp() 90 mHasUserRestriction = mUm.hasUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES); in setUp() 91 mSystemSetUserRestriction = mUm.getUserRestrictionSource( in setUp() 117 UserInfo newUser = mUm.createUser("TEST_USER", 0); in testValueForNewUser() 135 mUm.setUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, !mHasUserRestriction); in testValueRespectsUserRestriction() 141 mUm.setUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, mHasUserRestriction); in testValueRespectsUserRestriction() 152 mUm.setUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, in tearDown() 156 mUm.removeUser(userId); in tearDown()
|
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/ |
D | UserLifecycleTests.java | 72 private UserManager mUm; field in UserLifecycleTests 84 mUm = UserManager.get(context); in setUp() 94 mUm.removeUser(userId); in tearDown() 104 final UserInfo userInfo = mUm.createUser("TestUser", 0); in createAndStartUser() 122 final UserInfo userInfo = mUm.createUser("TestUser", 0); in switchUser() 179 final UserInfo userInfo = mUm.createUser("TestUser", 0); in stopUser() 199 final UserInfo userInfo = mUm.createUser("TestUser", 0); in lockedBootCompleted() 218 final UserInfo userInfo = mUm.createProfileForUser("TestUser", in managedProfileUnlock() 238 final UserInfo userInfo = mUm.createProfileForUser("TestUser", in managedProfileUnlock_stopped() 266 final UserInfo userInfo = mUm.createUser("TestUser", in ephemeralUserStopped() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsUserLifecycleTests.java | 61 private UserManager mUm; field in BatteryStatsUserLifecycleTests 72 mUm = UserManager.get(mContext); in setUp() 74 final UserInfo user = mUm.createUser("Test_user_" + System.currentTimeMillis() / 1000, 0); in setUp() 100 mUm.removeUser(mTestUserId); in testNoCpuDataForRemovedUser() 102 for (UserInfo user : mUm.getUsers()) { in testNoCpuDataForRemovedUser() 117 mUm.removeUser(mTestUserId); in tearDown()
|
/frameworks/base/core/java/android/util/ |
D | IconDrawableFactory.java | 40 protected final UserManager mUm; field in IconDrawableFactory 47 mUm = context.getSystemService(UserManager.class); in IconDrawableFactory() 53 return appInfo.isInstantApp() || mUm.isManagedProfile(userId); in needsBadging() 81 if (mUm.isManagedProfile(userId)) { in getBadgedIcon() 84 getUserBadgeColor(mUm, userId)); in getBadgedIcon()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationAssistantsTest.java | 62 private UserManager mUm; field in NotificationAssistantsTest 83 getContext().addMockSystemService(Context.USER_SERVICE, mUm); in setUp() 103 when(mUm.getUserInfo(eq(user.id))).thenReturn(user); in setUp() 105 when(mUm.getUsers()).thenReturn(users); in setUp() 106 when(mUm.getUsers(anyBoolean())).thenReturn(users); in setUp() 120 verify(mNm, times(mUm.getUsers().size())).setDefaultAssistantForUser(anyInt()); in testXmlUpgrade()
|
D | RoleObserverTest.java | 91 private UserManager mUm; field in RoleObserverTest 127 when(mUm.getUsers()).thenReturn(mUsers); in setUp() 144 mock(AppOpsManager.class), mUm, mock(TelephonyManager.class)); in setUp() local
|
D | ManagedServicesTest.java | 92 private UserManager mUm; field in ManagedServicesTest 117 getContext().addMockSystemService(Context.USER_SERVICE, mUm); in setUp() 125 when(mUm.getUserInfo(eq(user.id))).thenReturn(user); in setUp() 127 when(mUm.getUsers()).thenReturn(users); in setUp() 405 for (UserInfo userInfo : mUm.getUsers()) { in testWriteXml_trimsMissingServices() 432 for (UserInfo userInfo : mUm.getUsers()) { in testWriteXml_trimsMissingServices() 442 for (UserInfo userInfo : mUm.getUsers()) { in testWriteXml_trimsMissingServices()
|
D | NotificationManagerServiceTest.java | 242 UserManager mUm; field in NotificationManagerServiceTest 395 mAppOpsManager, mUm, mock(TelephonyManager.class)); in setUp() local 2201 when(mUm.getEnabledProfiles(10)).thenReturn(uis); in testSetAssistantAccessForUser() 2275 when(mUm.getEnabledProfiles(ui.id)).thenReturn(uis); in testSetAssistantAccess() 2297 when(mUm.getEnabledProfiles(ui.id)).thenReturn(uis); in testSetAssistantAccess_multiProfile() 2324 when(mUm.getEnabledProfiles(ui.id)).thenReturn(uis); in testSetAssistantAccess_nullWithAllowedAssistant() 2347 when(mUm.getEnabledProfiles(10)).thenReturn(uis); in testSetAssistantAccessForUser_nullWithAllowedAssistant() 2376 when(mUm.getEnabledProfiles(ui.id)).thenReturn(uis); in testSetAssistantAccessForUser_workProfile_nullWithAllowedAssistant() 2431 when(mUm.getEnabledProfiles(ui.id)).thenReturn(uis); in testSetAssistantAccess_doesNothingOnLowRam() 2482 when(mUm.getEnabledProfiles(ui.id)).thenReturn(uis); in testSetAssistantAccess_doesNothingOnLowRam_exceptWatch() [all …]
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | AppCollector.java | 101 private final UserManager mUm; field in AppCollector.BackgroundHandler 109 mUm = um; in BackgroundHandler() 118 List<UserInfo> users = mUm.getUsers(); in handleMessage()
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | AbstractCrossUserContentResolverTest.java | 53 protected UserManager mUm; field in AbstractCrossUserContentResolverTest 60 mUm = UserManager.get(mContext); in setUp() 108 mUm.removeUser(mCrossUserId); in tearDown()
|
D | SecondaryUserContentResolverTest.java | 41 return mUm.createUser("Secondary user", 0); in createUser()
|
D | ManagedUserContentResolverTest.java | 42 return mUm.createProfileForUser("Managed user", in createUser()
|
/frameworks/base/services/restrictions/java/com/android/server/restrictions/ |
D | RestrictionsManagerService.java | 61 private final IUserManager mUm; field in RestrictionsManagerService.RestrictionsManagerImpl 66 mUm = (IUserManager) getBinderService(Context.USER_SERVICE); in RestrictionsManagerImpl() 72 return mUm.getApplicationRestrictions(packageName); in getApplicationRestrictions()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/ |
D | AppCollectorTest.java | 63 @Mock private UserManager mUm; field in AppCollectorTest 73 when(mContext.getSystemService(Context.USER_SERVICE)).thenReturn(mUm); in setUp() 88 when(mUm.getUsers()).thenReturn(mUsers); in setUp()
|
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/misc/ |
D | SystemServicesProxy.java | 104 UserManager mUm; field in SystemServicesProxy 142 mUm = UserManager.get(context); in SystemServicesProxy() 358 if (mUm == null) return 0; in getProcessUser() 359 return mUm.getUserHandle(); in getProcessUser()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/ |
D | AppRestrictionsHelperTest.java | 60 private @Mock UserManager mUm; field in AppRestrictionsHelperTest 77 when(mUm.getUserInfo(mTestUser.getIdentifier())).thenReturn(user); in setUp() 292 return mUm; in getUserManager()
|
/frameworks/base/services/core/java/com/android/server/clipboard/ |
D | ClipboardService.java | 167 private final IUserManager mUm; field in ClipboardService 189 mUm = (IUserManager) ServiceManager.getService(Context.USER_SERVICE); in ClipboardService() 482 related = mUm.getProfiles(userId, true); in getRelatedProfiles() 497 return mUm.hasUserRestriction(restriction, userId); in hasRestriction()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | LauncherAppsService.java | 119 private final UserManager mUm; field in LauncherAppsService.LauncherAppsImpl 137 mUm = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in LauncherAppsImpl() 239 int[] userIds = mUm.getEnabledProfileIds(getCallingUserId()); in getAllSessions() 305 final UserInfo callingUserInfo = mUm.getUserInfo(callingUserId); in canAccessProfile() 387 if (mUm.getUserInfo(user.getIdentifier()).isManagedProfile()) { in getLauncherActivities() 482 final List<UserInfo> userInfoList = mUm.getProfiles(user.getIdentifier()); in isManagedProfileAdmin()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSSecurityFooter.java | 65 private final UserManager mUm; field in QSSecurityFooter 89 mUm = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in QSSecurityFooter() 141 final UserInfo currentUser = mUm.getUserInfo(ActivityManager.getCurrentUser()); in handleRefreshState()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | ApplicationsState.java | 118 final UserManager mUm; field in ApplicationsState 196 mUm = mContext.getSystemService(UserManager.class); in ApplicationsState() 198 for (int userId : mUm.getProfileIdsWithDisabled(UserHandle.myUserId())) { in ApplicationsState() 269 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doResumeIfNeededLocked() 584 mUm.isUserAdmin(userId) ? mAdminRetrieveFlags : mRetrieveFlags, in addPackage() 658 final int profileIds[] = mUm.getProfileIdsWithDisabled(UserHandle.myUserId()); in addUser()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ManagedServices.java | 118 protected final UserManager mUm; field in ManagedServices 160 mUm = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in ManagedServices() 408 if (mUm.getUserInfo(resolvedUserId) != null) { in readXml() 430 for (UserInfo user : mUm.getUsers()) { in loadAllowedComponentsFromSettings()
|
D | NotificationManagerService.java | 376 private UserManager mUm; field in NotificationManagerService 595 boolean ineligibleForManagedServices = forRestore && mUm.isManagedProfile(userId); in readPolicyXml() 1668 mUm = userManager; in init() 4025 for (UserInfo ui : mUm.getEnabledProfiles(userId)) { 4275 List<UserInfo> users = mUm.getEnabledProfiles(baseUserId); 8000 final List<UserInfo> activeUsers = mUm.getUsers(true); 8531 List<UserInfo> users = mUm.getUsers();
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 71764 Landroid/util/IconDrawableFactory;->mUm:Landroid/os/UserManager;
|