Lines Matching refs:pattern

49  * Is also capable of displaying a static pattern in "in progress", "wrong" or
65 * How many milliseconds we spend animating each circle of a lock pattern
67 * constant * the length of the pattern to complete.
81 * Lookup table for the circles of the pattern we are currently drawing.
82 * This will be the cells of the complete pattern unless we are animating,
132 * Represents a cell in the 3 X 3 matrix of the unlock pattern view.
190 * How to display the current pattern.
195 * The pattern drawn is correct (i.e draw it in a friendly color)
200 * Animate the pattern (for demo, and help).
205 * The pattern is wrong (i.e draw a foreboding color)
216 * A new pattern has begun.
221 * The pattern was cleared.
226 * The user extended the pattern currently being drawn by one cell.
227 * @param pattern The pattern with newly added cell.
229 void onPatternCellAdded(List<Cell> pattern);
232 * A pattern was detected from the user.
233 * @param pattern The pattern.
235 void onPatternDetected(List<Cell> pattern);
310 * visible feedback as the user enters the pattern.
320 * tactile feedback as the user enters the pattern.
329 * Set the call back for pattern detection.
338 * Set the pattern explicitely (rather than waiting for the user to input
339 * a pattern).
340 * @param displayMode How to display the pattern.
341 * @param pattern The pattern.
343 public void setPattern(DisplayMode displayMode, List<Cell> pattern) {
345 mPattern.addAll(pattern);
347 for (Cell cell : pattern) {
355 * Set the display mode of the current pattern. This can be useful, for
356 * instance, after detecting a pattern to tell this view whether change the
364 throw new IllegalStateException("you must have a pattern to "
405 * Clear the pattern.
412 * Reset all pattern state.
422 * Clear the pattern lookup table.
510 * pattern (in addition to finding the cell, also makes heuristic choices
511 * such as filling in gaps based on current pattern).
519 // check for gaps in existing pattern
521 final ArrayList<Cell> pattern = mPattern;
522 if (!pattern.isEmpty()) {
523 final Cell lastCell = pattern.get(pattern.size() - 1);
699 final ArrayList<Cell> pattern = mPattern;
700 final Cell lastCell = pattern.get(patternSize - 1);
710 // Invalidate between the pattern's new cell and the pattern's previous cell
723 // Invalidate between the pattern's last cell and the previous location
744 // report pattern detected
801 final ArrayList<Cell> pattern = mPattern;
802 final int count = pattern.size();
809 // + 1 so we pause on complete pattern
817 final Cell cell = pattern.get(i);
831 final Cell currentCell = pattern.get(numCircles - 1);
835 final Cell nextCell = pattern.get(numCircles);
871 // draw the path of the pattern (unless the user is in progress, and
881 Cell cell = pattern.get(i);
882 Cell next = pattern.get(i + 1);
884 // only draw the part of the pattern stored in
901 Cell cell = pattern.get(i);
903 // only draw the part of the pattern stored in
971 * @param partOfPattern Whether this circle is part of the pattern.
982 // user is in middle of drawing a pattern
986 // the pattern is wrong
991 // the pattern is correct
1043 * The parecelable for saving and restoring a lock pattern view.