/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/test/connectivity/acts/framework/tests/ |
D | test_runner_test.py | 55 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/ |
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/acloud/public/actions/ |
D | create_goldfish_action.py | 136 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/ |
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()
|
D | AppVersionFetcher.java | 82 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/ |
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/test/graphicsbenchmark/functional_tests/hostside/src/com/android/game/qualification/test/ |
D | MemoryTests.java | 70 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/ |
D | cpplint.py | 652 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/ |
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 | 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()
|
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()
|
/tools/test/connectivity/acts/framework/acts/test_utils/coex/ |
D | bluez_test_utils.py | 203 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/ |
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/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/device/metric/ |
D | FilePullerDeviceMetricCollector.java | 140 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/ |
D | Slices.kt | 72 for (pattern in SLICE_MAPPERS) { in parseSliceName() method 73 val matchResult = pattern.find(sliceString) in parseSliceName()
|
/tools/test/connectivity/acts/framework/acts/ |
D | keys.py | 122 def value_to_value(ref_value, pattern): argument 129 target_key_name = pattern % ref_key_name
|
/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/core/src/com/android/tradefed/device/contentprovider/ |
D | ContentProviderHandler.java | 271 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/ |
D | SandboxInvocationRunner.java | 69 Pattern pattern = in handleStderrException() local 72 Matcher m = pattern.matcher(line); in handleStderrException()
|
/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()
|