Home
last modified time | relevance | path

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

1234

/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/treble/gki/
Drepack_gki_lib.py16 pattern=r'(gki_.*-img-.*\.zip|gki_.*-target_files-.*\.zip|otatools.zip)'
32 pattern=r'(Image|Image.lz4|System\.map|abi_symbollist|vmlinux|vmlinux.symvers)',
38pattern=r'(Image|Image.lz4|System\.map|abi-generated.xml|abi-full-generated.xml|vmlinux|vymlinx.sy…
110 pattern = 'boot-{}*'.format(kernel_version)
117 pattern,
125 pattern,
135 pattern = 'BOOT/kernel-{}*'.format(kernel_version)
144 pattern,
157 pattern,
/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.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)])
/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/core/javatests/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/tradefederation/contrib/tests/src/com/android/build/tests/
DImageStatsTest.java147 Pattern pattern = Pattern.compile("^.+\\.apk$"); in testGetAggregationLabel_regular() local
152 mImageStats.getAggregationLabel(pattern.matcher(fileName), label)); in testGetAggregationLabel_regular()
159 Pattern pattern = Pattern.compile("^/system/(.+?)/.+\\.(.+)$"); in testGetAggregationLabel_capturingGroups() local
161 Matcher m = pattern.matcher(fileName); in testGetAggregationLabel_capturingGroups()
177 Pattern pattern = Pattern.compile("^/system/(.+?)/.+\\.(.+)$"); in testGetAggregationLabel_capturingGroups_partialBackReference() local
179 Matcher m = pattern.matcher(fileName); in testGetAggregationLabel_capturingGroups_partialBackReference()
/tools/netsim/ui/dist/assets/
Dgrid-background.svg3 <pattern id="square" width="10" height="10" patternUnits="userSpaceOnUse" >
5 </pattern>
6 <pattern id="quad" width="100" height="100" patternUnits="userSpaceOnUse" >
8 </pattern>
/tools/netsim/ui/assets/
Dgrid-background.svg3 <pattern id="square" width="10" height="10" patternUnits="userSpaceOnUse" >
5 </pattern>
6 <pattern id="quad" width="100" height="100" patternUnits="userSpaceOnUse" >
8 </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()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/apilevels/
DExtensionSdkJarReader.kt26 var pattern = ".*/(\\d+)/[^/]+/(.*)\\.jar$" in <lambda>() variable
28 pattern = pattern.replace("/", "\\\\") in <lambda>()
30 Regex(pattern) in <lambda>()
DApiToExtensionsMap.kt240 val pattern = in fromXml() constant
242 if (pattern == "*") { in fromXml()
249 val parts = pattern.split(REGEX_DELIMITERS) in fromXml()
256 "duplicate pattern: $pattern" in fromXml()
/tools/metalava/metalava-model/src/test/java/com/android/tools/metalava/model/junit4/
DCustomizableParameterizedParametersProviderTest.kt31 @CustomParameters(1, 2, pattern = "{0}")
58 pattern = customParameters.pattern, in mergeParameters()
67 annotation class CustomParameters(vararg val values: Int, val pattern: String) constant in CustomParameters
/tools/test/connectivity/acts_tests/tests/google/gnss/
DGnssBroadcomConfigurationTest.py36 def _change_file_content(self, pattern, target): argument
69 pattern = f"{key}={src}"
71 self._change_file_content(pattern, target)
161 pattern = f"#\ {key}" if enable else key
163 self._change_file_content(pattern, target)
363 pattern = re.compile(f".*slog\s+:.*")
364 result, _ = gutils.parse_brcm_nmea_log(self.ad, pattern, [])
374 result, _ = gutils.parse_brcm_nmea_log(self.ad, pattern, [])
/tools/test/graphicsbenchmark/functional_tests/hostside/src/com/android/game/qualification/test/
DMemoryTests.java84 String pattern = "total alloc: "; in testMemoryAllocationLimit() local
87 if (s.contains(pattern)) { in testMemoryAllocationLimit()
93 int totalAllocIndex = p.indexOf(pattern) + pattern.length(); in testMemoryAllocationLimit()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterLogSaver.java141 private Stream<Path> getPathStream(final File dir, final Pattern pattern) throws IOException { in getPathStream() argument
147 && pattern.matcher(getRelativePath(path).toString()).matches(), in getPathStream()
152 final Pattern pattern = Pattern.compile(regex); in findFilesRecursively() local
153 try (final Stream<Path> stream = getPathStream(dir, pattern)) { in findFilesRecursively() argument
188 final Pattern pattern = Pattern.compile(regex); in findTestContextFile() local
189 try (Stream<Path> stream = getPathStream(dir, pattern)) { in findTestContextFile() argument
206 Matcher matcher = pattern.matcher(relPath.toString()); in findTestContextFile()
/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/treble/fetcher/
Dfetcher_lib.py214 def fetch_artifacts(client, out_dir, target, pattern, build_id): argument
231 regex=pattern,
269 def fetch_latest_artifacts(client, out_dir, target, pattern, branch): argument
283 fetch_artifacts(client, out_dir, target, pattern, build_id)
/tools/metalava/buildSrc/src/main/kotlin/com/android/tools/metalava/
DMetalavaBuildPlugin.kt158 val transformedPatterns = commandLineIncludePatterns.map { pattern -> in <lambda>() method
160 if (!pattern.endsWith("]") && !pattern.endsWith("*")) { in <lambda>()
161 "$pattern*" in <lambda>()
163 pattern in <lambda>()
/tools/metalava/metalava-model/src/testFixtures/java/com/android/tools/metalava/model/junit4/
DCustomizableParameterizedRunner.kt82 val pattern: String, constant in TestArguments
118 InjectedFrameworkMethod(fakeParametersMethod.method, testArguments.pattern) in <lambda>()
202 private class InjectedFrameworkMethod(method: Method, val pattern: String) : constant
206 @Suppress("UNCHECKED_CAST") return Parameters(name = pattern) as T in getAnnotation()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/cli/common/
DMetalavaCommandTest.kt137 val pattern = in Test print stack trace() constant
146 if (!pattern.toRegex().matchesAt(output, 0)) { in Test print stack trace()
152 $pattern in Test print stack trace()
/tools/tradefederation/contrib/src/com/android/build/tests/
DImageStats.java245 matcher.pattern(), marker, rawLabel); in getAggregationLabel()
280 for (Map.Entry<Pattern, String> pattern : patterns.entrySet()) { in performAggregation()
281 Matcher m = pattern.getKey().matcher(stat.getKey()); in performAggregation()
284 String label = getAggregationLabel(m, pattern.getValue()); in performAggregation()
/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()

1234