Home
last modified time | relevance | path

Searched refs:matcher (Results 1 – 25 of 45) sorted by relevance

12

/platform_testing/libraries/collectors-helper/lyric/src/com/android/helpers/
DLyricCpuUtilizationHelper.java94 Matcher matcher = CPU_USAGE_PATTERN.matcher(output); in processOutput() local
95 while (matcher.find()) { in processOutput()
96 metrics.putAll(processMatch(matcher)); in processOutput()
101 private static Map<String, Double> processMatch(Matcher matcher) { in processMatch() argument
103 String node = matcher.group(1).replace(":", "-"); in processMatch()
106 Double.parseDouble(matcher.group(2))); in processMatch()
107 metrics.put(String.format(METRIC_KEY, node, "system_time"), parseTime(matcher.group(3))); in processMatch()
109 String.format(METRIC_KEY, node, "system_time_max"), parseTime(matcher.group(4))); in processMatch()
111 String.format(METRIC_KEY, node, "system_time_min"), parseTime(matcher.group(5))); in processMatch()
112 metrics.put(String.format(METRIC_KEY, node, "user_time"), parseTime(matcher.group(6))); in processMatch()
[all …]
DLyricMemProfilerHelper.java273 Matcher matcher = in processMemInfo() local
274 METRIC_MEMINFO_PATTERN.matcher( in processMemInfo()
275 REMOVE_CR_PATTERN.matcher(memInfoString).replaceAll("")); in processMemInfo()
276 if (matcher.find()) { in processMemInfo()
277 nativeHeap = Integer.parseInt(matcher.group(1)); in processMemInfo()
278 totalPss = Integer.parseInt(matcher.group(2)); in processMemInfo()
290 Matcher matcher; in processDmabufDump() local
295 matcher = procPatternList[i].matcher(line); in processDmabufDump()
296 if (matcher.find()) { in processDmabufDump()
304 matcher = METRIC_DMABUF_PSS_PATTERN.matcher(line); in processDmabufDump()
[all …]
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/
DMSSIMMatcherTest.kt37 val matcher = MSSIMMatcher() in performDiff_sameBitmaps() constant
38 val result = matcher.calculateSSIM( in performDiff_sameBitmaps()
53 val matcher = MSSIMMatcher() in performDiff_noPixelsCompared() constant
54 val result = matcher.calculateSSIM( in performDiff_noPixelsCompared()
77 val matcher = MSSIMMatcher() in performDiff_sameRegion() constant
78 val result = matcher.calculateSSIM( in performDiff_sameRegion()
93 val matcher = MSSIMMatcher() in performDiff_checkedAgainstUnchecked() constant
94 val result = matcher.calculateSSIM( in performDiff_checkedAgainstUnchecked()
108 val matcher = MSSIMMatcher() in performDiff_differentBorders() constant
109 val result = matcher.calculateSSIM( in performDiff_differentBorders()
[all …]
DPixelPerfectMatcherTest.kt37 val matcher = PixelPerfectMatcher() in performDiff_sameBitmaps() constant
38 val result = matcher.compareBitmaps( in performDiff_sameBitmaps()
51 val matcher = PixelPerfectMatcher() in performDiff_sameSize_differentBorders() constant
52 val result = matcher.compareBitmaps( in performDiff_sameSize_differentBorders()
65 val matcher = PixelPerfectMatcher() in performDiff_sameSize_differentBorders_partialCompare() constant
66 val result = matcher.compareBitmaps( in performDiff_sameSize_differentBorders_partialCompare()
79 val matcher = PixelPerfectMatcher() in performDiff_sameSize_partialCompare_checkDiffImage() constant
81 val result = matcher.compareBitmaps( in performDiff_sameSize_partialCompare_checkDiffImage()
DScreenshotTestRuleTest.kt74 .assertAgainstGolden(rule, goldenIdentifier, matcher = PixelPerfectMatcher()) in goldenIdentifierResolver()
95 .assertAgainstGolden(customizedRule, goldenIdentifier, matcher = PixelPerfectMatcher()) in goldenIdentifierResolver()
124 rule, goldenIdentifier, matcher = MSSIMMatcher(), in goldenIdentifierResolver()
143 val matcher = MSSIMMatcher() in goldenIdentifierResolver() constant
150 rule, goldenIdentifier, matcher, regions in goldenIdentifierResolver()
216 .assertAgainstGolden(rule, goldenIdentifier, matcher = PixelPerfectMatcher()) in goldenIdentifierResolver()
/platform_testing/libraries/system-helpers/user-helper/src/android/system/helpers/
DUserHelper.java66 Matcher matcher = pattern.matcher(cmdOut); in createSecondaryUser() local
68 if (matcher.find()) { in createSecondaryUser()
69 userId = Integer.parseInt(matcher.group(1)); in createSecondaryUser()
83 Matcher matcher = USERS_REGEX.matcher(cmdOut); in getSecondaryUserId() local
85 if (matcher.find()) { in getSecondaryUserId()
86 userId = Integer.parseInt(matcher.group(1)); // 1 = id 2 = flag in getSecondaryUserId()
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/
DRegexUtils.java53 Matcher matcher = null; in assertFind() local
57 matcher = in assertFind()
59 .matcher(timedInput); in assertFind()
61 matcher = Pattern.compile(pattern).matcher(timedInput); in assertFind()
66 boolean found = matcher.find(); in assertFind()
75 String substring = input.substring(matcher.start(), matcher.end()); in assertFind()
79 matcher.start(), in assertFind()
80 matcher.end(), in assertFind()
DHostsideMainlineModuleDetector.java55 Matcher matcher = Pattern.compile("Play managed modules are: <(.*?)>").matcher(logcat); in getPlayManagedModules() local
56 if (matcher.find()) { in getPlayManagedModules()
57 playManagedModules = ImmutableSet.copyOf(matcher.group(1).split(",")); in getPlayManagedModules()
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/
DBatteryUsageStatsHelperTest.java73 .matcher(entry.getKey()) in testBatteryUsageStatsMetrics()
78 .matcher(entry.getKey()) in testBatteryUsageStatsMetrics()
83 .matcher(entry.getKey()) in testBatteryUsageStatsMetrics()
87 || Pattern.compile("duration-by.*").matcher(entry.getKey()).matches(); in testBatteryUsageStatsMetrics()
90 || Pattern.compile("time-in-fg.*").matcher(entry.getKey()).matches(); in testBatteryUsageStatsMetrics()
93 || Pattern.compile("time-in-bg.*").matcher(entry.getKey()).matches(); in testBatteryUsageStatsMetrics()
124 if (total.matcher(entry.getKey()).matches()) { in testTotalConsumptionIsSumOfPerPackageConsumption()
126 } else if (partial.matcher(entry.getKey()).matches()) { in testTotalConsumptionIsSumOfPerPackageConsumption()
150 if (total.matcher(entry.getKey()).matches()) { in testTotalDurationIsSumOfPerPackageDurations()
152 } else if (partial.matcher(entry.getKey()).matches()) { in testTotalDurationIsSumOfPerPackageDurations()
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/matchers/
DAlmostPerfectMatcherTest.kt27 val matcher = AlmostPerfectMatcher() constant
40 val result = matcher.compareBitmaps( in diffColor_exactMatch()
62 val result = matcher.compareBitmaps( in diffColor_almostMatchLowRed()
84 val result = matcher.compareBitmaps( in diffColor_almostMatchHighRed()
106 val result = matcher.compareBitmaps( in diffColor_notMatch()
122 val matcher = PixelPerfectMatcher() in performDiff_sameBitmaps() constant
123 val result = matcher.compareBitmaps( in performDiff_sameBitmaps()
135 val matcher = PixelPerfectMatcher() in performDiff_sameSize_partialCompare_checkDiffImage() constant
137 val result = matcher.compareBitmaps( in performDiff_sameSize_partialCompare_checkDiffImage()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DScreenshotTestRule.kt132 matcher: BitmapMatcher in assertBitmapAgainstGolden()
137 matcher = matcher, in assertBitmapAgainstGolden()
165 matcher: BitmapMatcher, in assertBitmapAgainstGolden()
204 val comparisonResult = matcher.compareBitmaps( in assertBitmapAgainstGolden()
426 private var matcher: BitmapMatcher = PixelPerfectMatcher() variable in platform.test.screenshot.ScreenshotRuleAsserter
434 rule.assertBitmapAgainstGolden(screenShotter(), goldenId, matcher) in assertGoldenImage()
444 rule.assertBitmapAgainstGolden(screenShotter(), goldenId, matcher, areas) in assertGoldenImage()
453 fun withMatcher(matcher: BitmapMatcher): Builder { in withMatcher()
454 asserter.matcher = matcher in withMatcher()
505 matcher: BitmapMatcher = MSSIMMatcher(), in assertAgainstGolden()
[all …]
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DBackupUtils.java278 Matcher matcher = BACKUP_MANAGER_CURRENTLY_ENABLE_STATUS_PATTERN.matcher(output.trim()); in enableBackup() local
279 if (matcher.find()) { in enableBackup()
280 previouslyEnabled = "enabled".equals(matcher.group(1)); in enableBackup()
390 Matcher matcher = pattern.matcher(output); in setBackupTransportForUser() local
391 if (matcher.find()) { in setBackupTransportForUser()
392 return matcher.group(1); in setBackupTransportForUser()
DCrashUtils.java153 .filter(p -> p.matcher(crashAbortMessage).find()) in matchSecurityCrashes()
160 .filter(p -> p.matcher(crashAbortMessage).find()) in matchSecurityCrashes()
217 if (p.matcher(input).matches()) { in matchesAny()
226 Matcher crashBlobFinder = sCrashBlobPattern.matcher(input); in addAllCrashes()
238 Matcher pidtidNameMatcher = sPidtidNamePattern.matcher(crashStr); in addAllCrashes()
252 Matcher faultLineMatcher = sFaultLinePattern.matcher(crashStr); in addAllCrashes()
264 Matcher abortMessageMatcher = sAbortMessagePattern.matcher(crashStr); in addAllCrashes()
282 Matcher backtraceNoteMatcher = sBacktraceNotePattern.matcher(nextLine); in addAllCrashes()
288 sBacktraceFrameWithBuildIdPattern.matcher(nextLine); in addAllCrashes()
290 sBacktraceFrameWithoutBuildIdPattern.matcher(nextLine); in addAllCrashes()
[all …]
DBusinessLogicExecutor.java113 Matcher matcher = pattern.matcher(arg); in formatArg() local
114 if (matcher.find()) { in formatArg()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/rules/
DWMFlickerServiceRuleForTestSpec.kt64 val matcher = pattern.matcher(methodName) in <lambda>() constant
65 return if (matcher.find()) { in <lambda>()
66 matcher.group(1) in <lambda>()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DProcessStatusTracker.java194 Matcher matcher = PS_PATTERN_MATCH.matcher(line); in getRunningAppProcesses() local
196 if (matcher.matches() && matcher.group(PS_PATTERN_PKG_GROUP).equals(proc)) { in getRunningAppProcesses()
197 int pid = Integer.valueOf(matcher.group(PS_PATTERN_PID_GROUP)); in getRunningAppProcesses()
/platform_testing/libraries/system-helpers/activity-helper/src/android/system/helpers/
DActivityHelper.java78 Matcher matcher = TASK_REGEX.matcher(CommandsHelper.execute("am stack list")); in getTaskIdForActivity() local
79 if (matcher.find()) { in getTaskIdForActivity()
80 taskId = Integer.parseInt(matcher.group(1)); in getTaskIdForActivity()
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/
DJankCollectionHelper.java175 Matcher matcher = mPattern.matcher(lines); in parse() local
176 if (matcher.find()) { in parse()
177 return Double.valueOf(matcher.group(mGroupIndex)); in parse()
324 Matcher header = Pattern.compile(getHeaderMatcher("")).matcher(output); in parseGfxInfoMetrics()
DBinderCollectionHelper.java144 if (TRACE_FOR_PROCESS_PATTERN.matcher(line).matches()) { in getNextCounter()
147 if (COUNT_PATTERN.matcher(line).matches()) { in getNextCounter()
160 if (TRACE_FOR_PROCESS_PATTERN.matcher(line).matches()) { in parseMetrics()
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/
DFreeMemHelper.java100 Matcher memAvailableMatcher = memAvailablePattern.matcher(memInfo); in getMetrics()
101 Matcher memFreeMatcher = memFreePattern.matcher(memInfo); in getMetrics()
143 Matcher memTotalMatcher = memTotalPattern.matcher(processInfoStr); in getMetrics()
176 Matcher ret = pattern.matcher(line); in matches()
/platform_testing/tests/functional/devicehealthchecks/src/com/android/devicehealthchecks/
DCrashCheckBase.java114 Matcher matcher = ANR_SUBJECT.matcher(line); in checkCrash() local
115 if (matcher.find()) { in checkCrash()
DKnownFailures.java65 Matcher m = k.failurePattern.matcher(dropboxSnippet); in findMatchedKnownFailure()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DRemoveAppFromStackRule.java63 final Matcher appActivityMatcher = mAppActivityRecordPattern.matcher( in starting()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/
DCommonUtils.java358 Matcher matcher = userRegex.matcher(getCurrentUser); in getCurrentUserId() local
359 while (matcher.find()) { in getCurrentUserId()
360 return Integer.parseInt(matcher.group(1)); in getCurrentUserId()
/platform_testing/libraries/collectors-helper/power/src/com/android/helpers/
DPwrStatsUtilHelper.java68 Matcher m = pid_pattern.matcher(output); in startCollecting()
123 m = r.matcher(line); in processMetricsFromLogFile()

12