HomeSort by relevance Sort by last modified time
    Searched refs:mDPM (Results 1 - 8 of 8) sorted by null

  /development/samples/training/device-management-policy/src/com/example/training/deviceadmin/
Policy.java 51 private DevicePolicyManager mDPM;
59 mDPM = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE);
129 return mDPM.isAdminActive(mPolicyAdmin);
133 return mDPM.isActivePasswordSufficient();
144 mDPM.setPasswordQuality(mPolicyAdmin, PASSWORD_QUALITY_VALUES[mPasswordQuality]);
145 mDPM.setPasswordMinimumLength(mPolicyAdmin, mPasswordLength);
147 mDPM.setPasswordMinimumUpperCase(mPolicyAdmin, mPasswordMinUpperCase);
  /development/samples/ApiDemos/src/com/example/android/apis/app/
DeviceAdminSample.java 113 DevicePolicyManager mDPM;
121 mDPM = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
137 return mDPM.isAdminActive(mDeviceAdminSample);
160 protected DevicePolicyManager mDPM;
174 mDPM = mActivity.mDPM;
209 boolean sufficient = mDPM.isActivePasswordSufficient();
254 mDPM.resetPassword(newPassword, DevicePolicyManager.RESET_PASSWORD_REQUIRE_ENTRY);
333 mDPM.setCameraDisabled(mDeviceAdminSample, mDisableCameraCheckbox.isChecked());
334 mDPM.setKeyguardDisabledFeatures(mDeviceAdminSample, createKeyguardDisabledFlag())
    [all...]
  /packages/apps/Settings/src/com/android/settings/
DeviceAdminAdd.java 73 DevicePolicyManager mDPM;
107 mDPM = (DevicePolicyManager)getSystemService(Context.DEVICE_POLICY_SERVICE);
164 if (!mDPM.isAdminActive(who)) {
214 if (mDPM.isAdminActive(who)) {
218 if (!mDPM.hasGrantedPolicy(who, pi.ident)) {
234 if (mAddingProfileOwner && !mDPM.hasUserSetupCompleted()) {
282 mDPM.getRemoveWarning(mDeviceAdmin.getComponent(),
306 mDPM.setActiveAdmin(mDeviceAdmin.getComponent(), mRefreshing);
315 if (mDPM.isAdminActive(mDeviceAdmin.getComponent())) {
321 mDPM.setProfileOwner(mDeviceAdmin.getComponent()
    [all...]
DeviceAdminSettings.java 60 private DevicePolicyManager mDPM;
93 mDPM = (DevicePolicyManager) getActivity().getSystemService(Context.DEVICE_POLICY_SERVICE);
112 mDeviceOwnerPkg = mDPM.getDeviceOwner();
113 if (mDeviceOwnerPkg != null && !mDPM.isDeviceOwner(mDeviceOwnerPkg)) {
121 mProfileOwnerComponents.put(profileId, mDPM.getProfileOwnerAsUser(profileId));
366 return mDPM.isAdminActiveAsUser(item.getComponent(), getUserId(item));
370 return mDPM.isRemovingAdmin(item.getComponent(), getUserId(item));
384 List<ComponentName> activeAdminsListForProfile = mDPM.getActiveAdminsAsUser(profileId);
ChooseLockGeneric.java 99 private DevicePolicyManager mDPM;
113 mDPM = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
274 int minQuality = mDPM.getPasswordQuality(null);
454 int minLength = mDPM.getPasswordMinimumLength(null);
458 final int maxLength = mDPM.getPasswordMaximumLength(quality);
SecuritySettings.java 113 private DevicePolicyManager mDPM;
144 mDPM = (DevicePolicyManager)getSystemService(Context.DEVICE_POLICY_SERVICE);
485 final long adminTimeout = (mDPM != null ? mDPM.getMaximumTimeToLock(null) : 0);
    [all...]
WirelessSettings.java 366 final DevicePolicyManager mDPM = (DevicePolicyManager)
370 mGlobalProxy.setEnabled(mDPM.getGlobalProxyAdmin() == null);
  /packages/apps/Email/provider_src/com/android/email/
SecurityPolicy.java 62 private DevicePolicyManager mDPM;
90 mDPM = null;
214 if (mDPM == null) {
215 mDPM = (DevicePolicyManager) mContext.getSystemService(Context.DEVICE_POLICY_SERVICE);
217 return mDPM;
    [all...]

Completed in 156 milliseconds