/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | SensorToggleRestrictionTest.java | 59 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()
|
D | BluetoothRestrictionTest.java | 65 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()
|
D | AirplaneModeRestrictionTest.java | 69 mDevicePolicyManager.addUserRestriction(getWho(), UserManager.DISALLOW_AIRPLANE_MODE); in testAirplaneModeTurnedOffWhenRestrictionSet() 81 mDevicePolicyManager.addUserRestriction(getWho(), UserManager.DISALLOW_AIRPLANE_MODE); in testAirplaneModeCannotBeTurnedOnWithRestrictionOn()
|
D | SetPolicyActivity.java | 62 dpm.addUserRestriction(admin, restrictionKey); in handleIntent()
|
D | PrivateDnsPolicyTest.java | 63 mDevicePolicyManager.addUserRestriction(getWho(), restriction); in setUserRestriction()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | DevicePolicyLoggingTest.java | 89 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()
|
D | AudioRestrictionTest.java | 76 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testDisallowAdjustVolume_muted() 110 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testDisallowAdjustVolume() 156 mDevicePolicyManager.addUserRestriction( in testDisallowUnmuteMicrophone()
|
D | UserRestrictionsParentTest.java | 108 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()
|
D | PrintingPolicyTest.java | 28 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testPrintingPolicy()
|
D | DevicePolicyLoggingParentTest.java | 40 mParentDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testUserRestrictionLogged()
|
D | OrgOwnedProfileOwnerParentTest.java | 122 mParentDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in testAddGetAndClearUserRestriction_onParent() 143 () -> mParentDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testUnableToAddBaseUserRestriction()
|
D | ContentCaptureRestrictionsTest.java | 68 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, DISALLOW_CONTENT_CAPTURE); in testDisallowContentCapture_allowed()
|
D | ContentSuggestionsRestrictionsTest.java | 61 mDevicePolicyManager.addUserRestriction( in testDisallowContentSuggestions_allowed()
|
D | AutofillRestrictionsTest.java | 63 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, DISALLOW_AUTOFILL); in testDisallowAutofill_allowed()
|
D | PolicyTransparencyTest.java | 74 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in runTestForRestriction()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/ |
D | BaseUserRestrictionsTest.java | 152 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()
|
D | ProfileGlobalRestrictionsTest.java | 29 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, ENSURE_VERIFY_APPS); in testSetProfileGlobalRestrictions()
|
D | DeviceOwnerUserRestrictionsTest.java | 97 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, r); in testHasBaseUserRestrictions()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | NetworkResetTest.java | 84 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/ |
D | RemoteDevicePolicyManager.java | 95 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/ |
D | NfcTestActivity.java | 68 mDevicePolicyManager.addUserRestriction(mAdminReceiverComponent, in onCreate() 108 mDevicePolicyManager.addUserRestriction(mAdminReceiverComponent, in finish()
|
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/ |
D | UserRestrictionTest.java | 39 dpm.addUserRestriction(admin, restriction); in setUserRestriction()
|
/cts/hostsidetests/packagemanager/domainverification/device/multiuser/src/com/android/cts/packagemanager/verify/domain/device/multiuser/ |
D | DomainVerificationWorkUtils.kt | 31 addUserRestriction(UserManager.ALLOW_PARENT_PROFILE_APP_LINKING) in getAppLinkPolicy()
|
/cts/tests/suspendapps/test-apps/TestDeviceAdmin/src/com/android/suspendapps/testdeviceadmin/ |
D | TestCommsReceiver.java | 90 dpm.addUserRestriction(deviceAdmin, userRestriction); in onReceive()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | SetPolicyActivity.java | 63 dpm.addUserRestriction(BaseManagedProfileTest.ADMIN_RECEIVER_COMPONENT, restrictionKey); in handleIntent()
|