/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...] |
/external/tensorflow/tensorflow/contrib/testing/python/framework/ |
util_test.py | 103 return [e for e in latest_events(base_dir) if e.HasField('summary')] 120 if e.HasField('summary'): 124 if not v.HasField('simple_value'):
|
/system/update_engine/scripts/update_payload/ |
payload.py | 237 if self.manifest.HasField('old_image_info'): 240 if self.manifest.HasField('new_image_info'): 255 return (self.manifest.HasField('old_kernel_info') or 256 self.manifest.HasField('old_rootfs_info') or 257 any(partition.HasField('old_partition_info')
|
checker.py | 355 if not msg.HasField(name): 865 if not op.HasField('src_length') or not op.HasField('dst_length') [all...] |
/external/tensorflow/tensorflow/python/client/ |
timeline_test.py | 54 self.assertTrue(run_metadata.HasField('step_stats')) 69 self.assertTrue(run_metadata.HasField('step_stats')) 100 self.assertTrue(run_metadata.HasField('step_stats')) 152 self.assertTrue(run_metadata.HasField('step_stats')) 181 self.assertTrue(run_metadata.HasField('step_stats'))
|
events_writer_test.py | 57 self.assertTrue(event_read.HasField("file_version"))
|
/art/compiler/ |
verifier_deps_test.cc | 320 bool HasField(const std::string& expected_klass, 699 ASSERT_TRUE(HasField("Ljava/lang/System;", 710 ASSERT_TRUE(HasField( 716 ASSERT_TRUE(HasField( 723 ASSERT_TRUE(HasField("Ljavax/xml/transform/dom/DOMResult;", 733 ASSERT_TRUE(HasField("LMyDOMResult;", 743 ASSERT_TRUE(HasField("LMyResult;", 753 ASSERT_TRUE(HasField("LMyDocument;", 764 ASSERT_TRUE(HasField("Ljava/util/TimeZone;", "x", "I", false)); 769 ASSERT_TRUE(HasField("LMyThreadSet;", "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/tensorflow/tensorflow/contrib/meta_graph_transform/ |
meta_graph_transform.py | 406 if base_meta_graph_def.HasField('saver_def'): 466 if base_collection.HasField('any_list'): 472 elif base_collection.HasField('bytes_list'): 476 elif base_collection.HasField('node_list'): 500 if base_meta_graph_def.HasField('saver_def'):
|
/system/extras/perfprofd/scripts/ |
perf_proto_stack.py | 117 if event.HasField('comm_event'): 131 if event.HasField('mmap_event'): 141 elif event.HasField('fork_event'): 368 if event.HasField('sample_event'):
|
/external/tensorflow/tensorflow/contrib/learn/python/learn/utils/ |
export_test.py | 85 self.assertTrue(signature.HasField(expected_signature)) 251 self.assertTrue(signature.HasField('regression_signature'))
|
/external/tensorflow/tensorflow/python/framework/ |
op_def_library.py | 53 if attr_def.HasField("allowed_values"): 385 if attr_def.HasField("default_value"): 669 if attr_def.HasField("default_value") and value is None: 685 if attr_def.HasField("allowed_values"): 694 if attr_def.HasField("allowed_values"):
|
/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...] |