/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | PrivateDnsPolicyTest.java | 34 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/ |
D | QuietModeTest.java | 67 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/ |
D | BaseDeviceAdminTest.java | 70 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()
|
D | ApplicationRestrictionsTest.java | 80 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()
|
D | CustomizationRestrictionsTest.java | 115 assertTrue(mUserManager.hasUserRestriction(UserManager.DISALLOW_SET_WALLPAPER)); in testDisallowSetWallpaper_allowed() 141 assertFalse(mUserManager.hasUserRestriction(UserManager.DISALLOW_SET_WALLPAPER)); in testDisallowSetWallpaper_allowed()
|
D | ResetPasswordTest.java | 62 assertFalse("Failed to lock FBE", mUserManager.isUserUnlocked()); in testResetPasswordDisabled()
|
/cts/hostsidetests/devicepolicy/app/AppRestrictionsTargetApp/src/com/android/cts/apprestrictions/targetapp/ |
D | ApplicationRestrictionsActivity.java | 35 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/ |
D | ShortcutManagerDeviceTestBase.java | 44 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/ |
D | BaseUserRestrictionsTest.java | 109 expected, mUserManager.hasUserRestriction(restriction)); in assertLayeredRestriction() 128 final boolean hadRestriction = mUserManager.hasUserRestriction(restriction); in assertSetClearUserRestriction() 166 final boolean hadRestriction = mUserManager.hasUserRestriction(restriction); in assertCannotSetUserRestriction()
|
D | ProfileGlobalRestrictionsTest.java | 25 expected, mUserManager.hasUserRestriction(restriction)); in assertRestriction()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | VpnTestActivity.java | 57 private UserManager mUserManager; field in VpnTestActivity 71 mUserManager = (UserManager) getSystemService(Context.USER_SERVICE); in onCreate()
|