Home
last modified time | relevance | path

Searched refs:mUserManager (Results 1 – 8 of 8) sorted by relevance

/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DWipeDataTest.java35 private UserManager mUserManager; field in WipeDataTest
44 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()
/cts/hostsidetests/devicepolicy/app/AppRestrictionsTargetApp/src/com/android/cts/apprestrictions/targetapp/
DApplicationRestrictionsActivity.java35 private UserManager mUserManager; field in ApplicationRestrictionsActivity
41 mUserManager = (UserManager) getSystemService(Context.USER_SERVICE); in onCreate()
52 Bundle restrictions = mUserManager.getApplicationRestrictions(getPackageName()); in handleIntent()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DCustomizationRestrictionsTest.java107 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()
DBaseDeviceAdminTest.java43 protected UserManager mUserManager; field in BaseDeviceAdminTest
54 mUserManager = mContext.getSystemService(UserManager.class); in setUp()
55 assertNotNull(mUserManager); in setUp()
DApplicationRestrictionsTest.java80 private UserManager mUserManager; field in ApplicationRestrictionsTest
86 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in setUp()
181 mUserManager.getApplicationRestrictions(OTHER_PACKAGE); in testCannotRetrieveOtherPackageRestrictionsViaUserManager()
330 return mUserManager.getApplicationRestrictions(mContext.getPackageName()); in waitForRestrictionsChangedBroadcast()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/
DBaseUserRestrictionsTest.java93 expected, mUserManager.hasUserRestriction(restriction)); in assertLayeredRestriction()
112 final boolean hadRestriction = mUserManager.hasUserRestriction(restriction); in assertSetClearUserRestriction()
144 final boolean hadRestriction = mUserManager.hasUserRestriction(restriction); in assertCannotSetUserRestriction()
/cts/hostsidetests/devicepolicy/app/AppRestrictionsManagingApp/src/com/android/cts/apprestrictions/managingapp/
DApplicationRestrictionsManagerTest.java67 private UserManager mUserManager; field in ApplicationRestrictionsManagerTest
78 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in setUp()
109 mUserManager.getApplicationRestrictions(mContext.getPackageName()); in testCannotManageAppRestrictions()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DVpnTestActivity.java57 private UserManager mUserManager; field in VpnTestActivity
71 mUserManager = (UserManager) getSystemService(Context.USER_SERVICE); in onCreate()