Home
last modified time | relevance | path

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

12345678910>>...107

/external/openssh/openbsd-compat/
Dsys-queue.h198 #define SLIST_NEXT(elm, field) ((elm)->field.sle_next) argument
200 #define SLIST_FOREACH(var, head, field) \ argument
203 (var) = SLIST_NEXT(var, field))
205 #define SLIST_FOREACH_SAFE(var, head, field, tvar) \ argument
207 (var) && ((tvar) = SLIST_NEXT(var, field), 1); \
217 #define SLIST_INSERT_AFTER(slistelm, elm, field) do { \ argument
218 (elm)->field.sle_next = (slistelm)->field.sle_next; \
219 (slistelm)->field.sle_next = (elm); \
222 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument
223 (elm)->field.sle_next = (head)->slh_first; \
[all …]
Dsys-tree.h82 #define SPLAY_LEFT(elm, field) (elm)->field.spe_left argument
83 #define SPLAY_RIGHT(elm, field) (elm)->field.spe_right argument
88 #define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \ argument
89 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \
90 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \
94 #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \ argument
95 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \
96 SPLAY_LEFT(tmp, field) = (head)->sph_root; \
100 #define SPLAY_LINKLEFT(head, tmp, field) do { \ argument
101 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/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/icu/android_icu4j/src/main/tests/android/icu/dev/test/normalizer/
DConformanceTest.java152 private boolean checkConformance(String[] field, String line, int options) throws Exception{ in checkConformance() argument
159 out = Normalizer.normalize(field[i], Normalizer.NFC, options); in checkConformance()
160 pass &= assertEqual("C", field[i], out, field[1], "c2!=C(c" + (i+1)); in checkConformance()
162 out = iterativeNorm(field[i], Normalizer.NFC, buf, +1,options); in checkConformance()
163 pass &= assertEqual("C(+1)", field[i], out, field[1], "c2!=C(c" + (i+1)); in checkConformance()
165 out = iterativeNorm(field[i], Normalizer.NFC, buf, -1,options); in checkConformance()
166 pass &= assertEqual("C(-1)", field[i], out, field[1], "c2!=C(c" + (i+1)); in checkConformance()
168 … out = iterativeNorm(new StringCharacterIterator(field[i]), Normalizer.NFC, buf, +1,options); in checkConformance()
169 pass &= assertEqual("C(+1)", field[i], out, field[1], "c2!=C(c" + (i+1)); in checkConformance()
171 … out = iterativeNorm(new StringCharacterIterator(field[i]), Normalizer.NFC, buf, -1,options); in checkConformance()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/normalizer/
DConformanceTest.java151 private boolean checkConformance(String[] field, String line, int options) throws Exception{ in checkConformance() argument
158 out = Normalizer.normalize(field[i], Normalizer.NFC, options); in checkConformance()
159 pass &= assertEqual("C", field[i], out, field[1], "c2!=C(c" + (i+1)); in checkConformance()
161 out = iterativeNorm(field[i], Normalizer.NFC, buf, +1,options); in checkConformance()
162 pass &= assertEqual("C(+1)", field[i], out, field[1], "c2!=C(c" + (i+1)); in checkConformance()
164 out = iterativeNorm(field[i], Normalizer.NFC, buf, -1,options); in checkConformance()
165 pass &= assertEqual("C(-1)", field[i], out, field[1], "c2!=C(c" + (i+1)); in checkConformance()
167 … out = iterativeNorm(new StringCharacterIterator(field[i]), Normalizer.NFC, buf, +1,options); in checkConformance()
168 pass &= assertEqual("C(+1)", field[i], out, field[1], "c2!=C(c" + (i+1)); in checkConformance()
170 … out = iterativeNorm(new StringCharacterIterator(field[i]), Normalizer.NFC, buf, -1,options); in checkConformance()
[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/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/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/libmojo/mojo/public/tools/bindings/generators/cpp_templates/
Dunion_serialization_definition.tmpl18 {% for field in union.fields %}
19 {% if field.kind|is_object_kind %}
20 {%- set serializer_type = field.kind|unmapped_type_for_serializer %}
21 case {{mojom_type}}::Tag::{{field.name|upper}}:
22 {% if field.kind|is_union_kind %}
24 *(input_acc.data()->{{field.name}}), false, context);
27 *(input_acc.data()->{{field.name}}), context);
55 {%- for field in union.fields %}
56 case {{mojom_type}}::Tag::{{field.name|upper}}: {
57 {%- set serializer_type = field.kind|unmapped_type_for_serializer %}
[all …]
Dwrapper_union_class_definition.tmpl18 {% for field in union.fields %}
19 bool {{union.name}}::is_{{field.name}}() const {
20 return tag_ == Tag::{{field.name|upper}};
23 {{field.kind|cpp_union_getter_return_type}} {{union.name}}::get_{{field.name}}() const {
24 DCHECK(tag_ == Tag::{{field.name|upper}});
25 {% if field.kind|is_object_kind or
26 field.kind|is_any_handle_or_interface_kind %}
27 return *(data_.{{field.name}});
29 return data_.{{field.name}};
33 void {{union.name}}::set_{{field.name}}({{field.kind|cpp_wrapper_param_type}} {{field.name}}) {
[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/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/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/flatbuffers/src/
Didl_gen_go.cpp39 static std::string GenMethod(const FieldDef &field);
45 static std::string TypeName(const FieldDef &field);
50 std::string OffsetPrefix(const FieldDef &field) { in OffsetPrefix() argument
52 NumToString(field.value.offset) + in OffsetPrefix()
166 const FieldDef &field, in GetVectorLen() argument
171 code += " " + MakeCamel(field.name) + "Length("; in GetVectorLen()
172 code += ") int " + OffsetPrefix(field); in GetVectorLen()
179 const FieldDef &field, in GetUByteSlice() argument
184 code += " " + MakeCamel(field.name) + "Bytes("; in GetUByteSlice()
185 code += ") []byte " + OffsetPrefix(field); in GetUByteSlice()
[all …]
/external/mockito/src/test/java/org/mockito/internal/util/reflection/
DSuperTypesLastSorterTest.java51 assertThat(cmp.compare(field("objectA"), field("objectB"))).isEqualTo(-1); in when_same_type_the_order_is_based_on_field_name()
52 assertThat(cmp.compare(field("objectB"), field("objectA"))).isEqualTo(1); in when_same_type_the_order_is_based_on_field_name()
53 assertThat(cmp.compare(field("objectB"), field("objectB"))).isEqualTo(0); in when_same_type_the_order_is_based_on_field_name()
58 assertThat(cmp.compare(field("numberA"), field("objectB"))).isEqualTo(-1); in when_type_is_different_the_supertype_comes_last()
59 assertThat(cmp.compare(field("objectB"), field("numberA"))).isEqualTo(1); in when_type_is_different_the_supertype_comes_last()
65 field("objectB"), in using_Collections_dot_sort()
66 field("integerB"), in using_Collections_dot_sort()
67 field("numberA"), in using_Collections_dot_sort()
68 field("numberB"), in using_Collections_dot_sort()
69 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/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>>...107