Home
last modified time | relevance | path

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

1234

/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 …]
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/
DXmlEditor.java71 ArrayList<String> lines = new ArrayList<String>(); in strip() local
72 lines.addAll(FileUtils.readLines(f, "utf-8")); in strip()
75 replace(lines, toPosition(it.getStart()), toEndPosition(it.getStop()), ""); in strip()
88 recurseReplace(layoutNode, lines, noTag, newTag, 0); in strip()
93 replace(lines, rootStartTag, rootEndTag, ""); in strip()
96 PositionPair endLayoutPositions = findTerminalPositions(root, lines); in strip()
97 replace(lines, endLayoutPositions.left, endLayoutPositions.right, ""); in strip()
137 fixPosition(lines, endTagPosition); in strip()
138 String line = lines.get(endTagPosition.line); in strip()
141 lines.set(endTagPosition.line, newLine); in strip()
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3IOStreamBase.cpp70 String8 lines; in dump() local
76 lines.appendFormat(" State: %d\n", mState); in dump()
77 lines.appendFormat(" Dims: %d x %d, format 0x%x, dataspace 0x%x\n", in dump()
80 lines.appendFormat(" Max size: %zu\n", mMaxSize); in dump()
81 lines.appendFormat(" Combined usage: %d, max HAL buffers: %d\n", in dump()
83 lines.appendFormat(" Frames produced: %d, last timestamp: %" PRId64 " ns\n", in dump()
85 lines.appendFormat(" Total buffers: %zu, currently dequeued: %zu\n", in dump()
87 write(fd, lines.string(), lines.size()); in dump()
DCamera3ZslStream.cpp272 String8 lines; in dump() local
273 lines.appendFormat(" Stream[%d]: ZSL\n", mId); in dump()
274 write(fd, lines.string(), lines.size()); in dump()
278 lines = String8(); in dump()
279 lines.appendFormat(" Input buffers pending: %zu, in flight %zu\n", in dump()
281 write(fd, lines.string(), lines.size()); in dump()
DCamera3BufferManager.cpp406 String8 lines; in dump() local
407 lines.appendFormat(" Total stream sets: %zu\n", mStreamSetMap.size()); in dump()
409 lines.appendFormat(" Stream set %d has below streams:\n", mStreamSetMap.keyAt(i)); in dump()
411 lines.appendFormat(" Stream %d\n", mStreamSetMap[i].streamInfoMap[j].streamId); in dump()
413 lines.appendFormat(" Stream set max allowed buffer count: %zu\n", in dump()
415 lines.appendFormat(" Stream set buffer count water mark: %zu\n", in dump()
417 lines.appendFormat(" Handout buffer counts:\n"); in dump()
421 lines.appendFormat(" stream id: %d, buffer count: %zu.\n", in dump()
424 lines.appendFormat(" Attached buffer counts:\n"); in dump()
428 lines.appendFormat(" stream id: %d, attached buffer count: %zu.\n", in dump()
[all …]
DCamera3DummyStream.cpp66 String8 lines; in dump() local
67 lines.appendFormat(" Stream[%d]: Dummy\n", mId); in dump()
68 write(fd, lines.string(), lines.size()); in dump()
DCamera3InputStream.cpp204 String8 lines; in dump() local
205 lines.appendFormat(" Stream[%d]: Input\n", mId); in dump()
206 write(fd, lines.string(), lines.size()); in dump()
DCamera3Device.cpp556 String8 lines; in dump() local
566 lines.appendFormat(" Device status: %s\n", status); in dump()
568 lines.appendFormat(" Error cause: %s\n", mErrorCause.string()); in dump()
570 lines.appendFormat(" Stream configuration:\n"); in dump()
571 lines.appendFormat(" Operation mode: %s \n", mIsConstrainedHighSpeedConfiguration ? in dump()
575 write(fd, lines.string(), lines.size()); in dump()
578 lines.appendFormat(" No input stream.\n"); in dump()
579 write(fd, lines.string(), lines.size()); in dump()
586 lines = String8(" Camera3 Buffer Manager:\n"); in dump()
587 write(fd, lines.string(), lines.size()); in dump()
[all …]
DCamera3OutputStream.cpp335 String8 lines; in dump() local
336 lines.appendFormat(" Stream[%d]: Output\n", mId); in dump()
337 lines.appendFormat(" Consumer name: %s\n", mConsumerName.string()); in dump()
338 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/av/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_stereo_proc.cpp405 int32 lines; in pvmp3_stereo_proc() local
406 lines = mp3_sfBandIndex[sfreq].s[sfb+1] - mp3_sfBandIndex[sfreq].s[sfb]; in pvmp3_stereo_proc()
407 i = 3 * mp3_sfBandIndex[sfreq].s[sfb] + (j + 1) * lines - 1; in pvmp3_stereo_proc()
409 while (lines > 0) in pvmp3_stereo_proc()
415 lines = -10; in pvmp3_stereo_proc()
417 lines--; in pvmp3_stereo_proc()
488 … int32 lines = mp3_sfBandIndex[sfreq].s[sfb+1] - mp3_sfBandIndex[sfreq].s[sfb]; in pvmp3_stereo_proc() local
489 i = 3 * mp3_sfBandIndex[sfreq].s[sfb] + (j + 1) * lines - 1; in pvmp3_stereo_proc()
491 while (lines > 0) in pvmp3_stereo_proc()
497 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/core/jni/
Dcom_android_internal_net_NetworkStatsFactory.cpp123 Vector<stats_line> lines; in readNetworkStatsDetail() local
216 lines.push_back(s); in readNetworkStatsDetail()
227 int size = lines.size(); in readNetworkStatsDetail()
262 ScopedLocalRef<jstring> ifaceString(env, env->NewStringUTF(lines[i].iface)); in readNetworkStatsDetail()
265 uid[i] = lines[i].uid; in readNetworkStatsDetail()
266 set[i] = lines[i].set; in readNetworkStatsDetail()
267 tag[i] = lines[i].tag; in readNetworkStatsDetail()
269 rxBytes[i] = lines[i].rxBytes; in readNetworkStatsDetail()
270 rxPackets[i] = lines[i].rxPackets; in readNetworkStatsDetail()
271 txBytes[i] = lines[i].txBytes; in readNetworkStatsDetail()
[all …]
/frameworks/minikin/libs/minikin/
Dunicode_emoji_h_gen.py82 lines = []
86 lines.append(tmp_line + ',')
90 lines.append(tmp_line)
93 template = template.replace('@@@EMOJI_DATA@@@', '\n'.join(lines))
/frameworks/base/core/java/com/android/internal/widget/
DImageFloatingTextView.java103 public boolean setNumIndentLines(int lines) { in setNumIndentLines() argument
104 if (mIndentLines != lines) { in setNumIndentLines()
105 mIndentLines = lines; in setNumIndentLines()
/frameworks/base/tools/layoutlib/bridge/src/android/text/
DOptimizingLineBreaker.java72 int lines = opt[pos].mPrevCount; in computeBreaks() local
73 float maxWidth = mLineWidth.getLineWidth(lines); in computeBreaks()
110 int lines = opt[lastBreak].mPrevCount; in computeBreaks() local
111 float maxWidth = mLineWidth.getLineWidth(lines); in computeBreaks()
113 opt[breakIndex] = new Node(lastBreak, lines + 1, 0 /*doesn't matter*/, in computeBreaks()
/frameworks/base/cmds/settings/src/com/android/commands/settings/
DSettingsCmd.java196 final ArrayList<String> lines = new ArrayList<String>(); in listForUser() local
198 return lines; in listForUser()
205 lines.add(cursor.getString(1) + "=" + cursor.getString(2)); in listForUser()
212 Collections.sort(lines); in listForUser()
216 return lines; in listForUser()
/frameworks/base/core/java/android/text/
DStaticLayout.java884 int[] lines = mLines;
886 if (want >= lines.length) {
894 System.arraycopy(lines, 0, grow, 0, lines.length);
896 lines = grow;
959 lines[off + START] = start;
960 lines[off + TOP] = v;
961 lines[off + DESCENT] = below + extra;
964 lines[off + mColumns + START] = end;
965 lines[off + mColumns + TOP] = v;
969 lines[off + TAB] |= flags & TAB_MASK;
[all …]
/frameworks/native/cmds/bugreportz/
Dreadme.md7 On version 1.1, in addition to the `OK` and `FAILURE` lines, when `bugreportz` is invoked with
8 `-p`, it outputs the following lines:
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DTextViewTransformState.java63 int lines = l.getLineCount(); in getEllipsisCount() local
64 if (lines > 0) { in getEllipsisCount()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
DModelInterpreter.java504 List<String> lines; in onCLCC() local
506 lines = mSimulatedCallState.getClccLines(); in onCLCC()
508 for (int i = 0, s = lines.size() ; i < s ; i++) { in onCLCC()
509 println (lines.get(i)); in onCLCC()
/frameworks/base/media/java/android/media/
DSRTRenderer.java92 String[] lines = paragraph.split("\\r?\\n"); in onData() local
93 cue.mLines = new TextTrackCueSpan[lines.length][]; in onData()
96 for (String line : lines) { in onData()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiLogger.java586 ArrayList<String> lines = new ArrayList<String>(maxLines); in getLogcat() local
593 lines.add(line); in getLogcat()
598 lines.add(line); in getLogcat()
604 return lines; in getLogcat()
609 LimitedCircularArray<String> lines = new LimitedCircularArray<String>(maxLines); in getKernelLog() local
613 lines.addLast(logLines[i]); in getKernelLog()
616 return lines; in getKernelLog()
/frameworks/native/services/surfaceflinger/EventLog/
DEventLogTags.logtags11 # Tag numbers and names are separated by whitespace. Blank lines and lines
/frameworks/av/services/camera/libcameraservice/utils/
DTagMonitor.cpp201 int lines = count / values_per_line[type]; in printData() local
202 if (count % values_per_line[type] != 0) lines++; in printData()
206 for (j = 0; j < lines; j++) { in printData()

1234