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

12 3 4 5 6 7 8 91011>>

  /external/slf4j/slf4j-migrator/src/main/java/org/slf4j/migrator/line/
ConversionRule.java 28 import java.util.regex.Pattern;
32 public Pattern getPattern();
35 * Given replacement rules, replace each capturing group in matcher's pattern
JULRuleSet.java 29 import java.util.regex.Pattern;
43 SingleConversionRule crImport0 = new SingleConversionRule(Pattern.compile("import\\s*+java.util.logging.Logger;"), "import org.slf4j.Logger;",
46 SingleConversionRule crImport1 = new SingleConversionRule(Pattern.compile("import\\s*+org.apache.log4j.LogManager;"), "import org.slf4j.LoggerFactory;");
48 SingleConversionRule crImport2 = new SingleConversionRule(Pattern.compile("import\\s*+java.util.logging.*;"), "import org.slf4j.Logger;",
51 SingleConversionRule crFactory0 = new SingleConversionRule(Pattern.compile("Logger.getLogger\\("), "LoggerFactory.getLogger(");
53 SingleConversionRule crFactory1 = new SingleConversionRule(Pattern.compile("LogManager.getLogger\\("), "LoggerFactory.getLogger(");
55 SingleConversionRule crWarning = new SingleConversionRule(Pattern.compile("\\.warning\\("), ".warn(");
56 SingleConversionRule crSevere = new SingleConversionRule(Pattern.compile("\\.severe\\("), ".error(");
MultiGroupConversionRule.java 28 import java.util.regex.Pattern;
31 * This class represents a conversion rule It uses a Pattern and defines for
32 * each capturing group of this Pattern a replacement text
43 private Pattern pattern; field in class:MultiGroupConversionRule
46 public MultiGroupConversionRule(Pattern pattern) {
47 this.pattern = pattern;
55 public Pattern getPattern()
    [all...]
  /external/snakeyaml/src/test/java/org/yaml/snakeyaml/resolver/
ResolverTupleTest.java 18 import java.util.regex.Pattern;
27 ResolverTuple tuple = new ResolverTuple(new Tag("dice"), Pattern.compile("\\d+"));
  /tools/tradefederation/core/src/com/android/tradefed/util/
AaptParser.java 24 import java.util.regex.Pattern;
32 private static final Pattern PKG_PATTERN = Pattern.compile(
34 Pattern.MULTILINE);
35 private static final Pattern LABEL_PATTERN = Pattern.compile(
37 Pattern.MULTILINE);
38 private static final Pattern SDK_PATTERN = Pattern.compile(
39 "^sdkVersion:'(\\d+)'", Pattern.MULTILINE)
    [all...]
KeyguardControllerState.java 22 import java.util.regex.Pattern;
26 private static final Pattern NAME_PATTERN = Pattern.compile("KeyguardController:");
27 private static final Pattern SHOWING_PATTERN = Pattern.compile("mKeyguardShowing=(\\S+)");
28 private static final Pattern OCCLUDED_PATTERN = Pattern.compile("mOccluded=(\\S+)");
  /external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/text/
MatchesPattern.java 7 import java.util.regex.Pattern;
10 private final Pattern pattern; field in class:MatchesPattern
12 public MatchesPattern(Pattern pattern) {
13 this.pattern = pattern;
18 return pattern.matcher(item).matches();
23 description.appendText("a string matching the pattern '" + pattern + "'")
    [all...]
  /libcore/benchmarks/src/benchmarks/regression/
StringSplitBenchmark.java 19 import java.util.regex.Pattern;
41 Pattern p = Pattern.compile(",");
48 Pattern p = Pattern.compile("\\.");
  /tools/loganalysis/src/com/android/loganalysis/parser/
BatteryUsageParser.java 22 import java.util.regex.Pattern;
32 private static final Pattern Capacity = Pattern.compile(
35 private static final Pattern Usage = Pattern.compile("^\\s*(.*): (\\d+(\\.\\d*)?)");
GfxInfoParser.java 22 import java.util.regex.Pattern;
30 private static final Pattern PID_PREFIX = Pattern.compile(
34 private static final Pattern TOTAL_FRAMES_PREFIX = Pattern.compile(
38 private static final Pattern JANKY_FRAMES_PREFIX = Pattern.compile(
TracesParser.java 22 import java.util.regex.Pattern;
36 private static final Pattern PID = Pattern.compile(
42 private static final Pattern APP = Pattern.compile("^Cmd ?line: (\\S+).*$");
47 private static final Pattern STACK = Pattern.compile("^\"main\" .*$");
DumpsysProcStatsParser.java 22 import java.util.regex.Pattern;
32 private static final Pattern UID = Pattern.compile("^\\s*\\* (.*):?.*/ (.*)/.*");
SmartMonkeyLogParser.java 27 import java.util.regex.Pattern;
39 private static final Pattern START_TIME = Pattern.compile(
42 private static final Pattern START_UPTIME = Pattern.compile(
45 private static final Pattern STOP_UPTIME = Pattern.compile(
48 private static final Pattern THROTTLE = Pattern.compile(
51 private static final Pattern TARGET_INVOCATIONS = Pattern.compile
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/regex/
OldAndroidRegexTest.java 20 import java.util.regex.Pattern;
27 Pattern p = Pattern.compile("bcd");
31 /* Pattern in the middle */
32 p = Pattern.compile("bcd");
36 /* Pattern at the head */
40 /* Pattern at the tail */
45 p = Pattern.compile(".*");
51 p = Pattern.compile(".");
64 /* Tests class Pattern */
    [all...]
  /development/samples/Wiktionary/src/com/example/android/wiktionary/
ExtendedWikiHelper.java 31 import java.util.regex.Pattern;
49 * Pattern of section titles we're interested in showing. This trims out
52 private static final Pattern sValidSections =
53 Pattern.compile("(verb|noun|adjective|pronoun|interjection)", Pattern.CASE_INSENSITIVE);
56 * Pattern that can be used to split a returned wiki page into its various
59 private static final Pattern sSectionSplit =
60 Pattern.compile("^=+(.+?)=+.+?(?=^=)", Pattern.MULTILINE | Pattern.DOTALL)
    [all...]
  /cts/hostsidetests/monkey/src/com/android/cts/monkey/
PackageTest.java 19 import java.util.regex.Pattern;
24 private static final Pattern ALLOW_MONKEY =
25 Pattern.compile("^.*Allowing.*cmp=com\\.android\\.cts\\.monkey/\\.MonkeyActivity.*$",
26 Pattern.MULTILINE);
28 private static final Pattern ALLOW_CHIMP =
29 Pattern.compile("^.*Allowing.*cmp=com\\.android\\.cts\\.monkey2/\\.ChimpActivity.*$",
30 Pattern.MULTILINE);
  /external/caliper/caliper/src/main/java/com/google/caliper/bridge/
LogMessageParser.java 26 import java.util.regex.Pattern;
36 private static final Pattern GC_PATTERN =
37 Pattern.compile(".*\\[(?:(Full) )?GC.*(\\d+\\.\\d+) secs\\]");
38 private static final Pattern JIT_PATTERN =
39 Pattern.compile(".*::.*( \\(((\\d+ bytes)|(static))\\))?");
40 private static final Pattern VM_OPTION_PATTERN =
41 Pattern.compile("\\s*(\\w+)\\s+(\\w+)\\s+:?=\\s+([^\\s]*)\\s+\\{([^}]*)\\}\\s*");
  /external/vogar/src/vogar/
DotJavaFile.java 22 import java.util.regex.Pattern;
29 private static final Pattern PACKAGE_PATTERN = Pattern.compile(
31 private static final Pattern TYPE_DECLARATION_PATTERN = Pattern.compile(
33 private static final Pattern AT_TEST_PATTERN = Pattern.compile("\\W@test\\W");
Expectation.java 22 import java.util.regex.Pattern;
30 * pattern .*should get token \[, but get -1.*
35 * pattern .*cannot find symbol.*
40 /** The pattern to use when no expected output is specified */
41 public static final Pattern MATCH_ALL_PATTERN
42 = Pattern.compile(".*", Pattern.MULTILINE | Pattern.DOTALL);
54 /** The pattern the expected output will match. */
55 private final Pattern pattern field in class:Expectation
    [all...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
BluetoothNameUtils.java 22 import java.util.regex.Pattern;
35 private static final Pattern NAME_PATTERN = Pattern.compile(
36 "\"([0-9]{0,3}) ?(.*)\" \\((.*)\\)", Pattern.CASE_INSENSITIVE);
37 private static final Pattern COLOR_PATTERN = Pattern.compile(
38 "#([0-9a-f]{6})-#([0-9a-f]{6})(p?)(t?)(.*)", Pattern.CASE_INSENSITIVE);
95 * @return true if the pattern matches, false if it doesn't.
  /packages/apps/UnifiedEmail/src/org/apache/commons/io/filefilter/
RegexFileFilter.java 21 import java.util.regex.Pattern;
28 * See java.util.regex.Pattern for regex matching rules
48 /** The regular expression pattern that will be used to match filenames */
49 private final Pattern pattern; field in class:RegexFileFilter
54 * @param pattern regular string expression to match
55 * @throws IllegalArgumentException if the pattern is null
57 public RegexFileFilter(String pattern) {
58 if (pattern == null) {
59 throw new IllegalArgumentException("Pattern is missing")
    [all...]
  /external/snakeyaml/src/test/java/examples/resolver/
CustomIntResolver.java 18 import java.util.regex.Pattern;
24 public static final Pattern PURE_INT = Pattern.compile("^[0-9]+$");
32 // define simple int pattern
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/build/
BaseBuilderTest.java 20 import java.util.regex.Pattern;
27 Pattern p = Pattern.compile( "^(.+):(\\d+):\\s(.+)$"); //$NON-NLS-1$
  /external/guava/guava/src/com/google/common/io/
PatternFilenameFilter.java 24 import java.util.regex.Pattern;
39 private final Pattern pattern; field in class:PatternFilenameFilter
42 * Constructs a pattern file name filter object.
43 * @param patternStr the pattern string on which to filter file names
45 * @throws PatternSyntaxException if pattern compilation fails (runtime)
48 this(Pattern.compile(patternStr));
52 * Constructs a pattern file name filter object.
53 * @param pattern the pattern on which to filter file name
    [all...]
  /external/jacoco/org.jacoco.core/src/org/jacoco/core/runtime/
WildcardMatcher.java 14 import java.util.regex.Pattern;
23 private final Pattern pattern; field in class:WildcardMatcher
42 pattern = Pattern.compile(regex.toString());
56 regex.append(Pattern.quote(String.valueOf(c)));
71 return pattern.matcher(s).matches();

Completed in 752 milliseconds

12 3 4 5 6 7 8 91011>>