Searched refs:hasUserRestriction (Results 1 – 11 of 11) sorted by relevance
114 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 …]
115 assertTrue(mUserManager.hasUserRestriction(UserManager.DISALLOW_SET_WALLPAPER)); in testDisallowSetWallpaper_allowed()141 assertFalse(mUserManager.hasUserRestriction(UserManager.DISALLOW_SET_WALLPAPER)); in testDisallowSetWallpaper_allowed()
81 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()
99 mUserManager.hasUserRestriction(r, userHandle)); in testHasBaseUserRestrictions()105 mUserManager.hasUserRestriction(r, userHandle)); in testHasBaseUserRestrictions()
28 mContext.getSystemService(UserManager.class).hasUserRestriction( in testNoOwnerRestrictions()
114 expected, mUserManager.hasUserRestriction(restriction)); in assertLayeredRestriction()147 final boolean hadRestriction = mUserManager.hasUserRestriction(restriction); in assertSetClearUserRestriction()185 final boolean hadRestriction = mUserManager.hasUserRestriction(restriction); in assertCannotSetUserRestriction()
25 expected, mUserManager.hasUserRestriction(restriction)); in assertRestriction()
51 assertThat(mUserManager.hasUserRestriction( in testDisallowPrivateDnsConfigurationRestriction()57 assertThat(mUserManager.hasUserRestriction( in testClearDisallowPrivateDnsConfigurationRestriction()
43 assertTrue(userManager.hasUserRestriction(UserManager.DISALLOW_SET_WALLPAPER)); in testSetWallpaper_disallowed()
64 mAddUserRestrictionOnFinish = mUserMangaer.hasUserRestriction( in onCreate()
1328 && !userManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS); in testResetSettings()