Searched refs:userRestriction (Results 1 – 8 of 8) sorted by relevance
/cts/tests/suspendapps/test-apps/TestDeviceAdmin/src/com/android/suspendapps/testdeviceadmin/ |
D | TestCommsReceiver.java | 53 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/ |
D | DualSuspendTests.java | 141 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()
|
D | DistractingPackageTest.java | 124 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/ |
D | DeviceTest.java | 104 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/ |
D | DeviceTest.java | 113 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/ |
D | PolicyTransparencyTestActivity.java | 161 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()
|
D | CommandReceiverActivity.java | 778 for (String userRestriction : UserRestrictions.getUserRestrictionsForPolicyTransparency( in clearPolicyTransparencyUserRestriction() 780 mDpm.clearUserRestriction(mAdmin, userRestriction); in clearPolicyTransparencyUserRestriction()
|
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/ |
D | system-current.txt | 450 field public static final int userRestriction = 16844164; // 0x1010584
|