/external/protobuf/src/google/protobuf/ |
H A D | unknown_field_set_unittest.cc | 70 const FieldDescriptor* field = descriptor_->FindFieldByName(name); local 71 if (field == NULL) return NULL; 73 if (unknown_fields_->field(i).number() == field->number()) { 74 return &unknown_fields_->field(i); 81 // numbers as all_fields_data_ except that each field is some other wire 88 const UnknownField& unknown_field = unknown_fields_->field(i); 115 // that's the order we parsed them in). Fields that are not valid field 121 const FieldDescriptor* field = descriptor_->FindFieldByNumber(i); local 122 if (field ! 141 const UnknownField* field = GetField("optional_int32"); local 149 const UnknownField* field = GetField("optional_fixed32"); local 157 const UnknownField* field = GetField("optional_fixed64"); local 165 const UnknownField* field = GetField("optional_string"); local 173 const UnknownField* field = GetField("optionalgroup"); local [all...] |
H A D | text_format.cc | 148 const FieldDescriptor* field, 150 locations_[field].push_back(location); 154 const FieldDescriptor* field) { 157 vector<TextFormat::ParseInfoTree*>* trees = &nested_[field]; 163 void CheckFieldIndex(const FieldDescriptor* field, int index) { argument 164 if (field == NULL) { return; } 166 if (field->is_repeated() && index == -1) { 167 GOOGLE_LOG(DFATAL) << "Index must be in range of repeated field values. " 168 << "Field: " << field->name(); 169 } else if (!field 147 RecordLocation( const FieldDescriptor* field, TextFormat::ParseLocation location) argument 153 CreateNested( const FieldDescriptor* field) argument 175 GetLocation( const FieldDescriptor* field, int index) const argument 189 GetTreeForNested( const FieldDescriptor* field, int index) const argument 282 ParseField(const FieldDescriptor* field, Message* output) argument 377 const FieldDescriptor* field = NULL; local 582 ConsumeFieldMessage(Message* message, const Reflection* reflection, const FieldDescriptor* field) argument 619 ConsumeFieldValue(Message* message, const Reflection* reflection, const FieldDescriptor* field) argument 1303 ParseFieldValueFromString( const string& input, const FieldDescriptor* field, Message* output) argument 1455 RegisterFieldValuePrinter( const FieldDescriptor* field, const FieldValuePrinter* printer) argument 1581 PrintFieldValueToString( const Message& message, const FieldDescriptor* field, int index, string* output) const argument 1644 PrintField(const Message& message, const Reflection* reflection, const FieldDescriptor* field, TextGenerator& generator) const argument 1715 PrintShortRepeatedField( const Message& message, const Reflection* reflection, const FieldDescriptor* field, TextGenerator& generator) const argument 1736 PrintFieldName(const Message& message, const Reflection* reflection, const FieldDescriptor* field, TextGenerator& generator) const argument 1752 PrintFieldValue( const Message& message, const Reflection* reflection, const FieldDescriptor* field, int index, TextGenerator& generator) const argument 1856 PrintFieldValueToString( const Message& message, const FieldDescriptor* field, int index, string* output) argument 1864 ParseFieldValueFromString( const string& input, const FieldDescriptor* field, Message* message) argument 1886 const UnknownField& field = unknown_fields.field(i); local [all...] |
/external/protobuf/src/google/protobuf/compiler/javanano/ |
H A D | javanano_helpers.cc | 80 // Used to rename the a field name if it's a java keyword. Specifically 81 // this is used to rename the ["name"] or ["capitalized_name"] field params. 101 const string& FieldName(const FieldDescriptor* field) { argument 102 // Groups are hacky: The name of the field is just the lower-cased name 105 if (field->type() == FieldDescriptor::TYPE_GROUP) { 106 return field->message_type()->name(); 108 return field->name(); 145 string UnderscoresToCamelCase(const FieldDescriptor* field) { argument 146 return UnderscoresToCamelCaseImpl(FieldName(field), false); 149 string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field) { argument 271 FieldConstantName(const FieldDescriptor *field) argument 277 FieldDefaultConstantName(const FieldDescriptor *field) argument 281 PrintFieldComment(io::Printer* printer, const FieldDescriptor* field) argument 383 EmptyArrayName(const Params& params, const FieldDescriptor* field) argument 403 DefaultValue(const Params& params, const FieldDescriptor* field) argument 579 const FieldDescriptor* field = descriptor->field(i); local [all...] |
/external/protobuf/src/google/protobuf/compiler/java/ |
H A D | java_message_lite.cc | 144 field_generators_.get(descriptor_->field(i)) 223 totalBits += field_generators_.get(descriptor_->field(i)) 251 const FieldDescriptor* field = descriptor_->oneof_decl(i)->field(j); local 255 ToUpper(field->name()), 257 SimpleItoa(field->number())); 280 const FieldDescriptor* field = descriptor_->oneof_decl(i)->field(j); local 284 SimpleItoa(field->number()), 286 ToUpper(field 633 GenerateSerializeOneField( io::Printer* printer, const FieldDescriptor* field) argument 684 const FieldDescriptor* field = descriptor_->field(i); local 701 const FieldDescriptor* field = descriptor_->field(i); local 842 const FieldDescriptor* field = descriptor_->oneof_decl(i)->field(j); local 876 const OneofDescriptor* field = descriptor_->oneof_decl(i); local 967 const FieldDescriptor* field = sorted_fields[i]; local 1027 CheckHasBitsForEqualsAndHashCode(const FieldDescriptor* field) argument [all...] |
H A D | java_message.cc | 213 // 6 bytes per field and oneof 229 const FieldDescriptor* field = descriptor_->field(i); local 230 const FieldGeneratorInfo* info = context_->GetFieldGeneratorInfo(field); 271 field_generators_.get(descriptor_->field(i)) 386 totalBits += field_generators_.get(descriptor_->field(i)) 414 const FieldDescriptor* field = descriptor_->oneof_decl(i)->field(j); local 418 ToUpper(field->name()), 420 SimpleItoa(field 443 const FieldDescriptor* field = descriptor_->oneof_decl(i)->field(j); local 729 GenerateSerializeOneField( io::Printer* printer, const FieldDescriptor* field) argument 788 const FieldDescriptor* field = descriptor_->field(i); local 803 const FieldDescriptor* field = map_fields[i]; local 858 const FieldDescriptor* field = descriptor_->field(i); local 873 const FieldDescriptor* field = descriptor_->field(i); local 962 CheckHasBitsForEqualsAndHashCode(const FieldDescriptor* field) argument 993 const FieldDescriptor* field = descriptor_->field(i); local 1029 const FieldDescriptor* field = descriptor_->oneof_decl(i)->field(j); local 1083 const FieldDescriptor* field = descriptor_->field(i); local 1110 const FieldDescriptor* field = descriptor_->oneof_decl(i)->field(j); local 1179 const ImmutableFieldGenerator& field = local 1235 const FieldDescriptor* field = sorted_fields[i]; local 1288 const FieldDescriptor* field = sorted_fields[i]; local [all...] |
H A D | java_helpers.cc | 64 // Names that should be avoided as field names. 83 string FieldName(const FieldDescriptor* field) { argument 85 // Groups are hacky: The name of the field is just the lower-cased name 88 if (GetType(field) == FieldDescriptor::TYPE_GROUP) { 89 field_name = field->message_type()->name(); 91 field_name = field->name(); 139 string UnderscoresToCamelCase(const FieldDescriptor* field) { argument 140 return UnderscoresToCamelCase(FieldName(field), false); 143 string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field) { argument 144 return UnderscoresToCamelCase(FieldName(field), tru 253 FieldConstantName(const FieldDescriptor *field) argument 259 GetType(const FieldDescriptor* field) argument 263 GetJavaType(const FieldDescriptor* field) argument 387 DefaultValue(const FieldDescriptor* field, bool immutable, ClassNameResolver* name_resolver) argument 466 IsDefaultValueJavaDefault(const FieldDescriptor* field) argument 622 GetCapitalizedType(const FieldDescriptor* field, bool immutable) argument 725 const FieldDescriptor* field = type->field(i); local 746 const FieldDescriptor* field = descriptor->field(i); local [all...] |
/external/syslinux/gpxe/src/drivers/infiniband/ |
H A D | qib_genbits.pl | 74 foreach my $field ( @{$datum->{fields}} ) { 75 my $pad_width = ( hex ( $field->{lsb} ) - $lsb ); 76 die "Inconsistent LSB/RMASK in $datum->{name} before $field->{name}\n" 83 die "Missing RMASK in $datum->{name}.$field->{name}\n" 84 unless defined $field->{rmask}; 85 my $rmask = $field->{rmask}; 95 if ( defined $field->{msb} ) { 96 my $msb_width = ( hex ( $field->{msb} ) - $lsb + 1 ); 98 die "Inconsistent LSB/MSB/RMASK in $datum->{name}.$field->{name}\n" 101 printf "\tpseudo_bit_t %s[%u];\n", $field [all...] |
/external/flatbuffers/src/ |
H A D | idl_gen_js.cpp | 331 auto &field = **it; local 332 if (IsStruct(field.value.type)) { 335 // a nested struct, prefix the name with the field name. 336 GenStructArgs(*field.value.type.struct_def, annotations, arguments, 337 nameprefix + field.name + "_"); 339 *annotations += "@param {" + GenTypeName(field.value.type, true); 340 *annotations += "} " + nameprefix + field.name + "\n"; 341 *arguments += ", " + nameprefix + field.name; 355 auto &field = **it; local 356 if (field 449 auto &field = **it; local 661 auto &field = **it; local 739 auto &field = **it; local [all...] |
/external/guava/guava-tests/test/com/google/common/net/ |
H A D | HttpHeadersTest.java | 50 for (Field field : relevantFields(clazz)) { 51 assertEquals(upperToHttpHeaderName(field.getName(), specialCases, uppercaseAcronyms), 52 field.get(null)); 59 for (Field field : cls.getDeclaredFields()) { 65 if (!field.isSynthetic() && field.getType() == String.class) { 66 builder.add(field);
|
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/ |
H A D | MockInjection.java | 28 * Create a new configuration setup for a field 31 * @param field Field needing mock injection 32 * @param ofInstance Instance owning the <code>field</code> 35 public static OngoingMockInjection onField(Field field, Object ofInstance) { argument 36 return new OngoingMockInjection(field, ofInstance); 44 * @param ofInstance Instance owning the <code>field</code> 61 private OngoingMockInjection(Field field, Object fieldOwner) { argument 62 this(Collections.singleton(field), fieldOwner); 91 for (Field field : fields) { 92 injectionStrategies.process(field, fieldOwne [all...] |
/external/protobuf/src/google/protobuf/compiler/cpp/ |
H A D | cpp_helpers.cc | 189 string FieldName(const FieldDescriptor* field) { argument 190 string result = field->name(); 206 string FieldConstantName(const FieldDescriptor *field) { argument 207 string field_name = UnderscoresToCamelCase(field->name(), true); 210 if (!field->is_extension() && 211 field->containing_type()->FindFieldByCamelcaseName( 212 field->camelcase_name()) != field) { 213 // This field's camelcase name is not unique. As a hack, add the field 222 IsFieldDependent(const FieldDescriptor* field) argument 272 DependentTypeName(const FieldDescriptor* field) argument 276 FieldMessageTypeName(const FieldDescriptor* field) argument 362 DefaultValue(const FieldDescriptor* field) argument 471 SafeFunctionName(const Descriptor* descriptor, const FieldDescriptor* field, const string& prefix) argument 573 IsStringOrMessage(const FieldDescriptor* field) argument 593 EffectiveStringCType(const FieldDescriptor* field) argument 620 GetUtf8CheckMode(const FieldDescriptor* field, const Options& options) argument 632 GenerateUtf8CheckCode(const FieldDescriptor* field, const Options& options, bool for_parse, const map<string, string>& variables, const char* parameters, const char* strict_function, const char* verify_function, io::Printer* printer) argument 682 GenerateUtf8CheckCodeForString(const FieldDescriptor* field, const Options& options, bool for_parse, const map<string, string>& variables, const char* parameters, io::Printer* printer) argument 692 GenerateUtf8CheckCodeForCord(const FieldDescriptor* field, const Options& options, bool for_parse, const map<string, string>& variables, const char* parameters, io::Printer* printer) argument [all...] |
/external/protobuf/src/google/protobuf/util/internal/ |
H A D | proto_writer.cc | 112 // Writes an INT32 field, including tag to the stream. 122 // writes an SFIXED32 field, including tag, to the stream. 132 // Writes an SINT32 field, including tag, to the stream. 142 // Writes a FIXED32 field, including tag, to the stream. 152 // Writes a UINT32 field, including tag, to the stream. 162 // Writes an INT64 field, including tag, to the stream. 172 // Writes an SFIXED64 field, including tag, to the stream. 182 // Writes an SINT64 field, including tag, to the stream. 192 // Writes a FIXED64 field, including tag, to the stream. 202 // Writes a UINT64 field, includin 278 const google::protobuf::Field& field = type.fields(i); local 301 ProtoElement(ProtoWriter::ProtoElement* parent, const google::protobuf::Field* field, const google::protobuf::Type& type, bool is_list) argument 368 RegisterField( const google::protobuf::Field* field) argument 431 const google::protobuf::Field* field = NULL; local 473 const google::protobuf::Field* field = BeginNamed(name, true); local 506 const google::protobuf::Field* field = Lookup(name); local 521 ValidOneof(const google::protobuf::Field& field, StringPiece unnormalized_name) argument 539 IsRepeated(const google::protobuf::Field& field) argument 544 StartObjectField(const google::protobuf::Field& field, const google::protobuf::Type& type) argument 551 StartListField(const google::protobuf::Field& field, const google::protobuf::Type& type) argument 557 RenderPrimitiveField( const google::protobuf::Field& field, const google::protobuf::Type& type, const DataPiece& data) argument 662 const google::protobuf::Field* field = Lookup(name); local 693 const google::protobuf::Field* field = local 699 LookupType( const google::protobuf::Field* field) argument 752 WriteTag(const google::protobuf::Field& field) argument [all...] |
/external/icu/icu4c/source/i18n/unicode/ |
H A D | calendar.h | 86 * A <code>Calendar</code> object can produce all the time field values 101 * the Gregorian calendar, the default for a field is the same as that of the 109 * most recently set single field, will be used. 176 * <code>Calendar</code> provides an API for field "rolling", where fields 183 * adding the specified (signed) amount of time to a particular time field. 251 * who create locale resources for the field of first-day-of-week should be aware of 432 * to previous calls to set time field values. The time specified is non-local UTC 437 * previously set in the time field is invalid or restricted by 451 * set in the time field is invalid or restricted by 500 * previously set in the time field i 1561 internalGet(UCalendarDateFields field, int32_t defaultValue) const argument 2510 roll(UCalendarDateFields field, UBool up, UErrorCode& status) argument 2517 roll(EDateFields field, UBool up, UErrorCode& status) argument 2532 internalSet(UCalendarDateFields field, int32_t value) argument [all...] |
/external/protobuf/src/google/protobuf/util/ |
H A D | field_comparator.h | 73 // Compares the values of a field in two protocol buffer messages. 77 // In case the given FieldDescriptor points to a repeated field, the indices 86 const google::protobuf::FieldDescriptor* field, 116 const google::protobuf::FieldDescriptor* field, 139 // Sets the fraction and margin for the float comparison of a given field. 142 // REQUIRES: field->cpp_type == FieldDescriptor::CPPTYPE_DOUBLE or 143 // field->cpp_type == FieldDescriptor::CPPTYPE_FLOAT 145 void SetFractionAndMargin(const FieldDescriptor* field, double fraction, 149 // double fields, unless a field has been given a specific setting via 176 bool CompareBool(const google::protobuf::FieldDescriptor& field, argument 195 CompareInt32(const google::protobuf::FieldDescriptor& field, int32 value_1, int32 value_2) argument 200 CompareInt64(const google::protobuf::FieldDescriptor& field, int64 value_1, int64 value_2) argument 205 CompareString(const google::protobuf::FieldDescriptor& field, const string& value_1, const string& value_2) argument 210 CompareUInt32(const google::protobuf::FieldDescriptor& field, uint32 value_1, uint32 value_2) argument 215 CompareUInt64(const google::protobuf::FieldDescriptor& field, uint64 value_1, uint64 value_2) argument [all...] |
/external/icu/icu4c/source/test/intltest/ |
H A D | fldset.h | 74 * @param inheritFrom if a field's value is given as 0-length, such as NAME1 in "NAME1=,NAME2=VALUE2", 88 * @param inheritFrom if a field's value is given as 0-length, such as NAME1 in "NAME1=,NAME2=VALUE2", 101 * This function is called when parsing a field name, such as "MONTH" in "MONTH=4". 108 * @param name the field name (key side) 111 * @return field number, or negative if field should be skipped. 122 * @param field which field is being parsed 128 int32_t field, 135 * Implementations of this function should call set(field, [all...] |
/external/libdrm/radeon/ |
H A D | radeon_surface.h | 35 * mipmap level. 0 value for field than can be hint is always valid. 62 #define RADEON_SURF_GET(v, field) (((v) >> RADEON_SURF_ ## field ## _SHIFT) & RADEON_SURF_ ## field ## _MASK) 63 #define RADEON_SURF_SET(v, field) (((v) & RADEON_SURF_ ## field ## _MASK) << RADEON_SURF_ ## field ## _SHIFT) 64 #define RADEON_SURF_CLR(v, field) ((v) & ~(RADEON_SURF_ ## field ## _MASK << RADEON_SURF_ ## field ## _SHIF [all...] |
/external/mockito/src/test/java/org/mockito/internal/configuration/ |
H A D | MockInjectionTest.java | 44 MockInjection.onField(field("withConstructor"), null); 49 MockInjection.onField(field("withConstructor"), this).withMocks(null); 55 MockInjection.onField(field("withConstructor"), this).withMocks(oneSetMock()).tryConstructorInjection().apply(); 62 MockInjection.onField(field("withoutConstructor"), this).withMocks(otherKindOfMocks()).tryConstructorInjection().apply(); 69 MockInjection.onField(field("withoutConstructor"), this).withMocks(oneSetMock()).tryPropertyOrFieldInjection().apply(); 76 MockInjection.onField(field("withoutConstructor"), this).withMocks(otherKindOfMocks()).tryPropertyOrFieldInjection().apply(); 89 private Field field(String field) throws NoSuchFieldException { argument 90 return getClass().getDeclaredField(field);
|
/external/strace/tests/ |
H A D | quotactl.h | 60 # define PRINT_FIELD_D(prefix, where, field) \ 61 printf("%s%s=%lld", (prefix), #field, \ 62 sign_extend_unsigned_to_ll((where)->field)) 64 # define PRINT_FIELD_U(prefix, where, field) \ 65 printf("%s%s=%llu", (prefix), #field, \ 66 zero_extend_signed_to_ull((where)->field)) 68 # define PRINT_FIELD_X(prefix, where, field) \ 69 printf("%s%s=%#llx", (prefix), #field, \ 70 zero_extend_signed_to_ull((where)->field))
|
/external/strace/tests-m32/ |
H A D | quotactl.h | 60 # define PRINT_FIELD_D(prefix, where, field) \ 61 printf("%s%s=%lld", (prefix), #field, \ 62 sign_extend_unsigned_to_ll((where)->field)) 64 # define PRINT_FIELD_U(prefix, where, field) \ 65 printf("%s%s=%llu", (prefix), #field, \ 66 zero_extend_signed_to_ull((where)->field)) 68 # define PRINT_FIELD_X(prefix, where, field) \ 69 printf("%s%s=%#llx", (prefix), #field, \ 70 zero_extend_signed_to_ull((where)->field))
|
/external/strace/tests-mx32/ |
H A D | quotactl.h | 60 # define PRINT_FIELD_D(prefix, where, field) \ 61 printf("%s%s=%lld", (prefix), #field, \ 62 sign_extend_unsigned_to_ll((where)->field)) 64 # define PRINT_FIELD_U(prefix, where, field) \ 65 printf("%s%s=%llu", (prefix), #field, \ 66 zero_extend_signed_to_ull((where)->field)) 68 # define PRINT_FIELD_X(prefix, where, field) \ 69 printf("%s%s=%#llx", (prefix), #field, \ 70 zero_extend_signed_to_ull((where)->field))
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/ |
H A D | TypeExtensions.cs | 43 public static object get( this FieldInfo field, object obj ) argument 45 return field.GetValue( obj ); 63 FieldInfo field = type.GetField( name ); 64 if ( field == null ) 67 return field;
|
/external/mockito/src/main/java/org/mockito/internal/util/reflection/ |
H A D | LenientCopyTool.java | 33 for (Field field : fields) { 35 if (Modifier.isStatic(field.getModifiers())) { 40 accessibilityChanger.enableAccess(field); 41 fieldCopier.copyValue(from, mock, field); 43 //Ignore - be lenient - if some field cannot be copied then let's be it 45 accessibilityChanger.safelyDisableAccess(field);
|
/external/nanopb-c/tests/alltypes_callback/ |
H A D | encode_alltypes_callback.c | 3 * because each encoder defined here only gives a single field. 13 static bool write_varint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) argument 15 return pb_encode_tag_for_field(stream, field) && 19 static bool write_svarint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) argument 21 return pb_encode_tag_for_field(stream, field) && 25 static bool write_fixed32(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) argument 27 return pb_encode_tag_for_field(stream, field) && 31 static bool write_fixed64(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) argument 33 return pb_encode_tag_for_field(stream, field) && 37 static bool write_string(pb_ostream_t *stream, const pb_field_t *field, voi argument 43 write_submsg(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) argument 50 write_emptymsg(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) argument 57 write_repeated_varint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) argument 71 write_repeated_svarint(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) argument 85 write_repeated_fixed32(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) argument 99 write_repeated_fixed64(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) argument 113 write_repeated_string(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) argument 127 write_repeated_submsg(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) argument 143 write_limits(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) argument 161 write_repeated_emptymsg(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) argument [all...] |
/external/boringssl/include/openssl/ |
H A D | asn1t.h | 276 #define ASN1_EX_TYPE(flags, tag, stname, field, type) { \ 277 (flags), (tag), offsetof(stname, field),\ 278 #field, ASN1_ITEM_ref(type) } 287 #define ASN1_IMP_EX(stname, field, type, tag, ex) \ 288 ASN1_EX_TYPE(ASN1_TFLG_IMPLICIT | ex, tag, stname, field, type) 290 #define ASN1_EXP_EX(stname, field, type, tag, ex) \ 291 ASN1_EX_TYPE(ASN1_TFLG_EXPLICIT | ex, tag, stname, field, type) 293 /* Any defined by macros: the field used is in the table itself */ 298 #define ASN1_SIMPLE(stname, field, type) ASN1_EX_TYPE(0,0, stname, field, typ [all...] |
/external/boringssl/src/include/openssl/ |
H A D | asn1t.h | 276 #define ASN1_EX_TYPE(flags, tag, stname, field, type) { \ 277 (flags), (tag), offsetof(stname, field),\ 278 #field, ASN1_ITEM_ref(type) } 287 #define ASN1_IMP_EX(stname, field, type, tag, ex) \ 288 ASN1_EX_TYPE(ASN1_TFLG_IMPLICIT | ex, tag, stname, field, type) 290 #define ASN1_EXP_EX(stname, field, type, tag, ex) \ 291 ASN1_EX_TYPE(ASN1_TFLG_EXPLICIT | ex, tag, stname, field, type) 293 /* Any defined by macros: the field used is in the table itself */ 298 #define ASN1_SIMPLE(stname, field, type) ASN1_EX_TYPE(0,0, stname, field, typ [all...] |