Home
last modified time | relevance | path

Searched refs:DefaultValue (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/
DFieldCodecTest.cs87 public void DefaultValue(ICodecTestData codec) in DefaultValue() method in Google.Protobuf.FieldCodecTest
162 codec.WriteTagAndValue(codedOutput, codec.DefaultValue); in TestDefaultValue()
165 Assert.AreEqual(0, codec.CalculateSizeWithTag(codec.DefaultValue)); in TestDefaultValue()
168 Assert.AreEqual(default(T), codec.DefaultValue); in TestDefaultValue()
172 if (codec.DefaultValue != null) // This part isn't appropriate for message types. in TestDefaultValue()
175 codec.ValueWriter(codedOutput, codec.DefaultValue); in TestDefaultValue()
178 Assert.AreEqual(stream.Position, codec.ValueSizeCalculator(codec.DefaultValue)); in TestDefaultValue()
181 Assert.AreEqual(codec.DefaultValue, codec.ValueReader(codedInput)); in TestDefaultValue()
/frameworks/compile/slang/
Dslang_rs_reflection_cpp.h42 std::string DefaultValue; member
43 Argument(std::string Type, std::string Name, std::string DefaultValue = "")
44 : Type(Type), Name(Name), DefaultValue(DefaultValue) {} in Type()
Dslang_rs_reflection_cpp.cpp746 if (!I->DefaultValue.empty()) { in genArguments()
747 mOut << " = " << I->DefaultValue; in genArguments()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/WellKnownTypes/
DType.cs529 public string DefaultValue { property in Google.Protobuf.WellKnownTypes.Field
558 if (DefaultValue != other.DefaultValue) return false; in Equals()
574 if (DefaultValue.Length != 0) hash ^= DefaultValue.GetHashCode(); in GetHashCode()
618 if (DefaultValue.Length != 0) { in WriteTo()
620 output.WriteString(DefaultValue); in WriteTo()
652 if (DefaultValue.Length != 0) { in CalculateSize()
653 size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultValue); in CalculateSize()
688 if (other.DefaultValue.Length != 0) { in MergeFrom()
689 DefaultValue = other.DefaultValue; in MergeFrom()
738 DefaultValue = input.ReadString(); in MergeFrom()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/java/
Djava_map_field.cc97 (*variables)["key_default_value"] = DefaultValue(key, true, name_resolver); in SetMessageVariables()
108 DefaultValue(value, true, name_resolver) + ".getNumber()"; in SetMessageVariables()
119 DefaultValue(value, true, name_resolver); in SetMessageVariables()
126 DefaultValue(value, true, name_resolver); in SetMessageVariables()
Djava_map_field_lite.cc97 (*variables)["key_default_value"] = DefaultValue(key, true, name_resolver); in SetMessageVariables()
109 DefaultValue(value, true, name_resolver) + ".getNumber()"; in SetMessageVariables()
120 DefaultValue(value, true, name_resolver); in SetMessageVariables()
127 DefaultValue(value, true, name_resolver); in SetMessageVariables()
Djava_helpers.h210 string DefaultValue(const FieldDescriptor* field, bool immutable,
214 return DefaultValue(field, true, name_resolver); in ImmutableDefaultValue()
Djava_extension.cc78 "" : DefaultValue(descriptor, immutable, name_resolver); in InitTemplateVars()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Dtype_checkers.py118 def DefaultValue(self): member in TypeCheckerWithDefault
141 def DefaultValue(self): member in IntValueChecker
161 def DefaultValue(self): member in EnumValueChecker
189 def DefaultValue(self): member in UnicodeValueChecker
Dcontainers.py462 val = self._value_checker.DefaultValue()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/
DFieldCodec.cs299 T value = codec.DefaultValue; in Read()
408 internal T DefaultValue { get; } property in Google.Protobuf.FieldCodec
441 DefaultValue = defaultValue; in FieldCodec()
472 private bool IsDefault(T value) => EqualityComparer<T>.Default.Equals(value, DefaultValue);
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/objectivec/
Dobjectivec_extension.cc103 vars["default"] = DefaultValue(descriptor_); in GenerateStaticVariablesInitialization()
Dobjectivec_helpers.h168 string DefaultValue(const FieldDescriptor* field);
Dobjectivec_field.cc98 (*variables)["default"] = DefaultValue(descriptor); in SetCommonFieldVariables()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/javanano/
Djavanano_primitive_field.cc190 (*variables)["default"] = DefaultValue(params, descriptor); in SetPrimitiveVariables()
206 (*variables)["default"] = DefaultValue(params, descriptor); in SetPrimitiveVariables()
215 (*variables)["default"] = DefaultValue(params, descriptor); in SetPrimitiveVariables()
Djavanano_helpers.h147 string DefaultValue(const Params& params, const FieldDescriptor* field);
Djavanano_enum_field.cc68 (*variables)["default"] = DefaultValue(params, descriptor); in SetEnumVariables()
Djavanano_helpers.cc403 string DefaultValue(const Params& params, const FieldDescriptor* field) { in DefaultValue() function
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/cpp/
Dcpp_extension.cc136 vars["default" ] = DefaultValue(descriptor_); in GenerateDefinition()
Dcpp_helpers.h142 string DefaultValue(const FieldDescriptor* field);
Dcpp_primitive_field.cc87 (*variables)["default"] = DefaultValue(descriptor); in SetPrimitiveVariables()
Dcpp_string_field.cc52 (*variables)["default"] = DefaultValue(descriptor); in SetStringVariables()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/Collections/
DMapField.cs627 Key = codec.keyCodec.DefaultValue; in Reset()
628 Value = codec.valueCodec.DefaultValue; in Reset()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/Reflection/
DFieldDescriptor.cs288 if (Proto.DefaultValue != "") in CrossLink()
DDescriptor.cs1463 public string DefaultValue { property in Google.Protobuf.Reflection.FieldDescriptorProto
1532 if (DefaultValue != other.DefaultValue) return false; in Equals()
1548 if (DefaultValue.Length != 0) hash ^= DefaultValue.GetHashCode(); in GetHashCode()
1586 if (DefaultValue.Length != 0) { in WriteTo()
1588 output.WriteString(DefaultValue); in WriteTo()
1625 if (DefaultValue.Length != 0) { in CalculateSize()
1626 size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultValue); in CalculateSize()
1663 if (other.DefaultValue.Length != 0) { in MergeFrom()
1664 DefaultValue = other.DefaultValue; in MergeFrom()
1713 DefaultValue = input.ReadString(); in MergeFrom()

12