Home
last modified time | relevance | path

Searched refs:addUserRestriction (Results 1 – 25 of 42) sorted by relevance

12

/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DSensorToggleRestrictionTest.java59 mDevicePolicyManager.addUserRestriction(getWho(), UserManager.DISALLOW_CAMERA_TOGGLE); in testCameraToggle_RestrictionSet_CannotChangeSensorPrivacy()
76 mDevicePolicyManager.addUserRestriction(getWho(), UserManager.DISALLOW_MICROPHONE_TOGGLE); in testMicrophoneToggle_RestrictionSet_CannotChangeSensorPrivacy()
92 mDevicePolicyManager.addUserRestriction(getWho(), UserManager.DISALLOW_CAMERA_TOGGLE); in testCameraToggle_RestrictionSet_ResetSensorPrivacy()
111 mDevicePolicyManager.addUserRestriction(getWho(), UserManager.DISALLOW_MICROPHONE_TOGGLE); in testMicrophoneToggle_RestrictionSet_ResetSensorPrivacy()
DBluetoothRestrictionTest.java65 mDevicePolicyManager.addUserRestriction(getWho(), UserManager.DISALLOW_BLUETOOTH); in testEnableBluetoothFailsWhenDisallowed()
80 mDevicePolicyManager.addUserRestriction(getWho(), UserManager.DISALLOW_BLUETOOTH); in testBluetoothGetsDisabledAfterRestrictionSet()
92 mDevicePolicyManager.addUserRestriction(getWho(), UserManager.DISALLOW_BLUETOOTH); in testEnableBluetoothSucceedsAfterRestrictionRemoved()
127 mDevicePolicyManager.addUserRestriction(getWho(), restriction); in testOppDisabledWhenRestrictionSet()
DAirplaneModeRestrictionTest.java69 mDevicePolicyManager.addUserRestriction(getWho(), UserManager.DISALLOW_AIRPLANE_MODE); in testAirplaneModeTurnedOffWhenRestrictionSet()
81 mDevicePolicyManager.addUserRestriction(getWho(), UserManager.DISALLOW_AIRPLANE_MODE); in testAirplaneModeCannotBeTurnedOnWithRestrictionOn()
DSetPolicyActivity.java62 dpm.addUserRestriction(admin, restrictionKey); in handleIntent()
DPrivateDnsPolicyTest.java63 mDevicePolicyManager.addUserRestriction(getWho(), restriction); in setUserRestriction()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DDevicePolicyLoggingTest.java89 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testSetUserRestrictionLogged()
94 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testSetUserRestrictionLogged()
99 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testSetUserRestrictionLogged()
104 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testSetUserRestrictionLogged()
109 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testSetUserRestrictionLogged()
DAudioRestrictionTest.java76 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testDisallowAdjustVolume_muted()
110 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testDisallowAdjustVolume()
156 mDevicePolicyManager.addUserRestriction( in testDisallowUnmuteMicrophone()
DUserRestrictionsParentTest.java108 parentDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testAddUserRestrictionDisallowConfigDateTime_onParent()
133 parentDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testAddUserRestrictionDisallowAddUser_onParent()
235 parentDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in testPerProfileUserRestriction_onParent()
269 parentDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in testPerDeviceUserRestriction_onParent()
DPrintingPolicyTest.java28 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testPrintingPolicy()
DDevicePolicyLoggingParentTest.java40 mParentDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testUserRestrictionLogged()
DOrgOwnedProfileOwnerParentTest.java122 mParentDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in testAddGetAndClearUserRestriction_onParent()
143 () -> mParentDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testUnableToAddBaseUserRestriction()
DContentCaptureRestrictionsTest.java68 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, DISALLOW_CONTENT_CAPTURE); in testDisallowContentCapture_allowed()
DContentSuggestionsRestrictionsTest.java61 mDevicePolicyManager.addUserRestriction( in testDisallowContentSuggestions_allowed()
DAutofillRestrictionsTest.java63 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, DISALLOW_AUTOFILL); in testDisallowAutofill_allowed()
DPolicyTransparencyTest.java74 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in runTestForRestriction()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/
DBaseUserRestrictionsTest.java152 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in assertSetClearUserRestriction()
163 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in assertSetClearUserRestriction()
191 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in assertCannotSetUserRestriction()
293 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in testBroadcast()
DProfileGlobalRestrictionsTest.java29 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, ENSURE_VERIFY_APPS); in testSetProfileGlobalRestrictions()
DDeviceOwnerUserRestrictionsTest.java97 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, r); in testHasBaseUserRestrictions()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DNetworkResetTest.java84 sDeviceState.dpc().devicePolicyManager().addUserRestriction(DISALLOW_NETWORK_RESET); in factoryReset_disallowedByNetworkResetPolicy_doesNotFactoryReset()
109 .addUserRestriction(DISALLOW_CONFIG_PRIVATE_DNS); in factoryReset_disallowedByConfigPrivateDnsPolicy_doesPartialFactoryReset()
174 sDeviceState.dpc().devicePolicyManager().addUserRestriction(policy); in restoreUserRestriction()
/cts/common/device-side/bedstead/remotedpc/src/communication/main/java/com/android/bedstead/remotedpc/managers/
DRemoteDevicePolicyManager.java95 void addUserRestriction(@NonNull ComponentName admin, String key); in addUserRestriction() method
97 @RemoteDpcAutomaticAdmin void addUserRestriction(String key); in addUserRestriction() method
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DNfcTestActivity.java68 mDevicePolicyManager.addUserRestriction(mAdminReceiverComponent, in onCreate()
108 mDevicePolicyManager.addUserRestriction(mAdminReceiverComponent, in finish()
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/
DUserRestrictionTest.java39 dpm.addUserRestriction(admin, restriction); in setUserRestriction()
/cts/hostsidetests/packagemanager/domainverification/device/multiuser/src/com/android/cts/packagemanager/verify/domain/device/multiuser/
DDomainVerificationWorkUtils.kt31 addUserRestriction(UserManager.ALLOW_PARENT_PROFILE_APP_LINKING) in getAppLinkPolicy()
/cts/tests/suspendapps/test-apps/TestDeviceAdmin/src/com/android/suspendapps/testdeviceadmin/
DTestCommsReceiver.java90 dpm.addUserRestriction(deviceAdmin, userRestriction); in onReceive()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DSetPolicyActivity.java63 dpm.addUserRestriction(BaseManagedProfileTest.ADMIN_RECEIVER_COMPONENT, restrictionKey); in handleIntent()

12