Home
last modified time | relevance | path

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

/cts/tests/suspendapps/test-apps/TestDeviceAdmin/src/com/android/suspendapps/testdeviceadmin/
DTestCommsReceiver.java53 final String userRestriction = intent.getStringExtra(EXTRA_USER_RESTRICTION); in onReceive() local
86 if (userRestriction == null) { in onReceive()
90 dpm.addUserRestriction(deviceAdmin, userRestriction); in onReceive()
94 if (userRestriction == null) { in onReceive()
98 dpm.clearUserRestriction(deviceAdmin, userRestriction); in onReceive()
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/
DDualSuspendTests.java141 private void assertDpmCanSuspendUnderUserRestriction(String userRestriction) throws Exception { in assertDpmCanSuspendUnderUserRestriction() argument
143 final Bundle extra = createSingleKeyBundle(EXTRA_USER_RESTRICTION, userRestriction); in assertDpmCanSuspendUnderUserRestriction()
144 assertTrue("Request to add restriction" + userRestriction + " failed", in assertDpmCanSuspendUnderUserRestriction()
176 private void assertUnsuspendedOnUserRestriction(String userRestriction) throws Exception { in assertUnsuspendedOnUserRestriction() argument
183 final Bundle extras = createSingleKeyBundle(EXTRA_USER_RESTRICTION, userRestriction); in assertUnsuspendedOnUserRestriction()
184 assertTrue("Request to add restriction " + userRestriction + " failed", in assertUnsuspendedOnUserRestriction()
188 + " not reported after setting restriction " + userRestriction, in assertUnsuspendedOnUserRestriction()
213 private void assertCannotSuspendUnderUserRestriction(String userRestriction) throws Exception { in assertCannotSuspendUnderUserRestriction() argument
214 final Bundle extras = createSingleKeyBundle(EXTRA_USER_RESTRICTION, userRestriction); in assertCannotSuspendUnderUserRestriction()
215 assertTrue("Request to add restriction" + userRestriction + " failed", in assertCannotSuspendUnderUserRestriction()
DDistractingPackageTest.java124 private void assertCannotRestrictUnderUserRestriction(String userRestriction) throws Exception { in assertCannotRestrictUnderUserRestriction() argument
126 final Bundle extras = createSingleKeyBundle(EXTRA_USER_RESTRICTION, userRestriction); in assertCannotRestrictUnderUserRestriction()
127 assertTrue("Request to add restriction" + userRestriction + " failed", in assertCannotRestrictUnderUserRestriction()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2024-31332/src/android/security/cts/CVE_2024_31332/
DDeviceTest.java104 final BooleanSupplier userRestriction = in withDisallowAddWifiConfigRestriction() local
109 if (userRestriction.getAsBoolean()) { in withDisallowAddWifiConfigRestriction()
116 .that(userRestriction.getAsBoolean()) in withDisallowAddWifiConfigRestriction()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2024-23704/src/android/security/cts/CVE_2024_23704/
DDeviceTest.java113 final BooleanSupplier userRestriction = in withDisallowAddWifiConfigRestriction() local
118 if (userRestriction.getAsBoolean()) { in withDisallowAddWifiConfigRestriction()
125 .that(userRestriction.getAsBoolean()) in withDisallowAddWifiConfigRestriction()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DPolicyTransparencyTestActivity.java161 final String userRestriction = getIntent().getStringExtra( in updateTestInstructions() local
163 userAction = UserRestrictions.getUserAction(this, userRestriction); in updateTestInstructions()
166 if (OPTIONAL_USER_RESTRICTION_ACTIONS.contains(userRestriction)) { in updateTestInstructions()
221 final String userRestriction = getIntent().getStringExtra( in onCheckedChanged() local
225 userRestriction, isChecked) in onCheckedChanged()
227 userRestriction, isChecked); in onCheckedChanged()
DCommandReceiverActivity.java778 for (String userRestriction : UserRestrictions.getUserRestrictionsForPolicyTransparency( in clearPolicyTransparencyUserRestriction()
780 mDpm.clearUserRestriction(mAdmin, userRestriction); in clearPolicyTransparencyUserRestriction()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dsystem-current.txt450 field public static final int userRestriction = 16844164; // 0x1010584