Home
last modified time | relevance | path

Searched refs:matcher (Results 1 – 25 of 27) 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.java192 Matcher matcher = in processMemInfo() local
193 METRIC_MEMINFO_PATTERN.matcher( in processMemInfo()
194 REMOVE_CR_PATTERN.matcher(memInfoString).replaceAll("")); in processMemInfo()
195 if (matcher.find()) { in processMemInfo()
196 nativeHeap = Integer.parseInt(matcher.group(1)); in processMemInfo()
197 totalPss = Integer.parseInt(matcher.group(2)); in processMemInfo()
206 Matcher matcher; in processDmabufDump() local
210 matcher = METRIC_DMABUF_PSS_PATTERN.matcher(line); in processDmabufDump()
211 if (matcher.find()) { in processDmabufDump()
212 dmabuf = Integer.parseInt(matcher.group(2)); in processDmabufDump()
[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/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/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/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/collectors-helper/jank/src/com/android/helpers/
DJankCollectionHelper.java175 Matcher matcher = mPattern.matcher(lines); in parse() local
176 if (matcher.matches()) { 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()
DSfStatsCollectionHelper.java181 Matcher keyValueMatcher = KEY_VALUE_PATTERN.matcher(lines[j].trim()); in getStatPairs()
205 Matcher histogramMatcher = HISTOGRAM_PATTERN.matcher(block); in getHistogramPairs()
/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/libraries/health/rules/src/android/platform/test/rule/
DRemoveAppFromStackRule.java63 final Matcher appActivityMatcher = mAppActivityRecordPattern.matcher( in starting()
DFinishActivitiesWithoutProcessKillRule.java121 .matcher(executeShellCommand("dumpsys activity activities")); in getAppActivityMatcher()
/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/tests/functional/devicehealthtests/src/com/android/devicehealth/tests/
DKnownFailures.java69 Matcher m = k.failurePattern.matcher(dropboxSnippet); in findMatchedKnownFailure()
/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()
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/
DThermalHelper.java74 Matcher severityMatcher = SEVERITY_DUMPSYS_PATTERN.matcher(line); in startCollecting()
137 Matcher temperatureMatcher = TEMPERATURE_DUMPSYS_PATTERN.matcher(line); in updateTemperatureMetrics()
/platform_testing/libraries/collectors-helper/system/src/com/android/helpers/
DProcLoadHelper.java135 Matcher ret = pattern.matcher(line); in matches()
DTimeInStateHelper.java134 Matcher m = TIME_IN_STATE_PATTERN.matcher(timeInStateData); in readFreqStats()
/platform_testing/libraries/automotive-helpers/hardkeys-app-helper/src/android/platform/helpers/
DVehicleHardKeysHelperImpl.java177 Matcher m = p.matcher(res); in getCurrentVolumeLevel()
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/
DLongevityClassRunner.java176 .map(f -> Pattern.compile(f).matcher(name)) in isIgnored()
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/
DHelperManager.java225 && regex.matcher(className).matches()) { in getAll()
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DScheduledRunCollectionListenerTest.java210 Matcher m = p.matcher(lines.get(i)); in testRun()

12