Home
last modified time | relevance | path

Searched refs:EnumValue (Results 1 – 25 of 79) sorted by relevance

1234

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DMapForProto2LiteTest.java61 builder.getMutableInt32ToEnumField().put(1, TestMap.EnumValue.FOO); in setMapValues()
62 builder.getMutableInt32ToEnumField().put(2, TestMap.EnumValue.BAR); in setMapValues()
63 builder.getMutableInt32ToEnumField().put(3, TestMap.EnumValue.BAZ); in setMapValues()
104 assertEquals(TestMap.EnumValue.FOO, message.getInt32ToEnumField().get(1)); in assertMapValuesSet()
105 assertEquals(TestMap.EnumValue.BAR, message.getInt32ToEnumField().get(2)); in assertMapValuesSet()
106 assertEquals(TestMap.EnumValue.BAZ, message.getInt32ToEnumField().get(3)); in assertMapValuesSet()
132 builder.getMutableInt32ToEnumField().put(1, TestMap.EnumValue.BAR); in updateMapValues()
134 builder.getMutableInt32ToEnumField().put(4, TestMap.EnumValue.QUX); in updateMapValues()
164 assertEquals(TestMap.EnumValue.BAR, message.getInt32ToEnumField().get(1)); in assertMapValuesUpdated()
165 assertEquals(TestMap.EnumValue.BAZ, message.getInt32ToEnumField().get(3)); in assertMapValuesUpdated()
[all …]
DMapTest.java65 builder.getMutableInt32ToEnumField().put(1, TestMap.EnumValue.FOO); in setMapValues()
66 builder.getMutableInt32ToEnumField().put(2, TestMap.EnumValue.BAR); in setMapValues()
67 builder.getMutableInt32ToEnumField().put(3, TestMap.EnumValue.BAZ); in setMapValues()
108 assertEquals(TestMap.EnumValue.FOO, message.getInt32ToEnumField().get(1)); in assertMapValuesSet()
109 assertEquals(TestMap.EnumValue.BAR, message.getInt32ToEnumField().get(2)); in assertMapValuesSet()
110 assertEquals(TestMap.EnumValue.BAZ, message.getInt32ToEnumField().get(3)); in assertMapValuesSet()
136 builder.getMutableInt32ToEnumField().put(1, TestMap.EnumValue.BAR); in updateMapValues()
138 builder.getMutableInt32ToEnumField().put(4, TestMap.EnumValue.QUX); in updateMapValues()
168 assertEquals(TestMap.EnumValue.BAR, message.getInt32ToEnumField().get(1)); in assertMapValuesUpdated()
169 assertEquals(TestMap.EnumValue.BAZ, message.getInt32ToEnumField().get(3)); in assertMapValuesUpdated()
[all …]
DMapForProto2Test.java64 builder.getMutableInt32ToEnumField().put(1, TestMap.EnumValue.FOO); in setMapValues()
65 builder.getMutableInt32ToEnumField().put(2, TestMap.EnumValue.BAR); in setMapValues()
66 builder.getMutableInt32ToEnumField().put(3, TestMap.EnumValue.BAZ); in setMapValues()
107 assertEquals(TestMap.EnumValue.FOO, message.getInt32ToEnumField().get(1)); in assertMapValuesSet()
108 assertEquals(TestMap.EnumValue.BAR, message.getInt32ToEnumField().get(2)); in assertMapValuesSet()
109 assertEquals(TestMap.EnumValue.BAZ, message.getInt32ToEnumField().get(3)); in assertMapValuesSet()
135 builder.getMutableInt32ToEnumField().put(1, TestMap.EnumValue.BAR); in updateMapValues()
137 builder.getMutableInt32ToEnumField().put(4, TestMap.EnumValue.QUX); in updateMapValues()
167 assertEquals(TestMap.EnumValue.BAR, message.getInt32ToEnumField().get(1)); in assertMapValuesUpdated()
168 assertEquals(TestMap.EnumValue.BAZ, message.getInt32ToEnumField().get(3)); in assertMapValuesUpdated()
[all …]
/external/protobuf/src/google/protobuf/
Dtype.pb.cc120 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValue, name_), in protobuf_AssignDesc_google_2fprotobuf_2ftype_2eproto()
121 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValue, number_), in protobuf_AssignDesc_google_2fprotobuf_2ftype_2eproto()
122 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValue, options_), in protobuf_AssignDesc_google_2fprotobuf_2ftype_2eproto()
127 EnumValue::default_instance_, in protobuf_AssignDesc_google_2fprotobuf_2ftype_2eproto()
132 sizeof(EnumValue), in protobuf_AssignDesc_google_2fprotobuf_2ftype_2eproto()
133 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValue, _internal_metadata_), in protobuf_AssignDesc_google_2fprotobuf_2ftype_2eproto()
134 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValue, _is_default_instance_)); in protobuf_AssignDesc_google_2fprotobuf_2ftype_2eproto()
171 EnumValue_descriptor_, &EnumValue::default_instance()); in protobuf_RegisterTypes()
185 delete EnumValue::default_instance_; in protobuf_ShutdownFile_google_2fprotobuf_2ftype_2eproto()
244 EnumValue::default_instance_ = new EnumValue(); in protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto()
[all …]
Dtype.pb.h44 class EnumValue; variable
604 const ::google::protobuf::EnumValue& enumvalue(int index) const;
605 ::google::protobuf::EnumValue* mutable_enumvalue(int index);
606 ::google::protobuf::EnumValue* add_enumvalue();
607 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue >*
609 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue >&
645 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue > enumvalue_;
659 class LIBPROTOBUF_EXPORT EnumValue : public ::google::protobuf::Message {
661 EnumValue();
662 virtual ~EnumValue();
[all …]
/external/deqp-deps/SPIRV-Headers/tools/buildHeaders/
DjsonToSpirv.h167 class EnumValue {
169 EnumValue() : value(0), desc(nullptr) {} in EnumValue() function
170EnumValue(unsigned int the_value, const std::string& the_name, EnumCaps&& the_caps, const std::str… in EnumValue() function
191 using EnumValues = EnumValuesContainer<EnumValue>;
207 EnumValue& operator[](unsigned value) {
229 class InstructionValue : public EnumValue {
231 InstructionValue(EnumValue&& e, bool has_type, bool has_result) in InstructionValue()
232 : EnumValue(std::move(e)), in InstructionValue()
/external/swiftshader/third_party/SPIRV-Headers/tools/buildHeaders/
DjsonToSpirv.h167 class EnumValue {
169 EnumValue() : value(0), desc(nullptr) {} in EnumValue() function
170EnumValue(unsigned int the_value, const std::string& the_name, EnumCaps&& the_caps, const std::str… in EnumValue() function
191 using EnumValues = EnumValuesContainer<EnumValue>;
207 EnumValue& operator[](unsigned value) {
229 class InstructionValue : public EnumValue {
231 InstructionValue(EnumValue&& e, bool has_type, bool has_result) in InstructionValue()
232 : EnumValue(std::move(e)), in InstructionValue()
/external/shaderc/spirv-headers/tools/buildHeaders/
DjsonToSpirv.h167 class EnumValue {
169 EnumValue() : value(0), desc(nullptr) {} in EnumValue() function
170EnumValue(unsigned int the_value, const std::string& the_name, EnumCaps&& the_caps, const std::str… in EnumValue() function
191 using EnumValues = EnumValuesContainer<EnumValue>;
207 EnumValue& operator[](unsigned value) {
229 class InstructionValue : public EnumValue {
231 InstructionValue(EnumValue&& e, bool has_type, bool has_result) in InstructionValue()
232 : EnumValue(std::move(e)), in InstructionValue()
/external/llvm/tools/llvm-pdbdump/
DEnumDumper.cpp39 while (auto EnumValue = EnumValues->getNext()) { in start() local
40 if (EnumValue->getDataKind() != PDB_DataKind::Constant) in start()
44 << EnumValue->getName(); in start()
47 << EnumValue->getValue(); in start()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-pdbutil/
DPrettyEnumDumper.cpp42 while (auto EnumValue = EnumValues->getNext()) { in start() local
43 if (EnumValue->getDataKind() != PDB_DataKind::Constant) in start()
47 << EnumValue->getName(); in start()
50 << EnumValue->getValue(); in start()
/external/libchrome/mojo/public/tools/bindings/pylib/mojom/generate/
Dconstant_resolver.py15 assert isinstance(named_value, (mojom.EnumValue, mojom.ConstantValue))
16 if isinstance(named_value, mojom.EnumValue):
37 if isinstance(constant.value, (mojom.EnumValue, mojom.ConstantValue)):
53 if isinstance(field.value, mojom.EnumValue):
82 if isinstance(field.default, (mojom.ConstantValue, mojom.EnumValue)):
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DType.cs67 …typeof(global::Google.Protobuf.WellKnownTypes.EnumValue), global::Google.Protobuf.WellKnownTypes.E… in TypeReflection()
866 …private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.EnumValue> _repeated…
867 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.EnumValue.Parser);
868 …ogle.Protobuf.WellKnownTypes.EnumValue> enumvalue_ = new pbc::RepeatedField<global::Google.Protobu…
872 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.EnumValue> Enumvalue {
1040 public sealed partial class EnumValue : pb::IMessage<EnumValue> { class
1041 …ivate static readonly pb::MessageParser<EnumValue> _parser = new pb::MessageParser<EnumValue>(() =…
1042 public static pb::MessageParser<EnumValue> Parser { get { return _parser; } }
1052 public EnumValue() { in EnumValue() method in Google.Protobuf.WellKnownTypes.EnumValue
1058 public EnumValue(EnumValue other) : this() { in EnumValue() method in Google.Protobuf.WellKnownTypes.EnumValue
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/utils/TableGen/
DCodeGenRegisters.h72 const unsigned EnumValue; variable
147 return A.EnumValue < B.EnumValue;
153 unsigned EnumValue; member
285 return A.EnumValue < B.EnumValue;
289 return A.EnumValue == B.EnumValue;
326 unsigned EnumValue;
370 return SubClasses.test(RC->EnumValue); in hasSubClass()
645 return Reg->EnumValue - 1; in getRegIndex()
DRegisterInfoEmitter.cpp128 OS << " " << Reg.getName() << " = " << Reg.EnumValue << ",\n"; in runEnums()
129 assert(Registers.size() == Registers.back().EnumValue && in runEnums()
149 << " = " << RC.EnumValue << ",\n"; in runEnums()
580 OS << Idx->EnumValue; in printSubRegIndex()
616 uint16_t Cur = (*I)->EnumValue; in diffEncode()
637 CodeGenSubRegIndex *&Entry = Vec[I.first->EnumValue - 1]; in combine()
644 auto *&Entry = Vec[I.first->EnumValue - 1]; in combine()
706 OS << Rows[r][i]->EnumValue << ", "; in emitComposeSubRegIndices()
866 diffEncode(SubRegLists[i], Reg.EnumValue, SR.begin(), SR.end()); in runMCDesc()
877 diffEncode(SuperRegLists[i], Reg.EnumValue, SuperRegList.begin(), in runMCDesc()
[all …]
DCodeGenRegisters.cpp54 : TheDef(R), EnumValue(Enum), AllSuperRegsCovered(true), Artificial(true) { in CodeGenSubRegIndex()
65 EnumValue(Enum), AllSuperRegsCovered(true), Artificial(true) { in CodeGenSubRegIndex()
158 EnumValue(Enum), in CodeGenRegister()
565 Id.push_back(I->first->EnumValue); in computeSuperRegs()
736 EnumValue(-1) { in CodeGenRegisterClass()
813 EnumValue(-1), in CodeGenRegisterClass()
937 RC.SubClasses.set(RC.EnumValue); in computeSubClasses()
944 if (RC.SubClasses.test(SubRC.EnumValue)) in computeSubClasses()
955 RC.SubClasses.set(I2->EnumValue); in computeSubClasses()
998 if (SuperRegRCsBV[RC.EnumValue]) in getMatchingSubClassWithSubRegs()
[all …]
/external/llvm/utils/TableGen/
DCodeGenRegisters.h61 const unsigned EnumValue; variable
122 return A.EnumValue < B.EnumValue;
128 unsigned EnumValue; member
259 return A.EnumValue < B.EnumValue;
263 return A.EnumValue == B.EnumValue;
300 unsigned EnumValue;
343 return SubClasses.test(RC->EnumValue); in hasSubClass()
602 return Reg->EnumValue - 1; in getRegIndex()
DRegisterInfoEmitter.cpp114 OS << " " << Reg.getName() << " = " << Reg.EnumValue << ",\n"; in runEnums()
115 assert(Registers.size() == Registers.back().EnumValue && in runEnums()
135 << " = " << RC.EnumValue << ",\n"; in runEnums()
574 OS << Idx->EnumValue; in printSubRegIndex()
610 uint16_t Cur = (*I)->EnumValue; in diffEncode()
631 CodeGenSubRegIndex *&Entry = Vec[I.first->EnumValue - 1]; in combine()
638 auto *&Entry = Vec[I.first->EnumValue - 1]; in combine()
700 OS << Rows[r][i]->EnumValue << ", "; in emitComposeSubRegIndices()
857 diffEncode(SubRegLists[i], Reg.EnumValue, SR.begin(), SR.end()); in runMCDesc()
868 diffEncode(SuperRegLists[i], Reg.EnumValue, SuperRegList.begin(), in runMCDesc()
[all …]
DCodeGenRegisters.cpp34 : TheDef(R), EnumValue(Enum), LaneMask(0), AllSuperRegsCovered(true) { in CodeGenSubRegIndex()
45 EnumValue(Enum), LaneMask(0), AllSuperRegsCovered(true) { in CodeGenSubRegIndex()
108 EnumValue(Enum), in CodeGenRegister()
497 Id.push_back(I->first->EnumValue); in computeSuperRegs()
657 EnumValue(-1), in CodeGenRegisterClass()
728 EnumValue(-1), in CodeGenRegisterClass()
857 RC.SubClasses.set(RC.EnumValue); in computeSubClasses()
862 if (RC.SubClasses.test(SubRC.EnumValue)) in computeSubClasses()
873 RC.SubClasses.set(I2->EnumValue); in computeSubClasses()
904 Out.set(RC->EnumValue); in getSuperRegClasses()
[all …]
/external/swiftshader/third_party/LLVM/utils/TableGen/
DCodeGenRegisters.h37 unsigned EnumValue; member
74 return A->EnumValue < B->EnumValue; in operator()
108 unsigned EnumValue;
148 return SubClasses.test(RC->EnumValue); in hasSubClass()
/external/libchrome/mojo/public/tools/bindings/pylib/mojom_tests/parse/
Dparser_unittest.py194 ast.EnumValue('VALUE', None, None))),
350 ast.EnumValueList([ast.EnumValue('VALUE1', None, None),
351 ast.EnumValue('VALUE2', None, None)])),
355 ast.EnumValueList([ast.EnumValue('VALUE1', None, '-1'),
356 ast.EnumValue('VALUE2', None, '0'),
357 ast.EnumValue('VALUE3', None, '+987'),
358 ast.EnumValue('VALUE4', None, '0xAF12'),
359 ast.EnumValue('VALUE5', None, '-0x09bcd'),
360 ast.EnumValue('VALUE6', None, ('IDENTIFIER',
362 ast.EnumValue('VALUE7', None, None)]))])
[all …]
/external/protobuf/src/google/protobuf/util/internal/
Dutility.h60 class EnumValue; variable
137 const google::protobuf::EnumValue* FindEnumValueByNameOrNull(
142 const google::protobuf::EnumValue* FindEnumValueByNumberOrNull(
Dutility.cc177 const google::protobuf::EnumValue* FindEnumValueByNameOrNull( in FindEnumValueByNameOrNull()
181 const google::protobuf::EnumValue& enum_value = enum_type->enumvalue(i); in FindEnumValueByNameOrNull()
190 const google::protobuf::EnumValue* FindEnumValueByNumberOrNull( in FindEnumValueByNumberOrNull()
194 const google::protobuf::EnumValue& enum_value = enum_type->enumvalue(i); in FindEnumValueByNumberOrNull()
/external/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/
DUnittestIssues.cs625 public global::UnitTest.Issues.TestProtos.DeprecatedEnum EnumValue { property in UnitTest.Issues.TestProtos.DeprecatedFieldsMessage
657 if (EnumValue != other.EnumValue) return false; in Equals()
668 if (EnumValue != 0) hash ^= EnumValue.GetHashCode(); in GetHashCode()
688 if (EnumValue != 0) { in WriteTo()
690 output.WriteEnum((int) EnumValue); in WriteTo()
705 if (EnumValue != 0) { in CalculateSize()
706 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumValue); in CalculateSize()
727 if (other.EnumValue != 0) { in MergeFrom()
728 EnumValue = other.EnumValue; in MergeFrom()
/external/libcxx/benchmarks/
DCartesianBenchmarks.hpp22 struct EnumValue : std::integral_constant<E, static_cast<E>(I)> { struct
28 return std::make_tuple(EnumValue<D, E, Idxs>{}...); in makeEnumValueTuple()
/external/guice/core/test/com/google/inject/
DTypeConversionTest.java47 @interface EnumValue {} annotation in TypeConversionTest
68 @Inject @EnumValue Bar enumField;
105 bindConstant().annotatedWith(EnumValue.class).to("TEE"); in testConstantInjection()
140 bindConstant().annotatedWith(EnumValue.class).to("TEE"); in testConstantInjectionWithExplicitBindingsRequired()

1234