Home
last modified time | relevance | path

Searched refs:Writer (Results 1 – 25 of 42) sorted by relevance

12

/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dwritertest.cpp24 TEST(Writer, Compact) { in TEST() argument
27 Writer<StringBuffer> writer(buffer); in TEST()
41 Writer<StringBuffer> writer(buffer); \
48 TEST(Writer, Root) { in TEST() argument
58 TEST(Writer, Int) { in TEST() argument
64 TEST(Writer, UInt) { in TEST() argument
72 TEST(Writer, Int64) { in TEST() argument
77 TEST(Writer, Uint64) { in TEST() argument
82 TEST(Writer, String) { in TEST() argument
90 Writer<StringBuffer> writer(buffer); in TEST()
[all …]
Ddocumenttest.cpp139 Writer<OutputStream, UTF16<>, UTF8<> > writer(eos); in TEST()
148 Writer<StringBuffer> writer(bos2); in TEST()
178 Writer<StringBuffer> writer(bos); in TEST()
187 Writer<StringBuffer> writer(bos2); in TEST()
256 Writer<OutputStringStream> writer(os); in TEST()
287 Writer<OutputStringStream> writer(os); in TEST()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/
Dmisctest.cpp761 template <typename Writer>
764 Writer writer(sb); in itoa_Writer_StringBufferVerify()
774 template <typename Writer>
776 Writer writer; in itoa_Writer_InsituStringStreamVerify()
791 template <typename Writer>
796 Writer writer(sb); in itoa_Writer_StringBuffer()
808 template <typename Writer>
813 Writer writer; in itoa_Writer_InsituStringStream()
826 template <typename Writer>
829 Writer writer(sb); in itoa64_Writer_StringBufferVerify()
[all …]
/packages/apps/Camera2/src/com/android/camera/stats/profiler/
DProfilers.java29 private static Writer sErrorWriter = new ErrorWriter();
30 private static Writer sWarningWriter = new WarningWriter();
31 private static Writer sInfoWriter = new InfoWriter();
32 private static Writer sDebugWriter = new DebugWriter();
33 private static Writer sVerboseWriter = new VerboseWriter();
123 private static class DebugWriter implements Writer {
130 private static class ErrorWriter implements Writer {
137 private static class InfoWriter implements Writer {
144 private static class VerboseWriter implements Writer {
151 private static class WarningWriter implements Writer {
DGuardingProfiler.java26 private final Writer mGuardWriter;
27 private final Writer mVerboseWriter;
31 public GuardingProfiler(Writer writer, Writer verbose) { in GuardingProfiler()
36 public GuardingProfiler(Writer writer, Writer verbose, int maxDurationMillis) { in GuardingProfiler()
DGuardingProfile.java26 private final Writer mGuardWriter;
27 private final Writer mVerboseWriter;
30 public GuardingProfile(Writer writer, Writer verbose, String name,int maxDuration) { in GuardingProfile()
DLoggingProfiler.java23 private final Writer mWriter;
26 public LoggingProfiler(Writer writer) { in LoggingProfiler()
DLoggingProfile.java24 private final Writer mWriter;
27 public LoggingProfile(Writer writer, String name) { in LoggingProfile()
DWriter.java22 public interface Writer { interface
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dsax.md5 …(typedef of `GenericReader<...>`) is the SAX-style parser for JSON, and `Writer` (typedef of `Gene…
176 # Writer {#Writer}
178 `Reader` converts (parses) JSON into events. `Writer` does exactly the opposite. It converts events…
180Writer` is very easy to use. If your application only need to converts some data into JSON, it may…
194 Writer<StringBuffer> writer(s);
226 …dArray()` and `EndObject()`. An `SizeType` can be passed but it will be simply ignored by `Writer`.
231 1. `Writer` must output a well-formed JSON. If there is incorrect event sequence (e.g. `Int()` just…
232 2. `Writer::String()` can handle string escaping (e.g. converting code point `U+000A` to `\n`) and …
233 3. `Writer` handles number output consistently.
234 4. `Writer` implements the event handler concept. It can be used to handle events from `Reader`, `D…
[all …]
Dfaq.md189 ## Reader/Writer (SAX)
191 1. Why don't we just `printf` a JSON? Why do we need a `Writer`?
193Writer` will ensure the output JSON is well-formed. Calling SAX events incorrectly (e.g. `StartObj…
221 …Yes, use `ASCII<>` as output encoding template parameter in `Writer` can enforce escaping those ch…
Dstream.md47 Writer<StringBuffer> writer(buffer);
114 Writer<FileWriteStream> writer(os);
179 Writer<OutputStream, UTF32LE<>, UTF8<>> writer(eos);
230 Writer<OutputStream, UTF8<>, AutoUTF<> > writer;
366 Writer<OStreamWrapper> writer(os);
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dwriter.h54 class Writer {
64Writer(OutputStream& os, StackAllocator* stackAllocator = 0, size_t levelDepth = kDefaultLevelDept…
68 Writer(StackAllocator* allocator = 0, size_t levelDepth = kDefaultLevelDepth) :
343 Writer(const Writer&);
344 Writer& operator=(const Writer&);
350 inline bool Writer<StringBuffer>::WriteInt(int i) { in WriteInt()
358 inline bool Writer<StringBuffer>::WriteUint(unsigned u) { in WriteUint()
366 inline bool Writer<StringBuffer>::WriteInt64(int64_t i64) { in WriteInt64()
374 inline bool Writer<StringBuffer>::WriteUint64(uint64_t u) { in WriteUint64()
382 inline bool Writer<StringBuffer>::WriteDouble(double d) { in WriteDouble()
Dprettywriter.h35 class PrettyWriter : public Writer<OutputStream, SourceEncoding, TargetEncoding, StackAllocator> {
37 typedef Writer<OutputStream, SourceEncoding, TargetEncoding, StackAllocator> Base;
/packages/apps/Test/connectivity/sl4n/rapidjson/example/serialize/
Dserialize.cpp17 template <typename Writer>
18 void Serialize(Writer& writer) const { in Serialize()
42 template <typename Writer>
43 void Serialize(Writer& writer) const { in Serialize()
78 template <typename Writer>
79 void Serialize(Writer& writer) const { in Serialize()
111 template <typename Writer>
112 void Serialize(Writer& writer) const { in Serialize()
/packages/apps/Camera2/src/com/android/camera/util/
DCaptureDataSerializer.java37 import java.io.Writer;
48 public void write(Writer writer) throws IOException; in write()
91 Writer writer) { in dumpMetadata()
94 public void write(Writer writer) throws IOException { in dumpMetadata()
114 Writer writer) { in dumpMetadata()
117 public void write(Writer writer) throws IOException { in dumpMetadata()
164 private static void dumpMetadata(Writeable metadata, Writer writer) { in dumpMetadata()
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DClipStorage.java150 private Writer createWriter(int slot) throws IOException { in createWriter()
152 return new Writer(file); in createWriter()
206 public static final class Writer implements Closeable { class in ClipStorage
211 private Writer(File file) throws IOException { in Writer() method in ClipStorage.Writer
267 try(Writer writer = mClipStore.createWriter(mSlot)){ in doInBackground()
/packages/services/Car/car-lib/src/android/car/vms/
DVmsOperationRecorder.java48 private static final VmsOperationRecorder INSTANCE = new VmsOperationRecorder(new Writer());
49 private final Writer mWriter;
53 public VmsOperationRecorder(Writer writer) { in VmsOperationRecorder()
294 public static class Writer { class in VmsOperationRecorder
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/diagram/
Dsimpledom.dot21 Writer
52 Document2 -> Writer [label=" Traverse DOM by Accept()"]
53 Writer -> dstjson [label=" Output to StringBuffer"]
Darchitecture.dot21 Reader -> Writer [style=invis]
41 Handler -> Writer
/packages/apps/Dialer/java/com/android/voicemail/impl/utils/
DIndentingPrintWriter.java20 import java.io.Writer;
50 public IndentingPrintWriter(Writer writer, String singleIndent) { in IndentingPrintWriter()
54 public IndentingPrintWriter(Writer writer, String singleIndent, int wrapLength) { in IndentingPrintWriter()
/packages/modules/GeoTZ/validation/geonames/src/main/java/com/android/timezone/location/validation/
DGeonamesComparison.java35 import java.io.Writer;
151 try (Writer writer = new OutputStreamWriter(new FileOutputStream(outputFile), in outputKnownDifferences()
161 try (Writer writer = new OutputStreamWriter(new FileOutputStream(outputFile), in outputKnownDifferenceMismatches()
323 try (Writer writer = new OutputStreamWriter(new FileOutputStream(outputFile), in outputResultCounts()
/packages/apps/Test/connectivity/sl4n/rapidjson/example/capitalize/
Dcapitalize.cpp56 Writer<FileWriteStream> writer(os); in main()
59 CapitalizeFilter<Writer<FileWriteStream> > filter(writer); in main()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DLogging.java33 import java.io.Writer;
64 private static Writer sWriter;
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/util/
DLauncherLayoutBuilder.java27 import java.io.Writer;
94 public void build(Writer writer) throws IOException { in build()

12