Home
last modified time | relevance | path

Searched refs:reflection (Results 1 – 25 of 62) sorted by relevance

123

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dmap_test_util.cc341 const Reflection* reflection = message->GetReflection(); in SetMapFieldsViaReflection() local
346 sub_message = reflection->AddMessage(message, F("map_int32_int32")); in SetMapFieldsViaReflection()
352 sub_message = reflection->AddMessage(message, F("map_int64_int64")); in SetMapFieldsViaReflection()
358 sub_message = reflection->AddMessage(message, F("map_uint32_uint32")); in SetMapFieldsViaReflection()
364 sub_message = reflection->AddMessage(message, F("map_uint64_uint64")); in SetMapFieldsViaReflection()
370 sub_message = reflection->AddMessage(message, F("map_sint32_sint32")); in SetMapFieldsViaReflection()
376 sub_message = reflection->AddMessage(message, F("map_sint64_sint64")); in SetMapFieldsViaReflection()
382 sub_message = reflection->AddMessage(message, F("map_fixed32_fixed32")); in SetMapFieldsViaReflection()
388 sub_message = reflection->AddMessage(message, F("map_fixed64_fixed64")); in SetMapFieldsViaReflection()
394 sub_message = reflection->AddMessage(message, F("map_sfixed32_sfixed32")); in SetMapFieldsViaReflection()
[all …]
Dtest_util.cc2385 const Reflection* reflection = message->GetReflection(); in SetAllFieldsViaReflection() local
2388 reflection->SetInt32 (message, F("optional_int32" ), 101); in SetAllFieldsViaReflection()
2389 reflection->SetInt64 (message, F("optional_int64" ), 102); in SetAllFieldsViaReflection()
2390 reflection->SetUInt32(message, F("optional_uint32" ), 103); in SetAllFieldsViaReflection()
2391 reflection->SetUInt64(message, F("optional_uint64" ), 104); in SetAllFieldsViaReflection()
2392 reflection->SetInt32 (message, F("optional_sint32" ), 105); in SetAllFieldsViaReflection()
2393 reflection->SetInt64 (message, F("optional_sint64" ), 106); in SetAllFieldsViaReflection()
2394 reflection->SetUInt32(message, F("optional_fixed32" ), 107); in SetAllFieldsViaReflection()
2395 reflection->SetUInt64(message, F("optional_fixed64" ), 108); in SetAllFieldsViaReflection()
2396 reflection->SetInt32 (message, F("optional_sfixed32"), 109); in SetAllFieldsViaReflection()
[all …]
Dgenerated_message_reflection_unittest.cc81 const Reflection* reflection = message.GetReflection(); in TEST() local
87 &reflection->GetMessage(message, F("optionalgroup"))); in TEST()
89 &reflection->GetMessage(message, F("optional_nested_message"))); in TEST()
91 &reflection->GetMessage(message, F("optional_foreign_message"))); in TEST()
93 &reflection->GetMessage(message, F("optional_import_message"))); in TEST()
118 const Reflection* reflection = message.GetReflection(); in TEST() local
122 &reflection->GetStringReference(message, F("optional_string"), &scratch)) in TEST()
126 &reflection->GetRepeatedStringReference(message, F("repeated_string"), in TEST()
143 const Reflection* reflection = message.GetReflection(); in TEST() local
146 &reflection->GetMessage(message, F("optionalgroup"))); in TEST()
[all …]
Dreflection_ops.cc130 const Reflection* reflection = message->GetReflection(); in Clear() local
133 reflection->ListFields(*message, &fields); in Clear()
135 reflection->ClearField(message, fields[i]); in Clear()
138 reflection->MutableUnknownFields(message)->Clear(); in Clear()
143 const Reflection* reflection = message.GetReflection(); in IsInitialized() local
148 if (!reflection->HasField(message, descriptor->field(i))) { in IsInitialized()
156 reflection->ListFields(message, &fields); in IsInitialized()
162 int size = reflection->FieldSize(message, field); in IsInitialized()
165 if (!reflection->GetRepeatedMessage(message, field, j) in IsInitialized()
171 if (!reflection->GetMessage(message, field).IsInitialized()) { in IsInitialized()
[all …]
Ddynamic_message_unittest.cc182 const Reflection* reflection = message->GetReflection(); in TEST_F() local
183 EXPECT_EQ(0, reflection->GetInt32( in TEST_F()
185 EXPECT_EQ("", reflection->GetString( in TEST_F()
187 EXPECT_EQ("", reflection->GetString( in TEST_F()
189 EXPECT_EQ("", reflection->GetString( in TEST_F()
191 EXPECT_EQ("", reflection->GetString( in TEST_F()
193 EXPECT_EQ(unittest::TestOneof2::FOO, reflection->GetEnum( in TEST_F()
201 &reflection->GetMessage( in TEST_F()
209 &reflection->GetMessage( in TEST_F()
212 &reflection->GetMessage( in TEST_F()
[all …]
Dmap_field.cc263 const Reflection* reflection = default_entry_->GetReflection(); in SyncRepeatedFieldWithMapNoLock() local
287 reflection->SetString(new_entry, key_des, map_key.GetStringValue()); in SyncRepeatedFieldWithMapNoLock()
290 reflection->SetInt64(new_entry, key_des, map_key.GetInt64Value()); in SyncRepeatedFieldWithMapNoLock()
293 reflection->SetInt32(new_entry, key_des, map_key.GetInt32Value()); in SyncRepeatedFieldWithMapNoLock()
296 reflection->SetUInt64(new_entry, key_des, map_key.GetUInt64Value()); in SyncRepeatedFieldWithMapNoLock()
299 reflection->SetUInt32(new_entry, key_des, map_key.GetUInt32Value()); in SyncRepeatedFieldWithMapNoLock()
302 reflection->SetBool(new_entry, key_des, map_key.GetBoolValue()); in SyncRepeatedFieldWithMapNoLock()
314 reflection->SetString(new_entry, val_des, map_val.GetStringValue()); in SyncRepeatedFieldWithMapNoLock()
317 reflection->SetInt64(new_entry, val_des, map_val.GetInt64Value()); in SyncRepeatedFieldWithMapNoLock()
320 reflection->SetInt32(new_entry, val_des, map_val.GetInt32Value()); in SyncRepeatedFieldWithMapNoLock()
[all …]
Dtext_format.cc374 const Reflection* reflection = message->GetReflection(); in ConsumeField() local
396 reflection->SetString( in ConsumeField()
399 reflection->SetString(message, any_value_field, serialized_value); in ConsumeField()
409 : reflection->FindKnownExtensionByName(field_name)); in ConsumeField()
429 field = reflection->FindKnownExtensionByNumber(field_number); in ConsumeField()
490 if (!field->is_repeated() && reflection->HasField(*message, field)) { in ConsumeField()
498 if (oneof != NULL && reflection->HasOneof(*message, oneof)) { in ConsumeField()
500 reflection->GetOneofFieldDescriptor(*message, oneof); in ConsumeField()
522 DO(ConsumeFieldMessage(message, reflection, field)); in ConsumeField()
524 DO(ConsumeFieldValue(message, reflection, field)); in ConsumeField()
[all …]
Dreflection.h95 const Reflection* reflection = message.GetReflection(); in RepeatedFieldRef() local
96 data_ = reflection->RepeatedFieldData( in RepeatedFieldRef()
99 accessor_ = reflection->RepeatedFieldAccessor(field); in RepeatedFieldRef()
161 const Reflection* reflection = message->GetReflection(); in MutableRepeatedFieldRef() local
162 data_ = reflection->RepeatedFieldData( in MutableRepeatedFieldRef()
164 accessor_ = reflection->RepeatedFieldAccessor(field); in MutableRepeatedFieldRef()
217 const Reflection* reflection = message.GetReflection(); in RepeatedFieldRef() local
218 data_ = reflection->RepeatedFieldData( in RepeatedFieldRef()
222 accessor_ = reflection->RepeatedFieldAccessor(field); in RepeatedFieldRef()
224 reflection->GetMessageFactory()->GetPrototype(field->message_type()); in RepeatedFieldRef()
[all …]
Dtext_format.h113 const Reflection* reflection,
254 const Reflection* reflection,
260 const Reflection* reflection,
267 const Reflection* reflection,
274 const Reflection* reflection,
Dextension_set_unittest.cc337 const Reflection* reflection = message1.GetReflection(); in TEST() local
338 reflection->SwapFields(&message1, &message2, fields); in TEST()
344 reflection->FindKnownExtensionByNumber(12)); in TEST()
346 reflection->FindKnownExtensionByNumber(25)); in TEST()
347 reflection->SwapFields(&message1, &message2, fields); in TEST()
365 const Reflection* reflection = message3.GetReflection(); in TEST() local
367 reflection->ListFields(message3, &fields); in TEST()
369 reflection->SwapFields(&message1, &message2, fields); in TEST()
382 const Reflection* reflection = message1.GetReflection(); in TEST() local
384 reflection->ListFields(message1, &fields); in TEST()
[all …]
Dmap_entry.h69 metadata.reflection = reflection_; in GetMetadata()
247 const Reflection* reflection = new GeneratedMessageReflection( in CreateDefaultInstance() local
256 entry->reflection_ = reflection; in CreateDefaultInstance()
Ddynamic_message.cc236 google::protobuf::scoped_ptr<const GeneratedMessageReflection> reflection; member
601 metadata.reflection = type_info_->reflection.get(); in GetMetadata()
772 type_info->reflection.reset( in GetPrototypeNoLock()
788 type_info->reflection.reset( in GetPrototypeNoLock()
Dmap_field.h330 const Reflection* reflection = message->GetReflection(); in MapIterator() local
331 map_ = reflection->MapData(message, field); in MapIterator()
Darena_unittest.cc354 const Reflection* reflection = arena1_message->GetReflection(); in TEST() local
356 reflection->ListFields(*arena1_message, &fields); in TEST()
357 reflection->SwapFields(arena1_message, arena2_message, fields); in TEST()
364 reflection->SwapFields(arena1_message, arena2_message, fields); in TEST()
374 reflection->SwapFields(arena1_message, arena2_message, fields); in TEST()
386 reflection->SwapFields(arena1_message, arena3_message, fields); in TEST()
394 reflection->SwapFields(arena1_message, &message, fields); in TEST()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/pyext/
Drepeated_scalar_container.cc93 const Reflection* reflection = message->GetReflection(); in AssignItem() local
94 int field_size = reflection->FieldSize(*message, field_descriptor); in AssignItem()
119 reflection->SetRepeatedInt32(message, field_descriptor, index, value); in AssignItem()
124 reflection->SetRepeatedInt64(message, field_descriptor, index, value); in AssignItem()
129 reflection->SetRepeatedUInt32(message, field_descriptor, index, value); in AssignItem()
134 reflection->SetRepeatedUInt64(message, field_descriptor, index, value); in AssignItem()
139 reflection->SetRepeatedFloat(message, field_descriptor, index, value); in AssignItem()
144 reflection->SetRepeatedDouble(message, field_descriptor, index, value); in AssignItem()
149 reflection->SetRepeatedBool(message, field_descriptor, index, value); in AssignItem()
154 arg, message, field_descriptor, reflection, false, index)) { in AssignItem()
[all …]
Dmap_container.cc324 const Reflection* reflection = message->GetReflection(); in Clear() local
326 reflection->ClearField(message, self->parent_field_descriptor); in Clear()
335 const Reflection* reflection = message->GetReflection(); in Contains() local
342 if (reflection->ContainsMapKey(*message, self->parent_field_descriptor, in Contains()
441 const Reflection* reflection = message->GetReflection(); in ScalarMapGetItem() local
449 if (reflection->InsertOrLookupMapValue(message, self->parent_field_descriptor, in ScalarMapGetItem()
462 const Reflection* reflection = message->GetReflection(); in ScalarMapSetItem() local
474 reflection->InsertOrLookupMapValue(message, self->parent_field_descriptor, in ScalarMapSetItem()
478 reflection->SupportsUnknownEnumValues(), &value) in ScalarMapSetItem()
483 if (reflection->DeleteMapValue(message, self->parent_field_descriptor, in ScalarMapSetItem()
[all …]
Dmessage.cc699 const Reflection* reflection, in CheckAndGetInteger() argument
716 reflection->AddString(message, descriptor, value_string); in CheckAndGetInteger()
718 reflection->SetString(message, descriptor, value_string); in CheckAndGetInteger()
720 reflection->SetRepeatedString(message, descriptor, index, value_string); in CheckAndGetInteger()
771 const Reflection* reflection = message->GetReflection(); in CheckAndGetInteger() local
773 !reflection->HasOneof(*message, field->containing_oneof()) || in CheckAndGetInteger()
774 reflection->HasField(*message, field)) { in CheckAndGetInteger()
781 reflection->GetOneofFieldDescriptor(*message, oneof); in CheckAndGetInteger()
811 const Reflection* reflection = parent_message->GetReflection(); in CheckAndGetInteger() local
815 return reflection->MutableMessage( in CheckAndGetInteger()
[all …]
Drepeated_composite_container.cc106 const Reflection* reflection = message->GetReflection(); in UpdateChildMessages() local
108 const Message& sub_message = reflection->GetRepeatedMessage( in UpdateChildMessages()
342 const Reflection* reflection = message->GetReflection(); in ReorderAttached() local
350 reflection->ReleaseLast(message, descriptor); in ReorderAttached()
355 reflection->AddAllocatedMessage(message, descriptor, py_cmsg->message); in ReorderAttached()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/javanano/
Djavanano_file.cc57 const Reflection* reflection = message.GetReflection(); in UsesExtensions() local
60 if (reflection->GetUnknownFields(message).field_count() > 0) return true; in UsesExtensions()
63 reflection->ListFields(message, &fields); in UsesExtensions()
70 int size = reflection->FieldSize(message, fields[i]); in UsesExtensions()
73 reflection->GetRepeatedMessage(message, fields[i], j); in UsesExtensions()
77 const Message& sub_message = reflection->GetMessage(message, fields[i]); in UsesExtensions()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/
Dmessage_factory.py44 from google.protobuf import reflection
73 result_class = reflection.GeneratedProtocolMessageType(
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/java/
Djava_file.cc88 const Reflection* reflection = message.GetReflection(); in CollectExtensions() local
91 if (reflection->GetUnknownFields(message).field_count() > 0) return false; in CollectExtensions()
94 reflection->ListFields(message, &fields); in CollectExtensions()
101 int size = reflection->FieldSize(message, fields[i]); in CollectExtensions()
104 reflection->GetRepeatedMessage(message, fields[i], j); in CollectExtensions()
108 const Message& sub_message = reflection->GetMessage(message, fields[i]); in CollectExtensions()
/frameworks/base/packages/WAPPushManager/
Dproguard.flags2 #apply method is dynamically referenced by the reflection class.
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/
Dfield_mask_util.cc454 const Reflection* reflection = message->GetReflection(); in TrimMessage() local
460 reflection->ClearField(message, field); in TrimMessage()
465 TrimMessage(child, reflection->MutableMessage(message, field)); in TrimMessage()
/frameworks/compile/slang/
DRSCCOptions.td75 def java_reflection_path_base : Separate<["-"], "java-reflection-path-base">,
80 def java_reflection_package_name : Separate<["-"], "java-reflection-package-name">,
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Dtest_bad_identifiers.proto48 optional string reflection = 102 [default="baz"]; field

123