| /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
| NumberFormatDataDrivenTest.java | 146 tuple.pattern == null ? "0" : tuple.pattern, 327 tuple.pattern == null ? "0" : tuple.pattern, 566 String pattern = (tuple.pattern == null) ? "0" : tuple.pattern; 570 pattern, 607 String pattern = (tuple.pattern == null) ? "0" : tuple.pattern [all...] |
| DateTimeGeneratorTest.java | 89 String pattern = gen.getBestPattern(skeleton, options); local 90 assertEquals(test[0] + "/" + skeleton, test[2], pattern); 98 // skel (base) pattern 105 // skel pattern 144 String pattern = gen.getBestPattern(testItem[0], options); local 145 if (!pattern.equals(testItem[1])) { 146 errln("getBestPattern for skeleton " + testItem[0] + ", expected " + testItem[1] + ", got " + pattern); 171 // get a pattern and modify it 174 String pattern = format.toPattern(); local 178 String newPattern = gen.replaceFieldTypes(pattern, "vvvv") 334 String pattern = dtfg.getBestPattern(testSkeleton); local 343 String pattern = dtfg.getBestPattern(testSkeleton); local 593 final String pattern = dtpgen.getBestPattern("MMMd"); local 643 String pattern = oldFormat.toPattern(); local 831 String pattern = ((SimpleDateFormat) DateFormat.getDateInstance(style, locale)).toPattern(); local 1407 String pattern = dtpgen.getBestPattern(testOptionsData[i].skeleton, testOptionsData[i].options); local 1507 String pattern = dtpgen.getBestPattern(skeleton); local [all...] |
| SelectFormatAPITest.java | 52 //Check equality for pattern constructed SelectFormats 56 + "pattern constructed SelectFormats ." 77 String pattern = "masculine{masculineVerbValue} other{otherVerbValue}"; local 81 selFmt.applyPattern(pattern); 83 , pattern, selFmt.toPattern() ); 85 //Check for invalid pattern 87 String brokenPattern = "broken }{ pattern"; 102 //Check toString for pattern constructed SelectFormat 104 String expected = "pattern='feminine {feminineVerbValue1} other{otherVerbValue1}'"; 114 //Check hashCode for pattern constructed SelectForma [all...] |
| /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
| NumberFormatDataDrivenTest.java | 143 tuple.pattern == null ? "0" : tuple.pattern, 324 tuple.pattern == null ? "0" : tuple.pattern, 563 String pattern = (tuple.pattern == null) ? "0" : tuple.pattern; 567 pattern, 604 String pattern = (tuple.pattern == null) ? "0" : tuple.pattern [all...] |
| DateTimeGeneratorTest.java | 86 String pattern = gen.getBestPattern(skeleton, options); local 87 assertEquals(test[0] + "/" + skeleton, test[2], pattern); 95 // skel (base) pattern 102 // skel pattern 141 String pattern = gen.getBestPattern(testItem[0], options); local 142 if (!pattern.equals(testItem[1])) { 143 errln("getBestPattern for skeleton " + testItem[0] + ", expected " + testItem[1] + ", got " + pattern); 168 // get a pattern and modify it 171 String pattern = format.toPattern(); local 175 String newPattern = gen.replaceFieldTypes(pattern, "vvvv") 331 String pattern = dtfg.getBestPattern(testSkeleton); local 340 String pattern = dtfg.getBestPattern(testSkeleton); local 590 final String pattern = dtpgen.getBestPattern("MMMd"); local 640 String pattern = oldFormat.toPattern(); local 828 String pattern = ((SimpleDateFormat) DateFormat.getDateInstance(style, locale)).toPattern(); local 1404 String pattern = dtpgen.getBestPattern(testOptionsData[i].skeleton, testOptionsData[i].options); local 1504 String pattern = dtpgen.getBestPattern(skeleton); local [all...] |
| /external/guice/extensions/servlet/src/com/google/inject/servlet/ |
| ServletDefinition.java | 49 * An internal representation of a servlet definition mapped to a particular URI pattern. Also 55 private final String pattern; field in class:ServletDefinition 65 public ServletDefinition(String pattern, Key<? extends HttpServlet> servletKey, 67 this.pattern = pattern; 84 pattern, 90 pattern, 261 // Memoizer pattern. 298 return pattern;
|
| FiltersModuleBuilder.java | 88 for (String pattern : uriPatterns) { 90 new FilterDefinition(pattern, filterKey, UriPatternType.get(uriPatternType, pattern),
|
| /external/ltp/testcases/kernel/mem/mmapstress/ |
| mmapstress09.c | 109 unsigned pattern = 0; variable 181 pattern = seed & 0xff; 184 (void)printf("%s mapsize %d bytes, pattern %d\n", 185 progname, mapsize, pattern); 214 *(buf + i) = (data + pattern) & 0xff; 402 != ((procno + pattern) & 0xff)) { 410 (procno + pattern) & 0xff); 417 *(paddr + i) = (procno + pattern) & 0xff;
|
| /frameworks/base/core/java/android/service/autofill/ |
| ImageTransformation.java | 36 import java.util.regex.Pattern; 46 * new ImageTransformation.Builder(ccNumberId, Pattern.compile("^4815.*$"), 48 * .addOption(Pattern.compile("^1623.*$"), R.drawable.ic_credit_card_logo2, "Brand 2") 49 * .addOption(Pattern.compile("^42.*$"), R.drawable.ic_credit_card_logo3, "Brand 3") 88 if (option.pattern.matcher(value).matches()) { 99 Log.w(TAG, "Error matching regex #" + i + "(" + option.pattern + ") on id " 126 * {@link #ImageTransformation.Builder(AutofillId, Pattern, int, CharSequence)} instead. 129 public Builder(@NonNull AutofillId id, @NonNull Pattern regex, @DrawableRes int resId) { 144 public Builder(@NonNull AutofillId id, @NonNull Pattern regex, @DrawableRes int resId, 159 * @deprecated use {@link #addOption(Pattern, int, CharSequence)} instead 281 public final Pattern pattern; field in class:ImageTransformation.Option [all...] |
| /libcore/ojluni/src/main/java/java/text/ |
| MergeCollation.java | 47 * <pattern> := <entry>* 66 * Creates from a pattern 67 * @exception ParseException If the input pattern is incorrect. 69 public MergeCollation(String pattern) throws ParseException 73 setPattern(pattern); 77 * recovers current pattern 84 * recovers current pattern. 133 * emits the pattern for collation builder. 142 * emits the pattern for collation builder. 161 * sets the pattern [all...] |
| /prebuilts/go/darwin-x86/src/text/template/ |
| helper.go | 95 // files identified by the pattern, which must match at least one file. The 97 // first file matched by the pattern. ParseGlob is equivalent to calling 98 // ParseFiles with the list of files matched by the pattern. 102 func ParseGlob(pattern string) (*Template, error) { 103 return parseGlob(nil, pattern) 107 // pattern and associates the resulting templates with t. The pattern is 110 // pattern. 114 func (t *Template) ParseGlob(pattern string) (*Template, error) { 116 return parseGlob(t, pattern) [all...] |
| /prebuilts/go/linux-x86/src/text/template/ |
| helper.go | 95 // files identified by the pattern, which must match at least one file. The 97 // first file matched by the pattern. ParseGlob is equivalent to calling 98 // ParseFiles with the list of files matched by the pattern. 102 func ParseGlob(pattern string) (*Template, error) { 103 return parseGlob(nil, pattern) 107 // pattern and associates the resulting templates with t. The pattern is 110 // pattern. 114 func (t *Template) ParseGlob(pattern string) (*Template, error) { 116 return parseGlob(t, pattern) [all...] |
| /prebuilts/tools/darwin-x86/bazel/ |
| bazel-complete.bash | 62 # Pattern to match for looking for a target 63 # BAZEL_BUILD_MATCH_PATTERN__* give the pattern for label-* 65 # BAZEL_QUERY_MATCH_PATTERN__* give the pattern for label-* 81 local var_name pattern 88 pattern=${BASH_REMATCH[1]:-} 90 eval "echo \"\${${var_name}_RUNTEST__${pattern}:-\$${var_name}__${pattern}}\"" 92 eval "echo \"\$${var_name}__${pattern}\"" 162 # Prints the completion pattern for a given Bazel command, e.g. "build". 183 # Grep the kind pattern and the target prefi [all...] |
| /prebuilts/tools/linux-x86/bazel/ |
| bazel-complete.bash | 62 # Pattern to match for looking for a target 63 # BAZEL_BUILD_MATCH_PATTERN__* give the pattern for label-* 65 # BAZEL_QUERY_MATCH_PATTERN__* give the pattern for label-* 81 local var_name pattern 88 pattern=${BASH_REMATCH[1]:-} 90 eval "echo \"\${${var_name}_RUNTEST__${pattern}:-\$${var_name}__${pattern}}\"" 92 eval "echo \"\$${var_name}__${pattern}\"" 162 # Prints the completion pattern for a given Bazel command, e.g. "build". 183 # Grep the kind pattern and the target prefi [all...] |
| /libcore/ojluni/src/main/java/java/util/regex/ |
| Matcher.java | 34 * </code>character sequence<code>} by interpreting a {@link Pattern}. 36 * <p> A matcher is created from a pattern by invoking the pattern's {@link 37 * Pattern#matcher matcher} method. Once created, a matcher can be used to 43 * input sequence against the pattern. </p></li> 46 * input sequence, starting at the beginning, against the pattern. </p></li> 49 * the next subsequence that matches the pattern. </p></li> 61 * methods. The way that the region boundaries interact with some pattern 77 * href="Pattern.html#cg">capturing group</a> in the pattern as well as a tota 115 private Pattern pattern; field in class:Matcher 195 public Pattern pattern() { method in class:Matcher [all...] |
| Pattern.java | 48 * an instance of this class. The resulting pattern can then be used to create 52 * matcher, so many matchers can share the same pattern. 57 * Pattern p = Pattern.{@link #compile compile}("a*b"); 67 * boolean b = Pattern.matches("a*b", "aaaaab");</pre></blockquote> 70 * is less efficient since it does not allow the compiled pattern to be reused. 539 * <tt>"\\u2014"</tt>, while not equal, compile into the same pattern, which 563 * The script names supported by <code>Pattern</code> are the valid script names 572 * The block names supported by <code>Pattern</code> are the valid block names 924 private final String pattern; field in class:Pattern 984 public String pattern() { method in class:Pattern [all...] |
| /art/tools/checker/match/ |
| line.py | 53 pattern = re.escape(getVariable(expression.name, variables, pos)) 55 pattern = expression.text 57 # Match the expression's regex pattern against the remainder of the word. 59 match = re.match(pattern, stringWord)
|
| /cts/tests/tests/os/src/android/os/cts/ |
| VibratorTest.java | 59 long[] pattern = {100, 200, 400, 800, 1600}; local 60 mVibrator.vibrate(pattern, 3); 62 mVibrator.vibrate(pattern, 10);
|
| /external/autotest/server/site_tests/firmware_CorruptRecoveryCache/ |
| firmware_CorruptRecoveryCache.py | 70 def check_command_output(self, cmd, pattern): 71 """Checks the output of the given command for the given pattern 74 @param pattern: The pattern to search for 75 @return True if pattern found 78 logging.info('Checking %s output for %s', cmd, pattern) 80 checker = re.compile(pattern)
|
| /external/autotest/server/site_tests/firmware_PDProtocol/ |
| firmware_PDProtocol.py | 92 def check_ec_output(self, output, pattern): 93 """Checks if any line in the output matches the given pattern. 96 @param pattern: The regex to search the output for 100 logging.info('Checking %s for %s.', output, pattern) 103 if bool(re.search(pattern, line)):
|
| /external/autotest/server/site_tests/firmware_RecoveryCacheBootKeys/ |
| firmware_RecoveryCacheBootKeys.py | 61 def check_command_output(self, cmd, pattern): 62 """Checks the output of the given command for the given pattern 65 @param pattern: The pattern to search for 66 @return True if pattern found 69 logging.info('Checking %s output for %s', cmd, pattern) 71 checker = re.compile(pattern)
|
| /external/clang/tools/scan-build-py/tests/functional/cases/ |
| __init__.py | 12 def load_tests(loader, suite, pattern): 47 pattern = re.compile('Report directory created: (.+)') 50 match = pattern.search(line)
|
| /external/curl/tests/unit/ |
| unit1307.c | 31 const char *pattern; member in struct:testcase 161 /* empty string or pattern */ 229 rc = Curl_fnmatch(NULL, tests[i].pattern, tests[i].string); 232 tests[i].pattern, tests[i].string, tests[i].result, rc); 233 fail("pattern mismatch");
|
| /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/ |
| PatternStringTest.java | 53 {"#;-#", "0"}, // ignore a negative prefix pattern of '-' since that is the default 69 "Failed on input pattern '" + input + "', properties " + properties, output, actual); 107 for (String pattern : invalidPatterns) { 109 PatternStringParser.parseToProperties(pattern); 110 fail("Didn't throw IllegalArgumentException when parsing pattern: " + pattern);
|
| /external/icu/icu4c/source/common/ |
| util_props.cpp | 70 * Parse a pattern string starting at offset pos. Keywords are 76 * @param pattern must only contain lowercase characters, which 84 * signs in 'pattern'. 89 const UnicodeString& pattern, int32_t* parsedInts) { 93 for (int32_t i=0; i<pattern.length(); ++i) { 94 UChar cpat = pattern.charAt(i);
|