Home
last modified time | relevance | path

Searched refs:ADMIN_RECEIVER_COMPONENT (Results 1 – 25 of 43) sorted by relevance

12

/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DResetPasswordWithTokenTest.java39 assertFalse(mDevicePolicyManager.isResetPasswordTokenActive(ADMIN_RECEIVER_COMPONENT)); in testResetPasswordWithToken()
44 assertTrue(mDevicePolicyManager.setResetPasswordToken(ADMIN_RECEIVER_COMPONENT, in testResetPasswordWithToken()
54 assertTrue(mDevicePolicyManager.isResetPasswordTokenActive(ADMIN_RECEIVER_COMPONENT)); in testResetPasswordWithToken()
57 … assertFalse(mDevicePolicyManager.resetPasswordWithToken(ADMIN_RECEIVER_COMPONENT, PASSWORD, in testResetPasswordWithToken()
60 … assertTrue(mDevicePolicyManager.resetPasswordWithToken(ADMIN_RECEIVER_COMPONENT, PASSWORD, in testResetPasswordWithToken()
63 assertTrue(mDevicePolicyManager.resetPasswordWithToken(ADMIN_RECEIVER_COMPONENT, null, in testResetPasswordWithToken()
67 assertTrue(mDevicePolicyManager.clearResetPasswordToken(ADMIN_RECEIVER_COMPONENT)); in testResetPasswordWithToken()
68 assertFalse(mDevicePolicyManager.isResetPasswordTokenActive(ADMIN_RECEIVER_COMPONENT)); in testResetPasswordWithToken()
69 … assertFalse(mDevicePolicyManager.resetPasswordWithToken(ADMIN_RECEIVER_COMPONENT, PASSWORD, in testResetPasswordWithToken()
72 mDevicePolicyManager.clearResetPasswordToken(ADMIN_RECEIVER_COMPONENT); in testResetPasswordWithToken()
DApplicationRestrictionsTest.java99 ADMIN_RECEIVER_COMPONENT, APP_RESTRICTIONS_TARGET_PKG, new Bundle()); in tearDown()
101 ADMIN_RECEIVER_COMPONENT, OTHER_PACKAGE, new Bundle()); in tearDown()
103 ADMIN_RECEIVER_COMPONENT, mContext.getPackageName(), new Bundle()); in tearDown()
131 ADMIN_RECEIVER_COMPONENT, APP_RESTRICTIONS_TARGET_PKG, BUNDLE_0); in testSetApplicationRestrictions()
133 ADMIN_RECEIVER_COMPONENT, OTHER_PACKAGE, BUNDLE_1); in testSetApplicationRestrictions()
137 ADMIN_RECEIVER_COMPONENT, APP_RESTRICTIONS_TARGET_PKG)); in testSetApplicationRestrictions()
139 ADMIN_RECEIVER_COMPONENT, OTHER_PACKAGE)); in testSetApplicationRestrictions()
146 ADMIN_RECEIVER_COMPONENT, APP_RESTRICTIONS_TARGET_PKG, BUNDLE_1); in testSetApplicationRestrictions()
148 ADMIN_RECEIVER_COMPONENT, APP_RESTRICTIONS_TARGET_PKG)); in testSetApplicationRestrictions()
152 ADMIN_RECEIVER_COMPONENT, APP_RESTRICTIONS_TARGET_PKG, new Bundle()); in testSetApplicationRestrictions()
[all …]
DAudioRestrictionTest.java35 return mDevicePolicyManager.isMasterVolumeMuted(ADMIN_RECEIVER_COMPONENT);
56 mDevicePolicyManager.isMasterVolumeMuted(ADMIN_RECEIVER_COMPONENT); in testDisallowAdjustVolume_muted()
60 mDevicePolicyManager.setMasterVolumeMuted(ADMIN_RECEIVER_COMPONENT, false); in testDisallowAdjustVolume_muted()
65 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testDisallowAdjustVolume_muted()
70 mDevicePolicyManager.setMasterVolumeMuted(ADMIN_RECEIVER_COMPONENT, false); in testDisallowAdjustVolume_muted()
72 assertTrue(mDevicePolicyManager.isMasterVolumeMuted(ADMIN_RECEIVER_COMPONENT)); in testDisallowAdjustVolume_muted()
74 mDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, in testDisallowAdjustVolume_muted()
76 mDevicePolicyManager.setMasterVolumeMuted(ADMIN_RECEIVER_COMPONENT, initVolumeMuted); in testDisallowAdjustVolume_muted()
90 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testDisallowAdjustVolume()
99 mDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, in testDisallowAdjustVolume()
[all …]
DAlwaysOnVpnTest.java54 mDevicePolicyManager.setAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT, null, false); in tearDown()
55 mDevicePolicyManager.setApplicationRestrictions(ADMIN_RECEIVER_COMPONENT, VPN_PACKAGE, in tearDown()
61 assertNull(mDevicePolicyManager.getAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT)); in testAlwaysOnVpn()
69 ADMIN_RECEIVER_COMPONENT, UserManager.DISALLOW_CONFIG_VPN); in testDisallowConfigVpn()
74 mDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, in testDisallowConfigVpn()
82 mDevicePolicyManager.setApplicationRestrictions(ADMIN_RECEIVER_COMPONENT, VPN_PACKAGE, in testAllowedApps()
91 mDevicePolicyManager.setApplicationRestrictions(ADMIN_RECEIVER_COMPONENT, VPN_PACKAGE, in testDisallowedApps()
99 assertNull(mDevicePolicyManager.getAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT)); in testSetNonVpnAlwaysOn()
104 mDevicePolicyManager.setAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT, mPackageName, in testSetNonVpnAlwaysOn()
110 assertNull(mDevicePolicyManager.getAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT)); in testSetNonVpnAlwaysOn()
DPolicyTransparencyTest.java33 mDevicePolicyManager.setCameraDisabled(ADMIN_RECEIVER_COMPONENT, true); in testCameraDisabled()
38 assertEquals(ADMIN_RECEIVER_COMPONENT, in testCameraDisabled()
43 mDevicePolicyManager.setCameraDisabled(ADMIN_RECEIVER_COMPONENT, false); in testCameraDisabled()
50 mDevicePolicyManager.setScreenCaptureDisabled(ADMIN_RECEIVER_COMPONENT, true); in testScreenCaptureDisabled()
55 assertEquals(ADMIN_RECEIVER_COMPONENT, in testScreenCaptureDisabled()
60 mDevicePolicyManager.setScreenCaptureDisabled(ADMIN_RECEIVER_COMPONENT, false); in testScreenCaptureDisabled()
74 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in runTestForRestriction()
78 assertEquals(ADMIN_RECEIVER_COMPONENT, in runTestForRestriction()
82 mDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in runTestForRestriction()
DDpcAllowedAccountManagementTest.java59 mDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, in setUp()
66 mDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, in tearDown()
76 mDevicePolicyManager.setAccountManagementDisabled(ADMIN_RECEIVER_COMPONENT, ACCOUNT_TYPE_1, in testAccountManagementDisabled_setterAndGetter()
79 mDevicePolicyManager.setAccountManagementDisabled(ADMIN_RECEIVER_COMPONENT, ACCOUNT_TYPE_2, in testAccountManagementDisabled_setterAndGetter()
85 mDevicePolicyManager.setAccountManagementDisabled(ADMIN_RECEIVER_COMPONENT, ACCOUNT_TYPE_1, in testAccountManagementDisabled_setterAndGetter()
92 mDevicePolicyManager.setAccountManagementDisabled(ADMIN_RECEIVER_COMPONENT, ACCOUNT_TYPE_1, in testAccountManagementDisabled_profileAndDeviceOwnerCanAddAccount()
108 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testUserRestriction_profileAndDeviceOwnerCanAddAccount()
124 mDevicePolicyManager.setAccountManagementDisabled(ADMIN_RECEIVER_COMPONENT, accountType, in clearAllAccountManagementDisabled()
DAlwaysOnVpnMultiStageTest.java43 ADMIN_RECEIVER_COMPONENT)); in testNetworkBlocked()
58 assertNull(mDevicePolicyManager.getAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT)); in testAlwaysOnVpnDisabled()
63 assertNull(mDevicePolicyManager.getAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT)); in testSetNonExistingPackage()
67 mDevicePolicyManager.setAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT, VPN_PACKAGE, in testSetNonExistingPackage()
74 assertNull(mDevicePolicyManager.getAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT)); in testSetNonExistingPackage()
78 mDevicePolicyManager.setAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT, null, false); in testCleanup()
DTrustAgentInfoTest.java41 mDevicePolicyManager.setTrustAgentConfiguration(ADMIN_RECEIVER_COMPONENT, in tearDown()
44 ADMIN_RECEIVER_COMPONENT, TRUST_AGENT_COMPONENT)); in tearDown()
45 mDevicePolicyManager.setKeyguardDisabledFeatures(ADMIN_RECEIVER_COMPONENT, in tearDown()
52 mDevicePolicyManager.setTrustAgentConfiguration(ADMIN_RECEIVER_COMPONENT, in testSetAndGetTrustAgentConfiguration()
57 ADMIN_RECEIVER_COMPONENT, TRUST_AGENT_COMPONENT); in testSetAndGetTrustAgentConfiguration()
68 mDevicePolicyManager.setKeyguardDisabledFeatures(ADMIN_RECEIVER_COMPONENT, in testSetAndGetTrustAgentConfiguration()
DApplicationHiddenTest.java58 mDevicePolicyManager.setApplicationHidden(ADMIN_RECEIVER_COMPONENT, PACKAGE_TO_HIDE, false); in tearDown()
63 assertTrue(mDevicePolicyManager.setApplicationHidden(ADMIN_RECEIVER_COMPONENT, in testSetApplicationHidden()
65 assertTrue(mDevicePolicyManager.isApplicationHidden(ADMIN_RECEIVER_COMPONENT, in testSetApplicationHidden()
68 assertTrue(mDevicePolicyManager.setApplicationHidden(ADMIN_RECEIVER_COMPONENT, in testSetApplicationHidden()
70 assertFalse(mDevicePolicyManager.isApplicationHidden(ADMIN_RECEIVER_COMPONENT, in testSetApplicationHidden()
76 assertFalse(mDevicePolicyManager.setApplicationHidden(ADMIN_RECEIVER_COMPONENT, in testCannotHideActiveAdmin()
81 assertFalse(mDevicePolicyManager.setApplicationHidden(ADMIN_RECEIVER_COMPONENT, in testCannotHideNonExistingPackage()
DSuspendPackageTest.java32 mDevicePolicyManager.setPackagesSuspended(ADMIN_RECEIVER_COMPONENT, new String[] in testSetPackagesSuspended()
39 ADMIN_RECEIVER_COMPONENT, INTENT_RECEIVER_PKG); in testSetPackagesSuspended()
45 ADMIN_RECEIVER_COMPONENT, in testSetPackagesNotSuspended()
53 ADMIN_RECEIVER_COMPONENT, INTENT_RECEIVER_PKG); in testSetPackagesNotSuspended()
62 String dpcPackage = ADMIN_RECEIVER_COMPONENT.getPackageName(); in testSuspendNotSuspendablePackages()
65 ADMIN_RECEIVER_COMPONENT, in testSuspendNotSuspendablePackages()
DDelegatedCertInstallerTest.java175 mDpm.uninstallCaCert(ADMIN_RECEIVER_COMPONENT, TEST_CA.getBytes()); in tearDown()
178 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, null); in tearDown()
188 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, CERT_INSTALLER_PACKAGE); in testCaCertsOperations()
190 mDpm.getCertInstallerPackage(ADMIN_RECEIVER_COMPONENT)); in testCaCertsOperations()
197 ADMIN_RECEIVER_COMPONENT, cert)); in testCaCertsOperations()
212 ADMIN_RECEIVER_COMPONENT, cert)); in testCaCertsOperations()
220 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, null); in testCaCertsOperations()
230 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, null); in testInstallKeyPair()
237 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, CERT_INSTALLER_PACKAGE); in testInstallKeyPair()
239 mDpm.getCertInstallerPackage(ADMIN_RECEIVER_COMPONENT)); in testInstallKeyPair()
[all …]
DScreenCaptureDisabledTest.java38 mDevicePolicyManager.setScreenCaptureDisabled(ADMIN_RECEIVER_COMPONENT, false); in testSetScreenCaptureDisabled_false()
39 assertFalse(mDevicePolicyManager.getScreenCaptureDisabled(ADMIN_RECEIVER_COMPONENT)); in testSetScreenCaptureDisabled_false()
44 mDevicePolicyManager.setScreenCaptureDisabled(ADMIN_RECEIVER_COMPONENT, true); in testSetScreenCaptureDisabled_true()
45 assertTrue(mDevicePolicyManager.getScreenCaptureDisabled(ADMIN_RECEIVER_COMPONENT)); in testSetScreenCaptureDisabled_true()
DSupportMessageTest.java87 mDevicePolicyManager.setShortSupportMessage(ADMIN_RECEIVER_COMPONENT, in testMaximumLengthPrefixIsSaved()
93 mDevicePolicyManager.setLongSupportMessage(ADMIN_RECEIVER_COMPONENT, LongMessage.LONG); in testMaximumLengthPrefixIsSaved()
153 mDevicePolicyManager.setShortSupportMessage(ADMIN_RECEIVER_COMPONENT, message); in setShortMessage()
163 mDevicePolicyManager.setLongSupportMessage(ADMIN_RECEIVER_COMPONENT, message); in setLongMessage()
168 return mDevicePolicyManager.getShortSupportMessage(ADMIN_RECEIVER_COMPONENT); in getShortMessage()
172 return mDevicePolicyManager.getLongSupportMessage(ADMIN_RECEIVER_COMPONENT); in getLongMessage()
DSetPolicyActivity.java80 dpm.addUserRestriction(BaseDeviceAdminTest.ADMIN_RECEIVER_COMPONENT, restrictionKey); in handleIntent()
86 BaseDeviceAdminTest.ADMIN_RECEIVER_COMPONENT, restrictionKey); in handleIntent()
91 dpm.setAccountManagementDisabled(BaseDeviceAdminTest.ADMIN_RECEIVER_COMPONENT, in handleIntent()
97 dpm.setAccountManagementDisabled(BaseDeviceAdminTest.ADMIN_RECEIVER_COMPONENT, in handleIntent()
105 BaseDeviceAdminTest.ADMIN_RECEIVER_COMPONENT, packageName); in handleIntent()
114 dpm.setDelegatedScopes(BaseDeviceAdminTest.ADMIN_RECEIVER_COMPONENT, in handleIntent()
DDelegationTest.java105 mDevicePolicyManager.setDelegatedScopes(ADMIN_RECEIVER_COMPONENT, DELEGATE_PKG, scopes); in testDelegateReceivesScopeChangedBroadcast()
124 mDevicePolicyManager.setDelegatedScopes(ADMIN_RECEIVER_COMPONENT, in testCantDelegateToUninstalledPackage()
131 .getDelegatedScopes(ADMIN_RECEIVER_COMPONENT, NON_EXISTENT_PKG).isEmpty()); in testCantDelegateToUninstalledPackage()
151 mDevicePolicyManager.setDelegatedScopes(ADMIN_RECEIVER_COMPONENT, in testCanRetrieveDelegates()
153 mDevicePolicyManager.setDelegatedScopes(ADMIN_RECEIVER_COMPONENT, in testCanRetrieveDelegates()
178 return mDevicePolicyManager.getDelegatePackages(ADMIN_RECEIVER_COMPONENT, scope); in getDelegatePackages()
DPermissionsTest.java184 assertEquals(mDevicePolicyManager.getPermissionGrantState(ADMIN_RECEIVER_COMPONENT, in testPermissionUpdate_setDeniedState()
191 assertEquals(mDevicePolicyManager.getPermissionGrantState(ADMIN_RECEIVER_COMPONENT, in testPermissionUpdate_setAutoDeniedPolicy()
204 assertEquals(mDevicePolicyManager.getPermissionGrantState(ADMIN_RECEIVER_COMPONENT, in testPermissionUpdate_setGrantedState()
211 assertEquals(mDevicePolicyManager.getPermissionGrantState(ADMIN_RECEIVER_COMPONENT, in testPermissionUpdate_setAutoGrantedPolicy()
262 mDevicePolicyManager.setPermissionPolicy(ADMIN_RECEIVER_COMPONENT, in assertSetPermissionPolicy()
264 assertEquals(mDevicePolicyManager.getPermissionPolicy(ADMIN_RECEIVER_COMPONENT), in assertSetPermissionPolicy()
269 mDevicePolicyManager.setPermissionGrantState(ADMIN_RECEIVER_COMPONENT, in assertSetPermissionGrantState()
272 assertEquals(mDevicePolicyManager.getPermissionGrantState(ADMIN_RECEIVER_COMPONENT, in assertSetPermissionGrantState()
278 assertFalse(mDevicePolicyManager.setPermissionGrantState(ADMIN_RECEIVER_COMPONENT, in assertSetPermissionGrantStatePreMApp()
281 assertEquals(mDevicePolicyManager.getPermissionGrantState(ADMIN_RECEIVER_COMPONENT, in assertSetPermissionGrantStatePreMApp()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DPasswordMinimumRestrictionsTest.java52 mParentDpm = mDevicePolicyManager.getParentProfileInstance(ADMIN_RECEIVER_COMPONENT); in setUp()
54 mDevicePolicyManager.getPasswordQuality(ADMIN_RECEIVER_COMPONENT); in setUp()
55 mParentPreviousPasswordQuality = mParentDpm.getPasswordQuality(ADMIN_RECEIVER_COMPONENT); in setUp()
56 mDevicePolicyManager.setPasswordQuality(ADMIN_RECEIVER_COMPONENT, PASSWORD_QUALITY_COMPLEX); in setUp()
57 mParentDpm.setPasswordQuality(ADMIN_RECEIVER_COMPONENT, PASSWORD_QUALITY_COMPLEX); in setUp()
60 .add(invokeGetMethod(method, mDevicePolicyManager, ADMIN_RECEIVER_COMPONENT)); in setUp()
62 .add(invokeGetMethod(method, mParentDpm, ADMIN_RECEIVER_COMPONENT)); in setUp()
69 invokeSetMethod(METHOD_LIST[i], mDevicePolicyManager, ADMIN_RECEIVER_COMPONENT, in tearDown()
71 invokeSetMethod(METHOD_LIST[i], mParentDpm, ADMIN_RECEIVER_COMPONENT, in tearDown()
74 mDevicePolicyManager.setPasswordQuality(ADMIN_RECEIVER_COMPONENT, in tearDown()
[all …]
DOrganizationInfoTest.java27 int defaultColor = mDevicePolicyManager.getOrganizationColor(ADMIN_RECEIVER_COMPONENT); in testDefaultOrganizationColor()
33 int previousColor = mDevicePolicyManager.getOrganizationColor(ADMIN_RECEIVER_COMPONENT); in testSetOrganizationColor()
46 mDevicePolicyManager.setOrganizationColor(ADMIN_RECEIVER_COMPONENT, color); in testSetOrganizationColor()
48 mDevicePolicyManager.getOrganizationColor(ADMIN_RECEIVER_COMPONENT)); in testSetOrganizationColor()
52 mDevicePolicyManager.setOrganizationColor(ADMIN_RECEIVER_COMPONENT, previousColor); in testSetOrganizationColor()
72 ADMIN_RECEIVER_COMPONENT); in testDefaultOrganizationNameIsNull()
78 ADMIN_RECEIVER_COMPONENT); in testSetOrganizationName()
82 mDevicePolicyManager.setOrganizationName(ADMIN_RECEIVER_COMPONENT, name); in testSetOrganizationName()
84 ADMIN_RECEIVER_COMPONENT); in testSetOrganizationName()
87 mDevicePolicyManager.setOrganizationName(ADMIN_RECEIVER_COMPONENT, in testSetOrganizationName()
DBaseManagedProfileTest.java36 public static final ComponentName ADMIN_RECEIVER_COMPONENT = new ComponentName( field in BaseManagedProfileTest
51 mDevicePolicyManager.getParentProfileInstance(ADMIN_RECEIVER_COMPONENT); in setUp()
54 assertTrue(mDevicePolicyManager.isAdminActive(ADMIN_RECEIVER_COMPONENT)); in setUp()
56 ADMIN_RECEIVER_COMPONENT.getPackageName())); in setUp()
57 assertTrue(mDevicePolicyManager.isManagedProfile(ADMIN_RECEIVER_COMPONENT)); in setUp()
DCrossProfileUtils.java19 import static com.android.cts.managedprofile.BaseManagedProfileTest.ADMIN_RECEIVER_COMPONENT;
61 dpm.addCrossProfileIntentFilter(ADMIN_RECEIVER_COMPONENT, getIntentFilter(), in testAddParentCanAccessManagedFilters()
70 dpm.addCrossProfileIntentFilter(ADMIN_RECEIVER_COMPONENT, getIntentFilter(), in testAddManagedCanAccessParentFilters()
88 dpm.clearCrossProfileIntentFilters(ADMIN_RECEIVER_COMPONENT); in testRemoveAllFilters()
94 dpm.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testDisallowCrossProfileCopyPaste()
101 dpm.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, in testAllowCrossProfileCopyPaste()
115 dpm.setApplicationHidden(ADMIN_RECEIVER_COMPONENT, ri.activityInfo.packageName, true); in testDisableAllBrowsers()
DManagedProfileTest.java26 import static com.android.cts.managedprofile.BaseManagedProfileTest.ADMIN_RECEIVER_COMPONENT;
58 mDevicePolicyManager.clearCrossProfileIntentFilters(ADMIN_RECEIVER_COMPONENT); in tearDown()
65 mDevicePolicyManager.addCrossProfileIntentFilter(ADMIN_RECEIVER_COMPONENT, in testClearCrossProfileIntentFilters()
70 mDevicePolicyManager.clearCrossProfileIntentFilters(ADMIN_RECEIVER_COMPONENT); in testClearCrossProfileIntentFilters()
84 mDevicePolicyManager.addCrossProfileIntentFilter(ADMIN_RECEIVER_COMPONENT, in testAddCrossProfileIntentFilter_primary()
99 mDevicePolicyManager.addCrossProfileIntentFilter(ADMIN_RECEIVER_COMPONENT, in testAddCrossProfileIntentFilter_all()
114 mDevicePolicyManager.addCrossProfileIntentFilter(ADMIN_RECEIVER_COMPONENT, in testAddCrossProfileIntentFilter_managed()
DPrimaryUserFilterSetterActivity.java11 import static com.android.cts.managedprofile.BaseManagedProfileTest.ADMIN_RECEIVER_COMPONENT;
29 devicePolicyManager.addCrossProfileIntentFilter(ADMIN_RECEIVER_COMPONENT, in onCreate()
34 devicePolicyManager.addCrossProfileIntentFilter(ADMIN_RECEIVER_COMPONENT, in onCreate()
39 devicePolicyManager.addCrossProfileIntentFilter(ADMIN_RECEIVER_COMPONENT, in onCreate()
DTrustAgentInfoTest.java127 getDevicePolicyManager(isParent).setKeyguardDisabledFeatures(ADMIN_RECEIVER_COMPONENT, in disableTrustAgents()
132 getDevicePolicyManager(isParent).setKeyguardDisabledFeatures(ADMIN_RECEIVER_COMPONENT, in enableTrustAgents()
137 getDevicePolicyManager(isParent).setTrustAgentConfiguration(ADMIN_RECEIVER_COMPONENT, in clearTrustAgentConfiguration()
140 ADMIN_RECEIVER_COMPONENT, TRUST_AGENT_COMPONENT)); in clearTrustAgentConfiguration()
145 getDevicePolicyManager(isParent).setTrustAgentConfiguration(ADMIN_RECEIVER_COMPONENT, in setTrustAgentConfiguration()
149 ADMIN_RECEIVER_COMPONENT, TRUST_AGENT_COMPONENT); in setTrustAgentConfiguration()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/
DBaseUserRestrictionsTest.java110 expected, mDevicePolicyManager.getUserRestrictions(ADMIN_RECEIVER_COMPONENT) in assertOwnerRestriction()
129 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in assertSetClearUserRestriction()
140 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in assertSetClearUserRestriction()
147 mDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in assertClearUserRestriction()
168 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in assertCannotSetUserRestriction()
181 mDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in assertCannotSetUserRestriction()
270 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in testBroadcast()
274 mDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in testBroadcast()
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DClearDeviceOwnerTest.java36 public static final ComponentName ADMIN_RECEIVER_COMPONENT = new ComponentName( field in ClearDeviceOwnerTest
49 assertTrue(mDevicePolicyManager.isAdminActive(ADMIN_RECEIVER_COMPONENT)); in setUp()
57 waitForActiveAdminRemoved(ADMIN_RECEIVER_COMPONENT); in tearDown()

12