Home
last modified time | relevance | path

Searched refs:line (Results 1 – 25 of 27) sorted by relevance

12

/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/
DBinderCollectionHelper.java142 String line; in getNextCounter() local
143 while ((line = reader.readLine()) != null) { in getNextCounter()
144 if (TRACE_FOR_PROCESS_PATTERN.matcher(line).matches()) { in getNextCounter()
147 if (COUNT_PATTERN.matcher(line).matches()) { in getNextCounter()
149 line.substring(line.indexOf(COUNT_PREFIX) + COUNT_PREFIX.length())); in getNextCounter()
158 String line; in parseMetrics() local
159 while ((line = reader.readLine()) != null) { in parseMetrics()
160 if (TRACE_FOR_PROCESS_PATTERN.matcher(line).matches()) { in parseMetrics()
162 line.substring( in parseMetrics()
163 line.indexOf(TRACE_FOR_PROCESS_PREFIX) in parseMetrics()
/platform_testing/libraries/compatibility-common-util/tests/src/com/android/compatibility/common/util/
DReadElfTest.java146 String line; in getDynamicDependencies() local
148 while ((line = buffReader.readLine()) != null && keepGoing) { in getDynamicDependencies()
150 if (line.startsWith("Dynamic section")) { in getDynamicDependencies()
183 String line; in chkDynSymbol() local
185 while ((line = buffReader.readLine()) != null && keepGoing) { in chkDynSymbol()
187 if (line.startsWith("Symbol table '.dynsym'")) { in chkDynSymbol()
243 String line; in getRoStrings() local
245 while ((line = buffReader.readLine()) != null && keepGoing) { in getRoStrings()
247 if (line.startsWith("String dump of section '.rodata':")) { in getRoStrings()
/platform_testing/utils/wifistrengthscanner/src/com/android/test/util/wifistrengthscanner/
DWifiStrengthScannerInstrumentation.java136 String line = dumpsysLines.get(i); in getRssiFromDumpsys() local
137 if (line != null && line.contains(bssid)) { in getRssiFromDumpsys()
138 String[] tokens = line.trim().split("\\s\\s+"); in getRssiFromDumpsys()
152 for (String line : lines) { in getDumpsysWifiLastScanResults()
153 if (line.startsWith("Latest scan results:")) { in getDumpsysWifiLastScanResults()
158 if ("".equals(line.trim())) { in getDumpsysWifiLastScanResults()
162 scanResults.add(line); in getDumpsysWifiLastScanResults()
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/
DThermalHelper.java73 for (String line : output) { in startCollecting()
74 Matcher severityMatcher = SEVERITY_DUMPSYS_PATTERN.matcher(line); in startCollecting()
136 for (String line : lines) { in updateTemperatureMetrics()
137 Matcher temperatureMatcher = TEMPERATURE_DUMPSYS_PATTERN.matcher(line); in updateTemperatureMetrics()
139 Log.v(LOG_TAG, "Matched " + line); in updateTemperatureMetrics()
158 if (line.contains("Current temperatures")) { in updateTemperatureMetrics()
160 } else if (line.trim().startsWith("Current") || line.trim().startsWith("Cached")) { in updateTemperatureMetrics()
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DBackupUtils.java180 String line = in.nextLine(); in assertBackupNotAllowed() local
182 if (line.contains(packageName)) { in assertBackupNotAllowed()
183 String result = line.split(":")[1].trim(); in assertBackupNotAllowed()
204 String line; in assertBackupIsSuccessful() local
205 while ((line = reader.readLine()) != null) { in assertBackupIsSuccessful()
206 if (line.contains(packageName)) { in assertBackupIsSuccessful()
207 String result = line.split(":")[1].trim().toLowerCase(); in assertBackupIsSuccessful()
247 String line; in assertRestoreIsSuccessful() local
248 while ((line = reader.readLine()) != null) { in assertRestoreIsSuccessful()
249 if (line.contains("restoreFinished: 0")) { in assertRestoreIsSuccessful()
DLogcatInspector.java102 String line; in numberOfLogcatStringsFound() local
103 while ((line = logcat.readLine()) != null) { in numberOfLogcatStringsFound()
104 if (line.contains(logcatStrings[stringIndex])) { in numberOfLogcatStringsFound()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DIorapCompilationRule.java183 for (String line : output.split("\n")) { in waitForIorapCompiled()
190 if (line.contains("Compiled Status: Usable compiled trace")) { in waitForIorapCompiled()
192 } else if (line.contains("Compiled Status: ") in waitForIorapCompiled()
193 && line.contains("more traces for compilation")) { in waitForIorapCompiled()
200 prevLine = line; in waitForIorapCompiled()
DDex2oatPressureRule.java157 .map(line -> line.replace("package:", "").trim()) in getInstalledPackages()
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DLogcatCollectorTest.java351 for (String line = reader.readLine(); line != null; line = reader.readLine()) { in testRetrievingLogcat()
352 if (line.matches(message1Regex)) { in testRetrievingLogcat()
355 if (line.matches(message2Regex)) { in testRetrievingLogcat()
358 if (line.matches(message3Regex)) { in testRetrievingLogcat()
421 for (String line = reader.readLine(); line != null; line = reader.readLine()) { in testLogcatTimespan()
423 if (line.matches("^-+\\s+beginning of.*$")) { in testLogcatTimespan()
427 firstLine = line; in testLogcatTimespan()
429 lastLine = line; in testLogcatTimespan()
/platform_testing/libraries/collectors-helper/power/src/com/android/helpers/
DPwrStatsUtilHelper.java120 String line = br.readLine(); in processMetricsFromLogFile() local
122 while ((line = br.readLine()) != null) { in processMetricsFromLogFile()
123 m = r.matcher(line); in processMetricsFromLogFile()
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/
DPinnerHelper.java180 for (String line : lines) { in parseAndUpdatePinnerInfo()
181 List<String> pinnerDetails = Arrays.asList(line.trim().split("\\s+")); in parseAndUpdatePinnerInfo()
191 if (line.contains(PINNED_FILES_TOTAL_SIZE)) { in parseAndUpdatePinnerInfo()
DFreeMemHelper.java175 private static Matcher matches(Pattern pattern, String line) { in matches() argument
176 Matcher ret = pattern.matcher(line); in matches()
/platform_testing/libraries/collectors-helper/system/src/com/android/helpers/
DProcLoadHelper.java134 private static Matcher matches(Pattern pattern, String line) { in matches() argument
135 Matcher ret = pattern.matcher(line); in matches()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DBatteryStatsListener.java214 String line; in resetBatteryStats() local
215 while(null != (line = reader.readLine())) { in resetBatteryStats()
216 if(line.contains(MSG_DUMPSYS_RESET_SUCCESS)) { in resetBatteryStats()
/platform_testing/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/
DAppTransitionTests.java528 String line = null; in parseLaunchTime() local
531 while ((line = bufferedReader.readLine()) != null) { in parseLaunchTime()
532 if (line.startsWith(SUCCESS_MESSAGE)) { in parseLaunchTime()
539 if (line.startsWith(HOT_LAUNCH_MESSAGE) && (!maybeHotLaunch)){ in parseLaunchTime()
544 if (line.startsWith(TOTAL_TIME_MESSAGE)) { in parseLaunchTime()
545 String launchSplit[] = line.split(":"); in parseLaunchTime()
550 if (maybeHotLaunch && line.startsWith(ACTIVITY)) { in parseLaunchTime()
551 String activitySplit[] = line.split(":"); in parseLaunchTime()
/platform_testing/libraries/collectors-helper/lyric/src/com/android/helpers/
DLyricMemProfilerHelper.java208 for (String line : dmabufDumpString.split("\n")) { in processDmabufDump()
210 matcher = METRIC_DMABUF_PSS_PATTERN.matcher(line); in processDmabufDump()
216 matcher = mDmabufProcPattern.matcher(line); in processDmabufDump()
/platform_testing/tests/functional/devicehealthchecks/src/com/android/devicehealthchecks/
DCrashCheckBase.java113 String line = scanner.nextLine(); in checkCrash() local
114 Matcher matcher = ANR_SUBJECT.matcher(line); in checkCrash()
116 errorDetails.append(line); in checkCrash()
/platform_testing/libraries/system-helpers/permission-helper/src/android/system/helpers/
DPermissionHelper.java109 String line; in populateDangerousPermissionGroupInfo() local
112 while ((line = reader.readLine()) != null) { in populateDangerousPermissionGroupInfo()
113 if (line.startsWith("group")) { in populateDangerousPermissionGroupInfo()
120 groupName = line.split(":")[1]; in populateDangerousPermissionGroupInfo()
121 } else if (line.startsWith(" permission:")) { in populateDangerousPermissionGroupInfo()
122 permissions.add(line.split(":")[1]); in populateDangerousPermissionGroupInfo()
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DWearLauncherStrategy.java203 for (String line : lines) { in dumpScreen()
204 Log.d(LOG_TAG, line.trim()); in dumpScreen()
DBaseLauncher3Strategy.java64 for (String line : lines) { in open()
65 Log.d(LOG_TAG, line.trim()); in open()
/platform_testing/utils/crashcollector/src/android/test/crashcollector/
DCollector.java112 private void print(String line) { in print() argument
113 System.err.println(String.format("%s %s", TIME_FORMAT.format(new Date()), line)); in print()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DProcessStatusTracker.java192 String line; in getRunningAppProcesses() local
193 while ((line = stream.readLine()) != null) { in getRunningAppProcesses()
194 Matcher matcher = PS_PATTERN_MATCH.matcher(line); in getRunningAppProcesses()
DAuptTestRunner.java458 for (String line : compactMeminfo.split("\\r?\\n")) {
459 if (line.contains("proc,fore")) {
460 String proc = line.split(",")[2];
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DDex2oatPressureRuleTest.java363 line -> in testCompilationCommandCompiles()
364 line.contains("dex2oat") in testCompilationCommandCompiles()
365 && line.contains(packageName) in testCompilationCommandCompiles()
366 && line.contains( in testCompilationCommandCompiles()
/platform_testing/emu_test/
Drun_android_bridge_test.cmd6 REM It takes 1 command line argument.

12