use of com.android.settings.password.ChooseLockSettingsHelper in project android_packages_apps_Settings by LineageOS.
the class CryptKeeperSettings method runKeyguardConfirmation.
/**
* Keyguard validation is run using the standard {@link ConfirmLockPattern}
* component as a subactivity
* @param request the request code to be returned once confirmation finishes
* @return true if confirmation launched
*/
private boolean runKeyguardConfirmation(int request) {
Resources res = getActivity().getResources();
ChooseLockSettingsHelper helper = new ChooseLockSettingsHelper(getActivity(), this);
if (helper.utils().getKeyguardStoredPasswordQuality(UserHandle.myUserId()) == DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED) {
showFinalConfirmation(StorageManager.CRYPT_TYPE_DEFAULT, "");
return true;
}
return helper.launchConfirmationActivity(request, res.getText(R.string.crypt_keeper_encrypt_title), true);
}
use of com.android.settings.password.ChooseLockSettingsHelper in project android_packages_apps_Settings by LineageOS.
the class SecuritySettings method launchConfirmDeviceLockForUnification.
private void launchConfirmDeviceLockForUnification() {
final String title = getActivity().getString(R.string.unlock_set_unlock_launch_picker_title);
final ChooseLockSettingsHelper helper = new ChooseLockSettingsHelper(getActivity(), this);
if (!helper.launchConfirmationActivity(UNIFY_LOCK_CONFIRM_DEVICE_REQUEST, title, true, MY_USER_ID)) {
launchConfirmProfileLockForUnification();
}
}
use of com.android.settings.password.ChooseLockSettingsHelper in project android_packages_apps_Settings by LineageOS.
the class SecuritySettings method launchConfirmProfileLockForUnification.
private void launchConfirmProfileLockForUnification() {
final String title = getActivity().getString(R.string.unlock_set_unlock_launch_picker_title_profile);
final ChooseLockSettingsHelper helper = new ChooseLockSettingsHelper(getActivity(), this);
if (!helper.launchConfirmationActivity(UNIFY_LOCK_CONFIRM_PROFILE_REQUEST, title, true, mProfileChallengeUserId)) {
unifyLocks();
createPreferenceHierarchy();
}
}
use of com.android.settings.password.ChooseLockSettingsHelper in project android_packages_apps_Settings by omnirom.
the class CryptKeeperSettings method runKeyguardConfirmation.
/**
* Keyguard validation is run using the standard {@link ConfirmLockPattern}
* component as a subactivity
* @param request the request code to be returned once confirmation finishes
* @return true if confirmation launched
*/
private boolean runKeyguardConfirmation(int request) {
Resources res = getActivity().getResources();
ChooseLockSettingsHelper helper = new ChooseLockSettingsHelper(getActivity(), this);
if (helper.utils().getKeyguardStoredPasswordQuality(UserHandle.myUserId()) == DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED) {
showFinalConfirmation(StorageManager.CRYPT_TYPE_DEFAULT, "");
return true;
}
return helper.launchConfirmationActivity(request, res.getText(R.string.crypt_keeper_encrypt_title), true);
}
use of com.android.settings.password.ChooseLockSettingsHelper in project android_packages_apps_Settings by omnirom.
the class SecuritySettings method launchConfirmProfileLockForUnification.
private void launchConfirmProfileLockForUnification() {
final String title = getActivity().getString(R.string.unlock_set_unlock_launch_picker_title_profile);
final ChooseLockSettingsHelper helper = new ChooseLockSettingsHelper(getActivity(), this);
if (!helper.launchConfirmationActivity(UNIFY_LOCK_CONFIRM_PROFILE_REQUEST, title, true, mProfileChallengeUserId)) {
unifyLocks();
createPreferenceHierarchy();
}
}
Aggregations