Home
last modified time | relevance | path

Searched refs:oneof (Results 1 – 25 of 110) sorted by relevance

12345

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DDynamicMessage.java175 public boolean hasOneof(OneofDescriptor oneof) { in hasOneof() argument
176 verifyOneofContainingType(oneof); in hasOneof()
177 FieldDescriptor field = oneofCases[oneof.getIndex()]; in hasOneof()
185 public FieldDescriptor getOneofFieldDescriptor(OneofDescriptor oneof) { in getOneofFieldDescriptor() argument
186 verifyOneofContainingType(oneof); in getOneofFieldDescriptor()
187 return oneofCases[oneof.getIndex()]; in getOneofFieldDescriptor()
317 private void verifyOneofContainingType(OneofDescriptor oneof) {
318 if (oneof.getContainingType() != type) {
462 public boolean hasOneof(OneofDescriptor oneof) {
463 verifyOneofContainingType(oneof);
[all …]
DMessageOrBuilder.java96 boolean hasOneof(Descriptors.OneofDescriptor oneof); in hasOneof() argument
103 Descriptors.OneofDescriptor oneof); in getOneofFieldDescriptor() argument
DMessageReflection.java307 boolean hasOneof(Descriptors.OneofDescriptor oneof); in hasOneof() argument
313 MergeTarget clearOneof(Descriptors.OneofDescriptor oneof); in clearOneof() argument
319 Descriptors.FieldDescriptor getOneofFieldDescriptor(Descriptors.OneofDescriptor oneof); in getOneofFieldDescriptor() argument
418 public boolean hasOneof(Descriptors.OneofDescriptor oneof) { in hasOneof() argument
419 return builder.hasOneof(oneof); in hasOneof()
423 public MergeTarget clearOneof(Descriptors.OneofDescriptor oneof) { in clearOneof() argument
424 builder.clearOneof(oneof); in clearOneof()
429 public Descriptors.FieldDescriptor getOneofFieldDescriptor(Descriptors.OneofDescriptor oneof) { in getOneofFieldDescriptor() argument
430 return builder.getOneofFieldDescriptor(oneof); in getOneofFieldDescriptor()
604 public boolean hasOneof(Descriptors.OneofDescriptor oneof) { in hasOneof() argument
[all …]
DAbstractMessage.java104 public boolean hasOneof(OneofDescriptor oneof) { in hasOneof() argument
110 public FieldDescriptor getOneofFieldDescriptor(OneofDescriptor oneof) { in getOneofFieldDescriptor() argument
336 public boolean hasOneof(OneofDescriptor oneof) { in hasOneof() argument
342 public FieldDescriptor getOneofFieldDescriptor(OneofDescriptor oneof) { in getOneofFieldDescriptor() argument
349 public BuilderType clearOneof(OneofDescriptor oneof) { in clearOneof() argument
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/java/
Djava_context.cc118 const OneofDescriptor* oneof = message->oneof_decl(i); in InitializeFieldGeneratorInfoForMessage() local
120 info.name = UnderscoresToCamelCase(oneof->name(), false); in InitializeFieldGeneratorInfoForMessage()
121 info.capitalized_name = UnderscoresToCamelCase(oneof->name(), true); in InitializeFieldGeneratorInfoForMessage()
122 oneof_generator_info_map_[oneof] = info; in InitializeFieldGeneratorInfoForMessage()
182 const OneofDescriptor* oneof) const { in GetOneofGeneratorInfo()
184 FindOrNull(oneof_generator_info_map_, oneof); in GetOneofGeneratorInfo()
187 << oneof->name(); in GetOneofGeneratorInfo()
/frameworks/base/tools/stats_log_api_gen/
Dtest.proto62 oneof event {
76 oneof event {
86 oneof event {
98 oneof event {
109 oneof event { BadAttributionNodePositionAtom bad = 1; }
113 oneof event { GoodBinaryFieldAtom field1 = 1; }
126 oneof event { BadBinaryFieldAtom field1 = 1; }
135 oneof event {
143 oneof event {
209 oneof event {
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DDynamicMessageTest.java285 OneofDescriptor oneof = TestAllTypes.getDescriptor().getOneofs().get(0); in testDynamicOneofMessage() local
286 assertFalse(builder.hasOneof(oneof)); in testDynamicOneofMessage()
287 assertSame(null, builder.getOneofFieldDescriptor(oneof)); in testDynamicOneofMessage()
290 assertTrue(builder.hasOneof(oneof)); in testDynamicOneofMessage()
291 FieldDescriptor field = oneof.getField(3); in testDynamicOneofMessage()
292 assertSame(field, builder.getOneofFieldDescriptor(oneof)); in testDynamicOneofMessage()
295 assertTrue(message.hasOneof(oneof)); in testDynamicOneofMessage()
299 FieldDescriptor mergedField = oneof.getField(0); in testDynamicOneofMessage()
306 builder.clearOneof(oneof); in testDynamicOneofMessage()
307 assertSame(null, builder.getOneofFieldDescriptor(oneof)); in testDynamicOneofMessage()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/Reflection/
DMessageDescriptor.cs80 (oneof, index) => in MessageDescriptor()
81 new OneofDescriptor(oneof, file, this, index, generatedCodeInfo.OneofNames[index])); in MessageDescriptor()
238 foreach (OneofDescriptor oneof in Oneofs) in CrossLink()
240 oneof.CrossLink(); in CrossLink()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/Reflection/
DFieldAccessTest.cs187 var oneof = descriptor.Oneofs[0]; in Oneof()
188 Assert.AreEqual("oneof_field", oneof.Name); in Oneof()
189 Assert.IsNull(oneof.Accessor.GetCaseFieldDescriptor(message)); in Oneof()
192 …Assert.AreSame(descriptor.Fields[TestAllTypes.OneofStringFieldNumber], oneof.Accessor.GetCaseField… in Oneof()
195 …Assert.AreSame(descriptor.Fields[TestAllTypes.OneofUint32FieldNumber], oneof.Accessor.GetCaseField… in Oneof()
197 oneof.Accessor.Clear(message); in Oneof()
/frameworks/native/cmds/surfacereplayer/proto/src/
Dtrace.proto11 oneof increment {
34 oneof SurfaceChange {
117 oneof DisplayChange {
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/
DGPBUtilities.m128 NSCAssert(idx < 0, @"%@: invalid index (%d) for oneof.",
153 void GPBMaybeClearOneof(GPBMessage *self, GPBOneofDescriptor *oneof,
157 // Do nothing/nothing set in the oneof.
163 GPBFieldDescriptor *fieldSet = [oneof fieldWithNumber:fieldNumberSet];
165 @"%@: oneof set to something (%u) not in the oneof?",
174 // Set to nothing stored in the oneof.
206 //% GPBOneofDescriptor *oneof = field->containingOneof_;
207 //% if (oneof) {
209 //% GPBMaybeClearOneof(self, oneof, fieldDesc->hasIndex, fieldDesc->number);
326 // Non repeated/map can be in an oneof, clear any existing value from the
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/ruby/
Druby_generator.cc167 void GenerateOneof(const google::protobuf::OneofDescriptor* oneof, in GenerateOneof() argument
171 "name", oneof->name()); in GenerateOneof()
174 for (int i = 0; i < oneof->field_count(); i++) { in GenerateOneof()
175 const FieldDescriptor* field = oneof->field(i); in GenerateOneof()
205 const OneofDescriptor* oneof = message->oneof_decl(i); in GenerateMessage() local
206 GenerateOneof(oneof, printer); in GenerateMessage()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/php/ext/google/protobuf/
Dstorage.c343 const upb_oneofdef* oneof = upb_msg_iter_oneof(&oit); in create_layout() local
352 for (upb_oneof_begin(&fit, oneof); !upb_oneof_done(&fit); in create_layout()
363 const upb_oneofdef* oneof = upb_msg_iter_oneof(&oit); in create_layout() local
370 for (upb_oneof_begin(&fit, oneof); !upb_oneof_done(&fit); in create_layout()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/protos/
Dunittest_issues.proto95 // order, and the oneof fields aren't contiguous either.
107 oneof o1 {
114 oneof o2 {
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/js/
Djs_generator.cc453 bool IgnoreOneof(const OneofDescriptor* oneof) { in IgnoreOneof() argument
454 for (int i = 0; i < oneof->field_count(); i++) { in IgnoreOneof()
455 if (!IgnoreField(oneof->field(i))) { in IgnoreOneof()
543 string JSOneofName(const OneofDescriptor* oneof) { in JSOneofName() argument
544 return ToUpperCamel(ParseLowerUnderscore(oneof->name())); in JSOneofName()
569 string JSOneofIndex(const OneofDescriptor* oneof) { in JSOneofIndex() argument
571 for (int i = 0; i < oneof->containing_type()->oneof_decl_count(); i++) { in JSOneofIndex()
572 const OneofDescriptor* o = oneof->containing_type()->oneof_decl(i); in JSOneofIndex()
581 if (o == oneof) { in JSOneofIndex()
1058 const OneofDescriptor* oneof = desc->oneof_decl(i); in OneofGroupList() local
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/js/
Dtest.proto208 oneof partial_oneof {
213 oneof recursive_oneof {
221 oneof default_oneof_a {
226 oneof default_oneof_b {
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/
Djson_format_proto3.proto80 // In JSON format oneof fields behave mostly the same as optional
84 // 2. Multiple oneof fields in the same oneof cannot appear at the
86 oneof oneof_value {
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/javanano/
Djavanano_helpers.h57 string UnderscoresToCamelCase(const OneofDescriptor* oneof);
59 string UnderscoresToCapitalizedCamelCase(const OneofDescriptor* oneof);
Djavanano_helpers.cc157 string UnderscoresToCamelCase(const OneofDescriptor* oneof) { in UnderscoresToCamelCase() argument
158 return UnderscoresToCamelCaseImpl(oneof->name(), false); in UnderscoresToCamelCase()
161 string UnderscoresToCapitalizedCamelCase(const OneofDescriptor* oneof) { in UnderscoresToCapitalizedCamelCase() argument
162 return UnderscoresToCamelCaseImpl(oneof->name(), true); in UnderscoresToCapitalizedCamelCase()
/frameworks/base/cmds/statsd/src/
Dstats_log.proto29 oneof value {
111 oneof single_value {
119 oneof value {
209 oneof data {
489 oneof value {
Dstatsd_config.proto63 oneof value_matcher {
114 oneof contents {
147 oneof contents {
372 oneof subscriber_information {
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dunittest_preserve_unknown_enum.proto56 oneof o {
67 oneof o {
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/proto/com/google/protobuf/
Dlite_equals_and_hash.proto40 oneof oneof_field {
78 oneof Foo {
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/python/
Dpython_generator.cc855 const OneofDescriptor* oneof = descriptor.oneof_decl(i); in FixForeignFieldsInDescriptor() local
857 m["oneof_name"] = oneof->name(); in FixForeignFieldsInDescriptor()
858 for (int j = 0; j < oneof->field_count(); ++j) { in FixForeignFieldsInDescriptor()
859 m["field_name"] = oneof->field(j)->name(); in FixForeignFieldsInDescriptor()
1273 void Generator::FixOptionsForOneof(const OneofDescriptor& oneof) const { in FixOptionsForOneof()
1275 "OneofOptions", oneof.options().SerializeAsString()); in FixOptionsForOneof()
1279 ModuleLevelDescriptorName(*oneof.containing_type()), in FixOptionsForOneof()
1280 "oneofs_by_name", oneof.name()); in FixOptionsForOneof()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/src/main/java/com/google/protobuf/jruby/
DRubyMessage.java100 Descriptors.OneofDescriptor oneof = fieldDescriptor.getContainingOneof(); in initialize()
101 if (oneof != null) { in initialize()
102 oneofCases.put(oneof, fieldDescriptor); in initialize()
752 private Descriptors.FieldDescriptor getOneofCase(Descriptors.OneofDescriptor oneof) { in getOneofCase() argument
753 if (oneofCases.containsKey(oneof)) { in getOneofCase()
754 return oneofCases.get(oneof); in getOneofCase()
756 return builder.getOneofFieldDescriptor(oneof); in getOneofCase()

12345