HomeSort by relevance Sort by last modified time
    Searched refs:Pattern (Results 501 - 525 of 940) sorted by null

<<21222324252627282930>>

  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
PluralRules.java 29 import java.util.regex.Pattern;
    [all...]
  /external/messageformat/java/com/ibm/icu/simple/
PluralRules.java 26 import java.util.regex.Pattern;
    [all...]
  /external/guava/guava/src/com/google/common/base/
Predicates.java 30 import java.util.regex.Pattern;
248 * regular expression pattern. The test used is equivalent to
249 * {@code Pattern.compile(pattern).matcher(arg).find()}
251 * @throws java.util.regex.PatternSyntaxException if the pattern is invalid
254 @GwtIncompatible(value = "java.util.regex.Pattern")
255 public static Predicate<CharSequence> containsPattern(String pattern) {
256 return new ContainsPatternFromStringPredicate(pattern);
262 * regular expression pattern. The test used is equivalent to
263 * {@code pattern.matcher(arg).find()
578 final Pattern pattern; field in class:Predicates.ContainsPatternPredicate
    [all...]
Splitter.java 33 import java.util.regex.Pattern;
204 * pattern} to be a separator. For example, {@code
205 * Splitter.on(Pattern.compile("\r?\n")).split(entireFile)} splits a string
208 * @param separatorPattern the pattern that determines whether a subsequence
209 * is a separator. This pattern may not match the empty string.
210 * @return a splitter, with default settings, that uses this pattern
215 public static Splitter on(final Pattern separatorPattern) {
218 "The pattern may not match the empty string: %s", separatorPattern);
239 * pattern (regular expression) to be a separator. For example, {@code
242 * equivalent to {@code Splitter.on(Pattern.compile(pattern))}
    [all...]
  /frameworks/base/services/core/java/com/android/server/display/
OverlayDisplayAdapter.java 40 import java.util.regex.Pattern;
78 private static final Pattern DISPLAY_PATTERN =
79 Pattern.compile("([^,]+)(,[a-z]+)*");
80 private static final Pattern MODE_PATTERN =
81 Pattern.compile("(\\d+)x(\\d+)/(\\d+)");
  /packages/apps/Messaging/src/com/android/messaging/receiver/
SmsReceiver.java 36 import java.util.regex.Pattern;
65 private static ArrayList<Pattern> sIgnoreSmsPatterns;
312 // Get the pattern set from GServices
319 sIgnoreSmsPatterns = new ArrayList<Pattern>();
322 sIgnoreSmsPatterns.add(Pattern.compile(ignoreSmsExpressions[i]));
354 for (final Pattern pattern : sIgnoreSmsPatterns) {
355 if (pattern.matcher(messageBody).matches()) {
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/
ReferenceChooserDialog.java 57 import java.util.regex.Pattern;
65 private static Pattern sResourcePattern = Pattern.compile("@(.*)/(.+)"); //$NON-NLS-1$
66 private static Pattern sInlineIdResourcePattern = Pattern.compile("@\\+id/(.+)"); //$NON-NLS-1$
340 // checks the inline id pattern first as it's more restrictive than the other one.
349 // attempts the inline id pattern
  /tools/tradefederation/core/prod-tests/src/com/android/performance/tests/
EmmcPerformanceTest.java 44 import java.util.regex.Pattern;
63 private static final Pattern DD_PATTERN = Pattern.compile(
66 private static final Pattern EMMC_RANDOM_PATTERN = Pattern.compile(
  /cts/tests/tests/text/src/android/text/util/cts/
LinkifyTest.java 43 import java.util.regex.Pattern;
51 private static final Pattern LINKIFY_TEST_PATTERN = Pattern.compile(
52 "(test:)?[a-zA-Z0-9]+(\\.pattern)?");
171 text = "google.pattern, test:AZ0101.pattern";
176 assertEquals("test:google.pattern", spans[0].getURL());
177 assertEquals("test:AZ0101.pattern", spans[1].getURL());
184 assertEquals("google.pattern", spans[0].getURL());
185 assertEquals("test:AZ0101.pattern", spans[1].getURL())
426 Pattern pattern = Pattern.compile("\\\\b((http|https):\/\/)?android\\\\.com+\\\\b"); local
441 Pattern pattern = Pattern.compile("\\\\b((http|https):\/\/)?android\\\\.com+\\\\b"); local
457 Pattern pattern = Pattern.compile("\\\\b((http|https):\/\/)?android\\\\.com+\\\\b"); local
472 Pattern pattern = Pattern.compile("\\\\b((http|https):\/\/)?android\\\\.com+\\\\b"); local
    [all...]
  /frameworks/base/core/java/com/google/android/util/
AbstractMessageParser.java 23 import java.util.regex.Pattern;
811 /** Pattern for a video URL. */
812 private static final Pattern URL_PATTERN = Pattern.compile(
870 /** Pattern for a video URL. */
871 private static final Pattern URL_PATTERN = Pattern.compile(
954 /** Pattern for an album or photo URL. */
956 // it follows a different pattern than albums - would be nice to add later
957 private static final Pattern URL_PATTERN = Pattern.compile
    [all...]
  /tools/tradefederation/core/src/com/android/tradefed/device/
TestDevice.java 48 import java.util.regex.Pattern;
79 private static final Pattern PACKAGE_REGEX = Pattern.compile("package:(.*)=(.*)");
85 /** user pattern in the output of "pm list users" = TEXT{<id>:<name>:<flags>} TEXT * */
444 Pattern crashPattern = Pattern.compile(".*crashing=true.*AppErrorDialog.*");
445 Pattern anrPattern = Pattern.compile(".*notResponding=true.*AppNotRespondingDialog.*");
    [all...]
  /build/kati/
strutil.cc 191 Pattern::Pattern(StringPiece pat)
195 bool Pattern::Match(StringPiece str) const {
201 bool Pattern::MatchImpl(StringPiece str) const {
206 StringPiece Pattern::Stem(StringPiece str) const {
213 void Pattern::AppendSubst(StringPiece str, StringPiece subst,
241 void Pattern::AppendSubstRef(StringPiece str, StringPiece subst,
  /frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
AsmAnalyzer.java 40 import java.util.regex.Pattern;
132 Pattern[] includeFilePatterns = new Pattern[mIncludeFileGlobs.length];
148 for (Pattern includeFilePattern : includeFilePatterns) {
225 * given glob pattern.
227 * The glob pattern is not a regexp. It only accepts the "*" keyword to mean
240 Pattern regexp = getPatternFromGlob(globPattern);
251 Pattern getPatternFromGlob(String globPattern) {
252 // transforms the glob pattern in a regexp:
266 return Pattern.compile(globPattern)
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/providers/
Message.java 53 import java.util.regex.Pattern;
58 * Regex pattern used to look for any inline images in message bodies, including Gmail-hosted
62 private static Pattern INLINE_IMAGE_PATTERN = Pattern.compile("<img\\s+[^>]*src=",
63 Pattern.CASE_INSENSITIVE | Pattern.MULTILINE);
66 private static final Pattern REMOVE_OPTIONAL_BRACKETS = Pattern.compile("^<?([^>]+)>?$");
  /external/guava/guava-tests/test/com/google/common/base/
SplitterTest.java 33 import java.util.regex.Pattern;
349 @GwtIncompatible("java.util.regex.Pattern")
350 private static Pattern literalDotPattern() {
351 return Pattern.compile("\\.");
354 @GwtIncompatible("java.util.regex.Pattern")
362 @GwtIncompatible("java.util.regex.Pattern")
371 @GwtIncompatible("java.util.regex.Pattern")
374 Iterable<String> words = Splitter.on(Pattern.compile("\\b")).split(string);
378 @GwtIncompatible("java.util.regex.Pattern")
385 @GwtIncompatible("java.util.regex.Pattern")
    [all...]
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
WifiDiagnosticsTest.java 49 import java.util.regex.Pattern;
482 assertTrue(Pattern.compile("0 .* TX ").matcher(dumpString).find());
483 assertTrue(Pattern.compile("1 .* RX ").matcher(dumpString).find());
484 assertTrue(Pattern.compile("2 .* TX ").matcher(dumpString).find());
485 assertTrue(Pattern.compile("3 .* RX ").matcher(dumpString).find());
499 assertTrue(Pattern.compile("0 .* TX ").matcher(dumpString).find());
500 assertTrue(Pattern.compile("1 .* RX ").matcher(dumpString).find());
501 assertTrue(Pattern.compile("2 .* TX ").matcher(dumpString).find());
502 assertTrue(Pattern.compile("3 .* RX ").matcher(dumpString).find());
516 assertTrue(Pattern.compile
    [all...]
  /cts/hostsidetests/services/activityandwindowmanager/activitymanager/src/android/server/cts/
ActivityManagerDisplayTests.java 27 import java.util.regex.Pattern;
551 final Pattern pattern = Pattern.compile(".*SecurityException launching activity.*"); local
555 Matcher m = pattern.matcher(line);
964 final Pattern pattern = Pattern.compile(".*SecurityException launching activity.*"); local
    [all...]
  /frameworks/base/core/java/android/text/
Html.java 58 import java.util.regex.Pattern;
680 private static Pattern sTextAlignPattern;
681 private static Pattern sForegroundColorPattern;
682 private static Pattern sBackgroundColorPattern;
683 private static Pattern sTextDecorationPattern;
701 private static Pattern getTextAlignPattern() {
703 sTextAlignPattern = Pattern.compile("(?:\\s+|\\A)text-align\\s*:\\s*(\\S*)\\b");
708 private static Pattern getForegroundColorPattern() {
710 sForegroundColorPattern = Pattern.compile(
716 private static Pattern getBackgroundColorPattern()
    [all...]
  /external/nanohttpd/nanolets/src/main/java/fi/iki/elonen/router/
RouterNanoHTTPD.java 51 import java.util.regex.Pattern;
319 private static final Pattern PARAM_PATTERN = Pattern.compile("(?<=(^|/)):[a-zA-Z0-9_-]+(?=(/|$))");
327 private final Pattern uriPattern;
354 private Pattern createUriPattern() {
366 return Pattern.compile(patternUri);
  /platform_testing/libraries/system-helpers/settings-helper/src/android/system/helpers/
SettingsHelper.java 45 import java.util.regex.Pattern;
203 * Performs click action on a setting when setting name is provided as pattern
208 public void clickSetting(Pattern settingName) throws InterruptedException {
306 type, settingAction, Pattern.compile(settingName), internalName, true);
310 * Toggles setting and verifies the action, when setting name is passed as pattern
319 Pattern settingName, String internalName) throws Exception {
337 type, settingAction, Pattern.compile(settingName), internalName, doLaunch);
351 Pattern settingName, String internalName, boolean doLaunch) throws Exception {
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
MessageTestActivity.java 45 import java.util.regex.Pattern;
57 private static final Pattern MESSAGE_PATTERN = Pattern.compile("Message (\\d+) to .*");
  /cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
BaseShortcutManagerHostTest.java 37 import java.util.regex.Pattern;
229 * {@link Pattern#quote}.
247 * {@link Pattern#quote}.
258 Pattern pattern = Pattern.compile(expectedRegex); local
259 return pattern.matcher(actual);
  /cts/hostsidetests/theme/src/android/theme/cts/
ThemeHostTest.java 47 import java.util.regex.Pattern;
309 final Pattern p = Pattern.compile("Override density: (\\d+)");
  /cts/tests/tests/mediastress/preconditions/src/android/mediastress/cts/preconditions/
MediaPreparer.java 45 import java.util.regex.Pattern;
123 private static final String PATTERN = "(\\d+)x(\\d+)";
124 // group indices for accessing resolution width and height from a PATTERN-based Matcher
137 Pattern pattern = Pattern.compile(PATTERN); local
138 Matcher matcher = pattern.matcher(resolution);
  /external/caliper/caliper/src/main/java/com/google/caliper/util/
ShortDuration.java 35 import java.util.regex.Pattern;
68 Matcher matcher = PATTERN.matcher(s);
84 private static final Pattern PATTERN = Pattern.compile("^([0-9.eE+-]+) ?(\\S+)$");

Completed in 1060 milliseconds

<<21222324252627282930>>