Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DUserRestrictionsParentTest.java114 hasUserRestriction(UserManager.DISALLOW_CONFIG_DATE_TIME)).isTrue(); in testHasUserRestrictionDisallowConfigDateTime()
120 if (!mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_DATE_TIME)) { in testUserRestrictionDisallowConfigDateTimeIsNotPersisted()
138 assertThat(hasUserRestriction(UserManager.DISALLOW_ADD_USER)).isTrue(); in testHasUserRestrictionDisallowAddUser()
232 boolean hasRestrictionOnManagedProfile = mUserManager.hasUserRestriction( in testPerProfileUserRestriction_onParent()
237 assertThat(hasUserRestriction(restriction)).isTrue(); in testPerProfileUserRestriction_onParent()
239 assertThat(mUserManager.hasUserRestriction(restriction)).isEqualTo( in testPerProfileUserRestriction_onParent()
244 assertThat(hasUserRestriction(restriction)).isFalse(); in testPerProfileUserRestriction_onParent()
271 assertThat(hasUserRestriction(restriction)).isTrue(); in testPerDeviceUserRestriction_onParent()
273 assertThat(mUserManager.hasUserRestriction(restriction)).isTrue(); in testPerDeviceUserRestriction_onParent()
277 assertThat(hasUserRestriction(restriction)).isFalse(); in testPerDeviceUserRestriction_onParent()
[all …]
DCustomizationRestrictionsTest.java115 assertTrue(mUserManager.hasUserRestriction(UserManager.DISALLOW_SET_WALLPAPER)); in testDisallowSetWallpaper_allowed()
141 assertFalse(mUserManager.hasUserRestriction(UserManager.DISALLOW_SET_WALLPAPER)); in testDisallowSetWallpaper_allowed()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DNetworkResetTest.java81 sUserManager.hasUserRestriction(DISALLOW_NETWORK_RESET); in factoryReset_disallowedByNetworkResetPolicy_doesNotFactoryReset()
104 sUserManager.hasUserRestriction(DISALLOW_CONFIG_PRIVATE_DNS); in factoryReset_disallowedByConfigPrivateDnsPolicy_doesPartialFactoryReset()
128 sUserManager.hasUserRestriction(DISALLOW_CONFIG_PRIVATE_DNS); in factoryReset_noPolicyRestrictions_resetsToDefault()
130 sUserManager.hasUserRestriction(DISALLOW_NETWORK_RESET); in factoryReset_noPolicyRestrictions_resetsToDefault()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/
DDeviceOwnerUserRestrictionsTest.java99 mUserManager.hasUserRestriction(r, userHandle)); in testHasBaseUserRestrictions()
105 mUserManager.hasUserRestriction(r, userHandle)); in testHasBaseUserRestrictions()
DCheckNoOwnerRestrictionsTest.java28 mContext.getSystemService(UserManager.class).hasUserRestriction( in testNoOwnerRestrictions()
DBaseUserRestrictionsTest.java114 expected, mUserManager.hasUserRestriction(restriction)); in assertLayeredRestriction()
147 final boolean hadRestriction = mUserManager.hasUserRestriction(restriction); in assertSetClearUserRestriction()
185 final boolean hadRestriction = mUserManager.hasUserRestriction(restriction); in assertCannotSetUserRestriction()
DProfileGlobalRestrictionsTest.java25 expected, mUserManager.hasUserRestriction(restriction)); in assertRestriction()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DPrivateDnsPolicyTest.java51 assertThat(mUserManager.hasUserRestriction( in testDisallowPrivateDnsConfigurationRestriction()
57 assertThat(mUserManager.hasUserRestriction( in testClearDisallowPrivateDnsConfigurationRestriction()
/cts/hostsidetests/devicepolicy/app/CustomizationApp/src/com/android/cts/customizationapp/
DCustomizationTest.java43 assertTrue(userManager.hasUserRestriction(UserManager.DISALLOW_SET_WALLPAPER)); in testSetWallpaper_disallowed()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DNfcTestActivity.java64 mAddUserRestrictionOnFinish = mUserMangaer.hasUserRestriction( in onCreate()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyManagerTest.java1328 && !userManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS); in testResetSettings()