Home
last modified time | relevance | path

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

12345

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DLoggingPrintStreamTest.java46 String[] lines = sout.toString().split("\\n"); in testPrintException() local
47 assertEquals(Arrays.asList(lines), out.lines); in testPrintException()
56 assertEquals(Arrays.asList("4" + o + "2"), out.lines); in testPrintObject()
65 assertEquals(Arrays.asList("4" + o, "2"), out.lines); in testPrintlnObject()
70 assertEquals(Arrays.asList("Name: Bob"), out.lines); in testPrintf()
72 assertEquals(Arrays.asList("Name: Bob", "Employer: Google"), out.lines); in testPrintf()
78 assertTrue(out.lines.isEmpty()); in testPrintInt()
80 assertEquals(Collections.singletonList("42"), out.lines); in testPrintInt()
86 assertEquals(Arrays.asList("4", "2"), out.lines); in testPrintlnInt()
91 assertEquals(Arrays.asList("Foo", "Bar"), out.lines); in testPrintCharArray()
[all …]
DKernelCpuProcStringReaderTest.java178 String[] lines = data.split("\n"); in testMultipleRead() local
180 for (String line : lines) { in testMultipleRead()
245 final String[] lines = data.split("\n"); in testConcurrent() local
266 for (String line : lines) { in testConcurrent()
319 private String getTestString(int lines, int charsPerLine) { in getTestString() argument
321 for (int i = 0; i < lines; i++) { in getTestString()
330 private long[][] getTestArray(int lines, int numPerLine) { in getTestArray() argument
331 return IntStream.range(0, lines).mapToObj( in getTestArray()
/frameworks/base/services/core/jni/
Dcom_android_server_net_NetworkStatsFactory.cpp96 static int legacyReadNetworkStatsDetail(std::vector<stats_line>* lines, in legacyReadNetworkStatsDetail() argument
195 lines->push_back(s); in legacyReadNetworkStatsDetail()
209 std::vector<stats_line>& lines) { in statsLinesToNetworkStats() argument
210 int size = lines.size(); in statsLinesToNetworkStats()
252 ScopedLocalRef<jstring> ifaceString(env, env->NewStringUTF(lines[i].iface)); in statsLinesToNetworkStats()
255 uid[i] = lines[i].uid; in statsLinesToNetworkStats()
256 set[i] = lines[i].set; in statsLinesToNetworkStats()
257 tag[i] = lines[i].tag; in statsLinesToNetworkStats()
259 rxBytes[i] = lines[i].rxBytes; in statsLinesToNetworkStats()
260 rxPackets[i] = lines[i].rxPackets; in statsLinesToNetworkStats()
[all …]
/frameworks/base/tools/hiddenapi/
Dgenerate_hiddenapi_lists.py148 lines = f.readlines();
149 lines = filter(lambda line: not line.startswith('#'), lines)
150 lines = map(lambda line: line.strip(), lines)
151 return set(lines)
154 def write_lines(filename, lines): argument
161 lines = map(lambda line: line + '\n', lines)
163 f.writelines(lines)
273 lines = []
276 lines.append(",".join([api] + flags))
277 return sorted(lines)
/frameworks/minikin/tests/unittest/
DLineBreakerTestHelper.h161 static std::string toString(const std::vector<LineBreakExpectation>& lines) { in toString() argument
163 for (uint32_t i = 0; i < lines.size(); ++i) { in toString()
164 const LineBreakExpectation& line = lines[i]; in toString()
177 static std::string toString(const U16StringPiece& textBuf, const LineBreakResult& lines) { in toString() argument
179 for (uint32_t i = 0; i < lines.breakPoints.size(); ++i) { in toString()
180 const Range textRange(i == 0 ? 0 : lines.breakPoints[i - 1], lines.breakPoints[i]); in toString()
181 const HyphenEdit edit = static_cast<HyphenEdit>(lines.flags[i] & 0xFF); in toString()
196 i, lines.widths[i], startEdit, endEdit, lines.ascents[i], lines.descents[i], in toString()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3IOStreamBase.cpp72 String8 lines; in dump() local
78 lines.appendFormat(" State: %d\n", mState); in dump()
79 lines.appendFormat(" Dims: %d x %d, format 0x%x, dataspace 0x%x\n", in dump()
82 lines.appendFormat(" Max size: %zu\n", mMaxSize); in dump()
83 lines.appendFormat(" Combined usage: %" PRIu64 ", max HAL buffers: %d\n", in dump()
86 lines.appendFormat(" Physical camera id: %s\n", camera3_stream::physical_camera_id); in dump()
88 lines.appendFormat(" Frames produced: %d, last timestamp: %" PRId64 " ns\n", in dump()
90 lines.appendFormat(" Total buffers: %zu, currently dequeued: %zu\n", in dump()
92 write(fd, lines.string(), lines.size()); in dump()
DCamera3BufferManager.cpp444 String8 lines; in dump() local
445 lines.appendFormat(" Total stream sets: %zu\n", mStreamSetMap.size()); in dump()
447 lines.appendFormat(" Stream set %d has below streams:\n", mStreamSetMap.keyAt(i)); in dump()
449 lines.appendFormat(" Stream %d\n", mStreamSetMap[i].streamInfoMap[j].streamId); in dump()
451 lines.appendFormat(" Stream set max allowed buffer count: %zu\n", in dump()
453 lines.appendFormat(" Stream set buffer count water mark: %zu\n", in dump()
455 lines.appendFormat(" Handout buffer counts:\n"); in dump()
459 lines.appendFormat(" stream id: %d, buffer count: %zu.\n", in dump()
462 lines.appendFormat(" Attached buffer counts:\n"); in dump()
466 lines.appendFormat(" stream id: %d, attached buffer count: %zu.\n", in dump()
[all …]
DCamera3DummyStream.cpp71 String8 lines; in dump() local
72 lines.appendFormat(" Stream[%d]: Dummy\n", mId); in dump()
73 write(fd, lines.string(), lines.size()); in dump()
/frameworks/base/core/tests/coretests/src/android/util/
DLocalLogTest.java43 String[] lines = { in doTestA() local
48 String[] want = lines; in doTestA()
49 testcase(new LocalLog(10, localTimestamps), lines, want); in doTestA()
53 String[] lines = { in testB() local
59 testcase(new LocalLog(0), lines, want); in testB()
63 String[] lines = { in testC() local
79 testcase(new LocalLog(3), lines, want); in testC()
/frameworks/av/services/camera/libcameraservice/utils/
DLatencyHistogram.cpp58 String8 lines; in dump() local
59 lines.appendFormat("%s (%" PRId64 ") samples\n", name, mTotalCount); in dump()
66 lines.append(lineBins); in dump()
67 lines.append(lineBinCounts); in dump()
69 write(fd, lines.string(), lines.size()); in dump()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSMSDispatcherTest.java.broken40 String[] lines = new String[2];
42 lines[0] = "+CMT: ,158";
43 lines[1] = "07914140279510F6440A8111110301003BF56080426101748A8C0B05040B"
50 sms = SmsMessage.newFromCMT(lines);
70 String[] lines = new String[2];
72 lines[0] = "+CMT: ,77";
73 lines[1] = "07914140279510F6440A8111110301003BF56080426101848A3B0B05040B8423F"
77 sms = SmsMessage.newFromCMT(lines);
/frameworks/ml/nn/tools/systrace_parser/parser/test/
Dtest_input.py15 lines = """
24 for line in lines.splitlines():
30 lines = """
37 for line in lines.splitlines():
/frameworks/ml/nn/tools/api/
DREADME.md69 The specification file is divided into *regions*, which are sequences of lines
85 A *null region* is a sequence of lines that is not part of any other region.
89 Within a null region, all lines other than directives are treated as comments
94 A *conditional region* is a sequence of lines immediately preceded by the `%kind
98 lines in the region are processed normally (i.e., directives have their usual
99 effect, and non-directive lines are added to the enclosing section region, if
100 any). When the condition is **off**, lines in the region other than the `%else`
106 A *definition region* is a sequence of lines immediately preceded by the
107 `%define-lines *name*` directive and immediately followed by the
108 `%/define-lines` directive. Every non-comment line in the sequence undergoes
[all …]
Dgenerate_api.py27 lines = f.readlines()
28 for self.lineno in range(len(lines)):
29 self.line = lines[self.lineno]
306 self.lines = []
328 self.lines.append(line)
338 self.lines.append(self.line)
369 f.write("".join(["".join(line) for line in template.lines]))
Dtypes.spec24 %define-lines AVAIL27
27 %/define-lines
28 %define-lines AVAIL27Short
31 %/define-lines
32 %define-lines AVAIL28
35 %/define-lines
36 %define-lines AVAIL29
39 %/define-lines
40 %define-lines AVAIL30
43 %/define-lines
[all …]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_stereo_proc.cpp409 int32 lines; in pvmp3_stereo_proc() local
410 lines = mp3_sfBandIndex[sfreq].s[sfb+1] - mp3_sfBandIndex[sfreq].s[sfb]; in pvmp3_stereo_proc()
411 i = 3 * mp3_sfBandIndex[sfreq].s[sfb] + (j + 1) * lines - 1; in pvmp3_stereo_proc()
413 while (lines > 0) in pvmp3_stereo_proc()
419 lines = -10; in pvmp3_stereo_proc()
421 lines--; in pvmp3_stereo_proc()
492 … int32 lines = mp3_sfBandIndex[sfreq].s[sfb+1] - mp3_sfBandIndex[sfreq].s[sfb]; in pvmp3_stereo_proc() local
493 i = 3 * mp3_sfBandIndex[sfreq].s[sfb] + (j + 1) * lines - 1; in pvmp3_stereo_proc()
495 while (lines > 0) in pvmp3_stereo_proc()
501 lines = -10; in pvmp3_stereo_proc()
[all …]
Dpvmp3_mpeg2_stereo_proc.cpp383 … int32 lines = mp3_sfBandIndex[sfreq].s[sfb+1] - mp3_sfBandIndex[sfreq].s[sfb]; in pvmp3_mpeg2_stereo_proc() local
385 i = 3 * mp3_sfBandIndex[sfreq].s[sfb] + (j + 1) * lines - 1; in pvmp3_mpeg2_stereo_proc()
387 while (lines > 0) in pvmp3_mpeg2_stereo_proc()
393 lines = -10; in pvmp3_mpeg2_stereo_proc()
395 lines--; in pvmp3_mpeg2_stereo_proc()
485 … int32 lines = mp3_sfBandIndex[sfreq].s[sfb+1] - mp3_sfBandIndex[sfreq].s[sfb]; in pvmp3_mpeg2_stereo_proc() local
486 i = 3 * mp3_sfBandIndex[sfreq].s[sfb] + (j + 1) * lines - 1; in pvmp3_mpeg2_stereo_proc()
488 while (lines > 0) in pvmp3_mpeg2_stereo_proc()
494 lines = -10; in pvmp3_mpeg2_stereo_proc()
496 lines--; in pvmp3_mpeg2_stereo_proc()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/grid/
DTaskGridLayoutAlgorithm.java73 int lines; field in TaskGridLayoutAlgorithm.TaskGridRectInfo
82 lines = layoutTaskCount < 4 ? 1 : 2; in TaskGridRectInfo()
90 lines = layoutTaskCount < 3 ? 1 : ( in TaskGridRectInfo()
97 lines = layoutTaskCount < 7 ? 1 : 2; in TaskGridRectInfo()
104 - (lines - 1) * mPaddingTaskView) / lines; in TaskGridRectInfo()
122 - (lines * taskHeight) - (lines - 1) * mPaddingTaskView; in TaskGridRectInfo()
/frameworks/base/tools/powermodel/test/com/android/powermodel/
DRawBatteryStatsTest.java32 private static InputStream makeCsv(String... lines) { in makeCsv() argument
33 return makeCsv(BS_VERSION, lines); in makeCsv()
36 private static InputStream makeCsv(int version, String... lines) { in makeCsv() argument
40 for (String line: lines) { in makeCsv()
/frameworks/native/libs/binder/ndk/scripts/
Dgen_parcel_helper.py38 lines = f.readlines()
40 start = lines.index("// @" + start_tag + "\n")
41 end = lines.index("// @" + end_tag + "\n")
48 f.write("".join(lines[:start+1]) + content + "".join(lines[end:]))
/frameworks/rs/tests/lldb/tests/harness/
Dtest_base_remote.py55 lines = line_table.split('\n')
56 if 'Line table for' not in lines[0]:
71 old_path = re.findall(r"[^ :]+", lines[1])[1]
/frameworks/layoutlib/bridge/src/android/graphics/text/
DOptimizingLineBreaker.java75 int lines = opt[pos].mPrevCount; in computeBreaks() local
76 float maxWidth = mLineWidth.getLineWidth(lines); in computeBreaks()
113 int lines = opt[lastBreak].mPrevCount; in computeBreaks() local
114 float maxWidth = mLineWidth.getLineWidth(lines); in computeBreaks()
116 opt[breakIndex] = new Node(lastBreak, lines + 1, 0 /*doesn't matter*/, in computeBreaks()
/frameworks/libs/net/common/devicetests/com/android/testutils/
DConcurrentInterpreter.kt79 val lines = spec.trim().trim('\n').split("\n").map { it.split("|") } in <lambda>() constant
82 val threadCount = lines[0].size in <lambda>()
83 assertTrue(lines.all { it.size == threadCount }) in <lambda>()
84 val threadInstructions = (0 until threadCount).map { i -> lines.map { it[i].trim() } } in <lambda>()
/frameworks/base/core/java/android/text/
DStaticLayout.java925 int[] lines = mLines;
928 if (want >= lines.length) {
930 System.arraycopy(lines, 0, grow, 0, lines.length);
932 lines = grow;
1031 lines[off + START] = start;
1032 lines[off + TOP] = v;
1033 lines[off + DESCENT] = below + extra;
1034 lines[off + EXTRA] = extra;
1046 lines[off + mColumns + START] = end;
1047 lines[off + mColumns + TOP] = v;
[all …]
/frameworks/base/core/java/com/android/server/
DBootReceiver.java375 String lines[] = log.split("\n"); in addFsckErrorsToDropBoxAndLogFsStat() local
378 for (String line : lines) { // should check all lines in addFsckErrorsToDropBoxAndLogFsStat()
384 handleFsckFsStat(matcher, lines, lastFsStatLineNumber, lineNumber); in addFsckErrorsToDropBoxAndLogFsStat()
526 String lines; in logFsShutdownTime() local
528 lines = FileUtils.readTextFile(f, -maxReadSize, null); in logFsShutdownTime()
534 Matcher matcher = pattern.matcher(lines); in logFsShutdownTime()
564 public static int fixFsckFsStat(String partition, int statOrg, String[] lines, in fixFsckFsStat() argument
579 String line = lines[i]; in fixFsckFsStat()
614 if (lines[i + 1].contains("Fix? yes")) { in fixFsckFsStat()
644 private static void handleFsckFsStat(Matcher match, String[] lines, int startLineNumber, in handleFsckFsStat() argument
[all …]

12345