/tools/trebuchet/core/common/src/main/kotlin/trebuchet/queries/ |
D | SliceQueries.kt | 59 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/repohooks/tools/ |
D | cpplint.py | 658 def Match(pattern, s): argument 663 if pattern not in _regexp_compile_cache: 664 _regexp_compile_cache[pattern] = sre_compile.compile(pattern) 665 return _regexp_compile_cache[pattern].match(s) 668 def ReplaceAll(pattern, rep, s): argument 681 if pattern not in _regexp_compile_cache: 682 _regexp_compile_cache[pattern] = sre_compile.compile(pattern) 683 return _regexp_compile_cache[pattern].sub(rep, s) 686 def Search(pattern, s): argument 688 if pattern not in _regexp_compile_cache: [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/ |
D | ClusterLogSaverTest.java | 115 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/apksig/src/main/java/com/android/apksig/ |
D | Hints.java | 52 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/ |
D | test_runner_test.py | 52 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)])
|
/tools/loganalysis/src/com/android/loganalysis/util/ |
D | LogPatternUtil.java | 48 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()
|
D | RegexTrie.java | 70 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/ |
D | ImageStatsTest.java | 81 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/cluster/ |
D | ClusterLogSaver.java | 132 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()
|
D | ClusterHostUtil.java | 118 String pattern = m.group(1); in getRunTarget() local 121 switch (pattern) { in getRunTarget() 167 pattern, runTargetFormat)); in getRunTarget()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | RegexTrie.java | 70 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()
|
D | GCSBucketUtil.java | 568 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()
|
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/ |
D | ApiGenerator.java | 101 String pattern = arg; in main() local 102 if (!pattern.endsWith(File.separator)) { in main() 103 pattern += File.separator; in main() 105 … pattern += "platforms" + File.separator + "android-%" + File.separator + "android.jar"; in main() 106 patterns.add(pattern); in main()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | CameraStressTest.java | 287 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/test/graphicsbenchmark/functional_tests/hostside/src/com/android/game/qualification/test/ |
D | MemoryTests.java | 86 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/loganalysis/src/com/android/loganalysis/parser/ |
D | KernelLogParser.java | 248 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()
|
D | LogcatParser.java | 467 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()
|
D | AbstractSectionParser.java | 47 protected void addSectionParser(IParser parser, String pattern) { in addSectionParser() argument 51 if (pattern == null) { in addSectionParser() 54 mSectionTrie.put(parser, pattern); in addSectionParser()
|
/tools/tradefederation/contrib/src/com/android/performance/tests/ |
D | HermeticLaunchTest.java | 386 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/contrib/src/com/android/build/tests/ |
D | ImageStats.java | 233 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/testtype/suite/ |
D | SuiteModuleLoader.java | 424 File directory, String suitePrefix, String pattern) { in getModuleNamesMatching() argument 427 patterns.add(pattern); in getModuleNamesMatching() 615 Pattern pattern = Pattern.compile("\\{(.*)\\}(.*)"); in parseArgs() local 616 Matcher match = pattern.matcher(optionName); in parseArgs()
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | FilePullerDeviceMetricCollector.java | 144 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/src/com/android/tradefed/command/ |
D | Console.java | 572 String pattern = args.get(2).get(0); in addDefaultCommands() 573 mScheduler.displayCommandsInfo(new PrintWriter(System.out, true), pattern); in addDefaultCommands() 672 String pattern = args.get(2).get(0); in addDefaultCommands() 673 mScheduler.dumpCommandsXml(new PrintWriter(System.out, true), pattern); in addDefaultCommands()
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/contentprovider/ |
D | ContentProviderHandler.java | 301 StringJoiner pattern = new StringJoiner(", "); in parseQueryResultRow() local 303 pattern.add(String.format("(%s=.*)", COLUMNS[i])); in parseQueryResultRow() 306 Pattern p = Pattern.compile(pattern.toString()); in parseQueryResultRow()
|
/tools/loganalysis/tests/src/com/android/loganalysis/parser/ |
D | KernelLogParserTest.java | 195 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()
|