Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DPrivateDnsPolicyTest.java34 private UserManager mUserManager; field in PrivateDnsPolicyTest
39 mUserManager = mContext.getSystemService(UserManager.class); in setUp()
40 assertNotNull(mUserManager); in setUp()
52 assertThat(mUserManager.hasUserRestriction( in testDisallowPrivateDnsConfigurationRestriction()
58 assertThat(mUserManager.hasUserRestriction( in testClearDisallowPrivateDnsConfigurationRestriction()
/cts/hostsidetests/devicepolicy/app/LauncherTests/src/com/android/cts/launchertests/
DQuietModeTest.java67 private UserManager mUserManager; field in QuietModeTest
76 mUserManager = mContext.getSystemService(UserManager.class); in setupUserManager()
113 assertTrue(mUserManager.isQuietModeEnabled(mTargetUser)); in testTryEnableQuietMode_defaultForegroundLauncher()
117 assertFalse(mUserManager.isQuietModeEnabled(mTargetUser)); in testTryEnableQuietMode_defaultForegroundLauncher()
125 assertFalse(mUserManager.isQuietModeEnabled(mTargetUser)); in testTryEnableQuietMode_notForegroundLauncher()
133 assertFalse(mUserManager.isQuietModeEnabled(mTargetUser)); in testTryEnableQuietMode_notDefaultLauncher()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DBaseDeviceAdminTest.java70 protected UserManager mUserManager; field in BaseDeviceAdminTest
84 mUserManager = mContext.getSystemService(UserManager.class); in setUp()
85 assertNotNull(mUserManager); in setUp()
114 boolean isUserUnlocked = mUserManager.isUserUnlocked(); in waitUntilUserUnlocked()
124 assertTrue("User should have been unlocked", mUserManager.isUserUnlocked()); in waitUntilUserUnlocked()
DApplicationRestrictionsTest.java80 private UserManager mUserManager; field in ApplicationRestrictionsTest
86 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in setUp()
183 mUserManager.getApplicationRestrictions(OTHER_PACKAGE); in testCannotRetrieveOtherPackageRestrictionsViaUserManager()
332 return mUserManager.getApplicationRestrictions(mContext.getPackageName()); in waitForRestrictionsChangedBroadcast()
DCustomizationRestrictionsTest.java115 assertTrue(mUserManager.hasUserRestriction(UserManager.DISALLOW_SET_WALLPAPER)); in testDisallowSetWallpaper_allowed()
141 assertFalse(mUserManager.hasUserRestriction(UserManager.DISALLOW_SET_WALLPAPER)); in testDisallowSetWallpaper_allowed()
DResetPasswordTest.java62 assertFalse("Failed to lock FBE", mUserManager.isUserUnlocked()); in testResetPasswordDisabled()
/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/shortcuts/deviceside/common/src/android/content/pm/cts/shortcut/device/common/
DShortcutManagerDeviceTestBase.java44 private UserManager mUserManager; field in ShortcutManagerDeviceTestBase
62 mUserManager = getContext().getSystemService(UserManager.class); in setUp()
66 mUserManager, UserManager::isManagedProfile); in setUp()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/
DBaseUserRestrictionsTest.java109 expected, mUserManager.hasUserRestriction(restriction)); in assertLayeredRestriction()
128 final boolean hadRestriction = mUserManager.hasUserRestriction(restriction); in assertSetClearUserRestriction()
166 final boolean hadRestriction = mUserManager.hasUserRestriction(restriction); in assertCannotSetUserRestriction()
DProfileGlobalRestrictionsTest.java25 expected, mUserManager.hasUserRestriction(restriction)); in assertRestriction()
/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()