Searched refs:mUserManager (Results 1 – 8 of 8) sorted by relevance
35 private UserManager mUserManager; field in WipeDataTest44 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in setUp()49 assertTrue(mUserManager.getUserProfiles().contains(currentUser)); in testWipeData()58 if (!mUserManager.getUserProfiles().contains(currentUser)) { in testWipeData()65 assertFalse(mUserManager.getUserProfiles().contains(currentUser)); in testWipeData()
35 private UserManager mUserManager; field in ApplicationRestrictionsActivity41 mUserManager = (UserManager) getSystemService(Context.USER_SERVICE); in onCreate()52 Bundle restrictions = mUserManager.getApplicationRestrictions(getPackageName()); in handleIntent()
107 Class<?> umClass = mUserManager.getClass(); in getUserIcon()109 return (Bitmap) methodGetUserIcon.invoke(mUserManager, getUserId()); in getUserIcon()130 assertTrue(mUserManager.hasUserRestriction(UserManager.DISALLOW_SET_WALLPAPER)); in testDisallowSetWallpaper_allowed()156 assertFalse(mUserManager.hasUserRestriction(UserManager.DISALLOW_SET_WALLPAPER)); in testDisallowSetWallpaper_allowed()168 assertTrue(mUserManager.hasUserRestriction(UserManager.DISALLOW_SET_USER_ICON)); in testDisallowSetUserIcon_allowed()184 assertFalse(mUserManager.hasUserRestriction(UserManager.DISALLOW_SET_USER_ICON)); in testDisallowSetUserIcon_allowed()
43 protected UserManager mUserManager; field in BaseDeviceAdminTest54 mUserManager = mContext.getSystemService(UserManager.class); in setUp()55 assertNotNull(mUserManager); in setUp()
80 private UserManager mUserManager; field in ApplicationRestrictionsTest86 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in setUp()181 mUserManager.getApplicationRestrictions(OTHER_PACKAGE); in testCannotRetrieveOtherPackageRestrictionsViaUserManager()330 return mUserManager.getApplicationRestrictions(mContext.getPackageName()); in waitForRestrictionsChangedBroadcast()
93 expected, mUserManager.hasUserRestriction(restriction)); in assertLayeredRestriction()112 final boolean hadRestriction = mUserManager.hasUserRestriction(restriction); in assertSetClearUserRestriction()144 final boolean hadRestriction = mUserManager.hasUserRestriction(restriction); in assertCannotSetUserRestriction()
67 private UserManager mUserManager; field in ApplicationRestrictionsManagerTest78 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in setUp()109 mUserManager.getApplicationRestrictions(mContext.getPackageName()); in testCannotManageAppRestrictions()
57 private UserManager mUserManager; field in VpnTestActivity71 mUserManager = (UserManager) getSystemService(Context.USER_SERVICE); in onCreate()