Searched refs:pattern (Results 1 - 17 of 17) sorted by relevance

/frameworks/base/core/java/android/os/
H A DPatternMatcher.java20 * A simple pattern matcher, which is safe to use on untrusted data: it does
26 * Pattern type: the given pattern must exactly match the string it is
32 * Pattern type: the given pattern must match the
38 * Pattern type: the given pattern is interpreted with a
51 public PatternMatcher(String pattern, int type) { argument
52 mPattern = pattern;
109 static boolean matchPattern(String pattern, String match, int type) { argument
112 return pattern.equals(match);
114 return match.startsWith(pattern);
119 final int NP = pattern
[all...]
H A DIVibratorService.aidl23 void vibratePattern(in long[] pattern, int repeat, IBinder token);
H A DVibrator.java50 * Vibrate with a given pattern.
56 * index into the pattern at which to start the repeat.
58 * @param pattern an array of longs of times to turn the vibrator on or off.
59 * @param repeat the index into pattern at which to repeat, or -1 if
62 public void vibrate(long[] pattern, int repeat) argument
64 // catch this here because the server will do nothing. pattern may
67 if (repeat < pattern.length) {
69 mService.vibratePattern(pattern, repeat, mToken);
/frameworks/base/services/java/com/android/server/
H A DVibratorService.java54 Vibration(IBinder token, long[] pattern, int repeat) { argument
55 this(token, 0, pattern, repeat);
58 private Vibration(IBinder token, long millis, long[] pattern, argument
63 mPattern = pattern;
79 // This is a pattern, return false to play the simple
118 // either a timeout of > 0 or a non-null pattern.
134 private boolean isAll0(long[] pattern) { argument
135 int N = pattern.length;
137 if (pattern[i] != 0) {
144 public void vibratePattern(long[] pattern, in argument
[all...]
/frameworks/base/core/java/android/content/pm/
H A DPathPermission.java31 public PathPermission(String pattern, int type, String readPermission, argument
33 super(pattern, type);
/frameworks/base/core/java/com/android/internal/widget/
H A DLockPatternUtils.java62 * method of verifying the user, and resetting their lock pattern.
68 * wrong pattern too many times.
78 * The minimum number of dots in a valid pattern.
83 * The minimum number of dots the user must include in a wrong pattern
155 * Check to see if a pattern matches the saved pattern. If no pattern exists,
157 * @param pattern The pattern to check.
158 * @return Whether the pattern matche
160 checkPattern(List<LockPatternView.Cell> pattern) argument
297 saveLockPattern(List<LockPatternView.Cell> pattern) argument
431 patternToString(List<LockPatternView.Cell> pattern) argument
452 patternToHash(List<LockPatternView.Cell> pattern) argument
[all...]
H A DLockPatternView.java50 * Is also capable of displaying a static pattern in "in progress", "wrong" or
59 // Vibrator pattern for creating a tactile bump
72 * How many milliseconds we spend animating each circle of a lock pattern
74 * constant * the length of the pattern to complete.
82 * Lookup table for the circles of the pattern we are currently drawing.
83 * This will be the cells of the complete pattern unless we are animating,
134 * Represents a cell in the 3 X 3 matrix of the unlock pattern view.
192 * How to display the current pattern.
197 * The pattern drawn is correct (i.e draw it in a friendly color)
202 * Animate the pattern (fo
231 onPatternCellAdded(List<Cell> pattern) argument
237 onPatternDetected(List<Cell> pattern) argument
361 setPattern(DisplayMode displayMode, List<Cell> pattern) argument
[all...]
/frameworks/base/core/java/android/text/util/
H A DLinkify.java44 * Alone with the pattern that is to be matched, a url scheme prefix is also
45 * required. Any pattern match that does not begin with the supplied scheme
48 * the scheme <code>http://</code>. If the pattern matches example.com, which
149 * support@example.com. So, when matching against a web url pattern you
155 * Examines the character span matched by the pattern and determines
158 * @param s The body of text against which the pattern
161 * matched by the pattern - inclusive
297 * @param pattern Regex pattern to be used for finding links
302 public static final void addLinks(TextView text, Pattern pattern, Strin argument
342 addLinks(Spannable text, Pattern pattern, String scheme) argument
424 gatherLinks(ArrayList<LinkSpec> links, Spannable s, Pattern pattern, String[] schemes, MatchFilter matchFilter, TransformFilter transformFilter) argument
[all...]
/frameworks/policies/base/phone/com/android/internal/policy/impl/
H A DPatternUnlockScreen.java53 // how long before we clear the wrong pattern
74 * whether there is a fallback option available when the pattern is forgotten.
108 * poke it when the user starts drawing the pattern.
114 * Useful for clearing out the wrong pattern after a delay
153 * @param lockPatternUtils Used to lookup lock pattern settings.
158 * their pattern (e.g they have a google account so we can show them the account based
232 // lock pattern view.
357 // as long as the user is entering a pattern (i.e sending a touch
450 // reset lock pattern
455 // show "forgot pattern
502 onPatternCellAdded(List<Cell> pattern) argument
513 onPatternDetected(List<LockPatternView.Cell> pattern) argument
[all...]
H A DPhoneWindowManager.java174 // Vibrator pattern for haptic feedback of a long press.
177 // Vibrator pattern for haptic feedback of virtual key press.
180 // Vibrator pattern for a short vibration.
183 // Vibrator pattern for haptic feedback during boot when safe mode is disabled.
186 // Vibrator pattern for haptic feedback during boot when safe mode is enabled.
1887 // pattern to follow.
2364 long[] pattern = null;
2367 pattern = mLongPressVibePattern;
2370 pattern = mVirtualKeyVibePattern;
2373 pattern
[all...]
/frameworks/base/core/java/com/google/android/mms/pdu/
H A DEncodedStringValue.java207 * Split this encoded string around matches of the given pattern.
209 * @param pattern the delimiting pattern
211 * string around matches of the given pattern
213 public EncodedStringValue[] split(String pattern) { argument
214 String[] temp = getString().split(pattern);
/frameworks/base/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dbitstream.cpp562 /* Modified : 12/18/2000 : changed the pattern type to uint */
568 uint pattern; local
572 BitstreamShowBits16(stream, n_stuffed, &pattern);
573 if (pattern == msk[n_stuffed-1]) return PV_TRUE;
580 uint pattern; local
588 BitstreamShowBits16(stream, n_stuffed, &pattern);
589 if (pattern == 0) return PV_TRUE;
/frameworks/base/core/jni/
H A Dandroid_server_BluetoothService.cpp329 jstring pattern, jint attr_id) {
337 const char *c_pattern = env->GetStringUTFChars(pattern, NULL);
339 LOGV("... pattern = %s", c_pattern);
347 env->ReleaseStringUTFChars(pattern, c_pattern);
786 jstring path, jstring pattern) {
796 const char *c_pattern = env->GetStringUTFChars(pattern, NULL);
814 env->ReleaseStringUTFChars(pattern, c_pattern);
327 getDeviceServiceChannelNative(JNIEnv *env, jobject object, jstring path, jstring pattern, jint attr_id) argument
785 discoverServicesNative(JNIEnv *env, jobject object, jstring path, jstring pattern) argument
/frameworks/base/core/java/android/widget/
H A DTableLayout.java135 * following pattern (regex): \d+(\s*,\s*\d+)*</p>
149 Pattern pattern = Pattern.compile("\\s*,\\s*");
150 String[] columnDefs = pattern.split(sequence);
/frameworks/base/test-runner/src/android/test/
H A DMoreAsserts.java490 Pattern pattern = Pattern.compile(expectedRegex);
491 return pattern.matcher(actual);
/frameworks/base/core/java/android/text/
H A DTextUtils.java319 * Splits a string on a pattern. String.split() returns [''] when the string to be
322 * @param pattern the regular expression to match
327 public static String[] split(String text, Pattern pattern) { argument
331 return pattern.split(text, -1);
/frameworks/base/core/java/android/server/
H A DBluetoothService.java1415 // Use an empty string for the UUID pattern
1960 /*package*/ native boolean discoverServicesNative(String objectPath, String pattern); argument

Completed in 243 milliseconds