| /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/unittest/test/ |
| test_discovery.py | 100 def load_tests(loader, tests, pattern): 101 self.load_tests_args.append((loader, tests, pattern)) 119 # this time no '.py' on the pattern so that it can match 129 # load_tests should have been called once with loader, tests and pattern 164 def _find_tests(start_dir, pattern): 165 _find_tests_args.append((start_dir, pattern)) 170 suite = loader.discover('/foo/bar/baz', 'pattern', '/foo/bar') 176 self.assertEqual(_find_tests_args, [(start_dir, 'pattern')]) 235 def discover(self, start_dir, pattern, top_level_dir): 236 self.args.append((start_dir, pattern, top_level_dir) [all...] |
| /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
| test_strptime.py | 117 # Test TimeRE.pattern 118 pattern_string = self.time_re.pattern(r"%a %A %d") 120 "did not find abbreviated weekday in pattern string '%s'" % 123 "did not find full weekday in pattern string '%s'" % 126 "did not find 'd' directive pattern string '%s'" % 132 pattern_string = self.time_re.pattern("\d+") 147 (compiled.pattern, "%s %s" % (self.locale_time.a_weekday[4], 153 (found.string, found.re.pattern, found.group('a'), 161 compiled.pattern)) 168 self.assertEqual(_strptime.TimeRE(test_locale).pattern("%Z"), '' [all...] |
| /prebuilts/python/linux-x86/2.7.5/lib/python2.7/unittest/test/ |
| test_discovery.py | 100 def load_tests(loader, tests, pattern): 101 self.load_tests_args.append((loader, tests, pattern)) 119 # this time no '.py' on the pattern so that it can match 129 # load_tests should have been called once with loader, tests and pattern 164 def _find_tests(start_dir, pattern): 165 _find_tests_args.append((start_dir, pattern)) 170 suite = loader.discover('/foo/bar/baz', 'pattern', '/foo/bar') 176 self.assertEqual(_find_tests_args, [(start_dir, 'pattern')]) 235 def discover(self, start_dir, pattern, top_level_dir): 236 self.args.append((start_dir, pattern, top_level_dir) [all...] |
| /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/command/ |
| config.py | 196 def search_cpp(self, pattern, body=None, headers=None, include_dirs=None,
200 'pattern'. 'pattern' should either be a compiled regex object or a
208 if isinstance(pattern, str):
209 pattern = re.compile(pattern)
217 if pattern.search(line):
|
| /external/autotest/server/cros/network/ |
| chaos_clique_utils.py | 371 pattern = '%s \w+ Rev:\d' % firmware_ver 373 pattern = '%s [\d.]+ \([\w.]+\)' % firmware_ver 375 pattern = '(\d+\.\d+\.\d+)' 377 pattern = '\d+\.\d+\.\d+ \([\w.]+\)' 382 result = re.search(pattern, result_str)
|
| /external/icu/icu4c/source/i18n/ |
| number_compact.cpp | 42 // It could break if there are any 0s that aren't part of the main pattern. 129 for (auto pattern : patterns) { 130 if (pattern == nullptr || pattern == USE_FALLBACK) { 134 // Insert pattern into the UVector if the UVector does not already contain the pattern. 137 if (u_strcmp(pattern, static_cast<const UChar *>(output[i])) == 0) { 144 output.addElement(const_cast<UChar *>(pattern), status); 177 // The value "0" means that we need to use the default pattern and not fall back 187 // Save the pattern string. We will parse it lazily [all...] |
| tridpars.cpp | 240 * @param id the pattern the parse 249 * @param canonID OUTPUT parameter. The pattern for the filter 251 * at the start, if dir is REVERSE. The pattern will be enclosed 292 UnicodeString pattern; local 293 id.extractBetween(pos, ppos.getIndex(), pattern); 301 // In the forward direction, append the pattern to the 307 pattern.insert(0, OPEN_REV); 308 pattern.append(CLOSE_REV); 310 canonID->append(pattern).append(ID_DELIM); 313 pattern.insert(0, OPEN_REV) [all...] |
| /external/python/cpython2/Lib/distutils/command/ |
| config.py | 196 def search_cpp(self, pattern, body=None, headers=None, include_dirs=None, 200 'pattern'. 'pattern' should either be a compiled regex object or a 208 if isinstance(pattern, str): 209 pattern = re.compile(pattern) 217 if pattern.search(line):
|
| /external/python/cpython3/Lib/ |
| sre_parse.py | 4 # convert re-style regular expression to sre pattern 74 class Pattern: 75 # master pattern object. keeps track of global attributes 111 def __init__(self, pattern, data=None): 112 self.pattern = pattern 165 return SubPattern(self.pattern, self.data[index]) 204 i, j = self.pattern.groupwidths[av] 244 raise error("bad escape (end of pattern)", 470 # parse a simple pattern [all...] |
| /external/selinux/policycoreutils/scripts/ |
| fixfiles | 190 while read pattern ; \ 191 do if ! echo "$pattern" | grep -q -f ${TEMPFILE} 2>/dev/null; then \ 192 echo "$pattern"; \ 193 case "$pattern" in *"*") \ 194 echo "$pattern" | sed -e 's,^,^,' -e 's,\*$,,g' >> ${TEMPFILE};;
|
| /prebuilts/gdb/darwin-x86/lib/python2.7/distutils/command/ |
| config.py | 196 def search_cpp(self, pattern, body=None, headers=None, include_dirs=None, 200 'pattern'. 'pattern' should either be a compiled regex object or a 208 if isinstance(pattern, str): 209 pattern = re.compile(pattern) 217 if pattern.search(line):
|
| /prebuilts/gdb/linux-x86/lib/python2.7/distutils/command/ |
| config.py | 196 def search_cpp(self, pattern, body=None, headers=None, include_dirs=None, 200 'pattern'. 'pattern' should either be a compiled regex object or a 208 if isinstance(pattern, str): 209 pattern = re.compile(pattern) 217 if pattern.search(line):
|
| /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/distutils/command/ |
| config.py | 196 def search_cpp(self, pattern, body=None, headers=None, include_dirs=None, 200 'pattern'. 'pattern' should either be a compiled regex object or a 208 if isinstance(pattern, str): 209 pattern = re.compile(pattern) 217 if pattern.search(line):
|
| /prebuilts/python/linux-x86/2.7.5/lib/python2.7/distutils/command/ |
| config.py | 196 def search_cpp(self, pattern, body=None, headers=None, include_dirs=None, 200 'pattern'. 'pattern' should either be a compiled regex object or a 208 if isinstance(pattern, str): 209 pattern = re.compile(pattern) 217 if pattern.search(line):
|
| /tools/tradefederation/core/src/com/android/tradefed/util/ |
| GCSBucketUtil.java | 145 * @param source Source file or pattern 146 * @param dest Destination file or pattern 366 * @param pattern File, directory, or pattern to remove. 369 public CommandResult remove(String pattern, boolean force) throws IOException { 371 String path = getUriForGcsPath(Paths.get(pattern)); 396 pattern, 407 * @param pattern File, directory, or pattern to remove. 409 public CommandResult remove(String pattern) throws IOException [all...] |
| /external/elfutils/src/ |
| elfcompress.c | 64 char *pattern; member in struct:section_pattern 71 add_pattern (const char *pattern) 74 p->pattern = xstrdup (pattern); 82 struct section_pattern *pattern = patterns; local 83 while (pattern != NULL) 85 struct section_pattern *p = pattern; 86 pattern = p->next; 87 free (p->pattern); 165 struct section_pattern *pattern = patterns local [all...] |
| /external/flac/libFLAC/ |
| bitwriter.c | 513 FLAC__uint32 uval, pattern; local 527 pattern = 1 << parameter; /* the unary end bit */ 528 pattern |= (uval & ((1<<parameter)-1)); /* the binary LSBs */ 531 return FLAC__bitwriter_write_raw_uint32(bw, pattern, total_bits); 535 FLAC__bitwriter_write_raw_uint32(bw, pattern, interesting_bits); /* write the unary end bit and binary LSBs */ 650 unsigned pattern; 656 pattern = 1 << k; /* the unary end bit */ 657 pattern |= (uval & ((1u<<k)-1)); /* the binary LSBs */ 660 if(!FLAC__bitwriter_write_raw_uint32(bw, pattern, total_bits)) 668 if(!FLAC__bitwriter_write_raw_uint32(bw, pattern, k+1) [all...] |
| /external/icu/android_icu4j/src/main/java/android/icu/text/ |
| DecimalFormat_ICU58_Android.java | 129 * <p>A <code>DecimalFormat</code> consists of a <em>pattern</em> and a set of 130 * <em>symbols</em>. The pattern may be set directly using {@link #applyPattern}, or 131 * indirectly using other API methods which manipulate aspects of the pattern, such as the 134 * pattern and symbols are read from ICU's locale data. 136 * <h4>Special Pattern Characters</h4> 138 * <p>Many characters in a pattern are taken literally; they are matched during parsing 142 * same as the pattern character; in the U.S. locale, the ',' grouping character is 148 * <p>To insert a special character in a pattern as a literal, that is, without any 235 * If present in a pattern, the monetary decimal separator 253 * <p>A <code>DecimalFormat</code> pattern contains a postive and negative subpattern, fo 642 String pattern = getPattern(def, 0); local [all...] |
| /external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
| DecimalFormat_ICU58_Android.java | 128 * <p>A <code>DecimalFormat</code> consists of a <em>pattern</em> and a set of 129 * <em>symbols</em>. The pattern may be set directly using {@link #applyPattern}, or 130 * indirectly using other API methods which manipulate aspects of the pattern, such as the 133 * pattern and symbols are read from ICU's locale data. 135 * <h4>Special Pattern Characters</h4> 137 * <p>Many characters in a pattern are taken literally; they are matched during parsing 141 * same as the pattern character; in the U.S. locale, the ',' grouping character is 147 * <p>To insert a special character in a pattern as a literal, that is, without any 234 * If present in a pattern, the monetary decimal separator 252 * <p>A <code>DecimalFormat</code> pattern contains a postive and negative subpattern, fo 641 String pattern = getPattern(def, 0); local [all...] |
| /external/ltp/testcases/kernel/mem/mmapstress/ |
| mmapstress10.c | 60 * have to check for zero or pattern...) 150 unsigned pattern = 0; variable 275 pattern = seed & 0xff; 279 (void)printf("creating file <%s> with %Ld bytes, pattern %d\n", 280 filename, filesize, pattern); 282 (void)printf("creating file <%s> with %ld bytes, pattern %d\n", 283 filename, filesize, pattern); 344 *(buf + i) = (data + pattern) & 0xff; 349 *(buf + i) = (data + pattern) & 0xff; 638 * do an exact check -- accept known pattern OR zeros [all...] |
| /external/tensorflow/tensorflow/core/platform/windows/ |
| windows_file_system.cc | 397 std::wstring pattern = ws_translated_dir; local 398 if (!pattern.empty() && pattern.back() != '\\' && pattern.back() != '/') { 399 pattern += L"\\*"; 401 pattern += L'*'; 405 HANDLE find_handle = ::FindFirstFileW(pattern.c_str(), &find_data); 486 Status WindowsFileSystem::GetMatchingPaths(const string& pattern, 491 // convert the pattern to use forward slashes exclusively. Note that this 494 string converted_pattern(pattern); [all...] |
| /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
| sre_parse.py | 4 # convert re-style regular expression to sre pattern
65 class Pattern:
66 # master pattern object. keeps track of global attributes
92 def __init__(self, pattern, data=None):
93 self.pattern = pattern
143 return SubPattern(self.pattern, self.data[index])
332 raise error, "pattern not properly closed"
385 raise error, "pattern not properly closed"
396 # parse a simple pattern
[all...] |
| /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
| sre_parse.py | 4 # convert re-style regular expression to sre pattern
65 class Pattern:
66 # master pattern object. keeps track of global attributes
90 def __init__(self, pattern, data=None):
91 self.pattern = pattern
132 return SubPattern(self.pattern, self.data[index])
316 raise error, "pattern not properly closed"
369 raise error, "pattern not properly closed"
380 # parse a simple pattern
[all...] |
| /external/python/cpython2/Lib/ |
| sre_parse.py | 4 # convert re-style regular expression to sre pattern 65 class Pattern: 66 # master pattern object. keeps track of global attributes 92 def __init__(self, pattern, data=None): 93 self.pattern = pattern 143 return SubPattern(self.pattern, self.data[index]) 332 raise error, "pattern not properly closed" 385 raise error, "pattern not properly closed" 396 # parse a simple pattern [all...] |
| /frameworks/av/media/ndk/ |
| NdkMediaCodec.cpp | 743 cryptoinfo_pattern_t pattern; member in struct:AMediaCodecCryptoInfo 763 CryptoPlugin::Pattern pattern; local 764 pattern.mEncryptBlocks = crypto->pattern.encryptBlocks; 765 pattern.mSkipBlocks = crypto->pattern.skipBlocks; 775 pattern, 799 cryptoinfo_pattern_t *pattern) { 800 info->pattern.encryptBlocks = pattern->encryptBlocks [all...] |