Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 25 of 59) sorted by relevance

123

/tools/loganalysis/src/com/android/loganalysis/util/
DLogPatternUtil.java48 public PatternInfo(Pattern pattern, Object extras, String category) { in PatternInfo() argument
49 mPattern = pattern; in PatternInfo()
63 public void addPattern(Pattern pattern, String category) { in addPattern() argument
64 addPattern(pattern, null, category); in addPattern()
75 public void addPattern(Pattern pattern, Object extras, String category) { in addPattern() argument
76 mPatterns.add(new PatternInfo(pattern, extras, category)); in addPattern()
DRegexTrie.java70 CompPattern(Pattern pattern) { in CompPattern() argument
71 if (pattern == null) { in CompPattern()
74 mPattern = pattern; in CompPattern()
208 CompPattern pattern = child.getKey(); in recursiveRetrieve() local
209 if (pattern == null) { in recursiveRetrieve()
215 Matcher matcher = pattern.matcher(curKey); in recursiveRetrieve()
/tools/apksig/src/main/java/com/android/apksig/
DHints.java52 final Pattern pattern; field in Hints.PatternWithRange
56 public PatternWithRange(String pattern) { in PatternWithRange() argument
57 this.pattern = Pattern.compile(pattern); in PatternWithRange()
62 public PatternWithRange(String pattern, long offset, long size) { in PatternWithRange() argument
63 this.pattern = Pattern.compile(pattern); in PatternWithRange()
69 return this.pattern.matcher(input); in matcher()
/tools/test/connectivity/acts/framework/tests/
Dtest_runner_test.py52 pattern = 'test*1'
54 [(pattern, None)])
66 pattern = 'test_class*'
68 [(pattern, None)])
81 pattern = 'test_class_?'
83 [(pattern, None)])
95 pattern = 'test_class_[1357]'
97 [(pattern, None)])
Dtest_suite.py44 start_dir=os.path.dirname(__file__), pattern='*_test.py')
46 start_dir=os.path.dirname(__file__), pattern='*_test.py')
/tools/tradefederation/contrib/tests/src/com/android/build/tests/
DImageStatsTest.java81 Pattern pattern = Pattern.compile("^.+\\.apk$"); in testGetAggregationLabel_regular() local
86 mImageStats.getAggregationLabel(pattern.matcher(fileName), label)); in testGetAggregationLabel_regular()
93 Pattern pattern = Pattern.compile("^/system/(.+?)/.+\\.(.+)$"); in testGetAggregationLabel_capturingGroups() local
95 Matcher m = pattern.matcher(fileName); in testGetAggregationLabel_capturingGroups()
111 Pattern pattern = Pattern.compile("^/system/(.+?)/.+\\.(.+)$"); in testGetAggregationLabel_capturingGroups_partialBackReference() local
113 Matcher m = pattern.matcher(fileName); in testGetAggregationLabel_capturingGroups_partialBackReference()
/tools/tradefederation/core/src/com/android/tradefed/util/
DRegexTrie.java70 CompPattern(Pattern pattern) { in CompPattern() argument
71 if (pattern == null) { in CompPattern()
74 mPattern = pattern; in CompPattern()
208 CompPattern pattern = child.getKey(); in recursiveRetrieve() local
209 if (pattern == null) { in recursiveRetrieve()
215 Matcher matcher = pattern.matcher(curKey); in recursiveRetrieve()
DAppVersionFetcher.java82 private static String parseVersionString(String packageInfo, Pattern pattern) { in parseVersionString() argument
90 Matcher matcher = pattern.matcher(lines[0]); in parseVersionString()
DSubprocessExceptionParser.java40 Pattern pattern = in handleStderrException() local
47 Matcher m = pattern.matcher(line); in handleStderrException()
/tools/loganalysis/src/com/android/loganalysis/parser/
DAbstractSectionParser.java47 protected void addSectionParser(IParser parser, String pattern) { in addSectionParser() argument
51 if (pattern == null) { in addSectionParser()
54 mSectionTrie.put(parser, pattern); in addSectionParser()
DKernelLogParser.java248 for (String pattern : kernelResets) { in initPatterns()
249 mPatternUtil.addPattern(Pattern.compile(pattern), KERNEL_RESET); in initPatterns()
251 for (String pattern : goodSignatures) { in initPatterns()
252 mPatternUtil.addPattern(Pattern.compile(pattern), NORMAL_REBOOT); in initPatterns()
/tools/test/graphicsbenchmark/functional_tests/hostside/src/com/android/game/qualification/test/
DMemoryTests.java86 String pattern = "total alloc: "; in testMemoryAllocationLimit() local
89 if (s.contains(pattern)) { in testMemoryAllocationLimit()
95 int totalAllocIndex = p.indexOf(pattern) + pattern.length(); in testMemoryAllocationLimit()
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/
DClusterLogSaverTest.java115 final String pattern = "android-cts/results/(?<SESSION>[^/]+)/test_result\\.xml"; in testFindTestContextFile() local
124 mWorkDir, pattern, FilePickingStrategy.PICK_LAST, envVars); in testFindTestContextFile()
134 final String pattern = "android-cts/results/(?<SESSION>[^/]+)/test_result\\.xml"; in testFindTestContextFile_multipleMatches_pickFirst() local
149 mWorkDir, pattern, FilePickingStrategy.PICK_FIRST, envVars); in testFindTestContextFile_multipleMatches_pickFirst()
159 final String pattern = "android-cts/results/(?<SESSION>[^/]+)/test_result\\.xml"; in testFindTestContextFile_multipleMatches_pickLast() local
174 mWorkDir, pattern, FilePickingStrategy.PICK_LAST, envVars); in testFindTestContextFile_multipleMatches_pickLast()
184 final String pattern = "android-cts/results/(?<SESSION>[^/]+)/test_result\\.xml"; in testFindTestContextFile_noMatch() local
191 mWorkDir, pattern, FilePickingStrategy.PICK_LAST, envVars); in testFindTestContextFile_noMatch()
199 final String pattern = "android-cts/results/(?<SESSION>[^/]+)/test_result\\.xml"; in testFindTestContextFile_existingEnvVar() local
209 mWorkDir, pattern, FilePickingStrategy.PICK_LAST, envVars); in testFindTestContextFile_existingEnvVar()
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/
DApiGenerator.java101 String pattern = arg; in main() local
102 if (!pattern.endsWith(File.separator)) { in main()
103 pattern += File.separator; in main()
105pattern += "platforms" + File.separator + "android-%" + File.separator + "android.jar"; in main()
106 patterns.add(pattern); in main()
/tools/test/connectivity/acts/framework/acts/
Dkeys.py123 def value_to_value(ref_value, pattern): argument
130 target_key_name = pattern % ref_key_name
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterHostUtil.java100 String pattern = m.group(1); in getRunTarget() local
103 switch (pattern) { in getRunTarget()
149 pattern, runTargetFormat)); in getRunTarget()
DClusterLogSaver.java132 private Stream<Path> getPathStream(final File dir, final Pattern pattern) throws IOException { in getPathStream() argument
138 && pattern.matcher(getRelativePath(path).toString()).matches(), in getPathStream()
143 final Pattern pattern = Pattern.compile(regex); in findFilesRecursively() local
144 try (final Stream<Path> stream = getPathStream(dir, pattern)) { in findFilesRecursively() argument
179 final Pattern pattern = Pattern.compile(regex); in findTestContextFile() local
180 try (Stream<Path> stream = getPathStream(dir, pattern)) { in findTestContextFile() argument
197 Matcher matcher = pattern.matcher(relPath.toString()); in findTestContextFile()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DFilePullerDeviceMetricCollector.java144 String pattern, final Map<String, String> currentMetrics) { in pullMetricFile() argument
146 Pattern p = Pattern.compile(pattern); in pullMetricFile()
176 CLog.d("Could not find a device file associated to pattern '%s'.", pattern); in pullMetricFile()
/tools/tradefederation/core/atest/
Dtest_mapping.py157 for pattern in file_patterns:
158 if re.search(pattern, modified_file):
/tools/asuite/atest/
Dtest_mapping.py155 for pattern in file_patterns:
156 if re.search(pattern, modified_file):
/tools/tradefederation/contrib/src/com/android/build/tests/
DImageStats.java233 matcher.pattern(), marker, rawLabel); in getAggregationLabel()
268 for (Map.Entry<Pattern, String> pattern : patterns.entrySet()) { in performAggregation()
269 Matcher m = pattern.getKey().matcher(stat.getKey()); in performAggregation()
272 String label = getAggregationLabel(m, pattern.getValue()); in performAggregation()
/tools/test/connectivity/acts/framework/tests/test_utils/instrumentation/
Dunit_test_suite.py24 start_dir=os.path.dirname(__file__), pattern='*_test.py')
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DSandboxInvocationRunner.java85 Pattern pattern = in handleStderrException() local
88 Matcher m = pattern.matcher(line); in handleStderrException()
/tools/treble/build/
Dtest.py25 suite = loader.discover(start_dir, pattern='*_test.py')
/tools/treble/split/
Dtest.py24 suite = loader.discover(start_dir, pattern='*_test.py')

123