Home
last modified time | relevance | path

Searched refs:mAdmin (Results 1 – 8 of 8) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DCommandReceiverActivity.java179 private ComponentName mAdmin; field in CommandReceiverActivity
191 mAdmin = DeviceAdminTestReceiver.getReceiverComponentName(); in onCreate()
199 mDpm.addUserRestriction(mAdmin, restrictionKey); in onCreate()
201 mDpm.clearUserRestriction(mAdmin, restrictionKey); in onCreate()
206 mDpm.setKeyguardDisabledFeatures(mAdmin, enforced in onCreate()
211 mDpm.setAutoTimeRequired(mAdmin, in onCreate()
216 mDpm.setDeviceOwnerLockScreenInfo(mAdmin, intent.getStringExtra(EXTRA_VALUE)); in onCreate()
221 mDpm.setMaximumTimeToLock(mAdmin, in onCreate()
226 mDpm.setPasswordQuality(mAdmin, quality); in onCreate()
235 mDpm.setKeyguardDisabled(mAdmin, enforced); in onCreate()
[all …]
DSetSupportMessageActivity.java41 private ComponentName mAdmin; field in SetSupportMessageActivity
56 mAdmin = DeviceAdminTestReceiver.getReceiverComponentName(); in onCreate()
59 ? mDpm.getShortSupportMessage(mAdmin) in onCreate()
60 : mDpm.getLongSupportMessage(mAdmin)); in onCreate()
80 mDpm.setShortSupportMessage(mAdmin, message); in onClick()
82 mDpm.setLongSupportMessage(mAdmin, message); in onClick()
DPermissionLockdownTestActivity.java63 private ComponentName mAdmin; field in PermissionLockdownTestActivity
72 mAdmin = DeviceAdminTestReceiver.getReceiverComponentName(); in onCreate()
108 int currentPermissionState = mDevicePolicyManager.getPermissionGrantState(mAdmin, in buildLayout()
176 mDevicePolicyManager.setPermissionGrantState(mAdmin, PERMISSION_APP_PACKAGE, in onCheckedChanged()
181 String adminPackage = mAdmin.getPackageName(); in isProfileOrDeviceOwner()
DRecentsRedactionActivity.java44 private ComponentName mAdmin; field in RecentsRedactionActivity
89 mAdmin = new ComponentName(this, DeviceAdminTestReceiver.class.getName()); in onCreate()
123 mDevicePolicyManager.setPasswordQuality(mAdmin, in hasPassword()
127 mDevicePolicyManager.setPasswordQuality(mAdmin, in hasPassword()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DCaCertManagementTest.java39 private final ComponentName mAdmin = ADMIN_RECEIVER_COMPONENT; field in CaCertManagementTest
47 List<byte[]> caCerts = mDevicePolicyManager.getInstalledCaCerts(mAdmin); in testCanRetrieveListOfInstalledCaCerts()
59 assertTrue(mDevicePolicyManager.installCaCert(mAdmin, FAKE_RSA_1.caCertificate)); in testCanInstallAndUninstallACaCert()
63 mDevicePolicyManager.uninstallCaCert(mAdmin, FAKE_RSA_1.caCertificate); in testCanInstallAndUninstallACaCert()
73 assertTrue(mDevicePolicyManager.installCaCert(mAdmin, FAKE_RSA_1.caCertificate)); in testUninstallationIsSelective()
74 assertTrue(mDevicePolicyManager.installCaCert(mAdmin, FAKE_DSA_1.caCertificate)); in testUninstallationIsSelective()
76 mDevicePolicyManager.uninstallCaCert(mAdmin, FAKE_DSA_1.caCertificate); in testUninstallationIsSelective()
80 mDevicePolicyManager.uninstallCaCert(mAdmin, FAKE_RSA_1.caCertificate); in testUninstallationIsSelective()
89 assertTrue(mDevicePolicyManager.installCaCert(mAdmin, FAKE_RSA_1.caCertificate)); in testCanUninstallAllUserCaCerts()
90 assertTrue(mDevicePolicyManager.installCaCert(mAdmin, FAKE_DSA_1.caCertificate)); in testCanUninstallAllUserCaCerts()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/tapjacking/
DDeviceAdminTapjackingTestActivity.java50 private ComponentName mAdmin; field in DeviceAdminTapjackingTestActivity
59 mAdmin = new ComponentName(this, EmptyDeviceAdminReceiver.class); in onCreate()
76 while (mDevicePolicyManager.isAdminActive(mAdmin) in isActiveAdminAfterTimeout()
83 return mDevicePolicyManager.isAdminActive(mAdmin); in isActiveAdminAfterTimeout()
90 securitySettingsIntent.putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN, mAdmin); in onClick()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/
DDeviceAdminUninstallTestActivity.java66 private ComponentName mAdmin; field in DeviceAdminUninstallTestActivity
83 mAdmin = new ComponentName(ADMIN_PACKAGE_NAME, ADMIN_RECEIVER_CLASS_NAME); in onCreate()
92 mAdminActivated = mDevicePolicyManager.isAdminActive(mAdmin); in onCreate()
131 securitySettingsIntent.putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN, mAdmin); in onClick()
143 mAdminActivated = mDevicePolicyManager.isAdminActive(mAdmin); in onActivityResult()
DPolicySerializationTestActivity.java61 private ComponentName mAdmin; field in PolicySerializationTestActivity
78 mAdmin = DeviceAdminTestReceiver.getReceiverComponentName(); in onCreate()
115 item.loadActualValue(mDevicePolicyManager, mAdmin); in loadPolicy()