| /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
| ConvertToDpFix.java | 36 import java.util.regex.Pattern; 62 Pattern pattern = Pattern.compile("(\\d+)px"); //$NON-NLS-1$ local 68 Matcher matcher = pattern.matcher(value);
|
| /system/core/toolbox/upstream-netbsd/usr.bin/grep/ |
| grep.h | 104 unsigned char *pattern; member in struct:__anon2973 130 extern char **pattern;
|
| /test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/ |
| PropertyUtil.java | 24 import java.util.regex.Pattern; 91 Pattern pattern = Pattern.compile("name=([a-z_]*), value=(.*)$"); local 92 Matcher matcher = pattern.matcher(line); 126 // null or empty pattern implies property does not exist
|
| /test/vts-testcase/kernel/ltp/ |
| test_case.py | 107 pattern = re.compile('[\`]') 108 return (pattern.sub('', executable.split('=')[1])
|
| /toolchain/binutils/binutils-2.27/libiberty/ |
| fnmatch.c | 65 /* Match STRING against the filename pattern PATTERN, returning zero if 68 fnmatch (const char *pattern, const char *string, int flags) 70 register const char *p = pattern, *n = string;
|
| /external/python/cpython2/Lib/unittest/test/ |
| test_discovery.py | 101 def load_tests(loader, tests, pattern): 102 self.load_tests_args.append((loader, tests, pattern)) 120 # this time no '.py' on the pattern so that it can match 130 # load_tests should have been called once with loader, tests and pattern 165 def _find_tests(start_dir, pattern): 166 _find_tests_args.append((start_dir, pattern)) 171 suite = loader.discover('/foo/bar/baz', 'pattern', '/foo/bar') 177 self.assertEqual(_find_tests_args, [(start_dir, 'pattern')]) 236 def discover(self, start_dir, pattern, top_level_dir): 237 self.args.append((start_dir, pattern, top_level_dir) [all...] |
| /external/python/cpython3/Lib/unittest/ |
| loader.py | 97 def loadTestsFromModule(self, module, *args, pattern=None, **kws): 129 return load_tests(self, tests, pattern) 234 def discover(self, start_dir, pattern='test*.py', top_level_dir=None): 237 tests found within them. Only test files that match the pattern will 238 be loaded. (Using shell style pattern matching.) 245 pattern then the package will be checked for a 'load_tests' function. If 246 this exists then it will be called with (loader, tests, pattern) unless 255 The pattern is deliberately not stored as a loader attribute so that 318 pattern, 341 tests = list(self._find_tests(start_dir, pattern)) [all...] |
| /libcore/ojluni/src/main/java/java/time/format/ |
| DateTimeFormatter.java | 107 * <li>Using pattern letters, such as {@code uuuu-MMM-dd}</li> 260 * A pattern is used to create a Formatter using the 264 * A formatter created from a pattern can be used as many times as necessary, 275 * All letters 'A' to 'Z' and 'a' to 'z' are reserved as pattern letters. The 276 * following pattern letters are defined: 326 * The count of pattern letters determines the format. 328 * <b>Text</b>: The text style is determined based on the number of pattern 329 * letters used. Less than 4 pattern letters will use the 330 * {@link TextStyle#SHORT short form}. Exactly 4 pattern letters will use the 331 * {@link TextStyle#FULL full form}. Exactly 5 pattern letters will use th 2076 String pattern = printerParser.toString(); local [all...] |
| /packages/apps/Settings/src/com/android/settings/password/ |
| ConfirmLockPattern.java | 50 * Launch this when you want the user to confirm their lock pattern. 53 * successfully confirmed their pattern. 125 // lock pattern view. 146 // on first launch, if no lock pattern is set, then finish with 149 // Don't do this check for FRP though, because the pattern is not stored 152 // ability to disable the pattern in L. Remove this block after 341 // clear the wrong pattern unless they have started a new one 391 * The pattern listener that responds according to a user confirming 392 * an existing lock pattern. 405 public void onPatternCellAdded(List<Cell> pattern) { [all...] |
| /external/python/cpython3/Lib/test/ |
| test_re.py | 41 def checkPatternError(self, pattern, errmsg, pos=None): 43 re.compile(pattern) 44 with self.subTest(pattern=pattern): 50 def checkTemplateError(self, pattern, repl, string, errmsg, pos=None): 52 re.sub(pattern, repl, string) 53 with self.subTest(pattern=pattern, repl=repl): 152 pattern = re.compile('.') 153 self.assertRaises(ValueError, re.match, pattern, 'A', re.I [all...] |
| /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
| FormatterTest.java | 1175 final int pattern = 1; local 1239 final int pattern = 1; local 1446 final int pattern = 1; local 1564 final int pattern = 1; local 1634 final int pattern = 1; local 1704 final int pattern = 1; local 2023 final int pattern = 1; local 2485 final int pattern = 1; local 2921 final int pattern = 1; local 3108 final int pattern = 1; local 3413 final int pattern = 1; local 3587 final int pattern = 1; local 3655 final int pattern = 1; local 3736 final int pattern = 1; local 3772 final int pattern = 1; local [all...] |
| /external/ImageMagick/MagickCore/ |
| property.c | 3490 pattern[2*MagickPathExtent]; local [all...] |
| /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
| test_re.py | 112 pattern = re.compile('.')
113 self.assertRaises(ValueError, re.match, pattern, 'A', re.I)
114 self.assertRaises(ValueError, re.search, pattern, 'A', re.I)
115 self.assertRaises(ValueError, re.findall, pattern, 'A', re.I)
116 self.assertRaises(ValueError, re.compile, pattern, re.I)
434 def assertMatch(self, pattern, text, match=None, span=None,
437 # the pattern matches the whole text
443 m = matcher(pattern, text)
514 self.assertNotEqual(re.compile('^pattern$', flag), None)
550 # bug 545855 -- This pattern failed to cause a compile error as it [all...] |
| /external/icu/icu4c/source/test/intltest/ |
| ssearch.cpp | 210 UnicodeString pattern; local 216 n = testCase->getChildElement("pattern"); 223 pattern.append(text); 263 LocalUStringSearchPointer uss(usearch_openFromCollator(pattern.getBuffer(), pattern.length(), 301 uss.adoptInstead(usearch_openFromCollator(pattern.getBuffer(), pattern.length(), 760 logln("Test %d: found long pattern at [%d, %d].", t, start, end); 762 dataerrln("Test %d: did not find long pattern.", t); 769 logln("Test %d: found long pattern at [%d, %d].", t, start, end) 1381 UnicodeString pattern, altPattern; local [all...] |
| /art/tools/checker/file_format/checker/ |
| parser.py | 39 # The 'match' function succeeds only if the pattern is matched at the 161 pattern = line[0:matchPattern.end()] 162 pattern = pattern[2:-2] 164 assertion.addExpression(TestExpression.createPattern(pattern))
|
| struct.py | 103 """ Returns a regex pattern for this entire assertion. Only used in tests. """ 122 PlainText, Pattern, VarRef, VarDef, Separator = range(5) 159 return TestExpression(TestExpression.Variant.Pattern, None, re.escape(text)) 162 def createPattern(pattern): 163 return TestExpression(TestExpression.Variant.Pattern, None, pattern) 171 def createVariableDefinition(name, pattern): 173 return TestExpression(TestExpression.Variant.VarDef, name, pattern)
|
| /bionic/libc/kernel/uapi/linux/ |
| scc.h | 137 unsigned char pattern; member in struct:scc_calibrate
|
| /build/kati/ |
| fileutil.go | 31 pattern string 45 if !matchPattern(vpath.pattern, target) {
|
| /cts/hostsidetests/usb/src/com/android/cts/usb/ |
| TestUsbTest.java | 42 import java.util.regex.Pattern; 151 Pattern pattern = Pattern.compile("^\\s+iSerial\\s+\\d+\\s+([a-zA-Z0-9]{6,20})", local 152 Pattern.MULTILINE); 153 Matcher matcher = pattern.matcher(lsusbOutput); 169 pattern = Pattern.compile("^.*CtsUsbSerialTest\\(.*\\):\\s+([a-zA-Z0-9]{6,20})", 170 Pattern.MULTILINE); 171 matcher = pattern.matcher(logs) [all...] |
| /cts/tests/tests/security/src/android/security/cts/ |
| ListeningPortsTest.java | 35 import java.util.regex.Pattern; 276 for (String pattern : patterns) { 277 pattern = Pattern.quote(pattern); 278 if (Pattern.matches(pattern, input)) {
|
| /cts/tools/utils/cts/ |
| tools.py | 162 def Exclude(self, pattern): 169 pattern: A regular expression selecting the package names to exclude. 173 exp = re.compile(pattern) 178 def Include(self, pattern): 182 pattern: A regular expression selecting the package names to include. 188 exp = re.compile(pattern)
|
| /dalvik/dx/src/com/android/dx/cf/code/ |
| ValueAwareMachine.java | 135 for (int pattern = getAuxInt(); pattern != 0; pattern >>= 4) { 136 int which = (pattern & 0x0f) - 1;
|
| /development/samples/ApiDemos/src/com/example/android/apis/os/ |
| MorseCodeConverter.java | 74 /** Return the pattern data for a given character */ 75 static long[] pattern(char c) { method in class:MorseCodeConverter 90 static long[] pattern(String str) { method in class:MorseCodeConverter 109 len += pattern(c).length; 113 // Generate the pattern array. Note that we put an extra element of 0 114 // in at the beginning, because the pattern always starts with the pause, 134 long[] letter = pattern(c);
|
| /device/linaro/bootloader/edk2/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/ |
| regposix.c | 136 regcomp(regex_t* reg, const char* pattern, int posix_options)
155 ENC_STRING_LEN(OnigEncDefaultCharEncoding, pattern, len);
156 r = onig_new(PONIG_C(reg), (UChar* )pattern, (UChar* )(pattern + len),
|
| /external/ImageMagick/www/api/ |
| color.php | 86 <p>GetColorInfoList() returns any colors that match the specified pattern.</p> 91 const ColorInfo **GetColorInfoList(const char *pattern, 102 <dt>pattern</dt> 103 <dd>Specifies a pointer to a text string containing a pattern. </dd> 117 <p>GetColorList() returns any colors that match the specified pattern.</p> 122 char **GetColorList(const char *pattern,size_t *number_colors, 133 <dt>pattern</dt> 134 <dd>Specifies a pointer to a text string containing a pattern. </dd>
|