Home
last modified time | relevance | path

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

123

/tools/trebuchet/core/common/src/main/kotlin/trebuchet/queries/
DSliceQueries.kt59 constructor (pid : Int, pattern : Regex) {
60 Exception("Unable to find slice. PID = $pid, Pattern = $pattern")
63 constructor (pid : Int, pattern : Regex, lowerBound : Double, upperBound : Double) {
64 Exception("Unable to find slice. PID = $pid, Pattern = $pattern" +
296 fun ProcessModel.findFirstSlice(pattern : Regex, in ProcessModel()
300 val foundSlice = this.findFirstSliceOrNull(pattern, lowerBound, upperBound) in ProcessModel()
305 throw MissingSliceException(this.id, pattern) in ProcessModel()
307 throw MissingSliceException(this.id, pattern, lowerBound, upperBound) in ProcessModel()
345 fun ProcessModel.findFirstSliceOrNull(pattern : Regex, in ProcessModel()
350 pattern.find(slice.name) != null && in ProcessModel()
[all …]
/tools/test/connectivity/acts/framework/tests/
Dtest_runner_test.py55 pattern = 'test*1'
56 tr = test_runner.TestRunner(self.base_mock_test_config, [(pattern,
67 pattern = 'test_class*'
68 tr = test_runner.TestRunner(self.base_mock_test_config, [(pattern,
80 pattern = 'test_class_?'
81 tr = test_runner.TestRunner(self.base_mock_test_config, [(pattern,
92 pattern = 'test_class_[1357]'
93 tr = test_runner.TestRunner(self.base_mock_test_config, [(pattern,
/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/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/acloud/public/actions/
Dcreate_goldfish_action.py136 def ParseBuildInfo(filename, pattern): argument
156 if pattern in line:
161 def _FetchBuildIdFromFile(cfg, build_target, build_id, pattern, filename): argument
187 return ParseBuildInfo(temp_filename, pattern)
251 pattern = _SYSIMAGE_VERSION_PATTERN.format(branch, build_target)
255 pattern,
/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()
DGCSBucketUtil.java568 public CommandResult remove(String pattern, boolean force) throws IOException { in remove() argument
570 String path = getUriForGcsPath(Paths.get(pattern)); in remove()
595 pattern, in remove()
608 public CommandResult remove(String pattern) throws IOException { in remove() argument
609 return remove(pattern, false); in remove()
DAppVersionFetcher.java82 private static String parseVersionString(String packageInfo, Pattern pattern) { in parseVersionString() argument
90 Matcher matcher = pattern.matcher(lines[0]); in parseVersionString()
/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/graphicsbenchmark/functional_tests/hostside/src/com/android/game/qualification/test/
DMemoryTests.java70 String pattern = "total alloc: "; in testMemoryAllocationLimit() local
73 if (s.contains(pattern)) { in testMemoryAllocationLimit()
79 int totalAllocIndex = p.indexOf(pattern) + pattern.length(); in testMemoryAllocationLimit()
/tools/repohooks/tools/
Dcpplint.py652 def Match(pattern, s): argument
657 if pattern not in _regexp_compile_cache:
658 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
659 return _regexp_compile_cache[pattern].match(s)
662 def ReplaceAll(pattern, rep, s): argument
675 if pattern not in _regexp_compile_cache:
676 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
677 return _regexp_compile_cache[pattern].sub(rep, s)
680 def Search(pattern, s): argument
682 if pattern not in _regexp_compile_cache:
[all …]
/tools/loganalysis/src/com/android/loganalysis/parser/
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()
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()
DLogcatParser.java467 public void addPattern(Pattern pattern, String level, String tag, String category) { in addPattern() argument
469 if (pattern == null) { in addPattern()
470 pattern = Pattern.compile(".*"); in addPattern()
472 mPatternUtil.addPattern(pattern, new ExtrasPattern(level, tag), category); in addPattern()
/tools/test/connectivity/acts/framework/acts/test_utils/coex/
Dbluez_test_utils.py203 def find_adapter(self, pattern=None): argument
212 return self.find_adapter_in_objects(self.get_managed_objects(), pattern)
214 def find_adapter_in_objects(self, objects, pattern=None): argument
229 if not pattern or pattern == adapter["Address"] or \
230 path.endswith(pattern):
/tools/tradefederation/contrib/src/com/android/media/tests/
DCameraStressTest.java287 String pattern = test.mPatternMap.retrieve(capture, line); in parseOutputFile() local
288 if (pattern != null) { in parseOutputFile()
289 if ("loopCount".equals(pattern)) { in parseOutputFile()
292 } else if ("iters".equals(pattern)) { in parseOutputFile()
309 key = pattern; in parseOutputFile()
/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/tradefederation/core/src/com/android/tradefed/device/metric/
DFilePullerDeviceMetricCollector.java140 String pattern, final Map<String, String> currentMetrics) { in pullMetricFile() argument
141 Pattern p = Pattern.compile(pattern); in pullMetricFile()
164 CLog.d("Could not find a device file associated to pattern '%s'.", pattern); in pullMetricFile()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/
DSlices.kt72 for (pattern in SLICE_MAPPERS) { in parseSliceName() method
73 val matchResult = pattern.find(sliceString) in parseSliceName()
/tools/test/connectivity/acts/framework/acts/
Dkeys.py122 def value_to_value(ref_value, pattern): argument
129 target_key_name = pattern % ref_key_name
/tools/tradefederation/contrib/src/com/android/performance/tests/
DHermeticLaunchTest.java386 for (Pattern pattern : activityPatternMap.keySet()) { in analyzeLogCatData()
387 if ((match = matches(pattern, line)) != null) { in analyzeLogCatData()
390 String activityName = activityPatternMap.get(pattern); in analyzeLogCatData()
700 private static Matcher matches(Pattern pattern, String line) { in matches() argument
701 Matcher ret = pattern.matcher(line); in matches()
/tools/tradefederation/core/src/com/android/tradefed/device/contentprovider/
DContentProviderHandler.java271 StringJoiner pattern = new StringJoiner(", "); in parseQueryResultRow() local
273 pattern.add(String.format("(%s=.*)", COLUMNS[i])); in parseQueryResultRow()
276 Pattern p = Pattern.compile(pattern.toString()); in parseQueryResultRow()
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DSandboxInvocationRunner.java69 Pattern pattern = in handleStderrException() local
72 Matcher m = pattern.matcher(line); in handleStderrException()
/tools/loganalysis/tests/src/com/android/loganalysis/parser/
DKernelLogParserTest.java195 for (String pattern : kernelResetPatterns) { in testPatterns()
196 assertEquals(String.format("Message \"%s\" was not matched.", pattern), in testPatterns()
197 KernelLogParser.KERNEL_RESET, patternUtil.checkMessage(pattern)); in testPatterns()

123