Lines Matching defs:pattern

49  * Is also capable of displaying a static pattern in "in progress", "wrong" or
69 * How many milliseconds we spend animating each circle of a lock pattern
71 * constant * the length of the pattern to complete.
79 * Lookup table for the circles of the pattern we are currently drawing.
80 * This will be the cells of the complete pattern unless we are animating,
130 * Represents a cell in the 3 X 3 matrix of the unlock pattern view.
188 * How to display the current pattern.
193 * The pattern drawn is correct (i.e draw it in a friendly color)
198 * Animate the pattern (for demo, and help).
203 * The pattern is wrong (i.e draw a foreboding color)
214 * A new pattern has begun.
219 * The pattern was cleared.
224 * The user extended the pattern currently being drawn by one cell.
225 * @param pattern The pattern with newly added cell.
227 void onPatternCellAdded(List<Cell> pattern);
230 * A pattern was detected from the user.
231 * @param pattern The pattern.
233 void onPatternDetected(List<Cell> pattern);
308 * visible feedback as the user enters the pattern.
318 * tactile feedback as the user enters the pattern.
327 * Set the call back for pattern detection.
336 * Set the pattern explicitely (rather than waiting for the user to input
337 * a pattern).
338 * @param displayMode How to display the pattern.
339 * @param pattern The pattern.
341 public void setPattern(DisplayMode displayMode, List<Cell> pattern) {
343 mPattern.addAll(pattern);
345 for (Cell cell : pattern) {
353 * Set the display mode of the current pattern. This can be useful, for
354 * instance, after detecting a pattern to tell this view whether change the
362 throw new IllegalStateException("you must have a pattern to "
403 * Clear the pattern.
410 * Reset all pattern state.
420 * Clear the pattern lookup table.
508 * pattern (in addition to finding the cell, also makes heuristic choices
509 * such as filling in gaps based on current pattern).
517 // check for gaps in existing pattern
519 final ArrayList<Cell> pattern = mPattern;
520 if (!pattern.isEmpty()) {
521 final Cell lastCell = pattern.get(pattern.size() - 1);
698 final ArrayList<Cell> pattern = mPattern;
701 final Cell lastCell = pattern.get(patternSize - 1);
729 // Invalidate between the pattern's last cell and the current location
749 // Invalidate between the pattern's last cell and the previous location
753 // Invalidate between the pattern's new cell and the pattern's previous cell
760 hitCell = pattern.get(patternSize - 1 - (patternSize - patternSizePreHitDetect));
805 // report pattern detected
862 final ArrayList<Cell> pattern = mPattern;
863 final int count = pattern.size();
870 // + 1 so we pause on complete pattern
878 final Cell cell = pattern.get(i);
892 final Cell currentCell = pattern.get(numCircles - 1);
896 final Cell nextCell = pattern.get(numCircles);
932 // draw the path of the pattern (unless the user is in progress, and
942 Cell cell = pattern.get(i);
943 Cell next = pattern.get(i + 1);
945 // only draw the part of the pattern stored in
962 Cell cell = pattern.get(i);
964 // only draw the part of the pattern stored in
1032 * @param partOfPattern Whether this circle is part of the pattern.
1043 // user is in middle of drawing a pattern
1047 // the pattern is wrong
1052 // the pattern is correct
1104 * The parecelable for saving and restoring a lock pattern view.