/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/ |
D | BuildNumberPreferenceController.java | 56 private final UserManager mUm; field in BuildNumberPreferenceController 67 mUm = (UserManager) context.getSystemService(Context.USER_SERVICE); in BuildNumberPreferenceController() 106 if (!(mUm.isAdminUser() || mUm.isDemoUser())) { in handlePreferenceTreeClick() 119 if (mUm.hasUserRestriction(UserManager.DISALLOW_DEBUGGING_FEATURES)) { in handlePreferenceTreeClick() 120 if (mUm.isDemoUser()) { in handlePreferenceTreeClick()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | BuildNumberPreferenceController.java | 57 private final UserManager mUm; field in BuildNumberPreferenceController 68 mUm = (UserManager) context.getSystemService(Context.USER_SERVICE); in BuildNumberPreferenceController() 127 if (!(mUm.isAdminUser() || mUm.isDemoUser())) { in handlePreferenceTreeClick() 140 if (mUm.hasUserRestriction(UserManager.DISALLOW_DEBUGGING_FEATURES)) { in handlePreferenceTreeClick() 141 if (mUm.isDemoUser()) { in handlePreferenceTreeClick()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/conditional/ |
D | WorkModeConditionController.java | 48 private final UserManager mUm; field in WorkModeConditionController 56 mUm = mAppContext.getSystemService(UserManager.class); in WorkModeConditionController() 69 return mUserHandle != null && mUm.isQuietModeEnabled(mUserHandle); in isDisplayable() 81 mUm.requestQuietModeEnabled(false, mUserHandle); in onActionClick() 111 List<UserInfo> profiles = mUm.getProfiles(UserHandle.myUserId()); in updateUserHandle()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/ |
D | WorkModeConditionController.java | 48 private final UserManager mUm; field in WorkModeConditionController 56 mUm = mAppContext.getSystemService(UserManager.class); in WorkModeConditionController() 69 return mUserHandle != null && mUm.isQuietModeEnabled(mUserHandle); in isDisplayable() 81 mUm.requestQuietModeEnabled(false, mUserHandle); in onActionClick() 111 List<UserInfo> profiles = mUm.getProfiles(UserHandle.myUserId()); in updateUserHandle()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/ |
D | AccountPreferenceController.java | 82 private UserManager mUm; field in AccountPreferenceController 141 mUm = (UserManager) context.getSystemService(Context.USER_SERVICE); in AccountPreferenceController() 154 return !mUm.isManagedProfile(); in isAvailable() 176 List<UserInfo> profiles = mUm.getProfiles(UserHandle.myUserId()); in updateRawDataToIndex() 272 if (mUm.isRestrictedProfile()) { in updateUi() 274 UserInfo userInfo = mUm.getUserInfo(UserHandle.myUserId()); in updateUi() 277 List<UserInfo> profiles = mUm.getProfiles(UserHandle.myUserId()); in updateUi() 566 return mUm.isLinkedUser() || mUm.getProfiles(UserHandle.myUserId()).size() == 1; in isSingleProfile()
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | AccountPreferenceController.java | 82 private UserManager mUm; field in AccountPreferenceController 141 mUm = (UserManager) context.getSystemService(Context.USER_SERVICE); in AccountPreferenceController() 154 return !mUm.isManagedProfile(); in isAvailable() 176 List<UserInfo> profiles = mUm.getProfiles(UserHandle.myUserId()); in updateRawDataToIndex() 272 if (mUm.isRestrictedProfile()) { in updateUi() 274 UserInfo userInfo = mUm.getUserInfo(UserHandle.myUserId()); in updateUi() 277 List<UserInfo> profiles = mUm.getProfiles(UserHandle.myUserId()); in updateUi() 566 return mUm.isLinkedUser() || mUm.getProfiles(UserHandle.myUserId()).size() == 1; in isSingleProfile()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/ |
D | LockUnificationPreferenceControllerTest.java | 50 private UserManager mUm; field in LockUnificationPreferenceControllerTest 64 ShadowApplication.getInstance().setSystemService(Context.USER_SERVICE, mUm); in setUp() 65 when(mUm.getProfileIdsWithDisabled(anyInt())).thenReturn(new int[] {FAKE_PROFILE_USER_ID}); in setUp() 80 when(mUm.getProfileIdsWithDisabled(anyInt())).thenReturn(new int[0]); in isAvailable_noProfile_false()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/ |
D | VisiblePatternProfilePreferenceController.java | 48 private final UserManager mUm; field in VisiblePatternProfilePreferenceController 61 mUm = (UserManager) context.getSystemService(Context.USER_SERVICE); in VisiblePatternProfilePreferenceController() 65 mProfileChallengeUserId = Utils.getManagedProfileId(mUm, mUserId); in VisiblePatternProfilePreferenceController() 102 if (Utils.startQuietModeDialogIfNecessary(mContext, mUm, mProfileChallengeUserId)) { in setChecked()
|
D | ChangeScreenLockPreferenceController.java | 50 protected final UserManager mUm; field in ChangeScreenLockPreferenceController 60 mUm = (UserManager) context.getSystemService(Context.USER_SERVICE); in ChangeScreenLockPreferenceController() 66 mProfileChallengeUserId = Utils.getManagedProfileId(mUm, mUserId); in ChangeScreenLockPreferenceController() 126 if (Utils.startQuietModeDialogIfNecessary(mContext, mUm, mProfileChallengeUserId)) { in handlePreferenceTreeClick()
|
/packages/apps/Settings/src/com/android/settings/security/ |
D | VisiblePatternProfilePreferenceController.java | 48 private final UserManager mUm; field in VisiblePatternProfilePreferenceController 61 mUm = (UserManager) context.getSystemService(Context.USER_SERVICE); in VisiblePatternProfilePreferenceController() 65 mProfileChallengeUserId = Utils.getManagedProfileId(mUm, mUserId); in VisiblePatternProfilePreferenceController() 102 if (Utils.startQuietModeDialogIfNecessary(mContext, mUm, mProfileChallengeUserId)) { in setChecked()
|
D | ChangeScreenLockPreferenceController.java | 50 protected final UserManager mUm; field in ChangeScreenLockPreferenceController 60 mUm = (UserManager) context.getSystemService(Context.USER_SERVICE); in ChangeScreenLockPreferenceController() 66 mProfileChallengeUserId = Utils.getManagedProfileId(mUm, mUserId); in ChangeScreenLockPreferenceController() 126 if (Utils.startQuietModeDialogIfNecessary(mContext, mUm, mProfileChallengeUserId)) { in handlePreferenceTreeClick()
|
D | LockUnificationPreferenceController.java | 64 private final UserManager mUm; field in LockUnificationPreferenceController 86 mUm = context.getSystemService(UserManager.class); in LockUnificationPreferenceController() 91 mProfileUserId = Utils.getManagedProfileId(mUm, MY_USER_ID); in LockUnificationPreferenceController() 107 if (Utils.startQuietModeDialogIfNecessary(mContext, mUm, mProfileUserId)) { in onPreferenceChange()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | ApplicationFeatureProviderImpl.java | 48 private final UserManager mUm; field in ApplicationFeatureProviderImpl 56 mUm = UserManager.get(mContext); in ApplicationFeatureProviderImpl() 73 new CurrentUserPolicyInstalledAppLister(mPm, mUm, callback); in listPolicyInstalledApps() 95 mUm, callback); in listAppsWithAdminGrantedPermissions() 103 final UserInfo userInfo = mUm.getUserInfo(userId); in findPersistentPreferredActivities()
|
D | AppCounter.java | 30 protected final UserManager mUm; field in AppCounter 34 mUm = (UserManager) context.getSystemService(Context.USER_SERVICE); in AppCounter() 40 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
|
D | AppLister.java | 37 protected final UserManager mUm; field in AppLister 41 mUm = userManager; in AppLister() 47 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | ApplicationFeatureProviderImpl.java | 48 private final UserManager mUm; field in ApplicationFeatureProviderImpl 56 mUm = UserManager.get(mContext); in ApplicationFeatureProviderImpl() 73 new CurrentUserPolicyInstalledAppLister(mPm, mUm, callback); in listPolicyInstalledApps() 95 mUm, callback); in listAppsWithAdminGrantedPermissions() 103 final UserInfo userInfo = mUm.getUserInfo(userId); in findPersistentPreferredActivities()
|
D | AppCounter.java | 30 protected final UserManager mUm; field in AppCounter 34 mUm = (UserManager) context.getSystemService(Context.USER_SERVICE); in AppCounter() 40 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
|
D | AppLister.java | 37 protected final UserManager mUm; field in AppLister 41 mUm = userManager; in AppLister() 47 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/about/ |
D | AboutFragment.java | 91 private UserManager mUm; field in AboutFragment 106 mUm = UserManager.get(getActivity()); in onCreate() 180 if (mUm.isAdminUser()) { in onCreatePreferences() 261 if (mUm.hasUserRestriction(UserManager.DISALLOW_FUN)) { in onPreferenceTreeClick() 278 if (!mUm.isAdminUser()) { in onPreferenceTreeClick() 284 if (mUm.hasUserRestriction(UserManager.DISALLOW_DEBUGGING_FEATURES)) { in onPreferenceTreeClick()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | UserFeatureProviderImpl.java | 26 UserManager mUm; field in UserFeatureProviderImpl 29 mUm = (UserManager) context.getSystemService(Context.USER_SERVICE); in UserFeatureProviderImpl() 34 return mUm.getUserProfiles(); in getUserProfiles()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/ |
D | UserFeatureProviderImpl.java | 26 UserManager mUm; field in UserFeatureProviderImpl 29 mUm = (UserManager) context.getSystemService(Context.USER_SERVICE); in UserFeatureProviderImpl() 34 return mUm.getUserProfiles(); in getUserProfiles()
|
/packages/apps/Settings/src/com/android/settings/system/ |
D | FactoryResetPreferenceController.java | 31 private final UserManager mUm; field in FactoryResetPreferenceController 35 mUm = (UserManager) context.getSystemService(Context.USER_SERVICE); in FactoryResetPreferenceController() 41 return mUm.isAdminUser() || Utils.isDemoUser(mContext); in isAvailable()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/system/ |
D | FactoryResetPreferenceController.java | 31 private final UserManager mUm; field in FactoryResetPreferenceController 35 mUm = (UserManager) context.getSystemService(Context.USER_SERVICE); in FactoryResetPreferenceController() 41 return mUm.isAdminUser() || Utils.isDemoUser(mContext); in isAvailable()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | VisibilityPreferenceControllerTest.java | 80 private UserManager mUm; field in VisibilityPreferenceControllerTest 92 shadowApplication.setSystemService(Context.USER_SERVICE, mUm); in setUp() 108 when(mUm.getUserInfo(anyInt())).thenReturn(userInfo); in setUp() 152 when(mUm.getUserInfo(anyInt())).thenReturn(userInfo); in testUpdateState_disabledByAdmin_disableSecure() 174 when(mUm.getUserInfo(anyInt())).thenReturn(userInfo); in testUpdateState_disabledByAdmin_disableUnredacted() 217 when(mUm.getProfileParent(anyInt())).thenReturn(primaryUserInfo); in testUpdateState_noLockScreenNotificationsGloballyInProfile()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/enterprise/ |
D | EnterprisePrivacyFeatureProviderImpl.java | 45 private final UserManager mUm; field in EnterprisePrivacyFeatureProviderImpl 57 mUm = um; in EnterprisePrivacyFeatureProviderImpl() 71 for (final UserInfo userInfo : mUm.getProfiles(MY_USER_ID)) { in getManagedProfileUserId() 227 for (final UserInfo userInfo : mUm.getProfiles(MY_USER_ID)) { in getNumberOfActiveDeviceAdminsForCurrentUserAndManagedProfile()
|