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

1 23 4 5 6 7 8 91011>>

  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
BluetoothDeviceCriteria.java 22 import java.util.regex.Pattern;
28 * For example, does the device MAC address match the expected pattern and
38 private final Pattern mAddressPattern;
45 mAddressPattern = Pattern.compile(macAddressPattern, Pattern.CASE_INSENSITIVE);
  /tools/loganalysis/src/com/android/loganalysis/parser/
CompactMemInfoParser.java 23 import java.util.regex.Pattern;
40 private static final Pattern PROC_PATTERN =
41 Pattern.compile("proc,(\\w+),([a-zA-Z_0-9\\.]+),(\\d+),(\\d+),((\\S+),)?(.*)");
42 private static final Pattern LOST_RAM_PATTERN = Pattern.compile("lostram,(\\d+)");
43 private static final Pattern RAM_PATTERN = Pattern.compile("ram,(\\d+),(\\d+),(\\d+)");
44 private static final Pattern ZRAM_PATTERN = Pattern.compile("zram,(\\d+),(\\d+),(\\d+)");
45 private static final Pattern TUNING_PATTERN = Pattern.compile("tuning,(\\d+),(\\d+),(\\d+).*")
    [all...]
JavaCrashParser.java 23 import java.util.regex.Pattern;
34 private static final Pattern EXCEPTION = Pattern.compile("^([^\\s:]+)(: (.*))?$");
38 private static final Pattern CAUSEDBY = Pattern.compile("^Caused by: .+$");
42 private static final Pattern AT = Pattern.compile("^\tat .+$");
ProcessUsageParser.java 25 import java.util.regex.Pattern;
38 private static final Pattern UID_PATTERN = Pattern.compile("^\\s*(\\w+):$");
43 private static final Pattern SENSOR_PATTERN = Pattern.compile(
51 private static final Pattern ALARM_PATTERN = Pattern.compile("^\\s*(\\d+) wakeup alarms$");
ProcrankParser.java 23 import java.util.regex.Pattern;
33 private static final Pattern SHORT_LINE_PAT = Pattern.compile(
37 private static final Pattern LONG_LINE_PAT = Pattern.compile(
44 private static final Pattern END_PAT = Pattern.compile("^(\\s+-{6}){3,}$");
NativeCrashParser.java 22 import java.util.regex.Pattern;
30 public static final Pattern FINGERPRINT = Pattern.compile("^Build fingerprint: '(.*)'$");
32 private static final Pattern APP = Pattern.compile(
  /external/mockito/src/main/java/org/mockito/internal/matchers/
Find.java 9 import java.util.regex.Pattern;
22 return actual != null && Pattern.compile(regex).matcher(actual).find();
  /development/tools/bugreport/src/com/android/bugreport/stacks/
ThreadSnapshotParser.java 26 import java.util.regex.Pattern;
35 public static final Pattern BEGIN_UNMANAGED_THREAD_RE = Pattern.compile(
37 public static final Pattern BEGIN_MANAGED_THREAD_RE = Pattern.compile(
39 public static final Pattern BEGIN_NOT_ATTACHED_THREAD_RE = Pattern.compile(
42 public static final Pattern ATTR_RE = Pattern.compile(
44 public static final Pattern HELD_MUTEXES_RE = Pattern.compile
    [all...]
  /external/clang/test/SemaCXX/
crash-lambda-12645424.cpp 26 template< class Pattern> struct F {
27 typedef Pattern filtered_pattern;
31 template<class, class Pattern> struct get_case {
32 F<Pattern> type;
35 template<class Pattern> struct rvalue_builder {
36 template<typename Expr> typename get_case<Expr, Pattern>::type operator>>(Expr ); // expected-note {{candidate template ignored}}
  /external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
RegexCache.java 21 import java.util.regex.Pattern;
29 private LRUCache<String, Pattern> cache;
32 cache = new LRUCache<String, Pattern>(size);
35 public Pattern getPatternForRegex(String regex) {
36 Pattern pattern = cache.get(regex); local
37 if (pattern == null) {
38 pattern = Pattern.compile(regex);
39 cache.put(regex, pattern);
    [all...]
  /external/stressapptest/src/
pattern.h 15 // pattern.h : global pattern references and initialization
34 // Pattern and CRC data structure
36 const char *name; // Name of this pattern.
39 unsigned char weight[4]; // Weighted frequency of this pattern.
40 // Each pattern has 32,64,128,256 width versions.
43 // appropriate pattern is chosen. Thus a weight of
49 class Pattern {
51 Pattern();
52 ~Pattern();
62 unsigned int pattern(unsigned int offset) { function in class:Pattern
    [all...]
  /external/slf4j/slf4j-migrator/src/test/java/org/slf4j/migrator/
AternativeApproach.java 28 import java.util.regex.Pattern;
37 * In this test we see that we cans use more simple Pattern to do the
42 MultiGroupConversionRule cr2 = new MultiGroupConversionRule(Pattern.compile("(.*)(Log)"));
46 Pattern pat = cr2.getPattern();
57 * In this test we replace, using the simple Pattern (Log), the full Log
62 Pattern pat = Pattern.compile("(Log)");
85 * In this test we use a simple Pattern to replace the log instanciation
90 Pattern pat = Pattern.compile("LogFactory.getFactory\\(\\).getInstance\\(")
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
ModeTest.java 20 import java.util.regex.Pattern;
26 * Tests Pattern compilation modes and modes triggered in pattern strings
31 Pattern p;
34 p = Pattern.compile("([a-z]+)[0-9]+");
40 p = Pattern.compile("([a-z]+)[0-9]+", Pattern.CASE_INSENSITIVE);
48 p = Pattern.compile("(?i)([a-z]+)[0-9]+");
58 Pattern p;
61 p = Pattern.compile("^foo")
    [all...]
Pattern2Test.java 20 import java.util.regex.Pattern;
26 * Tests simple Pattern compilation and Matcher methods
31 Pattern p = Pattern.compile("foo.*");
43 assertTrue(Pattern.matches("foo.*", "foo123"));
44 assertFalse(Pattern.matches("foo.*", "fox"));
46 assertFalse(Pattern.matches("bar", "foobar"));
48 assertTrue(Pattern.matches("", ""));
52 Pattern p;
56 p = Pattern.compile("foo")
944 Pattern pattern = Pattern local
953 Pattern pattern = Pattern.compile(findString, 0); local
1042 Pattern pattern = Pattern.compile(findString, 0); local
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
ModeTest.java 20 import java.util.regex.Pattern;
25 * Tests Pattern compilation modes and modes triggered in pattern strings
31 Pattern p;
34 p = Pattern.compile("([a-z]+)[0-9]+");
41 p = Pattern.compile("([a-z]+)[0-9]+", Pattern.CASE_INSENSITIVE);
50 p = Pattern.compile("(?i)([a-z]+)[0-9]+");
59 Pattern p;
62 p = Pattern.compile("^foo")
    [all...]
Pattern2Test.java 20 import java.util.regex.Pattern;
26 * Tests simple Pattern compilation and Matcher methods
110 Pattern p = Pattern.compile(pat);
111 Pattern pn = Pattern.compile(npat);
119 "by pattern '"+pat, p.matcher(t).matches());
121 "be matched by pattern '"+npat, pn.matcher(t).matches());
124 "by pattern '"+pat, p.matcher(t).matches());
126 "not be matched by pattern '"+npat, pn.matcher(t).matches())
    [all...]
  /cts/hostsidetests/services/activityandwindowmanager/util/src/android/server/cts/
WindowManagerState.java 36 import java.util.regex.Pattern;
60 private static final Pattern sWindowPattern =
61 Pattern.compile("Window #(\\d+) Window\\{([0-9a-fA-F]+) u(\\d+) (.+)\\}\\:");
62 private static final Pattern sStartingWindowPattern =
63 Pattern.compile("Window #(\\d+) Window\\{([0-9a-fA-F]+) u(\\d+) Starting (.+)\\}\\:");
64 private static final Pattern sExitingWindowPattern =
65 Pattern.compile("Window #(\\d+) Window\\{([0-9a-fA-F]+) u(\\d+) (.+) EXITING\\}\\:");
66 private static final Pattern sDebuggerWindowPattern =
67 Pattern.compile("Window #(\\d+) Window\\{([0-9a-fA-F]+) u(\\d+) Waiting For Debugger: (.+)\\}\\:");
69 private static final Pattern sFocusedWindowPattern = Pattern.compile
    [all...]
  /frameworks/base/media/mca/filterfw/java/android/filterfw/io/
TextGraphReader.java 25 import java.util.regex.Pattern;
170 final Pattern commandPattern = Pattern.compile("@[a-zA-Z]+");
171 final Pattern curlyClosePattern = Pattern.compile("\\}");
172 final Pattern curlyOpenPattern = Pattern.compile("\\{");
173 final Pattern ignorePattern = Pattern.compile("(\\s+|//[^\\n]*\\n)+");
174 final Pattern packageNamePattern = Pattern.compile("[a-zA-Z\\.]+")
    [all...]
  /external/owasp/sanitizer/src/tests/org/owasp/html/
CssFuzzerTest.java 34 import java.util.regex.Pattern;
146 Pattern filter = TOKEN_TYPE_FILTERS.get(type);
174 private static final EnumMap<CssTokens.TokenType, Pattern> TOKEN_TYPE_FILTERS
182 CssTokens.TokenType.AT, Pattern.compile("@" + IDENT));
184 CssTokens.TokenType.COLON, Pattern.compile(":"));
186 CssTokens.TokenType.COLUMN, Pattern.compile("\\|\\|"));
188 CssTokens.TokenType.COMMA, Pattern.compile(","));
191 Pattern.compile("[^\\w\u0000- \u0080-\uffff\\-]"));
193 CssTokens.TokenType.DIMENSION, Pattern.compile(NUMBER + "[a-z]+"));
195 CssTokens.TokenType.DOT_IDENT, Pattern.compile("\\." + IDENT))
    [all...]
  /libcore/tzdata/shared2/src/main/libcore/tzdata/shared2/
DistroVersion.java 22 import java.util.regex.Pattern;
50 private static final Pattern FORMAT_VERSION_PATTERN = Pattern.compile("(\\d{3})\\.(\\d{3})");
52 /** A pattern that matches the IANA rules value of a rules update. e.g. "2016g" */
53 private static final Pattern RULES_VERSION_PATTERN = Pattern.compile("(\\d{4}\\w)");
57 /** A pattern that matches the revision of a rules update. e.g. "001" */
58 private static final Pattern REVISION_PATTERN = Pattern.compile("(\\d{3})");
70 private static final Pattern DISTRO_VERSION_PATTERN = Pattern.compile
    [all...]
  /development/tools/bugreport/src/com/android/bugreport/bugreport/
MetadataParser.java 25 import java.util.regex.Pattern;
33 private static final Pattern DUMPSTATE_LINE_RE = Pattern.compile(
35 private static final Pattern HEADER_LINE_RE = Pattern.compile(
  /development/tools/bugreport/src/com/android/bugreport/cpuinfo/
CpuUsageParser.java 26 import java.util.regex.Pattern;
33 public static final Pattern CPU_USAGE_RE
34 = Pattern.compile("CPU usage from (-?\\d+)ms to (-?\\d+)ms ago \\((.*) to (.*)\\):");
35 private static final Pattern TOTAL_RE
36 = Pattern.compile(".*TOTAL:.*");
37 //= Pattern.compile("(-?\\d*(?:.\\d+)?)% TOTAL: (-?\\d*(?:.\\d+)?)% user \\+ (-?\\d*(?:.\\d+)?)% kernel \\+ (-?\\d*(?:.\\d+)?)% iowait \\+ (-?\\d*(?:.\\d+)?)% softirq");
  /tools/loganalysis/src/com/android/loganalysis/util/
LogPatternUtil.java 21 import java.util.regex.Pattern;
33 * A class used to store pattern, extras, and category.
36 public Pattern mPattern;
43 * @param pattern the {@link Pattern} to match against.
48 public PatternInfo(Pattern pattern, Object extras, String category) {
49 mPattern = pattern;
58 * Add a pattern to this list of patterns to match against.
60 * @param pattern the {@link Pattern} object to match against
    [all...]
  /cts/tests/tests/os/src/android/os/cts/
BuildTest.java 32 import java.util.regex.Pattern;
175 private static final Pattern BOARD_PATTERN =
176 Pattern.compile("^([0-9A-Za-z._-]+)$");
177 private static final Pattern BRAND_PATTERN =
178 Pattern.compile("^([0-9A-Za-z._-]+)$");
179 private static final Pattern DEVICE_PATTERN =
180 Pattern.compile("^([0-9A-Za-z._-]+)$");
181 private static final Pattern ID_PATTERN =
182 Pattern.compile("^([0-9A-Za-z._-]+)$");
183 private static final Pattern HARDWARE_PATTERN
    [all...]
  /art/test/094-pattern/src/
Main.java 18 import java.util.regex.Pattern;
72 public static final Pattern WEB_URL = Pattern.compile(WEB_URL_STR);

Completed in 708 milliseconds

1 23 4 5 6 7 8 91011>>