Home
last modified time | relevance | path

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

12

/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()
DCrossProfileUtils.java19 import static com.android.cts.managedprofile.BaseManagedProfileTest.ADMIN_RECEIVER_COMPONENT;
57 dpm.addCrossProfileIntentFilter(ADMIN_RECEIVER_COMPONENT, getIntentFilter(), in testAddParentCanAccessManagedFilters()
66 dpm.addCrossProfileIntentFilter(ADMIN_RECEIVER_COMPONENT, getIntentFilter(), in testAddManagedCanAccessParentFilters()
82 dpm.clearCrossProfileIntentFilters(ADMIN_RECEIVER_COMPONENT); in testRemoveAllFilters()
88 dpm.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testDisallowCrossProfileCopyPaste()
95 dpm.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, in testAllowCrossProfileCopyPaste()
109 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()
DBaseManagedProfileTest.java36 public static final ComponentName ADMIN_RECEIVER_COMPONENT = new ComponentName( field in BaseManagedProfileTest
51 mDevicePolicyManager.getParentProfileInstance(ADMIN_RECEIVER_COMPONENT); in setUp()
58 assertTrue(mDevicePolicyManager.isAdminActive(ADMIN_RECEIVER_COMPONENT)); in setUp()
60 ADMIN_RECEIVER_COMPONENT.getPackageName())); in setUp()
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()
DSetPolicyActivity.java73 dpm.addUserRestriction(BaseManagedProfileTest.ADMIN_RECEIVER_COMPONENT, restrictionKey); in handleIntent()
79 BaseManagedProfileTest.ADMIN_RECEIVER_COMPONENT, restrictionKey); in handleIntent()
84 dpm.addCrossProfileWidgetProvider(BaseManagedProfileTest.ADMIN_RECEIVER_COMPONENT, in handleIntent()
90 dpm.removeCrossProfileWidgetProvider(BaseManagedProfileTest.ADMIN_RECEIVER_COMPONENT, in handleIntent()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
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()
129 ADMIN_RECEIVER_COMPONENT, APP_RESTRICTIONS_TARGET_PKG, BUNDLE_0); in testSetApplicationRestrictions()
131 ADMIN_RECEIVER_COMPONENT, OTHER_PACKAGE, BUNDLE_1); in testSetApplicationRestrictions()
135 ADMIN_RECEIVER_COMPONENT, APP_RESTRICTIONS_TARGET_PKG)); in testSetApplicationRestrictions()
137 ADMIN_RECEIVER_COMPONENT, OTHER_PACKAGE)); in testSetApplicationRestrictions()
144 ADMIN_RECEIVER_COMPONENT, APP_RESTRICTIONS_TARGET_PKG, BUNDLE_1); in testSetApplicationRestrictions()
146 ADMIN_RECEIVER_COMPONENT, APP_RESTRICTIONS_TARGET_PKG)); in testSetApplicationRestrictions()
150 ADMIN_RECEIVER_COMPONENT, APP_RESTRICTIONS_TARGET_PKG, new Bundle()); in testSetApplicationRestrictions()
[all …]
DAudioRestrictionTest.java33 return mDevicePolicyManager.isMasterVolumeMuted(ADMIN_RECEIVER_COMPONENT);
49 mDevicePolicyManager.isMasterVolumeMuted(ADMIN_RECEIVER_COMPONENT); in testDisallowAdjustVolume_muted()
53 mDevicePolicyManager.setMasterVolumeMuted(ADMIN_RECEIVER_COMPONENT, false); in testDisallowAdjustVolume_muted()
58 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testDisallowAdjustVolume_muted()
63 mDevicePolicyManager.setMasterVolumeMuted(ADMIN_RECEIVER_COMPONENT, false); in testDisallowAdjustVolume_muted()
65 assertTrue(mDevicePolicyManager.isMasterVolumeMuted(ADMIN_RECEIVER_COMPONENT)); in testDisallowAdjustVolume_muted()
67 mDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, in testDisallowAdjustVolume_muted()
69 mDevicePolicyManager.setMasterVolumeMuted(ADMIN_RECEIVER_COMPONENT, initVolumeMuted); in testDisallowAdjustVolume_muted()
79 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testDisallowAdjustVolume()
88 mDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, in testDisallowAdjustVolume()
[all …]
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()
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.java166 mDpm.uninstallCaCert(ADMIN_RECEIVER_COMPONENT, TEST_CA.getBytes()); in tearDown()
169 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, null); in tearDown()
176 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, CERT_INSTALLER_PACKAGE); in testCaCertsOperations()
178 mDpm.getCertInstallerPackage(ADMIN_RECEIVER_COMPONENT)); in testCaCertsOperations()
184 ADMIN_RECEIVER_COMPONENT, cert)); in testCaCertsOperations()
194 ADMIN_RECEIVER_COMPONENT, cert)); in testCaCertsOperations()
198 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, null); in testCaCertsOperations()
208 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, null); in testInstallKeyPair()
215 mDpm.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, CERT_INSTALLER_PACKAGE); in testInstallKeyPair()
217 mDpm.getCertInstallerPackage(ADMIN_RECEIVER_COMPONENT)); in testInstallKeyPair()
[all …]
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.java75 dpm.addUserRestriction(BaseDeviceAdminTest.ADMIN_RECEIVER_COMPONENT, restrictionKey); in handleIntent()
81 BaseDeviceAdminTest.ADMIN_RECEIVER_COMPONENT, restrictionKey); in handleIntent()
86 dpm.setAccountManagementDisabled(BaseDeviceAdminTest.ADMIN_RECEIVER_COMPONENT, in handleIntent()
92 dpm.setAccountManagementDisabled(BaseDeviceAdminTest.ADMIN_RECEIVER_COMPONENT, in handleIntent()
100 BaseDeviceAdminTest.ADMIN_RECEIVER_COMPONENT, packageName); in handleIntent()
DScreenCaptureDisabledTest.java51 mDevicePolicyManager.setScreenCaptureDisabled(ADMIN_RECEIVER_COMPONENT, false); in testSetScreenCaptureDisabled_false()
52 assertFalse(mDevicePolicyManager.getScreenCaptureDisabled(ADMIN_RECEIVER_COMPONENT)); in testSetScreenCaptureDisabled_false()
59 mDevicePolicyManager.setScreenCaptureDisabled(ADMIN_RECEIVER_COMPONENT, true); in testSetScreenCaptureDisabled_true()
60 assertTrue(mDevicePolicyManager.getScreenCaptureDisabled(ADMIN_RECEIVER_COMPONENT)); in testSetScreenCaptureDisabled_true()
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()
DAlwaysOnVpnTest.java89 mDevicePolicyManager.setAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT, null, false); in tearDown()
90 mDevicePolicyManager.setApplicationRestrictions(ADMIN_RECEIVER_COMPONENT, VPN_PACKAGE, in tearDown()
97 assertNull(mDevicePolicyManager.getAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT)); in testAlwaysOnVpn()
107 mDevicePolicyManager.setApplicationRestrictions(ADMIN_RECEIVER_COMPONENT, VPN_PACKAGE, in testAllowedApps()
116 mDevicePolicyManager.setApplicationRestrictions(ADMIN_RECEIVER_COMPONENT, VPN_PACKAGE, in testDisallowedApps()
138 mDevicePolicyManager.setAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT, VPN_PACKAGE, true); in setAndWaitForVpn()
140 ADMIN_RECEIVER_COMPONENT)); in setAndWaitForVpn()
DResetPasswordHelper.java48 mDpm.setPasswordQuality(BaseDeviceAdminTest.ADMIN_RECEIVER_COMPONENT, in testClearPassword()
51 BaseDeviceAdminTest.ADMIN_RECEIVER_COMPONENT, 0); in testClearPassword()
DCustomizationRestrictionsTest.java53 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, mRestriction); in RestrictionApplicator()
58 mDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, mRestriction); in close()
170 mDevicePolicyManager.setUserIcon(ADMIN_RECEIVER_COMPONENT, randomBmp); in testDisallowSetUserIcon_allowed()
178 mDevicePolicyManager.setUserIcon(ADMIN_RECEIVER_COMPONENT, in testDisallowSetUserIcon_allowed()
181 mDevicePolicyManager.setUserIcon(ADMIN_RECEIVER_COMPONENT, originalIcon); in testDisallowSetUserIcon_allowed()
DPersistentIntentResolvingTest.java51 mDevicePolicyManager.clearPackagePersistentPreferredActivities(ADMIN_RECEIVER_COMPONENT, in tearDown()
84 mDevicePolicyManager.clearPackagePersistentPreferredActivities(ADMIN_RECEIVER_COMPONENT, in testAddAndClearPersistentPreferredActivitiesYieldsResolverActivity()
126 mDevicePolicyManager.addPersistentPreferredActivity(ADMIN_RECEIVER_COMPONENT, filter, in addPersistentPreferredActivity()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/
DBaseUserRestrictionsTest.java98 expected, mDevicePolicyManager.getUserRestrictions(ADMIN_RECEIVER_COMPONENT) in assertOwnerRestriction()
117 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in assertSetClearUserRestriction()
128 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in assertSetClearUserRestriction()
135 mDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in assertClearUserRestriction()
150 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in assertCannotSetUserRestriction()
163 mDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in assertCannotSetUserRestriction()
/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