Home
last modified time | relevance | path

Searched refs:writer (Results 1 – 25 of 198) sorted by relevance

12345678

/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dwritertest.cpp27 Writer<StringBuffer> writer(buffer); in TEST() local
30 reader.Parse<0>(s, writer); in TEST()
33 EXPECT_TRUE(writer.IsComplete()); in TEST()
41 Writer<StringBuffer> writer(buffer); \
43 reader.Parse<kParseFullPrecisionFlag>(s, writer); \
45 EXPECT_TRUE(writer.IsComplete()); \
90 Writer<StringBuffer> writer(buffer); in TEST() local
91 writer.String(std::string("Hello\n")); in TEST()
117 Writer<StringBuffer, UTF16<>, UTF8<> > writer(buffer); in TEST() local
119 reader.Parse(s, writer); in TEST()
[all …]
Dprettywritertest.cpp44 PrettyWriter<StringBuffer> writer(buffer); in TEST() local
47 reader.Parse(s, writer); in TEST()
53 PrettyWriter<StringBuffer> writer(buffer); in TEST() local
54 writer.SetIndent('\t', 1); in TEST()
57 reader.Parse(s, writer); in TEST()
80 PrettyWriter<StringBuffer> writer(buffer); in TEST() local
81 EXPECT_TRUE(writer.StartArray()); in TEST()
82 EXPECT_TRUE(writer.String("Hello\n")); in TEST()
83 EXPECT_TRUE(writer.EndArray()); in TEST()
90 PrettyWriter<StringBuffer> writer(buffer); in TEST() local
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/
DRfc822Output.java132 final Writer writer = new OutputStreamWriter(stream); in writeTo() local
138 writeHeader(writer, "Date", date); in writeTo()
140 writeEncodedHeader(writer, "Subject", message.mSubject); in writeTo()
142 writeHeader(writer, "Message-ID", message.mMessageId); in writeTo()
144 writeAddressHeader(writer, "From", message.mFrom); in writeTo()
145 writeAddressHeader(writer, "To", message.mTo); in writeTo()
146 writeAddressHeader(writer, "Cc", message.mCc); in writeTo()
150 writeAddressHeader(writer, "Bcc", message.mBcc); in writeTo()
152 writeAddressHeader(writer, "Reply-To", message.mReplyTo); in writeTo()
153 writeHeader(writer, "MIME-Version", "1.0"); in writeTo()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/example/serialize/
Dserialize.cpp18 void Serialize(Writer& writer) const { in Serialize()
20 writer.String("name"); in Serialize()
22 writer.String(name_); in Serialize()
24writer.String(name_.c_str(), (SizeType)name_.length()); // Supplying length of string is faster. in Serialize()
26 writer.String("age"); in Serialize()
27 writer.Uint(age_); in Serialize()
43 void Serialize(Writer& writer) const { in Serialize()
44 writer.StartObject(); in Serialize()
46 writer.String("school"); in Serialize()
48 writer.String(school_); in Serialize()
[all …]
/packages/services/Car/service/src/com/android/car/
DICarImpl.java446 protected void dump(FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
449 writer.println("Permission Denial: can't dump CarService from from pid=" in dump()
456 writer.println("*Dump car service*"); in dump()
457 writer.println("*FutureConfig, DEFAULT:" + FeatureConfiguration.DEFAULT); in dump()
458 writer.println("*Dump all services*"); in dump()
460 dumpAllServices(writer, false); in dump()
462 writer.println("*Dump Vehicle HAL*"); in dump()
463 writer.println("Vehicle HAL Interface: " + mVehicleInterfaceName); in dump()
466 mHal.dump(writer); in dump()
468 writer.println("Failed dumping: " + mHal.getClass().getName()); in dump()
[all …]
DCarDiagnosticService.java668 public void dump(PrintWriter writer) { in dump() argument
669 writer.println("*CarDiagnosticService*"); in dump()
670 writer.println("**last events for diagnostics**"); in dump()
672 writer.println("last live frame event: "); in dump()
673 writer.println(mLiveFrameDiagnosticRecord.getLastEvent()); in dump()
675 writer.println("freeze frame events: "); in dump()
676 mFreezeFrameDiagnosticRecords.getEvents().forEach(writer::println); in dump()
677 writer.println("**clients**"); in dump()
682 writer.println( in dump()
688 writer.println("concurrent modification happened"); in dump()
[all …]
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsConfiguration.java234 public void writeJson(JsonWriter writer) throws IOException { in writeJson() argument
236 writer.setLenient(true); in writeJson()
238 writer.beginObject(); in writeJson()
240 writer.name(JSON_NAME_PHYSICAL_PORT).nullValue(); in writeJson()
242 writer.name(JSON_NAME_PHYSICAL_PORT).value((int) mPhysicalPort.byteValue()); in writeJson()
244 writer.name(JSON_NAME_MAX_CONTENT_DEPTH).value(mMaxContentDepth); in writeJson()
245 writer.name(JSON_NAME_MAX_CUMULATIVE_CONTENT_ITEMS).value( in writeJson()
247 writer.name(JSON_NAME_MAX_STRING_LENGTH).value(mMaxStringLength); in writeJson()
249 writer.name(JSON_NAME_PARKED_RESTRICTIONS); in writeJson()
250 writeRestrictionsList(writer, in writeJson()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/example/simplewriter/
Dsimplewriter.cpp10 Writer<StringBuffer> writer(s); in main() local
12 writer.StartObject(); in main()
13 writer.String("hello"); in main()
14 writer.String("world"); in main()
15 writer.String("t"); in main()
16 writer.Bool(true); in main()
17 writer.String("f"); in main()
18 writer.Bool(false); in main()
19 writer.String("n"); in main()
20 writer.Null(); in main()
[all …]
/packages/apps/Camera2/src/com/android/camera/util/
DCaptureDataSerializer.java48 public void write(Writer writer) throws IOException; in write() argument
58 StringWriter writer = new StringWriter(); in toString() local
59 dumpMetadata(title, metadata, writer); in toString()
60 return writer.toString(); in toString()
70 FileWriter writer = new FileWriter(file, true); in toFile() local
72 dumpMetadata(title, (CaptureRequest) metadata, writer); in toFile()
74 dumpMetadata(title, (CaptureResult) metadata, writer); in toFile()
76 writer.close(); in toFile()
80 writer.close(); in toFile()
91 Writer writer) { in dumpMetadata() argument
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/content/
DObjectCursorLoader.java172 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
173 super.dump(prefix, fd, writer, args); in dump()
174 writer.print(prefix); writer.print("mUri="); writer.println(mUri); in dump()
175 writer.print(prefix); writer.print("mProjection="); in dump()
176 writer.println(Arrays.toString(mProjection)); in dump()
177 writer.print(prefix); writer.print("mSelection="); writer.println(mSelection); in dump()
178 writer.print(prefix); writer.print("mSelectionArgs="); in dump()
179 writer.println(Arrays.toString(mSelectionArgs)); in dump()
180 writer.print(prefix); writer.print("mSortOrder="); writer.println(mSortOrder); in dump()
181 writer.print(prefix); writer.print("mCursor="); writer.println(mCursor); in dump()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/logging/
DFileLogTest.java51 StringWriter writer = new StringWriter(); in testPrintLog() local
52 FileLog.flushAll(new PrintWriter(writer)); in testPrintLog()
53 assertTrue(writer.toString().contains("hoolalala")); in testPrintLog()
56 writer = new StringWriter(); in testPrintLog()
57 FileLog.flushAll(new PrintWriter(writer)); in testPrintLog()
58 assertTrue(writer.toString().contains("abracadabra")); in testPrintLog()
60 assertTrue(writer.toString().contains("cat! cat!")); in testPrintLog()
63 assertTrue(writer.toString().contains("hoolalala")); in testPrintLog()
72 StringWriter writer = new StringWriter(); in testOldFileTruncated() local
73 FileLog.flushAll(new PrintWriter(writer)); in testOldFileTruncated()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DLicenseHtmlGeneratorFromXml.java121 PrintWriter writer = null; in generateHtml() local
123 writer = new PrintWriter(outputFile); in generateHtml()
125 generateHtml(mFileNameToContentIdMap, mContentIdToFileContentMap, writer); in generateHtml()
127 writer.flush(); in generateHtml()
128 writer.close(); in generateHtml()
133 if (writer != null) { in generateHtml()
134 writer.close(); in generateHtml()
237 Map<String, String> contentIdToFileContentMap, PrintWriter writer) { in generateHtml() argument
242 writer.println(HTML_HEAD_STRING); in generateHtml()
262 writer.format("<li><a href=\"#id%d\">%s</a></li>\n", id, fileName); in generateHtml()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DFilterVignetteRepresentation.java186 public void serializeRepresentation(JsonWriter writer) throws IOException { in serializeRepresentation() argument
187 writer.beginObject(); in serializeRepresentation()
188 writer.name(ELLIPSE); in serializeRepresentation()
189 writer.beginArray(); in serializeRepresentation()
190 writer.value(mCenterX); in serializeRepresentation()
191 writer.value(mCenterY); in serializeRepresentation()
192 writer.value(mRadiusX); in serializeRepresentation()
193 writer.value(mRadiusY); in serializeRepresentation()
194 writer.endArray(); in serializeRepresentation()
196 writer.name(ARGS); in serializeRepresentation()
[all …]
DFilterChanSatRepresentation.java166 public void serializeRepresentation(JsonWriter writer) throws IOException { in serializeRepresentation() argument
167 writer.beginObject(); in serializeRepresentation()
169 writer.name(ARGS); in serializeRepresentation()
170 writer.beginArray(); in serializeRepresentation()
171 writer.value(getValue(MODE_MASTER)); in serializeRepresentation()
172 writer.value(getValue(MODE_RED)); in serializeRepresentation()
173 writer.value(getValue(MODE_YELLOW)); in serializeRepresentation()
174 writer.value(getValue(MODE_GREEN)); in serializeRepresentation()
175 writer.value(getValue(MODE_CYAN)); in serializeRepresentation()
176 writer.value(getValue(MODE_BLUE)); in serializeRepresentation()
[all …]
DFilterCurvesRepresentation.java118 public void serializeRepresentation(JsonWriter writer) throws IOException { in serializeRepresentation() argument
119 writer.beginObject(); in serializeRepresentation()
121 writer.name(NAME_TAG); in serializeRepresentation()
122 writer.value(getName()); in serializeRepresentation()
124 writer.name(SERIALIZATION_NAME + i); in serializeRepresentation()
125 writer.beginArray(); in serializeRepresentation()
129 writer.beginArray(); in serializeRepresentation()
130 writer.value(p.x); in serializeRepresentation()
131 writer.value(p.y); in serializeRepresentation()
132 writer.endArray(); in serializeRepresentation()
[all …]
DFilterDrawRepresentation.java317 public void serializeRepresentation(JsonWriter writer) throws IOException { in serializeRepresentation() argument
318 writer.beginObject(); in serializeRepresentation()
326 writer.name(SERIAL_PATH + i); in serializeRepresentation()
327 writer.beginObject(); in serializeRepresentation()
329 writer.name(SERIAL_COLOR).value(mark.mColor); in serializeRepresentation()
330 writer.name(SERIAL_RADIUS).value(mark.mRadius); in serializeRepresentation()
331 writer.name(SERIAL_TYPE).value(mark.mType); in serializeRepresentation()
332 writer.name(SERIAL_POINTS_COUNT).value(mark.noPoints); in serializeRepresentation()
333 writer.name(SERIAL_POINTS); in serializeRepresentation()
335 writer.beginArray(); in serializeRepresentation()
[all …]
DFilterColorBorderRepresentation.java173 public void serializeRepresentation(JsonWriter writer) throws IOException { in serializeRepresentation() argument
174 writer.beginObject(); in serializeRepresentation()
176 writer.name("size"); in serializeRepresentation()
177 writer.value(mParamSize.getValue()); in serializeRepresentation()
178 writer.name("radius"); in serializeRepresentation()
179 writer.value(mParamRadius.getValue()); in serializeRepresentation()
180 writer.name("color"); in serializeRepresentation()
181 writer.value(mParamColor.getValue()); in serializeRepresentation()
183 writer.endObject(); in serializeRepresentation()
DFilterGradRepresentation.java433 public void serializeRepresentation(JsonWriter writer) throws IOException { in serializeRepresentation() argument
434 writer.beginObject(); in serializeRepresentation()
443 writer.name(LINE_NAME + count); in serializeRepresentation()
445 writer.beginArray(); in serializeRepresentation()
446 writer.value(point.xPos1); in serializeRepresentation()
447 writer.value(point.yPos1); in serializeRepresentation()
448 writer.value(point.xPos2); in serializeRepresentation()
449 writer.value(point.yPos2); in serializeRepresentation()
450 writer.value(point.brightness); in serializeRepresentation()
451 writer.value(point.contrast); in serializeRepresentation()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/
DLocalDiscoverySessionInfo.java99 try (JsonWriter writer = new JsonWriter(new FileWriter(mCacheFile))) { in save() argument
100 writer.beginObject(); in save()
102 writer.name(NAME_KNOWN_GOOD); in save()
103 savePrinterIds(writer, mKnownGood, KNOWN_GOOD_MAX); in save()
105 writer.name(NAME_PRIORITY); in save()
106 savePrinterIds(writer, mPriority, mPriority.size()); in save()
108 writer.endObject(); in save()
114 private void savePrinterIds(JsonWriter writer, List<PrinterId> ids, int max) in savePrinterIds() argument
116 writer.beginArray(); in savePrinterIds()
119 writer.value(ids.get(i).getLocalId()); in savePrinterIds()
[all …]
/packages/services/Car/service/src/com/android/car/hal/
DVehicleHal.java412 static void dumpProperties(PrintWriter writer, Collection<VehiclePropConfig> configs) { in dumpProperties() argument
414 writer.println(String.format("property 0x%x", config.prop)); in dumpProperties()
465 public void dump(PrintWriter writer) { in dump() argument
466 writer.println("**dump HAL services**"); in dump()
468 service.dump(writer); in dump()
471 dumpPropertyConfigs(writer, ""); in dump()
472 writer.println(String.format("**All Events, now ns:%d**", in dump()
475 writer.println(String.format("event count:%d, lastEvent:%s", in dump()
479 writer.println("**Property handlers**"); in dump()
483 writer.println(String.format("Prop: 0x%08X, service: %s", propId, service)); in dump()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/model/
DBgDataModel.java138 public synchronized void dump(String prefix, FileDescriptor fd, PrintWriter writer, in dump() argument
141 dumpProto(prefix, fd, writer, args); in dump()
144 writer.println(prefix + "Data Model:"); in dump()
145 writer.println(prefix + " ---- workspace items "); in dump()
147 writer.println(prefix + '\t' + workspaceItems.get(i).toString()); in dump()
149 writer.println(prefix + " ---- appwidget items "); in dump()
151 writer.println(prefix + '\t' + appWidgets.get(i).toString()); in dump()
153 writer.println(prefix + " ---- folder items "); in dump()
155 writer.println(prefix + '\t' + folders.valueAt(i).toString()); in dump()
157 writer.println(prefix + " ---- items id map "); in dump()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
DCertificateStore.java82 try (JsonWriter writer = new JsonWriter(new BufferedWriter(new FileWriter(mStoreFile)))) { in save() argument
83 writer.beginObject(); in save()
84 writer.name("certificates"); in save()
85 writer.beginArray(); in save()
87 writer.beginObject(); in save()
88 writer.name("uuid").value(entry.getKey()); in save()
89 writer.name("pubkey").value(bytesToHex(entry.getValue())); in save()
90 writer.endObject(); in save()
92 writer.endArray(); in save()
93 writer.endObject(); in save()
/packages/services/Car/service/src/com/android/car/vms/
DVmsClientManager.java177 public void dump(PrintWriter writer) { in dump() argument
178 dumpMetrics(writer); in dump()
182 public void dumpMetrics(PrintWriter writer) { in dumpMetrics() argument
183 writer.println("*" + getClass().getSimpleName() + "*"); in dumpMetrics()
185 writer.println("mHalClient: " + (mHalClient != null ? "connected" : "disconnected")); in dumpMetrics()
186 writer.println("mSystemClients:"); in dumpMetrics()
187 dumpConnections(writer, mSystemClients); in dumpMetrics()
190 writer.println("mCurrentUserClients:"); in dumpMetrics()
191 dumpConnections(writer, mCurrentUserClients); in dumpMetrics()
192 writer.println("mCurrentUser:" + mCurrentUser); in dumpMetrics()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/
Dmisctest.cpp764 Writer writer(sb); in itoa_Writer_StringBufferVerify() local
768 writer.WriteInt(randval[j]); in itoa_Writer_StringBufferVerify()
776 Writer writer; in itoa_Writer_InsituStringStreamVerify() local
782 writer.Reset(ss); in itoa_Writer_InsituStringStreamVerify()
784 writer.WriteInt(randval[j]); in itoa_Writer_InsituStringStreamVerify()
796 Writer writer(sb); in itoa_Writer_StringBuffer() local
800 writer.WriteInt(randval[j]); in itoa_Writer_StringBuffer()
813 Writer writer; in itoa_Writer_InsituStringStream() local
817 writer.Reset(ss); in itoa_Writer_InsituStringStream()
819 writer.WriteInt(randval[j]); in itoa_Writer_InsituStringStream()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DJsonUtils.java73 final JsonWriter writer = new JsonWriter(sw); in listToJsonStr() local
75 writer.beginArray(); in listToJsonStr()
77 writer.beginObject(); in listToJsonStr()
79 writer.name(INTEGER_CLASS_NAME).value((Integer)o); in listToJsonStr()
81 writer.name(STRING_CLASS_NAME).value((String)o); in listToJsonStr()
83 writer.endObject(); in listToJsonStr()
85 writer.endArray(); in listToJsonStr()
89 close(writer); in listToJsonStr()

12345678