HomeSort by relevance Sort by last modified time
    Searched refs:DevicePolicyManager (Results 151 - 175 of 283) sorted by null

1 2 3 4 5 67 8 91011>>

  /frameworks/base/packages/Keyguard/test/src/com/android/keyguard/test/
KeyguardTestActivity.java 25 import android.app.admin.DevicePolicyManager;
182 mSecurityModeMock = DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED;
185 mSecurityModeMock = DevicePolicyManager.PASSWORD_QUALITY_NUMERIC;
189 mSecurityModeMock = DevicePolicyManager.PASSWORD_QUALITY_ALPHABETIC;
193 mSecurityModeMock = DevicePolicyManager.PASSWORD_QUALITY_SOMETHING;
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/
EnterprisePolicyGuardTest.java 18 import android.app.admin.DevicePolicyManager;
259 DevicePolicyManager mockDpm = mock(DevicePolicyManager.class);
279 private DevicePolicyManager mDpm;
282 public TestMockContext(Context realContext, DevicePolicyManager dpm, UserManager um) {
  /packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/
GrantPermissionsActivity.java 22 import android.app.admin.DevicePolicyManager;
120 DevicePolicyManager devicePolicyManager = getSystemService(DevicePolicyManager.class);
121 final int permissionPolicy = devicePolicyManager.getPermissionPolicy(null);
149 case DevicePolicyManager.PERMISSION_POLICY_AUTO_GRANT: {
156 case DevicePolicyManager.PERMISSION_POLICY_AUTO_DENY: {
341 case DevicePolicyManager.PERMISSION_POLICY_AUTO_GRANT: {
  /packages/apps/Settings/src/com/android/settings/
DeviceAdminSettings.java 25 import android.app.admin.DevicePolicyManager;
64 private DevicePolicyManager mDPM;
99 if (DevicePolicyManager.ACTION_DEVICE_POLICY_MANAGER_STATE_CHANGED.equals(
114 mDPM = (DevicePolicyManager) getActivity().getSystemService(Context.DEVICE_POLICY_SERVICE);
130 filter.addAction(DevicePolicyManager.ACTION_DEVICE_POLICY_MANAGER_STATE_CHANGED);
178 intent.putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN, dpi.getComponent());
DeviceAdminAdd.java 26 import android.app.admin.DevicePolicyManager;
90 DevicePolicyManager mDPM;
127 mDPM = (DevicePolicyManager)getSystemService(Context.DEVICE_POLICY_SERVICE);
142 DevicePolicyManager.EXTRA_DEVICE_ADMIN);
159 if (action != null && action.equals(DevicePolicyManager.ACTION_SET_PROFILE_OWNER)) {
164 getIntent().getStringExtra(DevicePolicyManager.EXTRA_PROFILE_OWNER_NAME);
245 if (DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN.equals(getIntent().getAction())) {
278 mAddMsgText = getIntent().getCharSequenceExtra(DevicePolicyManager.EXTRA_ADD_EXPLANATION);
ConfirmLockPassword.java 20 import android.app.admin.DevicePolicyManager;
134 mIsAlpha = DevicePolicyManager.PASSWORD_QUALITY_ALPHABETIC == storedQuality
135 || DevicePolicyManager.PASSWORD_QUALITY_ALPHANUMERIC == storedQuality
136 || DevicePolicyManager.PASSWORD_QUALITY_COMPLEX == storedQuality
137 || DevicePolicyManager.PASSWORD_QUALITY_MANAGED == storedQuality;
  /packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/task/
SetDevicePolicyTaskTest.java 25 import android.app.admin.DevicePolicyManager;
44 @Mock private DevicePolicyManager mDevicePolicyManager;
  /packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/uiflows/
PreProvisioningControllerTest.java 18 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE;
19 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SOURCE;
20 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE;
35 import android.app.admin.DevicePolicyManager;
67 @Mock private DevicePolicyManager mDevicePolicyManager;
110 .thenReturn(DevicePolicyManager.ENCRYPTION_STATUS_INACTIVE);
289 .thenReturn(DevicePolicyManager.ENCRYPTION_STATUS_UNSUPPORTED);
379 .thenReturn(DevicePolicyManager.ENCRYPTION_STATUS_UNSUPPORTED);
  /packages/apps/Settings/tests/unit/src/com/android/settings/
ChooseLockSettingsHelperTest.java 5 import android.app.admin.DevicePolicyManager;
134 .thenReturn(DevicePolicyManager.PASSWORD_QUALITY_SOMETHING);
  /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
ScreenCaptureDisabledTest.java 18 import android.app.admin.DevicePolicyManager;
30 * Tests for {@link DevicePolicyManager#setScreenCaptureDisabled} and
31 * {@link DevicePolicyManager#getScreenCaptureDisabled} APIs.
DelegatedCertInstallerTest.java 20 import android.app.admin.DevicePolicyManager;
34 * Exercise delegated cert installer APIs in {@link DevicePolicyManager} by setting the test app
132 private DevicePolicyManager mDpm;
154 mDpm = (DevicePolicyManager) mContext.getSystemService(Context.DEVICE_POLICY_SERVICE);
  /cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
KeyManagementTest.java 22 import android.app.admin.DevicePolicyManager;
57 private DevicePolicyManager mDevicePolicyManager;
68 mDevicePolicyManager = (DevicePolicyManager)
80 DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED);
  /development/samples/ApiDemos/src/com/example/android/apis/app/
ScreenOrientation.java 22 import android.app.admin.DevicePolicyManager;
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DeviceOwnerRequestingBugreportTestActivity.java 23 import android.app.admin.DevicePolicyManager;
70 DevicePolicyManager dpm = (DevicePolicyManager) getSystemService(
NfcTestActivity.java 20 import android.app.admin.DevicePolicyManager;
59 private DevicePolicyManager mDevicePolicyManager;
70 mDevicePolicyManager = (DevicePolicyManager) getSystemService(
  /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/vpn/
VpnTestHelper.java 20 import android.app.admin.DevicePolicyManager;
75 DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class);
  /cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
BasePackageInstallTest.java 19 import android.app.admin.DevicePolicyManager;
53 protected DevicePolicyManager mDevicePolicyManager;
87 mDevicePolicyManager = (DevicePolicyManager)
  /cts/tests/deviceadmin/uninstalltest/src/android/devicepolicy/cts/uiautomatertest/
DeviceAdminUninstallTest.java 20 import android.app.admin.DevicePolicyManager;
83 private DevicePolicyManager mDpm;
99 mDpm = mContext.getSystemService(DevicePolicyManager.class);
  /frameworks/base/core/java/android/app/admin/
DeviceAdminReceiver.java 122 * of the new password with {@link DevicePolicyManager#isActivePasswordSufficient()
123 * DevicePolicyManager.isActivePasswordSufficient()}.
139 * {@link DevicePolicyManager#getCurrentFailedPasswordAttempts
140 * DevicePolicyManager.getCurrentFailedPasswordAttempts()}. You will generally
185 * @see DevicePolicyManager#isLockTaskPermitted(String)
198 * @see DevicePolicyManager#isLockTaskPermitted(String)
220 * (see {@link DevicePolicyManager#ACTION_PROVISION_MANAGED_PROFILE
221 * DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE}).
225 * {@link android.app.admin.DevicePolicyManager#isDeviceOwnerApp} and
226 * {@link android.app.admin.DevicePolicyManager#isProfileOwnerApp}. You will generally handl
    [all...]
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
ProfileOwnerProvisioningActivity.java 19 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ACCOUNT_TO_MIGRATE;
20 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME;
30 import android.app.admin.DevicePolicyManager;
  /packages/apps/Settings/src/com/android/settings/applications/
AppInfoBase.java 24 import android.app.admin.DevicePolicyManager;
69 protected DevicePolicyManager mDpm;
86 mDpm = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE);
UsageAccessDetails.java 20 import android.app.admin.DevicePolicyManager;
57 private DevicePolicyManager mDpm;
66 mDpm = context.getSystemService(DevicePolicyManager.class);
  /packages/apps/Settings/src/com/android/settings/inputmethod/
AvailableVirtualKeyboardFragment.java 23 import android.app.admin.DevicePolicyManager;
52 private DevicePolicyManager mDpm;
62 mDpm = activity.getSystemService(DevicePolicyManager.class);
  /packages/apps/Settings/src/com/android/settings/notification/
RedactionInterstitial.java 19 import android.app.admin.DevicePolicyManager;
44 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_SECURE_NOTIFICATIONS;
45 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_UNREDACTED_NOTIFICATIONS;
  /cts/tests/admin/src/android/admin/cts/
DevicePolicyManagerTest.java 19 import android.app.admin.DevicePolicyManager;
39 * Test that exercises {@link DevicePolicyManager}. The test requires that the
47 private DevicePolicyManager mDevicePolicyManager;
75 mDevicePolicyManager = (DevicePolicyManager)
102 for (int which = DevicePolicyManager.KEYGUARD_DISABLE_FEATURES_NONE;
103 which < 2 * DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT; ++which) {

Completed in 1738 milliseconds

1 2 3 4 5 67 8 91011>>