/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
GTestResultParser.java | 31 import java.util.regex.Pattern; 446 Pattern timePattern = Pattern.compile(".*(\\((\\d+) ms\\))"); // eg: (XX ms) 475 Pattern numTestsPattern = Pattern.compile("Running (\\d+) test[s]? from .*"); 504 Pattern timePattern = Pattern.compile(".*\\((\\d+) ms total\\)"); // eg: (XX ms total)
|
/frameworks/base/core/java/com/android/server/ |
BootReceiver.java | 53 import java.util.regex.Pattern; 207 // Encrypted, first boot to get PIN/pattern/password so data is tmpfs 342 Pattern pattern = Pattern.compile(FS_STAT_PATTERN); local 350 Matcher matcher = pattern.matcher(line); 399 Pattern pattern = Pattern.compile(LAST_SHUTDOWN_TIME_PATTERN, Pattern.MULTILINE) local [all...] |
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
FastbootDeviceFlasher.java | 40 import java.util.regex.Pattern; 211 Pattern regex = Pattern.compile(String.format("^%s:\\s*\\S+$", partitionType), 212 Pattern.MULTILINE); 622 Pattern versionOutputPattern = Pattern.compile(patternString); 656 Pattern outputPattern = Pattern.compile(String.format("^%s: _?([ab])", SLOT_VAR)); 660 Pattern outputPattern = 661 Pattern.compile(String.format("^\\[%s\\]: \\[_?([ab])\\]", SLOT_PROP)) [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
UnicodeRegex.java | 27 import java.util.regex.Pattern; 71 * regex pattern string and interpreting the character classes (\p{...}, 80 * @regex A modified Java regex pattern, as in the input to 81 * Pattern.compile(), except that all "character classes" are 84 * @return A processed Java regex pattern, suitable for input to 85 * Pattern.compile(). 148 * @return processed regex pattern, as in process() 157 * @param regex Raw regex pattern, as in fix(...). 158 * @return Pattern 160 public static Pattern compile(String regex) [all...] |
TimeZoneGenericNames.java | 81 * Format pattern enum used for composing location and partial location names 83 public enum Pattern { 84 // The format pattern such as "{0} Time", where {0} is the country or city. 88 // The format pattern such as "{1} Time ({0})", where {1} is the country and {0} is a city. 91 // The format pattern such as "{1} ({0})", where {1} is the metazone, and {0} is the country or city. 97 Pattern(String key, String defaultVal) { 246 name = formatPattern(Pattern.REGION_FORMAT, country); 254 name = formatPattern(Pattern.REGION_FORMAT, city); 277 * Sets the pattern string for the pattern type [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/ |
LocaleValidityChecker.java | 16 import java.util.regex.Pattern; 66 static Pattern SEPARATOR = Pattern.compile("[-_]"); 69 private static final Pattern VALID_X = Pattern.compile("[a-zA-Z0-9]{2,8}(-[a-zA-Z0-9]{2,8})*");
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
UnicodeRegex.java | 26 import java.util.regex.Pattern; 69 * regex pattern string and interpreting the character classes (\p{...}, 78 * @regex A modified Java regex pattern, as in the input to 79 * Pattern.compile(), except that all "character classes" are 82 * @return A processed Java regex pattern, suitable for input to 83 * Pattern.compile(). 146 * @return processed regex pattern, as in process() 155 * @param regex Raw regex pattern, as in fix(...). 156 * @return Pattern 158 public static Pattern compile(String regex) [all...] |
TimeZoneGenericNames.java | 79 * Format pattern enum used for composing location and partial location names 81 public enum Pattern { 82 // The format pattern such as "{0} Time", where {0} is the country or city. 86 // The format pattern such as "{1} Time ({0})", where {1} is the country and {0} is a city. 89 // The format pattern such as "{1} ({0})", where {1} is the metazone, and {0} is the country or city. 95 Pattern(String key, String defaultVal) { 244 name = formatPattern(Pattern.REGION_FORMAT, country); 252 name = formatPattern(Pattern.REGION_FORMAT, city); 275 * Sets the pattern string for the pattern type [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/ |
LocaleValidityChecker.java | 15 import java.util.regex.Pattern; 64 static Pattern SEPARATOR = Pattern.compile("[-_]"); 67 private static final Pattern VALID_X = Pattern.compile("[a-zA-Z0-9]{2,8}(-[a-zA-Z0-9]{2,8})*");
|
/external/oauth/core/src/main/java/net/oauth/ |
OAuthMessage.java | 32 import java.util.regex.Pattern; 387 private static final Pattern AUTHORIZATION = Pattern.compile("\\s*(\\w*)\\s+(.*)"); 388 private static final Pattern NVP = Pattern.compile("(\\S*)\\s*\\=\\s*\"([^\"]*)\"");
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/ |
Rfc822Output.java | 49 import java.util.regex.Pattern; 62 /** A less-than-perfect pattern to pull out <body> content */ 63 private static final Pattern BODY_PATTERN = Pattern.compile( 65 Pattern.CASE_INSENSITIVE | Pattern.DOTALL);
|
/packages/apps/Protips/src/com/android/protips/ |
ProtipWidget.java | 34 import java.util.regex.Pattern; 47 private static final Pattern sNewlineRegex = Pattern.compile(" *\\n *"); 48 private static final Pattern sDrawableRegex = Pattern.compile(" *@(drawable/[a-z0-9_]+) *");
|
/tools/loganalysis/src/com/android/loganalysis/parser/ |
BugreportParser.java | 43 import java.util.regex.Pattern; 69 private static final Pattern DATE = Pattern.compile( 75 private static final Pattern COMMAND_LINE = Pattern.compile(
|
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/ |
PhoneNumberUtil.java | 37 import java.util.regex.Pattern; 57 static final int REGEX_FLAGS = Pattern.UNICODE_CASE | Pattern.CASE_INSENSITIVE; 221 // Pattern that makes it easy to distinguish whether a region has a unique international dialing 227 private static final Pattern UNIQUE_INTERNATIONAL_PREFIX = 228 Pattern.compile("[\\d]+(?:[~\u2053\u223C\uFF5E][\\d]+)?"); 246 static final Pattern PLUS_CHARS_PATTERN = Pattern.compile("[" + PLUS_CHARS + "]+"); 247 private static final Pattern SEPARATOR_PATTERN = Pattern.compile("[" + VALID_PUNCTUATION + "]+") [all...] |
/external/swiftshader/third_party/LLVM/utils/TableGen/ |
DAGISelMatcher.h | 1 //===- DAGISelMatcher.h - Representation of DAG pattern matcher -----------===// 31 Matcher *ConvertPatternToMatcher(const PatternToMatch &Pattern,unsigned Variant, 397 /// to see if the entire pattern is capable of matching. This predicate does 659 const ComplexPattern &Pattern; 672 CheckComplexPatMatcher(const ComplexPattern &pattern, unsigned matchnumber, 674 : Matcher(CheckComplexPat), Pattern(pattern), MatchNumber(matchnumber), 677 const ComplexPattern &getPattern() const { return Pattern; } 687 // Not safe to move a pattern predicate past a complex pattern [all...] |
/external/clang/lib/Sema/ |
SemaTemplateInstantiateDecl.cpp | 569 TypeAliasDecl *Pattern = D->getTemplatedDecl(); 572 if (getPreviousDeclForInstantiation<TypedefNameDecl>(Pattern)) { 573 DeclContext::lookup_result Found = Owner->lookup(Pattern->getDeclName()); 580 InstantiateTypedefNameDecl(Pattern, /*IsTypeAlias=*/true)); 819 // parameters into the pattern type and checking the result. [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
ScannerTest.java | 61 import java.util.regex.Pattern; 531 Pattern pattern = s.delimiter(); local 532 assertEquals("\\p{javaWhitespace}+", pattern.toString()); 536 * @tests java.util.Scanner#useDelimiter(Pattern) 540 s.useDelimiter(Pattern.compile("\\w+")); 544 s.useDelimiter((Pattern) null); 729 s.next((Pattern)null); 843 s = new Scanner("test\ntest").useDelimiter(Pattern.compile("^", 844 Pattern.MULTILINE)) 901 Pattern pattern; local 2509 Pattern pattern; local 4835 Pattern pattern = Pattern.compile("\\\\d+"); local [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
SmsUsageMonitor.java | 55 import java.util.regex.Pattern; 120 /** Country code for the cached short code pattern matcher. */ 123 /** Cached short code pattern matcher for {@link #mCurrentCountry}. */ 135 /** Last modified time for pattern file */ 153 /** XML attribute for the short code regex pattern. */ 154 private static final String ATTR_PATTERN = "pattern"; 156 /** XML attribute for the premium short code regex pattern. */ 159 /** XML attribute for the free short code regex pattern. */ 162 /** XML attribute for the standard rate short code regex pattern. */ 184 * SMS short code regex pattern matcher for a specific country 330 String pattern = parser.getAttributeValue(null, ATTR_PATTERN); local [all...] |
/external/llvm/utils/TableGen/ |
DAGISelMatcher.h | 1 //===- DAGISelMatcher.h - Representation of DAG pattern matcher -*- C++ -*-===// 31 Matcher *ConvertPatternToMatcher(const PatternToMatch &Pattern,unsigned Variant, 392 /// to see if the entire pattern is capable of matching. This predicate does 652 const ComplexPattern &Pattern; 665 CheckComplexPatMatcher(const ComplexPattern &pattern, unsigned matchnumber, 667 : Matcher(CheckComplexPat), Pattern(pattern), MatchNumber(matchnumber), 670 const ComplexPattern &getPattern() const { return Pattern; } 683 return &cast<CheckComplexPatMatcher>(M)->Pattern == &Pattern & [all...] |
/external/doclava/src/com/google/doclava/ |
LinkReference.java | 19 import java.util.regex.Pattern; 62 * regex pattern to use when matching explicit 'a href' reference text 64 private static final Pattern HREF_PATTERN = 65 Pattern.compile("^<a href=\"([^\"]*)\">([^<]*)</a>[ \n\r\t]*$", Pattern.CASE_INSENSITIVE); 68 * regex pattern to use when matching double-quoted reference text 70 private static final Pattern QUOTE_PATTERN = Pattern.compile("^\"([^\"]*)\"[ \n\r\t]*$");
|
/external/nanohttpd/nanolets/src/test/java/fi/iki/elonen/router/ |
TestNanolets.java | 42 import java.util.regex.Pattern; 88 Pattern.compile("([A-Za-z0-9\\-\\._~:/?#\\[\\]@!\\$&'\\(\\)\\*\\+,;=]+)"); 89 Pattern URI_PATTERN = Pattern.compile("([A-Za-z0-9\\-\\._~:/?#\\[\\]@!\\$&'\\(\\)\\*\\+,;=]+)"); 94 Pattern URI_PATTERN = Pattern.compile("photos/([A-Za-z0-9\\-\\._~:/?#\\[\\]@!\\$&'\\(\\)\\*\\+,;=]+)/([A-Za-z0-9\\-\\._~:/?#\\[\\]@!\\$&'\\(\\)\\*\\+,;=]+)");
|
/frameworks/minikin/libs/minikin/ |
Hyphenator.cpp | 24 // HACK: for reading pattern file 69 struct Pattern { 106 const Pattern* patternTable() const { 107 return reinterpret_cast<const Pattern*>(bytes() + pattern_offset); 392 const Pattern* pattern = header->patternTable(); local 410 // into the buf pool. This is the pattern for the substring (i..j) we just matched, 413 uint32_t pat_entry = pattern->data[pat_ix]; 414 int pat_len = Pattern::len(pat_entry); 415 int pat_shift = Pattern::shift(pat_entry) [all...] |
/tools/tradefederation/core/prod-tests/src/com/android/media/tests/ |
VideoMultimeterTest.java | 45 import java.util.regex.Pattern; 294 // Create pattern that matches string like "OK 14132" capturing the 296 Pattern p = Pattern.compile("OK\\s+(\\d+)$"); 358 Pattern p = Pattern.compile(VIDEO_FRAME_DATA_PATTERN); 428 p = Pattern.compile(LIPSYNC_DATA_PATTERN);
|
/frameworks/base/core/tests/coretests/src/android/util/ |
PatternsTest.java | 21 import java.util.regex.Pattern; 62 Pattern pattern = Pattern.compile(Patterns.IANA_TOP_LEVEL_DOMAINS); local 63 assertTrue("Should match 'com'", pattern.matcher("com").matches()); 68 Pattern pattern = Pattern.compile(Patterns.IANA_TOP_LEVEL_DOMAINS); local 69 assertTrue("Should match 'me'", pattern.matcher("me").matches()); 74 Pattern pattern = Pattern.compile(Patterns.IANA_TOP_LEVEL_DOMAINS) local 80 Pattern pattern = Pattern.compile(Patterns.IANA_TOP_LEVEL_DOMAINS); local 86 Pattern pattern = Pattern.compile(Patterns.IANA_TOP_LEVEL_DOMAINS); local 92 Pattern pattern = Pattern.compile(Patterns.IANA_TOP_LEVEL_DOMAINS); local [all...] |
/frameworks/support/compat/tests/java/android/support/v4/util/ |
PatternsCompatTest.java | 28 import java.util.regex.Pattern; 38 Pattern pattern = Pattern.compile(PatternsCompat.IANA_TOP_LEVEL_DOMAINS); local 39 assertTrue("Should match 'com'", pattern.matcher("com").matches()); 44 Pattern pattern = Pattern.compile(PatternsCompat.IANA_TOP_LEVEL_DOMAINS); local 45 assertTrue("Should match 'me'", pattern.matcher("me").matches()); 50 Pattern pattern = Pattern.compile(PatternsCompat.IANA_TOP_LEVEL_DOMAINS) local 56 Pattern pattern = Pattern.compile(PatternsCompat.IANA_TOP_LEVEL_DOMAINS); local 62 Pattern pattern = Pattern.compile(PatternsCompat.IANA_TOP_LEVEL_DOMAINS); local 68 Pattern pattern = Pattern.compile(PatternsCompat.IANA_TOP_LEVEL_DOMAINS); local [all...] |