/external/protobuf/src/google/protobuf/util/ |
type_resolver_util_test.cc | 80 bool HasField(const Type& type, const string& name) { 84 bool HasField(const Type& type, Field::Cardinality cardinality, 164 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, 166 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, 168 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, 170 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, 172 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, 174 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, 176 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, 178 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL [all...] |
/external/protobuf/python/google/protobuf/internal/ |
test_util.py | 388 test_case.assertTrue(message.HasField('optional_int32')) 389 test_case.assertTrue(message.HasField('optional_int64')) 390 test_case.assertTrue(message.HasField('optional_uint32')) 391 test_case.assertTrue(message.HasField('optional_uint64')) 392 test_case.assertTrue(message.HasField('optional_sint32')) 393 test_case.assertTrue(message.HasField('optional_sint64')) 394 test_case.assertTrue(message.HasField('optional_fixed32')) 395 test_case.assertTrue(message.HasField('optional_fixed64')) 396 test_case.assertTrue(message.HasField('optional_sfixed32')) 397 test_case.assertTrue(message.HasField('optional_sfixed64') [all...] |
reflection_test.py | 129 self.assertFalse(proto.HasField("optional_float")) 213 self.assertFalse(proto.HasField("optional_nested_message")) 253 self.assertTrue(not proto.HasField('optional_int32')) 255 # HasField() shouldn't be true if all we've done is 257 self.assertTrue(not proto.HasField('optional_int32')) 260 self.assertTrue(proto.HasField('optional_int32')) 263 self.assertTrue(not proto.HasField('optional_int32')) 277 # assert not proto.composite_field.HasField('scalar_field') 278 # assert not proto.HasField('composite_field') 284 # assert proto.composite_field.HasField('scalar_field' [all...] |
message_test.py | 570 self.assertFalse(msg.HasField(attribute)) 579 self.assertFalse(m.HasField('oneof_uint32')) 584 self.assertTrue(m.HasField('oneof_uint32')) 585 self.assertFalse(m.HasField('oneof_string')) 589 self.assertTrue(m.HasField('oneof_string')) 590 self.assertFalse(m.HasField('oneof_uint32')) 598 self.assertTrue(m.HasField('oneof_uint32')) 602 self.assertFalse(m.HasField('oneof_uint32')) 603 self.assertTrue(m.HasField('oneof_string')) 608 self.assertTrue(m.HasField('oneof_string') [all...] |
python_message.py | 300 field_descriptor.GetOptions().HasField("packed") and [all...] |
/external/protobuf/src/google/protobuf/ |
no_field_presence_test.cc | 279 // check that HasField reports true on all scalar fields. Check that it 291 EXPECT_EQ(false, r->HasField(message, field)); 297 EXPECT_EQ(false, r->HasField( 311 EXPECT_EQ(true, r->HasField(message, field)); 324 EXPECT_EQ(false, r->HasField(message, field_int32)); 325 EXPECT_EQ(false, r->HasField(message, field_double)); 326 EXPECT_EQ(false, r->HasField(message, field_string)); 329 EXPECT_EQ(true, r->HasField(message, field_int32)); 331 EXPECT_EQ(false, r->HasField(message, field_int32)); 334 EXPECT_EQ(true, r->HasField(message, field_double)) [all...] |
dynamic_message_unittest.cc | 272 EXPECT_EQ(false, refl->HasField(*message, optional_int32)); 274 EXPECT_EQ(true, refl->HasField(*message, optional_int32)); 276 EXPECT_EQ(false, refl->HasField(*message, optional_int32)); 278 EXPECT_EQ(false, refl->HasField(*message, optional_msg)); 280 EXPECT_EQ(true, refl->HasField(*message, optional_msg)); 282 EXPECT_EQ(false, refl->HasField(*message, optional_msg)); 285 EXPECT_EQ(false, refl->HasField(*proto3_prototype_, optional_msg));
|
test_util.cc | [all...] |
reflection_ops.cc | 148 if (!reflection->HasField(message, descriptor->field(i))) { 234 if (!reflection->HasField(message, descriptor->field(i))) {
|
/external/autotest/client/cros/ |
ownership.py | 130 if not response_proto.HasField("policy_data"): 140 if (not data_proto.HasField("policy_type") or 142 not data_proto.HasField("policy_value")): 164 if not settings.HasField("guest_mode_enabled"): 166 if not settings.guest_mode_enabled.HasField("guest_mode_enabled"): 179 if not settings.HasField("show_user_names"): 181 if not settings.show_user_names.HasField("show_user_names"): 194 if not settings.HasField("data_roaming_enabled"): 196 if not settings.data_roaming_enabled.HasField("data_roaming_enabled"): 209 if not settings.HasField("allow_new_users") [all...] |
/system/update_engine/scripts/update_payload/ |
payload.py | 233 if self.manifest.HasField('old_image_info'): 237 if self.manifest.HasField('new_image_info'): 253 return (self.manifest.HasField('old_kernel_info') or 254 self.manifest.HasField('old_rootfs_info') or 255 any(partition.HasField('old_partition_info')
|
checker.py | 354 if not msg.HasField(name): [all...] |
/art/compiler/ |
verifier_deps_test.cc | 322 bool HasField(const std::string& expected_klass, 720 ASSERT_TRUE(HasField("Ljava/lang/System;", 731 ASSERT_TRUE(HasField( 737 ASSERT_TRUE(HasField( 744 ASSERT_TRUE(HasField("Ljavax/xml/transform/dom/DOMResult;", 754 ASSERT_TRUE(HasField("LMyDOMResult;", 764 ASSERT_TRUE(HasField("LMyResult;", 774 ASSERT_TRUE(HasField("LMyDocument;", 785 ASSERT_TRUE(HasField("Ljava/util/TimeZone;", "x", "I", false)); [all...] |
/external/nanopb-c/generator/google/protobuf/ |
message.py | 226 if HasField() would return true, and a repeated field is non-empty if 231 def HasField(self, field_name):
|
descriptor_pool.py | 395 if not field_proto.HasField('type'): 414 elif field_proto.HasField('default_value'):
|
/external/protobuf/python/google/protobuf/ |
message.py | 229 if HasField() would return true, and a repeated field is non-empty if 234 def HasField(self, field_name):
|
descriptor_pool.py | 473 if field_desc.HasField('oneof_index'): 608 if not field_proto.HasField('type'): 627 elif field_proto.HasField('default_value'):
|
/external/nanopb-c/generator/google/protobuf/internal/ |
python_message.py | 593 def HasField(self, field_name): 605 cls.HasField = HasField 850 # Performance is critical so we avoid HasField() and ListFields(). [all...] |
/external/protobuf/python/google/protobuf/pyext/ |
message.h | 230 // Corresponds to reflection api method HasField 236 // Corresponds to reflection api method HasField. 237 PyObject* HasField(CMessage* self, PyObject* arg);
|
message.cc | 774 reflection->HasField(*message, field)) { [all...] |
/prebuilts/tools/common/m2/repository/com/google/truth/truth/0.24/ |
truth-0.24.jar | |
/prebuilts/misc/darwin-x86_64/protobuf2.5/include/google/protobuf/ |
generated_message_reflection.h | 146 bool HasField(const Message& message, const FieldDescriptor* field) const;
|
/prebuilts/misc/linux-x86_64/protobuf2.5/include/google/protobuf/ |
generated_message_reflection.h | 146 bool HasField(const Message& message, const FieldDescriptor* field) const;
|
/prebuilts/misc/windows/protobuf2.5/include/google/protobuf/ |
generated_message_reflection.h | 146 bool HasField(const Message& message, const FieldDescriptor* field) const;
|
/prebuilts/tools/linux-x86_64/protoc/include/google/protobuf/ |
generated_message_reflection.h | 146 bool HasField(const Message& message, const FieldDescriptor* field) const;
|