Home
last modified time | relevance | path

Searched refs:serializer (Results 1 – 25 of 381) sorted by relevance

12345678910>>...16

/external/bcc/src/cc/frontends/p4/compiler/
DebpfTable.py24 def serializeType(self, serializer): argument
25 assert isinstance(serializer, ProgramSerializer)
27 serializer.emitIndent()
28 ftype.declare(serializer, self.keyFieldName, False)
29 serializer.endOfStatement(True)
31 def serializeConstruction(self, keyName, serializer, program): argument
32 assert isinstance(serializer, ProgramSerializer)
57 serializer.emitIndent()
59 serializer.appendFormat("{0} = ({1}){2};",
65 serializer.appendFormat(
[all …]
DebpfProgram.py144 def toC(self, serializer): argument
145 assert isinstance(serializer, programSerializer.ProgramSerializer)
147 self.generateIncludes(serializer)
148 self.generatePreamble(serializer)
149 self.generateTypes(serializer)
150 self.generateTables(serializer)
152 serializer.newline()
153 serializer.emitIndent()
154 self.config.serializeCodeSection(serializer)
155 serializer.newline()
[all …]
Dtarget.py16 def serializeLookup(self, serializer, tableName, key, value): argument
17 serializer.appendFormat("{0} = bpf_map_lookup_elem(&{1}, &{2});",
20 def serializeUpdate(self, serializer, tableName, key, value): argument
21 serializer.appendFormat(
25 def serializeLicense(self, serializer, licenseString): argument
26 assert isinstance(serializer, ProgramSerializer)
27 serializer.emitIndent()
28 serializer.appendFormat(
31 serializer.newline()
33 def serializeCodeSection(self, serializer): argument
[all …]
DebpfParser.py20 def serialize(self, serializer, program): argument
21 assert isinstance(serializer, programSerializer.ProgramSerializer)
24 serializer.emitIndent()
25 serializer.appendFormat("{0}: ", self.name)
26 serializer.blockStart()
28 self.serializeOperation(serializer, op, program)
30 self.serializeBranch(serializer, self.parser.branch_on,
33 serializer.blockEnd(True)
35 def serializeSelect(self, selectVarName, serializer, branch_on, program): argument
38 assert isinstance(serializer, programSerializer.ProgramSerializer)
[all …]
DebpfCounter.py57 def serialize(self, serializer, program): argument
58 assert isinstance(serializer, ProgramSerializer)
67 serializer, self.dataMapName, True, keyTypeName,
70 def serializeCode(self, keyname, serializer, program): argument
71 assert isinstance(serializer, ProgramSerializer)
74 serializer.emitIndent()
75 serializer.appendFormat("/* Update counter {0} */", self.name)
76 serializer.newline()
81 serializer.emitIndent()
82 serializer.appendFormat("{0} *{1};", self.valueTypeName, valueName)
[all …]
DebpfConditional.py29 def emitNode(self, node, serializer, program): argument
31 self.emitExpression(node, serializer, program, False)
35 serializer.append(node)
40 serializer.appendFormat(
49 serializer.appendFormat(
54 def emitExpression(self, expression, serializer, program, toplevel): argument
55 assert isinstance(serializer, ProgramSerializer)
66 self.emitNode(right, serializer, program)
67 serializer.append(".valid")
71 serializer.append("(")
[all …]
DebpfStructType.py47 def serialize(self, serializer): argument
48 assert isinstance(serializer, ProgramSerializer)
50 serializer.emitIndent()
51 serializer.appendFormat("struct {0} ", self.name)
52 serializer.blockStart()
55 serializer.emitIndent()
56 field.type.declare(serializer, field.name, False)
57 serializer.appendFormat("; /* {0} bits */", field.widthInBits())
58 serializer.newline()
60 serializer.blockEnd(False)
[all …]
DebpfAction.py28 def serializeArgumentsAsStruct(self, serializer): argument
29 serializer.emitIndent()
30 serializer.appendFormat("/* no arguments for {0} */", self.name)
31 serializer.newline()
33 def serializeBody(self, serializer, valueName, program): argument
34 serializer.emitIndent()
35 serializer.appendFormat("/* no body for {0} */", self.name)
36 serializer.newline()
76 def serializeArgumentsAsStruct(self, serializer): argument
83 serializer.emitIndent()
[all …]
DebpfDeparser.py66 def serialize(self, serializer, program): argument
67 assert isinstance(serializer, ProgramSerializer)
70 serializer.emitIndent()
71 serializer.blockStart()
72 serializer.emitIndent()
73 serializer.appendLine("/* Deparser */")
74 serializer.emitIndent()
75 serializer.appendFormat("{0} = 0;", program.offsetVariableName)
76 serializer.newline()
79 self.serializeHeaderEmit(header, serializer, program)
[all …]
DebpfScalarType.py55 def serialize(self, serializer): argument
56 assert isinstance(serializer, ProgramSerializer)
57 serializer.append(self.asString())
59 def declareArray(self, serializer, identifier, size): argument
63 def declare(self, serializer, identifier, asPointer): argument
64 assert isinstance(serializer, ProgramSerializer)
69 self.serialize(serializer)
71 serializer.append("*")
72 serializer.space()
73 serializer.append(identifier)
[all …]
DebpfInstance.py24 def declare(self, serializer): argument
25 assert isinstance(serializer, ProgramSerializer)
26 self.type.declare(serializer, self.name, False)
55 def emitInitializer(self, serializer): argument
56 assert isinstance(serializer, ProgramSerializer)
58 self.type.emitInitializer(serializer)
61 serializer.appendFormat(
85 def declare(self, serializer): argument
86 assert isinstance(serializer, ProgramSerializer)
87 self.basetype.declareArray(serializer, self.name, self.arraySize)
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ser/impl/
DPropertySerializerMap.java64 JsonSerializer<Object> serializer = provider.findPrimaryPropertySerializer(type, property); in findAndAddPrimarySerializer() local
65 return new SerializerAndMapResult(serializer, newWith(type, serializer)); in findAndAddPrimarySerializer()
72 JsonSerializer<Object> serializer = provider.findPrimaryPropertySerializer(type, property); in findAndAddPrimarySerializer() local
73 return new SerializerAndMapResult(serializer, newWith(type.getRawClass(), serializer)); in findAndAddPrimarySerializer()
90 JsonSerializer<Object> serializer = provider.findContentValueSerializer(type, property); in findAndAddSecondarySerializer() local
91 return new SerializerAndMapResult(serializer, newWith(type, serializer)); in findAndAddSecondarySerializer()
98 JsonSerializer<Object> serializer = provider.findContentValueSerializer(type, property); in findAndAddSecondarySerializer() local
99 return new SerializerAndMapResult(serializer, newWith(type.getRawClass(), serializer)); in findAndAddSecondarySerializer()
117 JsonSerializer<Object> serializer = provider.findTypedValueSerializer(type, false, null); in findAndAddRootValueSerializer() local
118 return new SerializerAndMapResult(serializer, newWith(type, serializer)); in findAndAddRootValueSerializer()
[all …]
/external/rust/crates/serde/src/ser/
Dimpls.rs11 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
15 serializer.$method(*self $($cast)*)
45 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> in serialize()
49 serializer.serialize_str(self) in serialize()
56 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> in serialize()
60 serializer.serialize_str(self) in serialize()
65 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> in serialize()
69 serializer.collect_str(self) in serialize()
78 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> in serialize()
82 serializer.serialize_bytes(self.to_bytes()) in serialize()
[all …]
/external/vogar/src/vogar/
DXmlReportPrinter.java126 private void print(KXmlSerializer serializer, String timestamp) throws IOException { in print() argument
127 serializer.startTag(ns, XmlReportConstants.TESTSUITE); in print()
128 serializer.attribute(ns, XmlReportConstants.ATTR_NAME, name); in print()
129serializer.attribute(ns, XmlReportConstants.ATTR_TESTS, Integer.toString(outcomes.size())); in print()
130serializer.attribute(ns, XmlReportConstants.ATTR_FAILURES, Integer.toString(failuresCount)); in print()
131 serializer.attribute(ns, XmlReportConstants.ATTR_ERRORS, Integer.toString(errorsCount)); in print()
132 serializer.attribute(ns, XmlReportConstants.ATTR_TIME, "0"); in print()
133 serializer.attribute(ns, XmlReportConstants.TIMESTAMP, timestamp); in print()
134 serializer.attribute(ns, XmlReportConstants.HOSTNAME, "localhost"); in print()
135 serializer.startTag(ns, XmlReportConstants.PROPERTIES); in print()
[all …]
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ser/
DBeanSerializerModifier.java94 BeanDescription beanDesc, JsonSerializer<?> serializer) { in modifySerializer() argument
95 return serializer; in modifySerializer()
122 ArrayType valueType, BeanDescription beanDesc, JsonSerializer<?> serializer) { in modifyArraySerializer() argument
123 return serializer; in modifyArraySerializer()
130 CollectionType valueType, BeanDescription beanDesc, JsonSerializer<?> serializer) { in modifyCollectionSerializer() argument
131 return serializer; in modifyCollectionSerializer()
138 CollectionLikeType valueType, BeanDescription beanDesc, JsonSerializer<?> serializer) { in modifyCollectionLikeSerializer() argument
139 return serializer; in modifyCollectionLikeSerializer()
146 MapType valueType, BeanDescription beanDesc, JsonSerializer<?> serializer) { in modifyMapSerializer() argument
147 return serializer; in modifyMapSerializer()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/serializer/
DSerializerTest.java16 package org.yaml.snakeyaml.serializer;
31 private Serializer serializer; field in SerializerTest
37 serializer = new Serializer(new Emitter(writer, config), new Resolver(), config, null); in setUp()
41 serializer.open(); in testSerializerIsAlreadyOpened()
43 serializer.open(); in testSerializerIsAlreadyOpened()
51 serializer.open(); in testSerializerIsClosed1()
52 serializer.close(); in testSerializerIsClosed1()
54 serializer.open(); in testSerializerIsClosed1()
62 serializer.open(); in testSerializerIsClosed2()
63 serializer.close(); in testSerializerIsClosed2()
[all …]
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DExecutionSequencerTest.java46 private ExecutionSequencer serializer; field in ExecutionSequencerTest
53 serializer = ExecutionSequencer.create(); in setUp()
65 Future<?> possiblyIgnoredError = serializer.submitAsync(firstCallable, directExecutor()); in testCallableStartsAfterFirstFutureCompletes()
68 Future<?> possiblyIgnoredError1 = serializer.submitAsync(secondCallable, directExecutor()); in testCallableStartsAfterFirstFutureCompletes()
77 Future<?> possiblyIgnoredError = serializer.submitAsync(firstCallable, directExecutor()); in testCancellationDoesNotViolateSerialization()
79 ListenableFuture<Void> secondFuture = serializer.submitAsync(secondCallable, directExecutor()); in testCancellationDoesNotViolateSerialization()
82 Future<?> possiblyIgnoredError1 = serializer.submitAsync(thirdCallable, directExecutor()); in testCancellationDoesNotViolateSerialization()
93 ListenableFuture<Void> unused = serializer.submit(blockingCallable, executor); in testCancellationMultipleThreads()
95 serializer.submit( in testCancellationMultipleThreads()
120 ListenableFuture<Void> future1 = serializer.submit(blockingCallable, executor); in testSecondTaskWaitsForFirstEvenIfCancelled()
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DExecutionSequencerTest.java46 private ExecutionSequencer serializer; field in ExecutionSequencerTest
53 serializer = ExecutionSequencer.create(); in setUp()
65 Future<?> possiblyIgnoredError = serializer.submitAsync(firstCallable, directExecutor()); in testCallableStartsAfterFirstFutureCompletes()
68 Future<?> possiblyIgnoredError1 = serializer.submitAsync(secondCallable, directExecutor()); in testCallableStartsAfterFirstFutureCompletes()
77 Future<?> possiblyIgnoredError = serializer.submitAsync(firstCallable, directExecutor()); in testCancellationDoesNotViolateSerialization()
79 ListenableFuture<Void> secondFuture = serializer.submitAsync(secondCallable, directExecutor()); in testCancellationDoesNotViolateSerialization()
82 Future<?> possiblyIgnoredError1 = serializer.submitAsync(thirdCallable, directExecutor()); in testCancellationDoesNotViolateSerialization()
93 ListenableFuture<Void> unused = serializer.submit(blockingCallable, executor); in testCancellationMultipleThreads()
95 serializer.submit( in testCancellationMultipleThreads()
120 ListenableFuture<Void> future1 = serializer.submit(blockingCallable, executor); in testSecondTaskWaitsForFirstEvenIfCancelled()
[all …]
/external/flatbuffers/tests/union_vector/
DCharacter.cs51 …eJson(Newtonsoft.Json.JsonWriter writer, object value, Newtonsoft.Json.JsonSerializer serializer) { in WriteJson() argument
55 foreach (var _o in _olist) { this.WriteJson(writer, _o, serializer); } in WriteJson()
58 this.WriteJson(writer, value as CharacterUnion, serializer); in WriteJson()
61 …(Newtonsoft.Json.JsonWriter writer, CharacterUnion _o, Newtonsoft.Json.JsonSerializer serializer) { in WriteJson() argument
63 serializer.Serialize(writer, _o.Value); in WriteJson()
65 … reader, System.Type objectType, object existingValue, Newtonsoft.Json.JsonSerializer serializer) { in ReadJson() argument
70 _olist[_j] = this.ReadJson(reader, _olist[_j], serializer); in ReadJson()
75 return this.ReadJson(reader, existingValue as CharacterUnion, serializer); in ReadJson()
78 …(Newtonsoft.Json.JsonReader reader, CharacterUnion _o, Newtonsoft.Json.JsonSerializer serializer) { in ReadJson() argument
82 case Character.MuLan: _o.Value = serializer.Deserialize<AttackerT>(reader); break; in ReadJson()
[all …]
/external/apache-xml/src/main/java/org/apache/xalan/transformer/
DSerializerSwitcher.java30 import org.apache.xml.serializer.Serializer;
31 import org.apache.xml.serializer.SerializerFactory;
32 import org.apache.xml.serializer.Method;
90 Serializer serializer = in switchSerializerIfHTML() local
96 serializer.setWriter(writer); in switchSerializerIfHTML()
102 serializer.setOutputStream(os); in switchSerializerIfHTML()
107 ContentHandler ch = serializer.asContentHandler(); in switchSerializerIfHTML()
180 Serializer serializer = in switchSerializerIfHTML() local
186 serializer.setWriter(writer); in switchSerializerIfHTML()
189 OutputStream os = serializer.getOutputStream(); in switchSerializerIfHTML()
[all …]
/external/flatbuffers/tests/MyGame/Example/
DAnyAmbiguousAliases.cs45 …eJson(Newtonsoft.Json.JsonWriter writer, object value, Newtonsoft.Json.JsonSerializer serializer) { in WriteJson() argument
49 foreach (var _o in _olist) { this.WriteJson(writer, _o, serializer); } in WriteJson()
52 this.WriteJson(writer, value as AnyAmbiguousAliasesUnion, serializer); in WriteJson()
55 …t.Json.JsonWriter writer, AnyAmbiguousAliasesUnion _o, Newtonsoft.Json.JsonSerializer serializer) { in WriteJson() argument
57 serializer.Serialize(writer, _o.Value); in WriteJson()
59 … reader, System.Type objectType, object existingValue, Newtonsoft.Json.JsonSerializer serializer) { in ReadJson() argument
64 _olist[_j] = this.ReadJson(reader, _olist[_j], serializer); in ReadJson()
69 return this.ReadJson(reader, existingValue as AnyAmbiguousAliasesUnion, serializer); in ReadJson()
72 …t.Json.JsonReader reader, AnyAmbiguousAliasesUnion _o, Newtonsoft.Json.JsonSerializer serializer) { in ReadJson() argument
76 …case AnyAmbiguousAliases.M1: _o.Value = serializer.Deserialize<MyGame.Example.MonsterT>(reader); b… in ReadJson()
[all …]
DAny.cs45 …eJson(Newtonsoft.Json.JsonWriter writer, object value, Newtonsoft.Json.JsonSerializer serializer) { in WriteJson() argument
49 foreach (var _o in _olist) { this.WriteJson(writer, _o, serializer); } in WriteJson()
52 this.WriteJson(writer, value as AnyUnion, serializer); in WriteJson()
55 …teJson(Newtonsoft.Json.JsonWriter writer, AnyUnion _o, Newtonsoft.Json.JsonSerializer serializer) { in WriteJson() argument
57 serializer.Serialize(writer, _o.Value); in WriteJson()
59 … reader, System.Type objectType, object existingValue, Newtonsoft.Json.JsonSerializer serializer) { in ReadJson() argument
64 _olist[_j] = this.ReadJson(reader, _olist[_j], serializer); in ReadJson()
69 return this.ReadJson(reader, existingValue as AnyUnion, serializer); in ReadJson()
72 …adJson(Newtonsoft.Json.JsonReader reader, AnyUnion _o, Newtonsoft.Json.JsonSerializer serializer) { in ReadJson() argument
76 case Any.Monster: _o.Value = serializer.Deserialize<MyGame.Example.MonsterT>(reader); break; in ReadJson()
[all …]
DAnyUniqueAliases.cs45 …eJson(Newtonsoft.Json.JsonWriter writer, object value, Newtonsoft.Json.JsonSerializer serializer) { in WriteJson() argument
49 foreach (var _o in _olist) { this.WriteJson(writer, _o, serializer); } in WriteJson()
52 this.WriteJson(writer, value as AnyUniqueAliasesUnion, serializer); in WriteJson()
55 …soft.Json.JsonWriter writer, AnyUniqueAliasesUnion _o, Newtonsoft.Json.JsonSerializer serializer) { in WriteJson() argument
57 serializer.Serialize(writer, _o.Value); in WriteJson()
59 … reader, System.Type objectType, object existingValue, Newtonsoft.Json.JsonSerializer serializer) { in ReadJson() argument
64 _olist[_j] = this.ReadJson(reader, _olist[_j], serializer); in ReadJson()
69 return this.ReadJson(reader, existingValue as AnyUniqueAliasesUnion, serializer); in ReadJson()
72 …soft.Json.JsonReader reader, AnyUniqueAliasesUnion _o, Newtonsoft.Json.JsonSerializer serializer) { in ReadJson() argument
76 …case AnyUniqueAliases.M: _o.Value = serializer.Deserialize<MyGame.Example.MonsterT>(reader); break; in ReadJson()
[all …]
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/tags/propagation/
DTagContextBinarySerializerImplTest.java47 private final TagContextBinarySerializer serializer = field in TagContextBinarySerializerImplTest
63 assertThat(serializer.toByteArray(tagContext)).isEmpty(); in toByteArray_TaggingDisabled()
69 final byte[] serialized = serializer.toByteArray(tagContext); in toByteArray_TaggingReenabled()
71 assertThat(serializer.toByteArray(tagContext)).isEmpty(); in toByteArray_TaggingReenabled()
73 assertThat(serializer.toByteArray(tagContext)).isEqualTo(serialized); in toByteArray_TaggingReenabled()
80 byte[] serialized = serializer.toByteArray(tagContext); in fromByteArray_TaggingDisabled()
82 assertThat(TagsTestUtil.tagContextToList(serializer.fromByteArray(serialized))).isEmpty(); in fromByteArray_TaggingDisabled()
88 byte[] serialized = serializer.toByteArray(tagContext); in fromByteArray_TaggingReenabled()
90 assertThat(TagsTestUtil.tagContextToList(serializer.fromByteArray(serialized))).isEmpty(); in fromByteArray_TaggingReenabled()
92 assertThat(serializer.fromByteArray(serialized)).isEqualTo(tagContext); in fromByteArray_TaggingReenabled()
/external/auto/value/src/test/java/com/google/auto/value/extension/serializable/serializer/impl/
DOptionalSerializerExtensionTest.java16 package com.google.auto.value.extension.serializable.serializer.impl;
21 import com.google.auto.value.extension.serializable.serializer.interfaces.Serializer;
22 import com.google.auto.value.extension.serializable.serializer.utils.CompilationAbstractTest;
23 import com.google.auto.value.extension.serializable.serializer.utils.FakeSerializerFactory;
69 Serializer serializer = in proxyFieldType() local
71 TypeMirror actualTypeMirror = serializer.proxyFieldType(); in proxyFieldType()
80 Serializer serializer = in toProxy() local
82 CodeBlock actualCodeBlock = serializer.toProxy(CodeBlock.of("x")); in toProxy()
91 Serializer serializer = in fromProxy() local
93 CodeBlock actualCodeBlock = serializer.fromProxy(CodeBlock.of("x")); in fromProxy()

12345678910>>...16