Home
last modified time | relevance | path

Searched refs:lines (Results 1 – 25 of 61) sorted by relevance

123

/packages/services/Car/cpp/watchdog/server/src/
DProcStat.cpp98 std::vector<std::string> lines = Split(std::move(buffer), "\n"); in getProcStatLocked() local
102 for (size_t i = 0; i < lines.size(); i++) { in getProcStatLocked()
103 if (lines[i].empty()) { in getProcStatLocked()
106 if (!lines[i].compare(0, 4, "cpu ")) { in getProcStatLocked()
110 if (!parseCpuStats(std::move(lines[i]), &info.cpuStats)) { in getProcStatLocked()
113 } else if (!lines[i].compare(0, 6, "procs_")) { in getProcStatLocked()
114 if (!lines[i].compare(0, 13, "procs_running")) { in getProcStatLocked()
118 if (!parseProcsCount(std::move(lines[i]), &info.runnableProcessesCnt)) { in getProcStatLocked()
123 } else if (!lines[i].compare(0, 13, "procs_blocked")) { in getProcStatLocked()
127 if (!parseProcsCount(std::move(lines[i]), &info.ioBlockedProcessesCnt)) { in getProcStatLocked()
[all …]
DProcPidStat.cpp107 std::vector<std::string> lines = Split(std::move(buffer), "\n"); in readPidStatFile() local
108 if (lines.size() != 1 && (lines.size() != 2 || !lines[1].empty())) { in readPidStatFile()
109 return Error(ERR_INVALID_FILE) << path << " contains " << lines.size() << " lines != 1"; in readPidStatFile()
111 if (!parsePidStatLine(std::move(lines[0]), pidStat)) { in readPidStatFile()
124 std::vector<std::string> lines = Split(std::move(buffer), "\n"); in readKeyValueFile() local
125 for (size_t i = 0; i < lines.size(); ++i) { in readKeyValueFile()
126 if (lines[i].empty()) { in readKeyValueFile()
129 std::vector<std::string> elements = Split(lines[i], delimiter); in readKeyValueFile()
132 << "Line \"" << lines[i] << "\" doesn't contain the delimiter \"" << delimiter in readKeyValueFile()
136 std::string value = Trim(lines[i].substr(key.length() + delimiter.length())); in readKeyValueFile()
[all …]
DProcDiskStats.cpp105 std::vector<std::string> lines = Split(std::move(buffer), "\n"); in readDiskStatsFile() local
106 if (lines.empty()) { in readDiskStatsFile()
110 for (const auto& line : lines) { in readDiskStatsFile()
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthWeekEventsView.java589 float lines[] = new float[8 * 4]; in drawDaySeparators() local
597 lines[i++] = xOffset; in drawDaySeparators()
598 lines[i++] = 0; in drawDaySeparators()
599 lines[i++] = xOffset; in drawDaySeparators()
600 lines[i++] = mHeight; in drawDaySeparators()
604 lines[i++] = 0; in drawDaySeparators()
605 lines[i++] = 0; in drawDaySeparators()
606 lines[i++] = mWidth; in drawDaySeparators()
607 lines[i++] = 0; in drawDaySeparators()
613 lines[i++] = x; in drawDaySeparators()
[all …]
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/recyclerview/
DCarUiListItemTest.java621 List<CarUiText> lines = new ArrayList<>(); in testTextTruncation_twoShortLines() local
622 lines.add(new CarUiText.Builder("Short text string").setMaxLines(2).build()); in testTextTruncation_twoShortLines()
623 lines.add(new CarUiText.Builder("Second short string").setMaxLines(2).build()); in testTextTruncation_twoShortLines()
626 item.setBody(lines); in testTextTruncation_twoShortLines()
640 List<CarUiText> lines = new ArrayList<>(); in testTextTruncation_oneLongOneShort_withMaxLines() local
641 lines.add(new CarUiText.Builder(LONG_CHAR_SEQUENCE).setMaxLines(2).build()); in testTextTruncation_oneLongOneShort_withMaxLines()
642 lines.add(new CarUiText.Builder("Second short string").setMaxLines(2).build()); in testTextTruncation_oneLongOneShort_withMaxLines()
645 item.setBody(lines); in testTextTruncation_oneLongOneShort_withMaxLines()
662 List<CarUiText> lines = new ArrayList<>(); in testTextTruncation_oneLongOneShort_noMaxLines() local
663 lines.add(new CarUiText.Builder(LONG_CHAR_SEQUENCE).setMaxLines(Integer.MAX_VALUE).build()); in testTextTruncation_oneLongOneShort_noMaxLines()
[all …]
/packages/apps/Car/Dialer/tests/
Dcheckresources.py11 lines = stdout.decode('utf-8').split('\n') variable
13 for i in range(len(lines)-1):
14 if '[UnusedResources]' in lines[i] and 'msgid=' not in lines[i+1]:
15 results.append(lines[i])
/packages/modules/NeuralNetworks/tools/systrace_parser/parser/test/
Dtest_input.py15 lines = """
24 for line in lines.splitlines():
30 lines = """
37 for line in lines.splitlines():
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DPyramid.cpp31 int lines, size = calcStorage(width, height, border2, levels, &lines); in allocatePyramidPacked() local
34 + sizeof(short *) * lines + in allocatePyramidPacked()
40 ImageTypeShort position = (ImageTypeShort) &y[lines]; in allocatePyramidPacked()
96 …gned int PyramidShort::calcStorage(real width, real height, real border2, int levels, int *lines) in calcStorage() argument
100 *lines = size = 0; in calcStorage()
104 *lines += height + border2; in calcStorage()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DTestHelpers.java101 String[] lines = text.split("\\r?\\n"); in truncateCrash() local
103 for (int i = 0; i < maxLines && i < lines.length; i++) { in truncateCrash()
104 ret.append(lines[i]); in truncateCrash()
107 if (lines.length > maxLines) { in truncateCrash()
109 ret.append(lines.length - maxLines); in truncateCrash()
/packages/modules/NeuralNetworks/tools/api/
DREADME.md81 The specification file is divided into *regions*, which are sequences of lines
96 A *null region* is a sequence of lines that is not part of any other region.
100 Within a null region, all lines other than directives are treated as comments
105 A *conditional region* is a sequence of lines immediately preceded by the `%kind
109 lines in the region are processed normally (i.e., directives have their usual
110 effect, and non-directive lines are added to the enclosing section region, if
111 any). When the condition is **off**, lines in the region other than the `%else`
117 A *section region* is a sequence of lines immediately preceded by the `%section
120 and the resulting lines are associated with the section name. They can be
176 Adds all lines from the named section region to the current section region.
Dgenerate_api.py27 lines = f.readlines()
28 for self.lineno in range(len(lines)):
29 self.line = lines[self.lineno]
296 self.lines = []
321 self.lines.append(indent + line if line.rstrip("\n") else line)
331 self.lines.append(self.line)
361 f.write("".join(["".join(line) for line in template.lines]))
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/
DCarUiText.java37 public static CharSequence combineMultiLine(@NonNull List<CarUiText> lines) { in combineMultiLine() argument
40 for (CarUiText line : lines) { in combineMultiLine()
189 public Builder setMaxLines(int lines) { in setMaxLines() argument
190 mMaxLines = lines; in setMaxLines()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DNgramContextUtils.java62 final String[] lines = NEWLINE_REGEX.split(prev); in getNgramContextFromNthPreviousWord()
63 if (lines.length == 0) { in getNgramContextFromNthPreviousWord()
66 final String[] w = SPACE_REGEX.split(lines[lines.length - 1]); in getNgramContextFromNthPreviousWord()
/packages/modules/DnsResolver/tests/
Ddnsresolver_binder_test.cpp86 std::vector<std::string> lines; in dumpService() local
89 lines.push_back(std::move(line)); in dumpService()
92 return lines; in dumpService()
121 std::vector<std::string> lines = dumpService(netdBinder); in expectLog() local
136 std::any_of(lines.begin(), lines.end(), [&](const std::string& line) { in expectLog()
153 for (const auto& line : lines) { in expectLog()
165 std::any_of(lines.begin(), lines.end(), [&](const std::string& line) { in expectLog()
175 for (const auto& line : lines) { in expectLog()
/packages/services/Car/tests/BugReportApp/utils/
Dbugreport_app_tester.py160 lines = re.split(r'\r?\n', converted)
161 return lines
210 _, lines = self.adb(['shell', 'pidof', package])
211 if not lines:
213 pids_raw = [pid.strip() for pid in re.split(r'\s+', ' '.join(lines))]
435 lines = file.content.decode('ascii', 'ignore').split('\n')
436 for line in lines:
/packages/providers/CalendarProvider/
Dmaketests.py43 lines = str.split("\n")
46 for line in lines:
87 lines = stripTimezone(s) variable
88 for s in lines:
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DProfile.java128 String[] lines = new String[stack.length]; in sampleStack() local
130 lines[i] = stack[i].toString(); in sampleStack()
133 entry.holdingStacks.add(lines); in sampleStack()
135 mProfileData.addSample(lines); in sampleStack()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/util/
DSharedLogTest.java86 final String[] lines = dumpOutput.split("\n"); in verifyLogLines() local
87 assertEquals(expected.length, lines.length); in verifyLogLines()
90 String got = lines[i]; in verifyLogLines()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/displaysound/
DFontScalePreviewFragment.java86 int lines = sampleTextHeight / sampleText.getLineHeight(); in onLayoutChange() local
87 sampleText.setMaxLines(lines); in onLayoutChange()
90 int lineEndIndex = sampleText.getLayout().getLineEnd(lines); in onLayoutChange()
/packages/services/Car/service/src/com/android/car/storagemonitoring/
DProcfsUidIoStatsProvider.java56 List<String> lines; in load() local
59 lines = Files.readAllLines(mStatsFile); in load()
65 for (String line : lines) { in load()
/packages/apps/TV/tuner/src/com/android/tv/tuner/cc/
DCaptionWindowLayout.java666 String[] lines = TextUtils.split(mBuilder.toString(), "\n"); in updateText() local
670 int startRow = Math.max(0, lines.length - (mRowLimit + 1)); in updateText()
672 TextUtils.join("\n", Arrays.copyOfRange(lines, startRow, lines.length)); in updateText()
674 mCurrentTextRow = lines.length - startRow - 1; in updateText()
707 String[] lines = TextUtils.split(builder.toString(), "\n"); in getPrefixSpaces() local
708 for (String line : lines) { in getPrefixSpaces()
/packages/modules/NeuralNetworks/tools/systrace_parser/parser/
Dinput.py9 lines = f.readlines()
13 for line in lines:
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
DArrayInitializerFormatter.java75 public void outCommentLines(final String lines) { in outCommentLines() argument
77 mOut.print(lines); in outCommentLines()
/packages/inputmethods/LatinIME/dictionaries/
Dsample.combined20 # Each word may or may not have any number of shortcut target lines
25 # Each word may also have any number of bigram lines starting with a
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapVcardManager.java1167 String[] lines = vCard.split(SEPARATOR); in apply() local
1171 for (String line : lines) { in apply()
1250 String[] lines = vcard.split(SEPARATOR); in checkprop() local
1252 for (String line : lines) { in checkprop()
1295 String[] lines = vcard.split(SEPARATOR); in getName() local
1297 for (String line : lines) { in getName()

123