Home
last modified time | relevance | path

Searched refs:dpm (Results 1 – 10 of 10) sorted by relevance

/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCrossProfileUtils.java55 final DevicePolicyManager dpm = (DevicePolicyManager) getContext().getSystemService( in testAddParentCanAccessManagedFilters() local
57 dpm.addCrossProfileIntentFilter(ADMIN_RECEIVER_COMPONENT, getIntentFilter(), in testAddParentCanAccessManagedFilters()
64 final DevicePolicyManager dpm = (DevicePolicyManager) getContext().getSystemService( in testAddManagedCanAccessParentFilters() local
66 dpm.addCrossProfileIntentFilter(ADMIN_RECEIVER_COMPONENT, getIntentFilter(), in testAddManagedCanAccessParentFilters()
80 final DevicePolicyManager dpm = (DevicePolicyManager) getContext().getSystemService( in testRemoveAllFilters() local
82 dpm.clearCrossProfileIntentFilters(ADMIN_RECEIVER_COMPONENT); in testRemoveAllFilters()
86 DevicePolicyManager dpm = (DevicePolicyManager) in testDisallowCrossProfileCopyPaste() local
88 dpm.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testDisallowCrossProfileCopyPaste()
93 DevicePolicyManager dpm = (DevicePolicyManager) in testAllowCrossProfileCopyPaste() local
95 dpm.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, in testAllowCrossProfileCopyPaste()
[all …]
DSetPolicyActivity.java66 DevicePolicyManager dpm = (DevicePolicyManager) in handleIntent() local
73 dpm.addUserRestriction(BaseManagedProfileTest.ADMIN_RECEIVER_COMPONENT, restrictionKey); in handleIntent()
78 dpm.clearUserRestriction( in handleIntent()
84 dpm.addCrossProfileWidgetProvider(BaseManagedProfileTest.ADMIN_RECEIVER_COMPONENT, in handleIntent()
90 dpm.removeCrossProfileWidgetProvider(BaseManagedProfileTest.ADMIN_RECEIVER_COMPONENT, in handleIntent()
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DCertInstallerActivity.java78 DevicePolicyManager dpm = (DevicePolicyManager) getSystemService( in onCreate() local
87 if (dpm.hasCaCertInstalled(null, certBuffer)) { in onCreate()
90 if (!dpm.installCaCert(null, certBuffer)) { in onCreate()
93 if (!dpm.hasCaCertInstalled(null, certBuffer)) { in onCreate()
104 if (!dpm.hasCaCertInstalled(null, certBuffer)) { in onCreate()
107 dpm.uninstallCaCert(null, certBuffer); in onCreate()
108 sendResult(!dpm.hasCaCertInstalled(null, certBuffer), null); in onCreate()
116 sendResult(containsCertificate(dpm.getInstalledCaCerts(null), certBuffer), null); in onCreate()
141 sendResult(dpm.installKeyPair(null, privatekey, certificate, alias), null); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DDeviceOwnerPositiveTestActivity.java273 DevicePolicyManager dpm = (DevicePolicyManager) in onCreate() local
280 dpm.addUserRestriction(admin, restrictionKey); in onCreate()
284 dpm.clearUserRestriction(admin, restrictionKey); in onCreate()
287 tearDown(dpm, admin); in onCreate()
291 dpm.setGlobalSetting(admin, setting, value); in onCreate()
294 dpm.setStatusBarDisabled(admin, value); in onCreate()
298 dpm.resetPassword(null, 0); in onCreate()
300 dpm.setKeyguardDisabled(admin, value); in onCreate()
302 if (dpm.isDeviceOwnerApp(getPackageName())) { in onCreate()
320 private void tearDown(DevicePolicyManager dpm, ComponentName admin) { in tearDown() argument
[all …]
DDeviceAdminTestReceiver.java51 …DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SER… in setupProfile() local
52 dpm.setProfileEnabled(new ComponentName(context.getApplicationContext(), getClass())); in setupProfile()
77 dpm.addCrossProfileIntentFilter(getWho(context), filter, in setupProfile()
84 dpm.addCrossProfileIntentFilter(getWho(context), filter, in setupProfile()
DCrossProfileTestActivity.java72 … DevicePolicyManager dpm = (DevicePolicyManager)getSystemService(Context.DEVICE_POLICY_SERVICE); in isProfileOwner() local
73 … return dpm.isAdminActive(adminReceiver) && dpm.isProfileOwnerApp(adminReceiver.getPackageName()); in isProfileOwner()
DWorkNotificationTestActivity.java60 DevicePolicyManager dpm = (DevicePolicyManager) getSystemService( in onCreate() local
62 dpm.lockNow(); in onCreate()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBaseDeviceOwnerTest.java61 static void assertDeviceOwner(DevicePolicyManager dpm) { in assertDeviceOwner() argument
62 assertNotNull(dpm); in assertDeviceOwner()
63 assertTrue(dpm.isAdminActive(getWho())); in assertDeviceOwner()
64 assertTrue(dpm.isDeviceOwnerApp(PACKAGE_NAME)); in assertDeviceOwner()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DUserRestrictionActivity.java61 DevicePolicyManager dpm = (DevicePolicyManager) in handleIntent() local
68 dpm.addUserRestriction(BaseDeviceAdminTest.ADMIN_RECEIVER_COMPONENT, restrictionKey); in handleIntent()
72 dpm.clearUserRestriction( in handleIntent()
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DSimpleIntentReceiverActivity.java40 DevicePolicyManager dpm = in onCreate() local
42 boolean inManagedProfile = dpm.isProfileOwnerApp("com.android.cts.managedprofile"); in onCreate()