Home
last modified time | relevance | path

Searched refs:mDPM (Results 1 – 2 of 2) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/app/
DDeviceAdminSample.java115 DevicePolicyManager mDPM; field in DeviceAdminSample
123 mDPM = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE); in onCreate()
139 return mDPM.isAdminActive(mDeviceAdminSample); in isActiveAdmin()
162 protected DevicePolicyManager mDPM; field in DeviceAdminSample.AdminSampleFragment
176 mDPM = mActivity.mDPM; in onActivityCreated()
211 boolean sufficient = mDPM.isActivePasswordSufficient(); in reloadSummaries()
256 mDPM.resetPassword(newPassword, DevicePolicyManager.RESET_PASSWORD_REQUIRE_ENTRY); in doResetPassword()
345 mDPM.setCameraDisabled(mDeviceAdminSample, mDisableCameraCheckbox.isChecked()); in onResume()
346 mDPM.setKeyguardDisabledFeatures(mDeviceAdminSample, createKeyguardDisabledFlag()); in onResume()
388 mDPM.removeActiveAdmin(mDeviceAdminSample); in onPreferenceChange()
[all …]
/development/samples/training/device-management-policy/src/com/example/training/deviceadmin/
DPolicy.java51 private DevicePolicyManager mDPM; field in Policy
59 mDPM = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE); in Policy()
129 return mDPM.isAdminActive(mPolicyAdmin); in isAdminActive()
133 return mDPM.isActivePasswordSufficient(); in isActivePasswordSufficient()
144 mDPM.setPasswordQuality(mPolicyAdmin, PASSWORD_QUALITY_VALUES[mPasswordQuality]); in configurePolicy()
145 mDPM.setPasswordMinimumLength(mPolicyAdmin, mPasswordLength); in configurePolicy()
147 mDPM.setPasswordMinimumUpperCase(mPolicyAdmin, mPasswordMinUpperCase); in configurePolicy()