/external/ipsec-tools/src/include-glibc/sys/ |
D | queue.h | 129 #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/ |
D | generated_message_reflection.cc | 84 const Descriptor* descriptor, const FieldDescriptor* field, in ReportReflectionUsageError() argument 90 " Field : " << field->full_name() << "\n" in ReportReflectionUsageError() 109 const Descriptor* descriptor, const FieldDescriptor* field, in ReportReflectionUsageTypeError() argument 116 " Field : " << field->full_name() << "\n" in ReportReflectionUsageTypeError() 119 " Field type: " << cpptype_names_[field->cpp_type()]; in ReportReflectionUsageTypeError() 123 const Descriptor* descriptor, const FieldDescriptor* field, in ReportReflectionUsageEnumTypeError() argument 129 " Field : " << field->full_name() << "\n" in ReportReflectionUsageEnumTypeError() 131 " Expected : " << field->enum_type()->full_name() << "\n" in ReportReflectionUsageEnumTypeError() 137 ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION) 144 if (field->cpp_type() != FieldDescriptor::CPPTYPE_##CPPTYPE) \ [all …]
|
D | generated_message_reflection.h | 183 bool HasField(const Message& message, const FieldDescriptor* field) const; 184 int FieldSize(const Message& message, const FieldDescriptor* field) const; 185 void ClearField(Message* message, const FieldDescriptor* field) const; 188 void ClearOneof(Message* message, const OneofDescriptor* field) const; 189 void RemoveLast(Message* message, const FieldDescriptor* field) const; 190 Message* ReleaseLast(Message* message, const FieldDescriptor* field) const; 194 void SwapElements(Message* message, const FieldDescriptor* field, 200 const FieldDescriptor* field) const; 202 const FieldDescriptor* field) const; 204 const FieldDescriptor* field) const; [all …]
|
D | wire_format.cc | 165 const UnknownField& field = unknown_fields.field(i); in SerializeUnknownFields() local 166 switch (field.type()) { in SerializeUnknownFields() 168 output->WriteVarint32(WireFormatLite::MakeTag(field.number(), in SerializeUnknownFields() 170 output->WriteVarint64(field.varint()); in SerializeUnknownFields() 173 output->WriteVarint32(WireFormatLite::MakeTag(field.number(), in SerializeUnknownFields() 175 output->WriteLittleEndian32(field.fixed32()); in SerializeUnknownFields() 178 output->WriteVarint32(WireFormatLite::MakeTag(field.number(), in SerializeUnknownFields() 180 output->WriteLittleEndian64(field.fixed64()); in SerializeUnknownFields() 183 output->WriteVarint32(WireFormatLite::MakeTag(field.number(), in SerializeUnknownFields() 185 output->WriteVarint32(field.length_delimited().size()); in SerializeUnknownFields() [all …]
|
D | repeated_field_unittest.cc | 60 RepeatedField<int> field; in TEST() local 62 EXPECT_TRUE(field.empty()); in TEST() 63 EXPECT_EQ(field.size(), 0); in TEST() 65 field.Add(5); in TEST() 67 EXPECT_FALSE(field.empty()); in TEST() 68 EXPECT_EQ(field.size(), 1); in TEST() 69 EXPECT_EQ(field.Get(0), 5); in TEST() 71 field.Add(42); in TEST() 73 EXPECT_FALSE(field.empty()); in TEST() 74 EXPECT_EQ(field.size(), 2); in TEST() [all …]
|
D | message.h | 377 const FieldDescriptor* field) const = 0; 381 const FieldDescriptor* field) const = 0; 386 const FieldDescriptor* field) const = 0; 416 const FieldDescriptor* field) const = 0; 420 const FieldDescriptor* field) const = 0; 433 const FieldDescriptor* field, 450 const FieldDescriptor* field) const = 0; 452 const FieldDescriptor* field) const = 0; 454 const FieldDescriptor* field) const = 0; 456 const FieldDescriptor* field) const = 0; [all …]
|
D | reflection_ops.cc | 69 const FieldDescriptor* field = fields[i]; in Merge() local 71 if (field->is_repeated()) { in Merge() 72 int count = from_reflection->FieldSize(from, field); in Merge() 74 switch (field->cpp_type()) { in Merge() 77 to_reflection->Add##METHOD(to, field, \ in Merge() 78 from_reflection->GetRepeated##METHOD(from, field, j)); \ in Merge() 93 to_reflection->AddMessage(to, field)->MergeFrom( in Merge() 94 from_reflection->GetRepeatedMessage(from, field, j)); in Merge() 99 switch (field->cpp_type()) { in Merge() 102 to_reflection->Set##METHOD(to, field, \ in Merge() [all …]
|
/external/dhcpcd-6.8.2/compat/ |
D | queue.h | 68 #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/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/ |
D | generate_python_test.py | 146 field = descriptor.FieldDescriptor() 147 field.name = 'integer_field' 148 field.number = 1 149 field.label = descriptor.FieldDescriptor.Label.OPTIONAL 150 field.variant = descriptor.FieldDescriptor.Variant.INT64 152 self.DoMessageTest([field]) 158 field = descriptor.FieldDescriptor() 159 field.name = 'message_field' 160 field.number = 1 161 field.label = descriptor.FieldDescriptor.Label.OPTIONAL [all …]
|
D | generate_proto_test.py | 70 field = descriptor.FieldDescriptor() 71 field.name = 'integer_field' 72 field.number = 1 73 field.label = descriptor.FieldDescriptor.Label.OPTIONAL 74 field.variant = descriptor.FieldDescriptor.Variant.INT64 76 self.MakeMessage(fields=[field]) 86 field = descriptor.FieldDescriptor() 87 field.name = 'integer_field' 88 field.number = 1 89 field.label = descriptor.FieldDescriptor.Label.OPTIONAL [all …]
|
/external/mockito/src/org/mockito/internal/util/reflection/ |
D | FieldInitializer.java | 30 private Field field; field in FieldInitializer 44 public FieldInitializer(Object fieldOwner, Field field) { in FieldInitializer() argument 45 this(fieldOwner, field, new NoArgConstructorInstantiator(fieldOwner, field)); in FieldInitializer() 59 … public FieldInitializer(Object fieldOwner, Field field, ConstructorArgumentResolver argResolver) { in FieldInitializer() argument 60 … this(fieldOwner, field, new ParameterizedConstructorInstantiator(fieldOwner, field, argResolver)); in FieldInitializer() 63 private FieldInitializer(Object fieldOwner, Field field, ConstructorInstantiator instantiator) { in FieldInitializer() argument 64 if(new FieldReader(fieldOwner, field).isNull()) { in FieldInitializer() 65 checkNotLocal(field); in FieldInitializer() 66 checkNotInner(field); in FieldInitializer() 67 checkNotInterface(field); in FieldInitializer() [all …]
|
/external/libcxx/test/std/localization/locale.categories/category.monetary/locale.moneypunct.byname/ |
D | neg_format.pass.cpp | 66 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 …]
|
D | pos_format.pass.cpp | 66 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/java/src/main/java/com/google/protobuf/ |
D | MessageReflection.java | 57 for (final FieldDescriptor field : in writeMessageTo() 59 if (field.isRequired() && !fields.containsKey(field)) { in writeMessageTo() 60 fields.put(field, message.getField(field)); in writeMessageTo() 66 final Descriptors.FieldDescriptor field = entry.getKey(); in writeMessageTo() local 68 if (isMessageSet && field.isExtension() && in writeMessageTo() 69 field.getType() == Descriptors.FieldDescriptor.Type.MESSAGE && in writeMessageTo() 70 !field.isRepeated()) { in writeMessageTo() 71 output.writeMessageSetExtension(field.getNumber(), (Message) value); in writeMessageTo() 73 FieldSet.writeField(field, value, output); in writeMessageTo() 92 final Descriptors.FieldDescriptor field = entry.getKey(); in getSerializedSize() local [all …]
|
D | DynamicMessage.java | 173 FieldDescriptor field = oneofCases[oneof.getIndex()]; in hasOneof() local 174 if (field == null) { in hasOneof() 185 public boolean hasField(FieldDescriptor field) { in hasField() argument 186 verifyContainingType(field); in hasField() 187 return fields.hasField(field); in hasField() 190 public Object getField(FieldDescriptor field) { in getField() argument 191 verifyContainingType(field); in getField() 192 Object result = fields.getField(field); in getField() 194 if (field.isRepeated()) { in getField() 196 } else if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in getField() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/normalizer/ |
D | ConformanceTest.java | 152 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/ |
D | ConformanceTest.java | 148 private boolean checkConformance(String[] field, String line, int options) throws Exception{ in checkConformance() argument 155 out = Normalizer.normalize(field[i], Normalizer.NFC, options); in checkConformance() 156 pass &= assertEqual("C", field[i], out, field[1], "c2!=C(c" + (i+1)); in checkConformance() 158 out = iterativeNorm(field[i], Normalizer.NFC, buf, +1,options); in checkConformance() 159 pass &= assertEqual("C(+1)", 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(new StringCharacterIterator(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() [all …]
|
/external/google-breakpad/src/client/linux/minidump_writer/ |
D | proc_cpuinfo_reader_unittest.cc | 68 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/ |
D | SmaliFieldTest.java | 74 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/nanopb-c/ |
D | pb_encode.c | 22 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 …]
|
/external/protobuf/python/google/protobuf/internal/ |
D | python_message.py | 101 for field in descriptor.fields: 102 _AttachFieldHelpers(cls, field) 192 def _IsMessageSetExtension(field): argument 193 return (field.is_extension and 194 field.containing_type.has_options and 195 field.containing_type.GetOptions().message_set_wire_format and 196 field.type == _FieldDescriptor.TYPE_MESSAGE and 197 field.message_type == field.extension_scope and 198 field.label == _FieldDescriptor.LABEL_OPTIONAL) 260 def _DefaultValueConstructorForField(field): argument [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | FieldsSet.java | 48 public void clear(int field) { in clear() argument 49 fValues[field] = -1; in clear() 50 fIsSet[field] = false; in clear() 53 public void set(int field, int amount) { in set() argument 54 fValues[field] = amount; in set() 55 fIsSet[field] = true; in set() 58 public boolean isSet(int field) { in isSet() argument 59 return fIsSet[field]; in isSet() 62 public int get(int field) { in get() argument 63 if (fIsSet[field]) { in get() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | FieldsSet.java | 47 public void clear(int field) { in clear() argument 48 fValues[field] = -1; in clear() 49 fIsSet[field] = false; in clear() 52 public void set(int field, int amount) { in set() argument 53 fValues[field] = amount; in set() 54 fIsSet[field] = true; in set() 57 public boolean isSet(int field) { in isSet() argument 58 return fIsSet[field]; in isSet() 61 public int get(int field) { in get() argument 62 if (fIsSet[field]) { in get() [all …]
|
/external/smali/smali/src/test/java/ |
D | ImplicitReferenceTest.java | 120 for (Field field: classDef.getFields()) { in testImplicitMethodLiteral() 121 fields.put(field.getName(), field); in testImplicitMethodLiteral() local 124 Field field = fields.get("field1"); in testImplicitMethodLiteral() local 125 Assert.assertNotNull(field); in testImplicitMethodLiteral() 126 Assert.assertNotNull(field.getInitialValue()); in testImplicitMethodLiteral() 127 Assert.assertEquals(ValueType.METHOD, field.getInitialValue().getValueType()); in testImplicitMethodLiteral() 128 MethodEncodedValue methodEncodedValue = (MethodEncodedValue)field.getInitialValue(); in testImplicitMethodLiteral() 132 field = fields.get("field2"); in testImplicitMethodLiteral() 133 Assert.assertNotNull(field); in testImplicitMethodLiteral() 134 Assert.assertNotNull(field.getInitialValue()); in testImplicitMethodLiteral() [all …]
|
/external/protobuf/python/google/protobuf/ |
D | text_format.py | 110 for field, value in fields: 111 if field.label == descriptor.FieldDescriptor.LABEL_REPEATED: 113 PrintField(field, element, out, indent, as_utf8, as_one_line, 117 PrintField(field, value, out, indent, as_utf8, as_one_line, 122 def PrintField(field, value, out, indent=0, as_utf8=False, as_one_line=False, argument 128 if field.is_extension: 130 if (field.containing_type.GetOptions().message_set_wire_format and 131 field.type == descriptor.FieldDescriptor.TYPE_MESSAGE and 132 field.message_type == field.extension_scope and 133 field.label == descriptor.FieldDescriptor.LABEL_OPTIONAL): [all …]
|