/external/bcc/src/cc/frontends/p4/compiler/ |
D | ebpfTable.py | 24 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 …]
|
D | ebpfProgram.py | 144 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 …]
|
D | target.py | 16 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 …]
|
D | ebpfParser.py | 20 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 …]
|
D | ebpfCounter.py | 57 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 …]
|
D | ebpfConditional.py | 29 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 …]
|
D | ebpfStructType.py | 47 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 …]
|
D | ebpfAction.py | 28 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 …]
|
D | ebpfDeparser.py | 66 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 …]
|
D | ebpfScalarType.py | 55 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 …]
|
D | ebpfInstance.py | 24 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/vogar/src/vogar/ |
D | XmlReportPrinter.java | 126 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() 129 … serializer.attribute(ns, XmlReportConstants.ATTR_TESTS, Integer.toString(outcomes.size())); in print() 130 … serializer.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/snakeyaml/src/test/java/org/yaml/snakeyaml/serializer/ |
D | SerializerTest.java | 16 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/apache-xml/src/main/java/org/apache/xalan/transformer/ |
D | SerializerSwitcher.java | 30 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/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/tags/propagation/ |
D | TagContextBinarySerializerImplTest.java | 47 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()
|
D | TagContextDeserializationTest.java | 49 private final TagContextBinarySerializer serializer = field in TagContextDeserializationTest 65 serializer.fromByteArray( in testDeserializeNoTags() 75 serializer.fromByteArray(new byte[0]); in testDeserializeEmptyByteArrayThrowException() 104 serializer.fromByteArray(bytes); in testDeserializeTooLargeByteArrayThrowException() 135 serializer.fromByteArray(bytes); in testDeserializeTooLargeByteArrayThrowException_WithDuplicateTagKeys() 149 serializer.fromByteArray(bytes); in testDeserializeInvalidTagKey() 163 serializer.fromByteArray(bytes); in testDeserializeInvalidTagValue() 173 assertThat(serializer.fromByteArray(output.toByteArray())).isEqualTo(expected); in testDeserializeOneTag() 188 assertThat(serializer.fromByteArray(output.toByteArray())).isEqualTo(expected); in testDeserializeMultipleTags() 199 assertThat(serializer.fromByteArray(output.toByteArray())).isEqualTo(expected); in testDeserializeDuplicateKeys() [all …]
|
/external/grpc-grpc/src/csharp/Grpc.Core/ |
D | Marshaller.cs | 29 readonly Func<T, byte[]> serializer; field in Grpc.Core.Marshaller 37 public Marshaller(Func<T, byte[]> serializer, Func<byte[], T> deserializer) in Marshaller() argument 39 this.serializer = GrpcPreconditions.CheckNotNull(serializer, "serializer"); in Marshaller() 50 return this.serializer; 74 … public static Marshaller<T> Create<T>(Func<T, byte[]> serializer, Func<byte[], T> deserializer) in Create() argument 76 return new Marshaller<T>(serializer, deserializer); in Create()
|
/external/dynamic_depth/internal/dynamic_depth/ |
D | imaging_model.cc | 156 bool ImagingModel::Serialize(Serializer* serializer) const { in Serialize() 157 if (serializer == nullptr) { in Serialize() 163 if (!serializer->WriteProperty(DynamicDepthConst::ImagingModel(), in Serialize() 166 !serializer->WriteProperty(DynamicDepthConst::ImagingModel(), in Serialize() 170 !serializer->WriteProperty(DynamicDepthConst::ImagingModel(), kImageWidth, in Serialize() 172 !serializer->WriteProperty(DynamicDepthConst::ImagingModel(), in Serialize() 176 !serializer->WriteProperty(DynamicDepthConst::ImagingModel(), in Serialize() 179 !serializer->WriteProperty(DynamicDepthConst::ImagingModel(), in Serialize() 183 !serializer->WriteProperty(DynamicDepthConst::ImagingModel(), kSkew, in Serialize() 185 !serializer->WriteProperty(DynamicDepthConst::ImagingModel(), in Serialize() [all …]
|
D | earth_pose.cc | 104 bool EarthPose::Serialize(Serializer* serializer) const { in Serialize() 105 if (serializer == nullptr) { in Serialize() 118 serializer->WriteProperty(DynamicDepthConst::EarthPose(), kLatitude, in Serialize() 120 serializer->WriteProperty(DynamicDepthConst::EarthPose(), kLongitude, in Serialize() 122 serializer->WriteProperty(DynamicDepthConst::EarthPose(), kAltitude, in Serialize() 128 serializer->WriteProperty(DynamicDepthConst::EarthPose(), kRotationX, in Serialize() 130 serializer->WriteProperty(DynamicDepthConst::EarthPose(), kRotationY, in Serialize() 132 serializer->WriteProperty(DynamicDepthConst::EarthPose(), kRotationZ, in Serialize() 134 serializer->WriteProperty(DynamicDepthConst::EarthPose(), kRotationW, in Serialize() 139 serializer->WriteProperty(DynamicDepthConst::EarthPose(), kTimestamp, in Serialize()
|
D | pose.cc | 99 bool Pose::Serialize(Serializer* serializer) const { in Serialize() 100 if (serializer == nullptr) { in Serialize() 112 success &= serializer->WriteProperty(DynamicDepthConst::Pose(), kPositionX, in Serialize() 114 serializer->WriteProperty(DynamicDepthConst::Pose(), kPositionY, in Serialize() 116 serializer->WriteProperty(DynamicDepthConst::Pose(), kPositionZ, in Serialize() 121 success &= serializer->WriteProperty(DynamicDepthConst::Pose(), kRotationX, in Serialize() 123 serializer->WriteProperty(DynamicDepthConst::Pose(), kRotationY, in Serialize() 125 serializer->WriteProperty(DynamicDepthConst::Pose(), kRotationZ, in Serialize() 127 serializer->WriteProperty(DynamicDepthConst::Pose(), kRotationW, in Serialize() 132 serializer->WriteProperty(DynamicDepthConst::Pose(), kTimestamp, in Serialize()
|
D | depth_map.cc | 304 bool DepthMap::Serialize(Serializer* serializer) const { in Serialize() 305 if (serializer == nullptr) { in Serialize() 316 if (!serializer->WriteProperty(prefix, kItemSemantic, in Serialize() 318 !serializer->WriteProperty(prefix, kFormat, in Serialize() 320 !serializer->WriteProperty(prefix, kUnits, in Serialize() 322 !serializer->WriteProperty(prefix, kNear, std::to_string(params_.near)) || in Serialize() 323 !serializer->WriteProperty(prefix, kFar, std::to_string(params_.far)) || in Serialize() 324 !serializer->WriteProperty(prefix, kDepthUri, params_.depth_uri)) { in Serialize() 328 serializer->WriteProperty(prefix, kMeasureType, in Serialize() 332 serializer->WriteProperty(prefix, kConfidenceUri, params_.confidence_uri); in Serialize() [all …]
|
D | camera.cc | 192 bool Camera::Serialize(Serializer* serializer) const { in Serialize() 193 if (serializer == nullptr) { in Serialize() 200 serializer->WriteProperty(DynamicDepthConst::Camera(), kTrait, trait_name); in Serialize() 205 std::unique_ptr<Serializer> image_serializer = serializer->CreateSerializer( in Serialize() 215 serializer->CreateSerializer(DynamicDepthConst::Camera(), in Serialize() 224 serializer->CreateSerializer( in Serialize() 233 std::unique_ptr<Serializer> pose_serializer = serializer->CreateSerializer( in Serialize() 242 serializer->CreateSerializer( in Serialize() 252 serializer->CreateSerializer(DynamicDepthConst::Camera(), in Serialize() 261 serializer->CreateSerializer(DynamicDepthConst::Camera(), in Serialize() [all …]
|
D | plane.cc | 95 bool Plane::Serialize(Serializer* serializer) const { in Serialize() 96 if (serializer == nullptr) { in Serialize() 106 if (!serializer->WriteProperty( in Serialize() 118 if (!serializer->WriteProperty(DynamicDepthConst::Plane(), kBoundary, in Serialize() 124 if (!serializer->WriteProperty(DynamicDepthConst::Plane(), kExtentX, in Serialize() 129 if (!serializer->WriteProperty(DynamicDepthConst::Plane(), kExtentZ, in Serialize() 134 std::unique_ptr<Serializer> pose_serializer = serializer->CreateSerializer( in Serialize()
|
/external/skqp/src/core/ |
D | SkRemoteGlyphCache.cpp | 291 Serializer serializer(memory); in writeStrikeData() local 292 serializer.emplace<uint64_t>(fTypefacesToSend.size()); in writeStrikeData() 293 for (const auto& tf : fTypefacesToSend) serializer.write<WireTypeface>(tf); in writeStrikeData() 296 serializer.emplace<uint64_t>(fLockedDescs.size()); in writeStrikeData() 300 it->second->writePendingGlyphs(&serializer); in writeStrikeData() 442 static void writeGlyph(SkGlyph* glyph, Serializer* serializer) { in writeGlyph() argument 443 serializer->write<SkPackedGlyphID>(glyph->getPackedID()); in writeGlyph() 444 serializer->write<float>(glyph->fAdvanceX); in writeGlyph() 445 serializer->write<float>(glyph->fAdvanceY); in writeGlyph() 446 serializer->write<uint16_t>(glyph->fWidth); in writeGlyph() [all …]
|
/external/skia/src/core/ |
D | SkRemoteGlyphCache.cpp | 302 Serializer serializer(memory); in writeStrikeData() local 303 serializer.emplace<uint64_t>(fTypefacesToSend.size()); in writeStrikeData() 304 for (const auto& tf : fTypefacesToSend) serializer.write<WireTypeface>(tf); in writeStrikeData() 307 serializer.emplace<uint64_t>(fLockedDescs.size()); in writeStrikeData() 311 it->second->writePendingGlyphs(&serializer); in writeStrikeData() 449 static void writeGlyph(SkGlyph* glyph, Serializer* serializer) { in writeGlyph() argument 450 serializer->write<SkPackedGlyphID>(glyph->getPackedID()); in writeGlyph() 451 serializer->write<float>(glyph->fAdvanceX); in writeGlyph() 452 serializer->write<float>(glyph->fAdvanceY); in writeGlyph() 453 serializer->write<uint16_t>(glyph->fWidth); in writeGlyph() [all …]
|