/platform_testing/utils/shell-as/ |
D | context.cpp | 33 bool ParseIdFromProcStatusLine(char* line, uid_t* id) { in ParseIdFromProcStatusLine() argument 39 if (!SplitIdsAndSkip(line, "\t\n ", /*num_to_skip=*/1, &ids) || in ParseIdFromProcStatusLine() 47 bool ParseGroupsFromProcStatusLine(char* line, std::vector<gid_t>* ids) { in ParseGroupsFromProcStatusLine() argument 51 return SplitIdsAndSkip(line, "\t\n ", /*num_to_skip=*/1, ids); in ParseGroupsFromProcStatusLine() 68 char* line = nullptr; in ParseProcStatusFile() local 69 if (getline(&line, &line_length, status_file) < 0) { in ParseProcStatusFile() 70 free(line); in ParseProcStatusFile() 73 if (strncmp("Uid:", line, 4) == 0) { in ParseProcStatusFile() 74 parsed_user = ParseIdFromProcStatusLine(line, real_user_id); in ParseProcStatusFile() 75 } else if (strncmp("Gid:", line, 4) == 0) { in ParseProcStatusFile() [all …]
|
D | string-utils.cpp | 49 bool SplitIdsAndSkip(char* line, const char* separators, int num_to_skip, in SplitIdsAndSkip() argument 51 if (line == nullptr) { in SplitIdsAndSkip() 56 for (char* id_string = strtok(line, separators); id_string != nullptr; in SplitIdsAndSkip()
|
D | command-line.cpp | 86 bool ParseGroups(char* line, std::vector<gid_t>* ids) { in ParseGroups() argument 89 if (line == nullptr) { in ParseGroups() 92 return SplitIdsAndSkip(line, ",", /*num_to_skip=*/0, ids); in ParseGroups()
|
D | string-utils.h | 45 bool SplitIdsAndSkip(char* line, const char* separators, int num_to_skip,
|
/platform_testing/libraries/collectors-helper/system/src/com/android/helpers/ |
D | BugReportDurationHelper.java | 175 for (String line : bugReportDurationLines.dumpstateLines) { in getMetrics() 176 String dumpstateSection = parseDumpstateSection(line); in getMetrics() 177 double duration = parseDecimalDuration(line); in getMetrics() 180 Log.e(TAG, "Dumpstate section name or duration could not be parsed from: " + line); in getMetrics() 193 for (String line : bugReportDurationLines.dumpsysLines) { in getMetrics() 194 String dumpsysSection = parseDumpsysSection(line); in getMetrics() 195 double duration = parseDecimalDuration(line); in getMetrics() 198 Log.e(TAG, "Dumpstate section name or duration could not be parsed from: " + line); in getMetrics() 310 String line; in extractAndFilterBugReport() local 311 while ((line = br.readLine()) != null) { in extractAndFilterBugReport() [all …]
|
D | TimingHelper.java | 76 String line; in getTimingLogs() local 77 while ((line = br.readLine()) != null) { in getTimingLogs() 80 if (line.contains(FOR_TIMING_COLLECTOR_FILTER)) { in getTimingLogs() 81 lines.add(line); in getTimingLogs()
|
D | ThermalThrottlingHelper.java | 100 for (String line : lines) { in isThrottlingEnabled() 102 if (line.contains("EmulTemp")) { in isThrottlingEnabled()
|
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/ |
D | BinderCollectionHelper.java | 142 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/ |
D | ReadElfTest.java | 146 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/tests/automotive/mobly_tests/dialer/ |
D | dialer_test_sort_contacts_by_last_name.py | 41 for line in vcf_file: 43 if line.startswith("N:"): 44 name_line = line.split(':')
|
D | dialer_test_import_address_details.py | 43 for line in vcf_file: 44 if line.startswith(self.VCF_ADDRESS_HEADER): 45 return line
|
/platform_testing/utils/wifistrengthscanner/src/com/android/test/util/wifistrengthscanner/ |
D | WifiStrengthScannerInstrumentation.java | 136 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/compatibility-common-util/src/com/android/compatibility/common/util/ |
D | LogcatInspector.java | 106 String line; in numberOfLogcatStringsFound() local 107 while ((line = logcat.readLine()) != null) { in numberOfLogcatStringsFound() 108 if (line.contains(logcatStrings[stringIndex])) { in numberOfLogcatStringsFound() 113 String[] splitLine = line.stripLeading().split(" "); in numberOfLogcatStringsFound()
|
D | BackupUtils.java | 190 String line = in.nextLine(); in assertBackupNotAllowed() local 192 if (line.contains(packageName)) { in assertBackupNotAllowed() 193 String result = line.split(":")[1].trim(); in assertBackupNotAllowed() 214 String line; in assertBackupIsSuccessful() local 215 while ((line = reader.readLine()) != null) { in assertBackupIsSuccessful() 216 if (line.contains(packageName)) { in assertBackupIsSuccessful() 217 String result = line.split(":")[1].trim().toLowerCase(); in assertBackupIsSuccessful() 257 String line; in assertRestoreIsSuccessful() local 258 while ((line = reader.readLine()) != null) { in assertRestoreIsSuccessful() 259 if (line.contains("restoreFinished: 0")) { in assertRestoreIsSuccessful()
|
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/ |
D | ThermalHelper.java | 73 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/collectors-helper/adservices/src/com/android/helpers/ |
D | SelectAdsLatencyHelper.java | 60 String line = ""; in processInput() local 62 while ((line = bufferedReader.readLine()) != null) { in processInput() 63 Matcher matcher = latencyMetricPattern.matcher(line); in processInput()
|
D | MeasurementLatencyHelper.java | 58 String line = ""; in processInput() local 60 while ((line = bufferedReader.readLine()) != null) { in processInput() 61 Matcher matcher = latencyMetricPattern.matcher(line); in processInput()
|
D | TopicsLatencyHelper.java | 64 String line = ""; in processInput() local 66 while ((line = bufferedReader.readLine()) != null) { in processInput() 67 Matcher matcher = latencyMetricPattern.matcher(line); in processInput()
|
D | JSScriptEngineLatencyHelper.java | 75 String line = ""; in processInput() local 76 while ((line = bufferedReader.readLine()) != null) { in processInput() 77 Matcher matcher = latencyMetricPattern.matcher(line); in processInput()
|
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/ui/ |
D | UiAutomatorUtils.java | 65 for (String line : stream.toString().split("\\r?\\n")) { in dumpViewHierarchy() 66 Log.i(TAG, line.trim()); in dumpViewHierarchy()
|
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/ |
D | SlabinfoHelper.java | 123 String line = reader.readLine(); in slabinfoVersionIsSupported() local 125 return line.equals("slabinfo - version: 2.1"); in slabinfoVersionIsSupported() 141 for (String line = reader.readLine(); line != null; line = reader.readLine()) { in readSlabinfo() 143 String tokens[] = line.replaceAll(" +", " ").split(" "); in readSlabinfo()
|
/platform_testing/libraries/collectors-helper/simpleperf/src/com/android/helpers/ |
D | SimpleperfHelper.java | 215 for (String line; (line = reader.readLine()) != null; ) { in getMetrics() 218 if (line.contains(": ")) { in getMetrics() 219 String[] splitLine = line.split(": "); in getMetrics() 231 else if (line.contains("%")) { in getMetrics() 232 final String[] splitLine = line.split("\\s+", 6); in getMetrics()
|
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/ |
D | LogcatCollectorTest.java | 351 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/ |
D | PwrStatsUtilHelper.java | 120 String line = br.readLine(); in processMetricsFromLogFile() local 122 while ((line = br.readLine()) != null) { in processMetricsFromLogFile() 123 m = r.matcher(line); in processMetricsFromLogFile()
|
/platform_testing/host_runners/utils/src/com/android/runner/utils/ |
D | InstrumentationResultProtoParser.java | 162 for (String line : lines) { in processSessionStatus() 166 String.format(INSTRUMENTATION_RESULT_FORMAT, currentKey, line)); in processSessionStatus() 170 preProcessedLines.add(line); in processSessionStatus()
|