Home
last modified time | relevance | path

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

123

/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
39 matcher.calculateSSIM( in performDiff_sameBitmaps()
57 val matcher = MSSIMMatcher() in performDiff_noPixelsCompared() constant
59 matcher.calculateSSIM( in performDiff_noPixelsCompared()
85 val matcher = MSSIMMatcher() in performDiff_sameRegion() constant
87 matcher.calculateSSIM( in performDiff_sameRegion()
105 val matcher = MSSIMMatcher() in performDiff_checkedAgainstUnchecked() constant
107 matcher.calculateSSIM( in performDiff_checkedAgainstUnchecked()
124 val matcher = MSSIMMatcher() in performDiff_differentBorders() constant
126 matcher.calculateSSIM( in performDiff_differentBorders()
[all …]
DPixelPerfectMatcherTest.kt37 val matcher = PixelPerfectMatcher() in performDiff_sameBitmaps() constant
39 matcher.compareBitmaps( in performDiff_sameBitmaps()
54 val matcher = PixelPerfectMatcher() in performDiff_sameSize_partialCompare_topLeftOutOfBoundaries_diff() constant
56 matcher.compareBitmaps( in performDiff_sameSize_partialCompare_topLeftOutOfBoundaries_diff()
72 val matcher = PixelPerfectMatcher() in performDiff_sameSize_partialCompare_topLeft_diffBoundaries() constant
74 matcher.compareBitmaps( in performDiff_sameSize_partialCompare_topLeft_diffBoundaries()
90 val matcher = PixelPerfectMatcher() in performDiff_sameSize_partialCompare_bottomRight() constant
92 matcher.compareBitmaps( in performDiff_sameSize_partialCompare_bottomRight()
108 val matcher = PixelPerfectMatcher() in performDiff_sameSize_partialCompare_bottomRightOutOfBoundaries_diff() constant
110 matcher.compareBitmaps( in performDiff_sameSize_partialCompare_bottomRightOutOfBoundaries_diff()
[all …]
/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/sts-common-util/util/src/com/android/sts/common/util/
DKernelVersion.java43 Matcher matcher = kernelReleasePattern.matcher(versionString); in parse() local
44 if (matcher.find()) { in parse()
46 Integer.parseInt(matcher.group("version")), in parse()
47 Integer.parseInt(matcher.group("patchLevel")), in parse()
48 Integer.parseInt(matcher.group("subLevel"))); in parse()
/platform_testing/libraries/motion/compose/src/platform/test/motion/compose/
DMotionTestValues.kt39 matcher: SemanticsMatcher = hasMotionTestValue(motionTestValueKey), in hasMotionTestValue()
41 ): T = onNode(matcher, useUnmergedTree).fetchSemanticsNode().get(motionTestValueKey) in hasMotionTestValue()
53 matcher: SemanticsMatcher = hasMotionTestValue(motionTestValueKey), in hasMotionTestValue()
57 matcher, in hasMotionTestValue()
72 matcher: SemanticsMatcher = hasMotionTestValue(motionTestValueKey), in feature()
76 matcher, in feature()
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/
DBatteryUsageStatsHelperTest.java75 .matcher(entry.getKey()) in testBatteryUsageStatsMetrics()
80 .matcher(entry.getKey()) in testBatteryUsageStatsMetrics()
85 .matcher(entry.getKey()) in testBatteryUsageStatsMetrics()
89 || Pattern.compile("duration-by.*").matcher(entry.getKey()).matches(); in testBatteryUsageStatsMetrics()
92 || Pattern.compile("time-in-fg.*").matcher(entry.getKey()).matches(); in testBatteryUsageStatsMetrics()
95 || Pattern.compile("time-in-bg.*").matcher(entry.getKey()).matches(); in testBatteryUsageStatsMetrics()
126 if (total.matcher(entry.getKey()).matches()) { in testTotalConsumptionIsSumOfPerPackageConsumption()
128 } else if (partial.matcher(entry.getKey()).matches()) { in testTotalConsumptionIsSumOfPerPackageConsumption()
152 if (total.matcher(entry.getKey()).matches()) { in testTotalDurationIsSumOfPerPackageDurations()
154 } else if (partial.matcher(entry.getKey()).matches()) { in testTotalDurationIsSumOfPerPackageDurations()
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/matchers/
DAlmostPerfectMatcherTest.kt27 private val matcher = AlmostPerfectMatcher() constant in platform.test.screenshot.matchers.AlmostPerfectMatcherTest
35 matcher.compareBitmaps( in diffColor_exactMatch()
53 matcher.compareBitmaps( in diffColor_almostMatchLowRed()
71 matcher.compareBitmaps( in diffColor_almostMatchHighRed()
89 matcher.compareBitmaps( in diffColor_notMatch()
106 val matcher = PixelPerfectMatcher() in performDiff_sameBitmaps() constant
108 matcher.compareBitmaps( in performDiff_sameBitmaps()
122 val matcher = PixelPerfectMatcher() in performDiff_sameSize_partialCompare_checkDiffImage() constant
126 matcher.compareBitmaps( in performDiff_sameSize_partialCompare_checkDiffImage()
DHumanEyeMatcherTest.kt13 private val matcher = HumanEyeMatcher() in <lambda>() constant
21 matcher.compareBitmaps( in <lambda>()
38 matcher.compareBitmaps( in <lambda>()
55 matcher.compareBitmaps( in <lambda>()
72 matcher.compareBitmaps( in <lambda>()
89 matcher.compareBitmaps( in <lambda>()
105 matcher.compareBitmaps( in <lambda>()
133 matcher.compareBitmaps( in <lambda>()
164 matcher.compareBitmaps( in <lambda>()
183 matcher.compareBitmaps( in <lambda>()
[all …]
/platform_testing/libraries/collectors-helper/adservices/src/com/android/helpers/
DSelectAdsLatencyHelper.java63 Matcher matcher = latencyMetricPattern.matcher(line); in processInput() local
64 while (matcher.find()) { in processInput()
71 String metric = matcher.group(1); in processInput()
72 long latency = Long.parseLong(matcher.group(2)); in processInput()
DMeasurementLatencyHelper.java61 Matcher matcher = latencyMetricPattern.matcher(line); in processInput() local
62 while (matcher.find()) { in processInput()
63 String metric = matcher.group(1); in processInput()
64 long latency = Long.parseLong(matcher.group(2)); in processInput()
DTopicsLatencyHelper.java67 Matcher matcher = latencyMetricPattern.matcher(line); in processInput() local
68 while (matcher.find()) { in processInput()
73 String metric = matcher.group(1); in processInput()
74 long latency = Long.parseLong(matcher.group(2)); in processInput()
DJSScriptEngineLatencyHelper.java77 Matcher matcher = latencyMetricPattern.matcher(line); in processInput() local
78 while (matcher.find()) { in processInput()
83 String metric = matcher.group(1); in processInput()
84 long latency = Long.parseLong(matcher.group(2)); in processInput()
/platform_testing/libraries/flicker/src/android/tools/flicker/assertors/assertions/
DHasAtMostOneWindowMatching.kt33 val matcher = component.build(scenarioInstance) in <lambda>() constant
35 it.wmState.windowStates.count { window -> matcher.windowMatchesAnyOf(window) } in <lambda>()
36 require(windowCount <= 1) { "Matched more than 1 $matcher" } in <lambda>()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DScreenshotTestRule.kt133 matcher: BitmapMatcher in <lambda>()
139 matcher = matcher, in <lambda>()
168 matcher: BitmapMatcher, in <lambda>()
195 matcher.compareBitmaps( in <lambda>()
226 matcher.compareBitmaps( in <lambda>()
266 .withMatcher(config.matcher) in <lambda>()
316 private var matcher: BitmapMatcher = PixelPerfectMatcher() variable in platform.test.screenshot.ScreenshotRuleAsserter
343 rule.assertBitmapAgainstGolden(actual, goldenId, matcher) in assertGoldenImage()
356 rule.assertBitmapAgainstGolden(actual, goldenId, matcher, areas) in assertGoldenImage()
383 fun withMatcher(matcher: BitmapMatcher): Builder = apply { asserter.matcher = matcher } in <lambda>()
[all …]
DDialogScreenshotTest.kt29 matcher: BitmapMatcher, in <lambda>()
65 matcher,
DBitmapDiffer.kt49 matcher: BitmapMatcher,
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DCrashUtils.java156 .filter(p -> p.matcher(crashAbortMessage).find()) in matchSecurityCrashes()
163 .filter(p -> p.matcher(crashAbortMessage).find()) in matchSecurityCrashes()
220 if (p.matcher(input).matches()) { in matchesAny()
229 Matcher crashBlobFinder = sCrashBlobPattern.matcher(input); in addAllCrashes()
241 Matcher pidtidNameMatcher = sPidtidNamePattern.matcher(crashStr); in addAllCrashes()
255 Matcher faultLineMatcher = sFaultLinePattern.matcher(crashStr); in addAllCrashes()
267 Matcher abortMessageMatcher = sAbortMessagePattern.matcher(crashStr); in addAllCrashes()
285 Matcher backtraceNoteMatcher = sBacktraceNotePattern.matcher(nextLine); in addAllCrashes()
291 sBacktraceFrameWithBuildIdPattern.matcher(nextLine); in addAllCrashes()
293 sBacktraceFrameWithoutBuildIdPattern.matcher(nextLine); in addAllCrashes()
[all …]
DBackupUtils.java289 Matcher matcher = BACKUP_MANAGER_CURRENTLY_ENABLE_STATUS_PATTERN.matcher(output.trim()); in enableBackup() local
290 if (matcher.find()) { in enableBackup()
291 previouslyEnabled = "enabled".equals(matcher.group(1)); in enableBackup()
433 Matcher matcher = pattern.matcher(output); in setBackupTransportForUser() local
434 if (matcher.find()) { in setBackupTransportForUser()
435 return matcher.group(1); in setBackupTransportForUser()
/platform_testing/libraries/flicker/src/android/tools/flicker/config/appclose/
DComponents.kt54 return closingAppMatchers.reduce<IComponentMatcher, IComponentMatcher> { acc, matcher -> in <lambda>() method
55 acc.or(matcher) in <lambda>()
/platform_testing/libraries/flicker/src/android/tools/flicker/config/applaunch/
DComponents.kt54 return openingAppMatchers.reduce<IComponentMatcher, IComponentMatcher> { acc, matcher -> in <lambda>() method
55 acc.or(matcher) in <lambda>()
/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()

123