Home
last modified time | relevance | path

Searched refs:field (Results 1 – 25 of 4720) sorted by relevance

12345678910>>...189

/external/libevent/compat/sys/
Dqueue.h109 #define SLIST_NEXT(elm, field) ((elm)->field.sle_next) argument
111 #define SLIST_FOREACH(var, head, field) \ argument
114 (var) = SLIST_NEXT(var, field))
123 #define SLIST_INSERT_AFTER(slistelm, elm, field) do { \ argument
124 (elm)->field.sle_next = (slistelm)->field.sle_next; \
125 (slistelm)->field.sle_next = (elm); \
128 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument
129 (elm)->field.sle_next = (head)->slh_first; \
133 #define SLIST_REMOVE_HEAD(head, field) do { \ argument
134 (head)->slh_first = (head)->slh_first->field.sle_next; \
[all …]
/external/libevent/WIN32-Code/
Dtree.h75 #define SPLAY_LEFT(elm, field) (elm)->field.spe_left argument
76 #define SPLAY_RIGHT(elm, field) (elm)->field.spe_right argument
81 #define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \ argument
82 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \
83 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \
87 #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \ argument
88 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \
89 SPLAY_LEFT(tmp, field) = (head)->sph_root; \
93 #define SPLAY_LINKLEFT(head, tmp, field) do { \ argument
94 SPLAY_LEFT(tmp, field) = (head)->sph_root; \
[all …]
/external/ipsec-tools/src/include-glibc/sys/
Dqueue.h129 #define SLIST_FOREACH(var, head, field) \ argument
132 (var) = SLIST_NEXT((var), field))
138 #define SLIST_INSERT_AFTER(slistelm, elm, field) do { \ argument
139 SLIST_NEXT((elm), field) = SLIST_NEXT((slistelm), field); \
140 SLIST_NEXT((slistelm), field) = (elm); \
143 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument
144 SLIST_NEXT((elm), field) = SLIST_FIRST((head)); \
148 #define SLIST_NEXT(elm, field) ((elm)->field.sle_next) argument
150 #define SLIST_REMOVE(head, elm, type, field) do { \ argument
152 SLIST_REMOVE_HEAD((head), field); \
[all …]
/external/protobuf/src/google/protobuf/
Dgenerated_message_reflection.cc56 bool IsMapFieldInApi(const FieldDescriptor* field) { in IsMapFieldInApi() argument
57 return field->is_map(); in IsMapFieldInApi()
88 const Descriptor* descriptor, const FieldDescriptor* field, in ReportReflectionUsageError() argument
94 " Field : " << field->full_name() << "\n" in ReportReflectionUsageError()
113 const Descriptor* descriptor, const FieldDescriptor* field, in ReportReflectionUsageTypeError() argument
120 " Field : " << field->full_name() << "\n" in ReportReflectionUsageTypeError()
123 " Field type: " << cpptype_names_[field->cpp_type()]; in ReportReflectionUsageTypeError()
127 const Descriptor* descriptor, const FieldDescriptor* field, in ReportReflectionUsageEnumTypeError() argument
133 " Field : " << field->full_name() << "\n" in ReportReflectionUsageEnumTypeError()
135 " Expected : " << field->enum_type()->full_name() << "\n" in ReportReflectionUsageEnumTypeError()
[all …]
Dgenerated_message_reflection.h219 bool HasField(const Message& message, const FieldDescriptor* field) const;
220 int FieldSize(const Message& message, const FieldDescriptor* field) const;
221 void ClearField(Message* message, const FieldDescriptor* field) const;
224 void ClearOneof(Message* message, const OneofDescriptor* field) const;
225 void RemoveLast(Message* message, const FieldDescriptor* field) const;
226 Message* ReleaseLast(Message* message, const FieldDescriptor* field) const;
230 void SwapElements(Message* message, const FieldDescriptor* field,
236 const FieldDescriptor* field) const;
238 const FieldDescriptor* field) const;
240 const FieldDescriptor* field) const;
[all …]
Dwire_format.cc182 const UnknownField& field = unknown_fields.field(i); in SerializeUnknownFields() local
183 switch (field.type()) { in SerializeUnknownFields()
185 output->WriteVarint32(WireFormatLite::MakeTag(field.number(), in SerializeUnknownFields()
187 output->WriteVarint64(field.varint()); in SerializeUnknownFields()
190 output->WriteVarint32(WireFormatLite::MakeTag(field.number(), in SerializeUnknownFields()
192 output->WriteLittleEndian32(field.fixed32()); in SerializeUnknownFields()
195 output->WriteVarint32(WireFormatLite::MakeTag(field.number(), in SerializeUnknownFields()
197 output->WriteLittleEndian64(field.fixed64()); in SerializeUnknownFields()
200 output->WriteVarint32(WireFormatLite::MakeTag(field.number(), in SerializeUnknownFields()
202 output->WriteVarint32(field.length_delimited().size()); in SerializeUnknownFields()
[all …]
Drepeated_field_unittest.cc61 RepeatedField<int> field; in TEST() local
63 EXPECT_TRUE(field.empty()); in TEST()
64 EXPECT_EQ(field.size(), 0); in TEST()
66 field.Add(5); in TEST()
68 EXPECT_FALSE(field.empty()); in TEST()
69 EXPECT_EQ(field.size(), 1); in TEST()
70 EXPECT_EQ(field.Get(0), 5); in TEST()
72 field.Add(42); in TEST()
74 EXPECT_FALSE(field.empty()); in TEST()
75 EXPECT_EQ(field.size(), 2); in TEST()
[all …]
/external/dhcpcd-6.8.2/compat/
Dqueue.h68 #define TAILQ_NEXT(elm, field) ((elm)->field.tqe_next) argument
71 #define TAILQ_PREV(elm, headname, field) \ argument
72 (*(((struct headname *)((elm)->field.tqe_prev))->tqh_last))
77 #define TAILQ_FOREACH(var, head, field) \ argument
80 (var) = ((var)->field.tqe_next))
82 #define TAILQ_FOREACH_REVERSE(var, head, headname, field) \ argument
85 (var) = (*(((struct headname *)((var)->field.tqe_prev))->tqh_last)))
94 #define TAILQ_INSERT_HEAD(head, elm, field) do { \ argument
95 if (((elm)->field.tqe_next = (head)->tqh_first) != TAILQ_END(head))\
96 (head)->tqh_first->field.tqe_prev = \
[all …]
/external/libcxx/test/std/localization/locale.categories/category.monetary/locale.moneypunct.byname/
Dpos_format.pass.cpp66 assert(p.field[0] == std::money_base::symbol); in main()
67 assert(p.field[1] == std::money_base::sign); in main()
68 assert(p.field[2] == std::money_base::none); in main()
69 assert(p.field[3] == std::money_base::value); in main()
74 assert(p.field[0] == std::money_base::symbol); in main()
75 assert(p.field[1] == std::money_base::sign); in main()
76 assert(p.field[2] == std::money_base::none); in main()
77 assert(p.field[3] == std::money_base::value); in main()
82 assert(p.field[0] == std::money_base::symbol); in main()
83 assert(p.field[1] == std::money_base::sign); in main()
[all …]
Dneg_format.pass.cpp66 assert(p.field[0] == std::money_base::symbol); in main()
67 assert(p.field[1] == std::money_base::sign); in main()
68 assert(p.field[2] == std::money_base::none); in main()
69 assert(p.field[3] == std::money_base::value); in main()
74 assert(p.field[0] == std::money_base::symbol); in main()
75 assert(p.field[1] == std::money_base::sign); in main()
76 assert(p.field[2] == std::money_base::none); in main()
77 assert(p.field[3] == std::money_base::value); in main()
82 assert(p.field[0] == std::money_base::symbol); in main()
83 assert(p.field[1] == std::money_base::sign); in main()
[all …]
/external/protobuf/js/binary/
Dwriter.js132 jspb.BinaryWriter.prototype.beginDelimited_ = function(field) { argument
133 this.writeFieldHeader_(field, jspb.BinaryConstants.WireType.DELIMITED);
252 jspb.BinaryWriter.prototype.beginSubMessage = function(field) { argument
253 this.bookmarks_.push(this.beginDelimited_(field));
276 function(field, wireType) { argument
277 goog.asserts.assert(field >= 1 && field == Math.floor(field));
278 var x = field * 8 + wireType;
289 jspb.BinaryWriter.prototype.writeAny = function(fieldType, field, value) { argument
293 this.writeDouble(field, /** @type {number} */(value));
296 this.writeFloat(field, /** @type {number} */(value));
[all …]
/external/mockito/src/main/java/org/mockito/internal/util/reflection/
DFieldInitializer.java34 private final Field field; field in FieldInitializer
48 public FieldInitializer(Object fieldOwner, Field field) { in FieldInitializer() argument
49 this(fieldOwner, field, new NoArgConstructorInstantiator(fieldOwner, field)); in FieldInitializer()
63 … public FieldInitializer(Object fieldOwner, Field field, ConstructorArgumentResolver argResolver) { in FieldInitializer() argument
64 … this(fieldOwner, field, new ParameterizedConstructorInstantiator(fieldOwner, field, argResolver)); in FieldInitializer()
67 private FieldInitializer(Object fieldOwner, Field field, ConstructorInstantiator instantiator) { in FieldInitializer() argument
68 if(new FieldReader(fieldOwner, field).isNull()) { in FieldInitializer()
69 checkNotLocal(field); in FieldInitializer()
70 checkNotInner(field); in FieldInitializer()
71 checkNotInterface(field); in FieldInitializer()
[all …]
/external/protobuf/src/google/protobuf/compiler/js/
Djs_generator.cc280 const FieldDescriptor* field) { in SubmessageTypeRef() argument
281 GOOGLE_CHECK(field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE); in SubmessageTypeRef()
282 return MaybeCrossFileRef(options, field->file(), field->message_type()); in SubmessageTypeRef()
422 bool IgnoreExtensionField(const FieldDescriptor* field) { in IgnoreExtensionField() argument
425 return field->is_extension() && in IgnoreExtensionField()
426 field->containing_type()->file()->name() == in IgnoreExtensionField()
434 bool IgnoreField(const FieldDescriptor* field) { in IgnoreField() argument
435 return IgnoreExtensionField(field); in IgnoreField()
442 if (!IgnoreField(oneof->field(i))) { in IgnoreOneof()
449 string JSIdent(const FieldDescriptor* field, in JSIdent() argument
[all …]
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DMessageReflection.java58 for (final FieldDescriptor field : in writeMessageTo()
60 if (field.isRequired() && !fields.containsKey(field)) { in writeMessageTo()
61 fields.put(field, message.getField(field)); in writeMessageTo()
67 final Descriptors.FieldDescriptor field = entry.getKey(); in writeMessageTo() local
69 if (isMessageSet && field.isExtension() && in writeMessageTo()
70 field.getType() == Descriptors.FieldDescriptor.Type.MESSAGE && in writeMessageTo()
71 !field.isRepeated()) { in writeMessageTo()
72 output.writeMessageSetExtension(field.getNumber(), (Message) value); in writeMessageTo()
74 FieldSet.writeField(field, value, output); in writeMessageTo()
95 final Descriptors.FieldDescriptor field = entry.getKey(); in getSerializedSize() local
[all …]
/external/protobuf/src/google/protobuf/compiler/java/
Djava_field.cc71 const FieldDescriptor* field, int messageBitIndex, int builderBitIndex, in MakeImmutableGenerator() argument
73 if (field->is_repeated()) { in MakeImmutableGenerator()
74 switch (GetJavaType(field)) { in MakeImmutableGenerator()
76 if (IsMapEntry(field->message_type())) { in MakeImmutableGenerator()
78 field, messageBitIndex, builderBitIndex, context); in MakeImmutableGenerator()
80 if (IsLazy(field, context->EnforceLite())) { in MakeImmutableGenerator()
82 field, messageBitIndex, builderBitIndex, context); in MakeImmutableGenerator()
85 field, messageBitIndex, builderBitIndex, context); in MakeImmutableGenerator()
90 field, messageBitIndex, builderBitIndex, context); in MakeImmutableGenerator()
93 field, messageBitIndex, builderBitIndex, context); in MakeImmutableGenerator()
[all …]
/external/google-breakpad/src/client/linux/minidump_writer/
Dproc_cpuinfo_reader_unittest.cc68 const char *field; in TEST() local
69 ASSERT_FALSE(reader.GetNextField(&field)); in TEST()
77 const char *field; in TEST() local
78 ASSERT_TRUE(reader.GetNextField(&field)); in TEST()
79 ASSERT_STREQ("foo", field); in TEST()
82 ASSERT_FALSE(reader.GetNextField(&field)); in TEST()
90 const char *field; in TEST() local
92 ASSERT_TRUE(reader.GetNextField(&field)); in TEST()
93 ASSERT_STREQ("foo", field); in TEST()
97 ASSERT_FALSE(reader.GetNextField(&field)); in TEST()
[all …]
/external/smali/smalidea/src/test/java/org/jf/smalidea/
DSmaliFieldTest.java74 PsiField field = smaliClass.findFieldByName("myField", true); in testBasicField() local
75 Assert.assertNotNull(field); in testBasicField()
76 Assert.assertEquals("myField", field.getName()); in testBasicField()
78 field = smaliClass.findFieldByName("nonExistantField", true); in testBasicField()
79 Assert.assertNull(field); in testBasicField()
80 field = smaliClass.findFieldByName("nonExistantField", false); in testBasicField()
81 Assert.assertNull(field); in testBasicField()
106 PsiField field = smaliClass.findFieldByName("myField", true); in testSmaliSuperField() local
107 Assert.assertNotNull(field); in testSmaliSuperField()
108 Assert.assertEquals("myField", field.getName()); in testSmaliSuperField()
[all …]
/external/perfetto/src/ftrace_reader/test/data/android_flounder_lte_LRX16F_3.10.40/events/mac80211/drv_bss_info_changed/
Dformat4 field:unsigned short common_type; offset:0; size:2; signed:0;
5 field:unsigned char common_flags; offset:2; size:1; signed:0;
6 field:unsigned char common_preempt_count; offset:3; size:1; signed:0;
7 field:int common_pid; offset:4; size:4; signed:1;
9 field:char wiphy_name[32]; offset:8; size:32; signed:0;
10 field:enum nl80211_iftype vif_type; offset:40; size:4; signed:0;
11 field:void * sdata; offset:48; size:8; signed:0;
12 field:bool p2p; offset:56; size:1; signed:0;
13 field:__data_loc char[] vif_name; offset:60; size:4; signed:0;
14 field:u32 changed; offset:64; size:4; signed:0;
[all …]
/external/flatbuffers/src/
Didl_gen_go.cpp53 static std::string GenMethod(const FieldDef &field);
59 static std::string TypeName(const FieldDef &field);
73 std::string OffsetPrefix(const FieldDef &field) { in OffsetPrefix() argument
75 NumToString(field.value.offset) + in OffsetPrefix()
189 const FieldDef &field, in GetVectorLen() argument
194 code += " " + MakeCamel(field.name) + "Length("; in GetVectorLen()
195 code += ") int " + OffsetPrefix(field); in GetVectorLen()
202 const FieldDef &field, in GetUByteSlice() argument
207 code += " " + MakeCamel(field.name) + "Bytes("; in GetUByteSlice()
208 code += ") []byte " + OffsetPrefix(field); in GetUByteSlice()
[all …]
Didl_gen_python.cpp30 static std::string GenMethod(const FieldDef &field);
36 static std::string TypeName(const FieldDef &field);
44 std::string OffsetPrefix(const FieldDef &field) { in OffsetPrefix() argument
48 NumToString(field.value.offset) + in OffsetPrefix()
113 const FieldDef &field, in GetVectorLen() argument
118 code += MakeCamel(field.name) + "Length(self"; in GetVectorLen()
119 code += "):" + OffsetPrefix(field); in GetVectorLen()
126 const FieldDef &field, in GetScalarFieldOfStruct() argument
129 std::string getter = GenGetter(field.value.type); in GetScalarFieldOfStruct()
131 code += MakeCamel(field.name); in GetScalarFieldOfStruct()
[all …]
/external/mockito/src/test/java/org/mockito/internal/util/reflection/
DSuperTypesLastSorterTest.java55 assertThat(cmp.compare(field("objectA"), field("objectB"))).isEqualTo(-1); in when_same_type_the_order_is_based_on_field_name()
56 assertThat(cmp.compare(field("objectB"), field("objectA"))).isEqualTo(1); in when_same_type_the_order_is_based_on_field_name()
57 assertThat(cmp.compare(field("objectB"), field("objectB"))).isEqualTo(0); in when_same_type_the_order_is_based_on_field_name()
62 assertThat(cmp.compare(field("numberA"), field("objectB"))).isEqualTo(-1); in when_type_is_different_the_supertype_comes_last()
63 assertThat(cmp.compare(field("objectB"), field("numberA"))).isEqualTo(1); in when_type_is_different_the_supertype_comes_last()
69 field("objectB"), in using_Collections_dot_sort()
70 field("integerB"), in using_Collections_dot_sort()
71 field("numberA"), in using_Collections_dot_sort()
72 field("numberB"), in using_Collections_dot_sort()
73 field("objectA"), in using_Collections_dot_sort()
[all …]
/external/protobuf/ruby/ext/google/protobuf_c/
Dstorage.c349 const upb_msgdef* tryget_map_entry_msgdef(const upb_fielddef* field) { in tryget_map_entry_msgdef() argument
351 if (upb_fielddef_label(field) != UPB_LABEL_REPEATED || in tryget_map_entry_msgdef()
352 upb_fielddef_type(field) != UPB_TYPE_MESSAGE) { in tryget_map_entry_msgdef()
355 subdef = upb_fielddef_msgsubdef(field); in tryget_map_entry_msgdef()
359 const upb_msgdef *map_entry_msgdef(const upb_fielddef* field) { in map_entry_msgdef() argument
360 const upb_msgdef* subdef = tryget_map_entry_msgdef(field); in map_entry_msgdef()
365 bool is_map_field(const upb_fielddef *field) { in is_map_field() argument
366 return tryget_map_entry_msgdef(field) != NULL; in is_map_field()
369 const upb_fielddef* map_field_key(const upb_fielddef* field) { in map_field_key() argument
370 const upb_msgdef* subdef = map_entry_msgdef(field); in map_field_key()
[all …]
/external/protobuf/python/google/protobuf/internal/
Dpython_message.py175 for field in descriptor.fields:
176 _AttachFieldHelpers(cls, field)
270 def _IsMessageSetExtension(field): argument
271 return (field.is_extension and
272 field.containing_type.has_options and
273 field.containing_type.GetOptions().message_set_wire_format and
274 field.type == _FieldDescriptor.TYPE_MESSAGE and
275 field.label == _FieldDescriptor.LABEL_OPTIONAL)
278 def _IsMapField(field): argument
279 return (field.type == _FieldDescriptor.TYPE_MESSAGE and
[all …]
/external/flatbuffers/include/flatbuffers/
Dreflection.h71 template<typename T> T GetFieldDefaultI(const reflection::Field &field) { in GetFieldDefaultI() argument
72 assert(sizeof(T) == GetTypeSize(field.type()->base_type())); in GetFieldDefaultI()
73 return static_cast<T>(field.default_integer()); in GetFieldDefaultI()
77 template<typename T> T GetFieldDefaultF(const reflection::Field &field) { in GetFieldDefaultF() argument
78 assert(sizeof(T) == GetTypeSize(field.type()->base_type())); in GetFieldDefaultF()
79 return static_cast<T>(field.default_real()); in GetFieldDefaultF()
84 const reflection::Field &field) { in GetFieldI() argument
85 assert(sizeof(T) == GetTypeSize(field.type()->base_type())); in GetFieldI()
86 return table.GetField<T>(field.offset(), in GetFieldI()
87 static_cast<T>(field.default_integer())); in GetFieldI()
[all …]
/external/nanopb-c/
Dpb_encode.c22 typedef bool (*pb_encoder_t)(pb_ostream_t *stream, const pb_field_t *field, const void *src) checkr…
25 static bool checkreturn encode_array(pb_ostream_t *stream, const pb_field_t *field, const void *pDa…
26 static bool checkreturn encode_field(pb_ostream_t *stream, const pb_field_t *field, const void *pDa…
28 static bool checkreturn encode_extension_field(pb_ostream_t *stream, const pb_field_t *field, const…
29 static bool checkreturn pb_enc_varint(pb_ostream_t *stream, const pb_field_t *field, const void *sr…
30 static bool checkreturn pb_enc_uvarint(pb_ostream_t *stream, const pb_field_t *field, const void *s…
31 static bool checkreturn pb_enc_svarint(pb_ostream_t *stream, const pb_field_t *field, const void *s…
32 static bool checkreturn pb_enc_fixed32(pb_ostream_t *stream, const pb_field_t *field, const void *s…
33 static bool checkreturn pb_enc_fixed64(pb_ostream_t *stream, const pb_field_t *field, const void *s…
34 static bool checkreturn pb_enc_bytes(pb_ostream_t *stream, const pb_field_t *field, const void *src…
[all …]

12345678910>>...189