Home
last modified time | relevance | path

Searched refs:writer (Results 1 – 25 of 188) 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/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.java474 protected void dump(FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
477 writer.println("Permission Denial: can't dump CarService from from pid=" in dump()
484 writer.println("*Dump car service*"); in dump()
485 writer.println("*FutureConfig, DEFAULT:" + FeatureConfiguration.DEFAULT); in dump()
486 writer.println("*Dump all services*"); in dump()
488 dumpAllServices(writer); in dump()
490 writer.println("*Dump Vehicle HAL*"); in dump()
491 writer.println("Vehicle HAL Interface: " + mVehicleInterfaceName); in dump()
494 mHal.dump(writer); in dump()
496 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 …]
DCarBluetoothService.java505 public void dump(PrintWriter writer) { in dump() argument
506 writer.println("*" + TAG + "*"); in dump()
508 writer.println("\tUser ID: " + mUserId); in dump()
509 writer.println("\tUser Proxies: " + (mCarBluetoothUserService != null ? "Yes" : "No")); in dump()
516 deviceManager.dump(writer, "\t"); in dump()
520 if (mInhibitManager != null) mInhibitManager.dump(writer, "\t"); in dump()
521 else writer.println("\tBluetoothProfileInhibitManager: null"); in dump()
524 writer.println("\tUsing default policy? " + (mUseDefaultPolicy ? "Yes" : "No")); in dump()
526 writer.println("\tBluetoothDeviceConnectionPolicy: null"); in dump()
528 mBluetoothDeviceConnectionPolicy.dump(writer, "\t"); in dump()
DCarConfigurationService.java132 public void dump(PrintWriter writer) { in dump() argument
133 writer.println("*CarConfigurationService*"); in dump()
134 writer.println("Config value initialized: " + (mConfigFile != null)); in dump()
137 writer.println("Config: " + mConfigFile.toString(/* indentSpaces= */ 2)); in dump()
140 writer.println("Config: " + mConfigFile); in dump()
144 writer.println("SpeedBumpConfig initialized: " + (mSpeedBumpConfiguration != null)); in dump()
146 writer.println("SpeedBumpConfig: " + mSpeedBumpConfiguration); in dump()
/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/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsConfiguration.java233 public void writeJson(@NonNull JsonWriter writer) throws IOException { in writeJson() argument
234 Objects.requireNonNull(writer, "writer must not be null"); in writeJson()
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()
250 writer.name(entry.getKey()); in writeJson()
[all …]
/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/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/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
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()
/packages/services/Car/service/src/com/android/car/hal/
DVehicleHal.java413 static void dumpProperties(PrintWriter writer, Collection<VehiclePropConfig> configs) { in dumpProperties() argument
415 writer.println(String.format("property 0x%x", config.prop)); in dumpProperties()
466 public void dump(PrintWriter writer) { in dump() argument
467 writer.println("**dump HAL services**"); in dump()
469 service.dump(writer); in dump()
472 dumpPropertyConfigs(writer, ""); in dump()
473 writer.println(String.format("**All Events, now ns:%d**", in dump()
476 writer.println(String.format("event count:%d, lastEvent:%s", in dump()
480 writer.println("**Property handlers**"); in dump()
484 writer.println(String.format("Prop: 0x%08X, service: %s", propId, service)); 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/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/apps/Launcher3/src/com/android/launcher3/model/
DBgDataModel.java145 public synchronized void dump(String prefix, FileDescriptor fd, PrintWriter writer, in dump() argument
148 dumpProto(prefix, fd, writer, args); in dump()
151 writer.println(prefix + "Data Model:"); in dump()
152 writer.println(prefix + " ---- workspace items "); in dump()
154 writer.println(prefix + '\t' + workspaceItems.get(i).toString()); in dump()
156 writer.println(prefix + " ---- appwidget items "); in dump()
158 writer.println(prefix + '\t' + appWidgets.get(i).toString()); in dump()
160 writer.println(prefix + " ---- folder items "); in dump()
162 writer.println(prefix + '\t' + folders.valueAt(i).toString()); in dump()
164 writer.println(prefix + " ---- items id map "); in dump()
[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()
/packages/apps/SecureElement/src/com/android/se/security/
DAccessRuleCache.java488 public void dump(PrintWriter writer) { in dump() argument
489 writer.println(mTag + ":"); in dump()
492 writer.print("Current refresh tag is: "); in dump()
494 writer.print("<null>"); in dump()
496 for (byte oneByte : mRefreshTag) writer.printf("%02X:", oneByte); in dump()
498 writer.println(); in dump()
501 writer.println("Rules:"); in dump()
505 writer.print("rule " + i + ": "); in dump()
506 writer.println(entry.getKey().toString() + " -> " + entry.getValue().toString()); in dump()
508 writer.println(); in dump()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DBaseActivity.java262 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
263 if (!UiFactory.dumpActivity(this, writer)) { in dump()
264 super.dump(prefix, fd, writer, args); in dump()
268 protected void dumpMisc(String prefix, PrintWriter writer) { in dumpMisc() argument
269 writer.println(prefix + "deviceProfile isTransposed=" in dumpMisc()
271 writer.println(prefix + "orientation=" + getResources().getConfiguration().orientation); in dumpMisc()
272 writer.println(prefix + "mSystemUiController: " + mSystemUiController); in dumpMisc()
273 writer.println(prefix + "mActivityFlags: " + mActivityFlags); in dumpMisc()
274 writer.println(prefix + "mForceInvisible: " + mForceInvisible); in dumpMisc()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeMultipart.java87 BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(out), 1024); in writeTo() local
90 writer.write(preamble + "\r\n"); in writeTo()
95 writer.write("--" + boundary + "\r\n"); in writeTo()
96 writer.flush(); in writeTo()
98 writer.write("\r\n"); in writeTo()
101 writer.write("--" + boundary + "--\r\n"); in writeTo()
102 writer.flush(); in writeTo()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dsax.md185 #include "rapidjson/writer.h"
194 Writer<StringBuffer> writer(s);
196 writer.StartObject();
197 writer.Key("hello");
198 writer.String("world");
199 writer.Key("t");
200 writer.Bool(true);
201 writer.Key("f");
202 writer.Bool(false);
203 writer.Key("n");
[all …]

12345678