Home
last modified time | relevance | path

Searched refs:parentDevicePolicyManager (Results 1 – 6 of 6) sorted by relevance

/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DUserRestrictionsParentTest.java104 DevicePolicyManager parentDevicePolicyManager = in testAddUserRestrictionDisallowConfigDateTime_onParent() local
106 assertNotNull(parentDevicePolicyManager); in testAddUserRestrictionDisallowConfigDateTime_onParent()
108 parentDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testAddUserRestrictionDisallowConfigDateTime_onParent()
129 DevicePolicyManager parentDevicePolicyManager = in testAddUserRestrictionDisallowAddUser_onParent() local
131 assertNotNull(parentDevicePolicyManager); in testAddUserRestrictionDisallowAddUser_onParent()
133 parentDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testAddUserRestrictionDisallowAddUser_onParent()
142 DevicePolicyManager parentDevicePolicyManager = in testClearUserRestrictionDisallowAddUser() local
145 parentDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, in testClearUserRestrictionDisallowAddUser()
150 DevicePolicyManager parentDevicePolicyManager = in testAddUserRestrictionCameraDisabled_onParent() local
152 parentDevicePolicyManager.setCameraDisabled(ADMIN_RECEIVER_COMPONENT, true); in testAddUserRestrictionCameraDisabled_onParent()
[all …]
DKeyguardDisabledFeaturesTest.java46 DevicePolicyManager parentDevicePolicyManager = in testSetKeyguardDisabledFeatures_onParentSilentIgnoreWhenCallerIsNotOrgOwnedPO() local
49 parentDevicePolicyManager.setKeyguardDisabledFeatures(ADMIN_RECEIVER_COMPONENT, in testSetKeyguardDisabledFeatures_onParentSilentIgnoreWhenCallerIsNotOrgOwnedPO()
57 DevicePolicyManager parentDevicePolicyManager = in testSetKeyguardDisabledFeatures_onParent() local
60 parentDevicePolicyManager.setKeyguardDisabledFeatures(ADMIN_RECEIVER_COMPONENT, in testSetKeyguardDisabledFeatures_onParent()
64 assertThat(parentDevicePolicyManager.getKeyguardDisabledFeatures( in testSetKeyguardDisabledFeatures_onParent()
68 removeKeyguardDisableFeatures(parentDevicePolicyManager); in testSetKeyguardDisabledFeatures_onParent()
69 parentDevicePolicyManager.setKeyguardDisabledFeatures(ADMIN_RECEIVER_COMPONENT, in testSetKeyguardDisabledFeatures_onParent()
73 assertThat(parentDevicePolicyManager.getKeyguardDisabledFeatures( in testSetKeyguardDisabledFeatures_onParent()
76 removeKeyguardDisableFeatures(parentDevicePolicyManager); in testSetKeyguardDisabledFeatures_onParent()
DAccountManagementParentTest.java42 DevicePolicyManager parentDevicePolicyManager = getParentInstance(); in testSetAccountManagementDisabledOnParent() local
44 parentDevicePolicyManager.setAccountManagementDisabled(ADMIN_RECEIVER_COMPONENT, in testSetAccountManagementDisabledOnParent()
47 parentDevicePolicyManager.getAccountTypesWithManagementDisabled()).asList() in testSetAccountManagementDisabledOnParent()
60 DevicePolicyManager parentDevicePolicyManager = getParentInstance(); in testEnableAccountManagement() local
62 parentDevicePolicyManager.setAccountManagementDisabled(ADMIN_RECEIVER_COMPONENT, in testEnableAccountManagement()
64 assertThat(parentDevicePolicyManager.getAccountTypesWithManagementDisabled()).isEmpty(); in testEnableAccountManagement()
73 DevicePolicyManager parentDevicePolicyManager = in getParentInstance() local
75 assertThat(parentDevicePolicyManager).isNotNull(); in getParentInstance()
77 return parentDevicePolicyManager; in getParentInstance()
DInputMethodsTest.java53 DevicePolicyManager parentDevicePolicyManager = in testPermittedInputMethodsOnParent() local
56 parentDevicePolicyManager.setPermittedInputMethods(ADMIN_RECEIVER_COMPONENT, null); in testPermittedInputMethodsOnParent()
57 assertThat(parentDevicePolicyManager.getPermittedInputMethods( in testPermittedInputMethodsOnParent()
61 parentDevicePolicyManager.setPermittedInputMethods(ADMIN_RECEIVER_COMPONENT, in testPermittedInputMethodsOnParent()
63 assertThat(parentDevicePolicyManager.getPermittedInputMethods( in testPermittedInputMethodsOnParent()
68 DevicePolicyManager parentDevicePolicyManager = in testPermittedInputMethodsOnParentThrowsIfPackageListIsNotEmptyOrNull() local
73 () -> parentDevicePolicyManager in testPermittedInputMethodsOnParentThrowsIfPackageListIsNotEmptyOrNull()
DScreenCaptureDisabledTest.java55 DevicePolicyManager parentDevicePolicyManager = in testSetScreenCaptureDisabledOnParent_false() local
57 parentDevicePolicyManager.setScreenCaptureDisabled(ADMIN_RECEIVER_COMPONENT, false); in testSetScreenCaptureDisabledOnParent_false()
60 .that(parentDevicePolicyManager in testSetScreenCaptureDisabledOnParent_false()
64 .that(parentDevicePolicyManager.getScreenCaptureDisabled(/* admin= */ null)) in testSetScreenCaptureDisabledOnParent_false()
69 DevicePolicyManager parentDevicePolicyManager = in testSetScreenCaptureDisabledOnParent_true() local
71 parentDevicePolicyManager.setScreenCaptureDisabled(ADMIN_RECEIVER_COMPONENT, true); in testSetScreenCaptureDisabledOnParent_true()
74 .that(parentDevicePolicyManager in testSetScreenCaptureDisabledOnParent_true()
78 .that(parentDevicePolicyManager.getScreenCaptureDisabled(/* admin= */ null)) in testSetScreenCaptureDisabledOnParent_true()
/cts/hostsidetests/devicepolicy/app/TransferOwnerOutgoingApp/src/com/android/cts/transferowner/
DTransferProfileOwnerOutgoingTest.java43 DevicePolicyManager parentDevicePolicyManager = in testTransferWithPoliciesOutgoing() local
50 parentDevicePolicyManager.setPasswordExpirationTimeout( in testTransferWithPoliciesOutgoing()