Home | History | Annotate | Download | only in widget

Lines Matching refs:pattern

52  * Utilities for the lock pattern and its settings.
66 * method of verifying the user, and resetting their lock pattern.
72 * wrong pattern too many times.
89 * The minimum number of dots in a valid pattern.
94 * The minimum number of dots the user must include in a wrong pattern
278 * Check to see if a pattern matches the saved pattern. If no pattern exists,
280 * @param pattern The pattern to check.
281 * @return Whether the pattern matches the stored one.
283 public boolean checkPattern(List<LockPatternView.Cell> pattern) {
286 final boolean matched = getLockSettings().checkPattern(patternToHash(pattern), userId);
288 KeyStore.getInstance().password(patternToString(pattern));
344 * Check to see if the user has stored a lock pattern.
345 * @return Whether a saved pattern exists.
356 * Check to see if the user has stored a lock pattern.
357 * @return Whether a saved pattern exists.
368 * Return true if the user has ever chosen a pattern. This is true even if the pattern is
371 * @return True if the user has ever chosen a pattern.
434 * Clear any lock pattern or password.
447 * This is only meaningful if pattern, pin or password are not set.
486 * Save a lock pattern.
487 * @param pattern The new pattern to save.
489 public void saveLockPattern(List<LockPatternView.Cell> pattern) {
490 this.saveLockPattern(pattern, false);
494 * Save a lock pattern.
495 * @param pattern The new pattern to save.
498 public void saveLockPattern(List<LockPatternView.Cell> pattern, boolean isFallback) {
500 final byte[] hash = LockPatternUtils.patternToHash(pattern);
505 if (pattern != null) {
506 keyStore.password(patternToString(pattern));
512 pattern.size(), 0, 0, 0, 0, 0, 0, getCurrentOrCallingUserId());
529 Log.e(TAG, "Couldn't save lock pattern " + re);
601 * pattern.
612 * pattern.
624 * pattern.
756 * Deserialize a pattern.
757 * @param string The pattern serialized with {@link #patternToString}
758 * @return The pattern.
772 * Serialize a pattern.
773 * @param pattern The pattern.
774 * @return The pattern in string form.
776 public static String patternToString(List<LockPatternView.Cell> pattern) {
777 if (pattern == null) {
780 final int patternSize = pattern.size();
784 LockPatternView.Cell cell = pattern.get(i);
791 * Generate an SHA-1 hash for the pattern. Not the most secure, but it is
794 * @param pattern the gesture pattern.
795 * @return the hash of the pattern in a byte array.
797 private static byte[] patternToHash(List<LockPatternView.Cell> pattern) {
798 if (pattern == null) {
802 final int patternSize = pattern.size();
805 LockPatternView.Cell cell = pattern.get(i);
836 * @param password the gesture pattern.
837 * @return the hash of the pattern in a byte array.
886 * @return Whether the lock pattern is enabled, or if it is set as a backup for biometric weak
946 * Set whether the lock pattern is enabled.
953 * @return Whether the visible pattern is enabled.
960 * Set whether the visible pattern is enabled.
967 * @return Whether tactile feedback for the pattern is enabled.
976 * pattern until the deadline has passed.
987 * attempt to enter his/her lock pattern, or 0 if the user is welcome to
988 * enter a pattern.