| /frameworks/minikin/tools/ |
| mk_hyb_file.py | 120 def trim(pattern): 121 for ix in range(len(pattern)): 122 if pattern[ix] != 0: 123 return pattern[ix:] 126 def pat_to_binary(pattern): 127 return b''.join(struct.pack('B', x) for x in pattern) 137 # Add a pattern (word fragment with numeric codes, such as ".ad4der") 310 def generate_header(alphabet, trie, pattern): 314 file_size = pattern_off + len(pattern) 414 patmap, pattern = generate_pattern([n.res for n in hyph.node_list] [all...] |
| /prebuilts/gdb/darwin-x86/lib/python2.7/ |
| sre_parse.py | 4 # convert re-style regular expression to sre pattern 66 class Pattern: 67 # master pattern object. keeps track of global attributes 91 def __init__(self, pattern, data=None): 92 self.pattern = pattern 133 return SubPattern(self.pattern, self.data[index]) 317 raise error, "pattern not properly closed" 370 raise error, "pattern not properly closed" 381 # parse a simple pattern [all...] |
| /prebuilts/gdb/linux-x86/lib/python2.7/ |
| sre_parse.py | 4 # convert re-style regular expression to sre pattern 66 class Pattern: 67 # master pattern object. keeps track of global attributes 91 def __init__(self, pattern, data=None): 92 self.pattern = pattern 133 return SubPattern(self.pattern, self.data[index]) 317 raise error, "pattern not properly closed" 370 raise error, "pattern not properly closed" 381 # parse a simple pattern [all...] |
| /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
| sre_parse.py | 4 # convert re-style regular expression to sre pattern 66 class Pattern: 67 # master pattern object. keeps track of global attributes 91 def __init__(self, pattern, data=None): 92 self.pattern = pattern 133 return SubPattern(self.pattern, self.data[index]) 317 raise error, "pattern not properly closed" 370 raise error, "pattern not properly closed" 381 # parse a simple pattern [all...] |
| /prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
| sre_parse.py | 4 # convert re-style regular expression to sre pattern 66 class Pattern: 67 # master pattern object. keeps track of global attributes 91 def __init__(self, pattern, data=None): 92 self.pattern = pattern 133 return SubPattern(self.pattern, self.data[index]) 317 raise error, "pattern not properly closed" 370 raise error, "pattern not properly closed" 381 # parse a simple pattern [all...] |
| /external/autotest/site_utils/chromeos_proxy/ |
| swarming_bots.py | 145 pattern = os.path.join(self.bot_dir, self.BOT_CMD_PATTERN) 146 pattern = '%s %s' % (sys.executable, pattern) 147 cmd = ['pgrep', '-f', pattern] 309 pattern = self.CHECK_BOTS_PATTERN.format( 312 cmd = ['pgrep', '-f', pattern]
|
| /external/icu/icu4c/source/i18n/ |
| number_formatimpl.cpp | 27 // NOTE: In Java, the method to get a pattern from the resource bundle exists in NumberFormat. 75 // Attempt to get the pattern with the native numbering system. 77 const char16_t *pattern; local 78 pattern = doGetPattern(res.getAlias(), nsName, patternKey, status, localStatus); 81 // Fall back to latn if native numbering system does not have the right pattern 84 pattern = doGetPattern(res.getAlias(), "latn", patternKey, status, localStatus); 88 return pattern; 188 // Load and parse the pattern string. It is used for grouping sizes and affixes only. 201 const char16_t *pattern = getPatternForStyle(macros.locale, nsName, patternStyle, status); local 204 PatternParser::parseToPatternInfo(UnicodeString(pattern), *patternInfo, status) [all...] |
| /external/icu/icu4c/source/test/intltest/ |
| tchcfmt.cpp | 182 it_errln("*** ChoiceFormat to Pattern result!"); 461 // intervals. Do this both using arrays and using a pattern. 478 // 'fmt2' is created using a pattern; it should be equivalent 565 void TestChoiceFormat::_testPattern(const char* pattern, 571 ChoiceFormat fmt(pattern, ec); 574 logln((UnicodeString)"Ok: " + pattern + " failed"); 576 logln((UnicodeString)"FAIL: " + pattern + " accepted"); 581 errln((UnicodeString)"FAIL: ChoiceFormat(" + pattern + ") failed"); 584 logln((UnicodeString)"Ok: Pattern: " + pattern); [all...] |
| /packages/apps/UnifiedEmail/src/com/android/mail/preferences/ |
| MailPrefs.java | 39 import java.util.regex.Pattern; 385 // Check the saved email address patterns to determine if this pattern matches 389 for (String pattern : currentPatterns) { 390 displayImages = Pattern.compile(pattern).matcher(sender).matches(); 401 public void setDisplayImagesFromSender(String sender, List<Pattern> allowedPatterns) { 405 for (Pattern pattern : allowedPatterns) { 406 if (pattern.matcher(sender).matches()) { 408 // Save the pattern itsel [all...] |
| /prebuilts/go/darwin-x86/src/cmd/gofmt/ |
| doc.go | 46 pattern -> replacement 48 Both pattern and replacement must be valid Go expressions. 49 In the pattern, single-character lowercase identifiers serve as
|
| /prebuilts/go/linux-x86/src/cmd/gofmt/ |
| doc.go | 46 pattern -> replacement 48 Both pattern and replacement must be valid Go expressions. 49 In the pattern, single-character lowercase identifiers serve as
|
| /tools/test/connectivity/acts/framework/acts/test_utils/coex/ |
| bluez_test_utils.py | 101 def find_adapter(self, pattern=None): 102 """Gets the adapter interface with specified pattern in dbus. 105 pattern: Adapter name pattern to be found out. 108 Adapter interface with specified pattern. 110 return self.find_adapter_in_objects(self.get_managed_objects(), pattern) 112 def find_adapter_in_objects(self, objects, pattern=None): 113 """Gets the adapter interface with specified pattern in dbus. 118 pattern: Adapter name pattern to be found out [all...] |
| /frameworks/base/core/java/com/android/internal/widget/ |
| LockPatternView.java | 64 * Is also capable of displaying a static pattern in "in progress", "wrong" or 86 * How many milliseconds we spend animating each circle of a lock pattern 88 * constant * the length of the pattern to complete. 105 * Lookup table for the circles of the pattern we are currently drawing. 106 * This will be the cells of the complete pattern unless we are animating, 154 * Represents a cell in the 3 X 3 matrix of the unlock pattern view. 228 * How to display the current pattern. 233 * The pattern drawn is correct (i.e draw it in a friendly color) 238 * Animate the pattern (for demo, and help). 243 * The pattern is wrong (i.e draw a foreboding color 705 final ArrayList<Cell> pattern = mPattern; local 1073 final ArrayList<Cell> pattern = mPattern; local [all...] |
| /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/bgen/bgen/ |
| scantools.py | 208 5) all patterns use shell style pattern matching
213 10) when used as a pattern, a triple matches the type, name, and mode
220 as the pattern
248 print "Empty pattern"
257 print "Empty pattern part"
260 pattern = p.split()
261 if len(pattern) > 3:
263 print "Pattern part has > 3 words"
265 pattern = pattern[:3] [all...] |
| /external/ImageMagick/MagickCore/ |
| type.c | 537 % GetTypeInfoList() returns any fonts that match the specified pattern. 541 % const TypeInfo **GetTypeInfoList(const char *pattern, 546 % o pattern: Specifies a pointer to a text string containing a pattern. 575 MagickExport const TypeInfo **GetTypeInfoList(const char *pattern, 590 assert(pattern != (char *) NULL); 591 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",pattern); 610 (GlobExpression(p->name,pattern,MagickFalse) != MagickFalse)) 633 % GetTypeList() returns any fonts that match the specified pattern. 637 % char **GetTypeList(const char *pattern,size_t *number_fonts 757 *pattern; local [all...] |
| /external/emma/core/java12/com/vladium/util/args/ |
| OptsParser.java | 412 final String pattern = patterns [p]; local 414 if (n.startsWith (pattern)) 416 return canonicalPattern.concat (n.substring (pattern.length ())); 421 throw new IllegalStateException ("failed to detect pattern prefix for [" + n + "]"); 625 public IOpt [] getOpts (final String pattern) 629 final List /* Opt */ patternOpts = (List) m_patternMap.get (pattern); 756 private final Map /* String(name/pattern-prefixed name)->Opt */ m_nameMap; 757 private final Map /* String(pattern prefix)->List<Opt> */ m_patternMap; 864 void setPattern (final boolean pattern) 866 m_pattern = pattern; 945 final String pattern = (String) entry.getKey (); local [all...] |
| /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
| MessageRegressionTest.java | 63 * Null exception when formatting pattern with MessageFormat 68 String[] pattern = {"Message without param", local 79 //Apply pattern with param and print the result 80 messageFormatter.applyPattern(pattern[1]); 87 //Apply pattern without param and print the result 88 messageFormatter.applyPattern(pattern[0]); 99 //If we use pattern[1] for the message with param, 101 //If we use pattern[2] for the message with param, 104 //in applyPattern() when the pattern does not 115 * the original pattern string, rather than reconstituting a new (equivalent) one 328 String pattern = patterns[i]; local 446 String pattern = "{0,choice,1#YES|2#NO}"; local 776 String pattern = patterns[i]; local [all...] |
| /external/icu/icu4c/source/test/perf/howExpensiveIs/ |
| howExpensiveIs.cpp | 529 return "NumFmtInt64Test (pattern)"; 533 return "NumFmtInt64Test (pattern, group=off)"; 589 * unum_open .. with pattern, == new DecimalFormat(pattern) 686 static UChar pattern[] = { 0x23 }; // '#' variable 695 QuickTest(NumParseTest,{ static UChar pattern[] = { 0x23 }; NumParseTest_fmt = unum_open(UNUM_PATTERN_DECIMAL, pattern, 1, TEST_LOCALE, 0, &setupStatus); },{ int32_t i; static UChar str[] = { 0x31 };double val; for(i=0;i<U_LOTS_OF_TIMES;i++) { val=unum_parse(NumParseTest_fmt,str,1,NULL,&setupStatus); } return i; },{unum_close(NumParseTest_fmt);}) 697 QuickTest(NumParseTestdot,{ static UChar pattern[] = { 0x23 }; NumParseTest_fmt = unum_open(UNUM_PATTERN_DECIMAL, pattern, 1, TEST_LOCALE, 0, &setupStatus); },{ int32_t i; double val; for(i=0;i<U_LOTS_OF_TIMES;i++) { val=unum_parse(NumParseTest_fmt,strdot,1,NULL,&setupStatus); } return i; },{unum_close(NumParseTest_fmt);}) 698 QuickTest(NumParseTestspc,{ static UChar pattern[] = { 0x23 }; NumParseTest_fmt = unum_open(UNUM_PATTERN_DECIMAL, pattern, (…) [all...] |
| /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
| MessageRegressionTest.java | 60 * Null exception when formatting pattern with MessageFormat 65 String[] pattern = {"Message without param", local 76 //Apply pattern with param and print the result 77 messageFormatter.applyPattern(pattern[1]); 84 //Apply pattern without param and print the result 85 messageFormatter.applyPattern(pattern[0]); 96 //If we use pattern[1] for the message with param, 98 //If we use pattern[2] for the message with param, 101 //in applyPattern() when the pattern does not 112 * the original pattern string, rather than reconstituting a new (equivalent) one 325 String pattern = patterns[i]; local 443 String pattern = "{0,choice,1#YES|2#NO}"; local 773 String pattern = patterns[i]; local [all...] |
| /external/python/cpython2/Tools/bgen/bgen/ |
| scantools.py | 208 5) all patterns use shell style pattern matching 213 10) when used as a pattern, a triple matches the type, name, and mode 220 as the pattern 248 print "Empty pattern" 257 print "Empty pattern part" 260 pattern = p.split() 261 if len(pattern) > 3: 263 print "Pattern part has > 3 words" 265 pattern = pattern[:3 [all...] |
| /libcore/ojluni/src/main/java/java/time/format/ |
| DateTimeFormatterBuilder.java | 146 * Finally, a shorthand pattern, mostly compatible with {@code java.text.SimpleDateFormat SimpleDateFormat} 148 * In practice, this simply parses the pattern and calls other methods on the builder. 195 * Gets the formatting pattern for date and time styles for a locale and chronology. 199 * @param dateStyle the FormatStyle for the date, null for time-only pattern 200 * @param timeStyle the FormatStyle for the time, null for date-only pattern 203 * @return the locale and Chronology specific formatting pattern 215 String pattern = Calendar.getDateTimeFormatString( local 218 return pattern; 4429 String pattern = getLocalizedDateTimePattern(dateStyle, timeStyle, chrono, locale); local [all...] |
| /prebuilts/tools/common/m2/repository/org/apache/logging/log4j/log4j-core/2.5/ |
| log4j-core-2.5.jar | |
| /build/kati/ |
| shellutil.go | 27 pattern expr 34 pattern: expr{ 48 pattern: expr{ 55 pattern: expr{
|
| /build/soong/android/ |
| testing.go | 168 func FailIfNoMatchingErrors(t *testing.T, pattern string, errs []error) { 171 matcher, err := regexp.Compile(pattern) 173 t.Errorf("failed to compile regular expression %q because %s", pattern, err) 184 t.Errorf("missing the expected error %q (checked %d error(s))", pattern, len(errs))
|
| /cts/tests/tests/opengl/src/android/opengl/cts/ |
| Egl14Utils.java | 28 import java.util.regex.Pattern; 50 Pattern pattern = Pattern.compile("OpenGL ES ([0-9]+)\\.([0-9]+)"); local 51 Matcher matcher = pattern.matcher(version);
|