Searched refs:field (Results 126 - 150 of 1529) sorted by relevance

1234567891011>>

/external/protobuf/src/google/protobuf/
H A Dunknown_field_set.cc139 const UnknownField& field = (*fields_)[i]; local
140 switch (field.type()) {
142 total_size += sizeof(*field.length_delimited_.string_value_) +
144 *field.length_delimited_.string_value_);
147 total_size += field.group_->SpaceUsed();
161 UnknownField field; local
162 field.number_ = number;
163 field.SetType(UnknownField::TYPE_VARINT);
164 field.varint_ = value;
166 fields_->push_back(field);
170 UnknownField field; local
179 UnknownField field; local
188 UnknownField field; local
199 UnknownField field; local
208 AddField(const UnknownField& field) argument
238 UnknownField* field = &(*fields_)[i]; local
[all...]
H A Ddynamic_message.cc106 bool IsMapFieldInApi(const FieldDescriptor* field) { argument
107 return field->is_map();
110 // Compute the byte size of the in-memory representation of the field.
111 int FieldSpaceUsed(const FieldDescriptor* field) { argument
113 if (field->label() == FD::LABEL_REPEATED) {
114 switch (field->cpp_type()) {
124 if (IsMapFieldInApi(field)) {
131 switch (field->options().ctype()) {
139 switch (field->cpp_type()) {
153 switch (field
168 OneofFieldSpaceUsed(const FieldDescriptor* field) argument
348 const FieldDescriptor* field = descriptor->field(i); local
440 const FieldDescriptor* field = descriptor->field(i); local
543 const FieldDescriptor* field = descriptor->field(i); local
761 const FieldDescriptor* field = type->oneof_decl(i)->field(j); local
815 const FieldDescriptor* field = type->oneof_decl(i)->field(j); local
861 const FieldDescriptor* field = type->oneof_decl(i)->field(j); local
[all...]
/external/mockito/src/main/java/org/mockito/internal/configuration/
H A DSpyAnnotationEngine.java31 * Will try transform the field in a spy as with <code>Mockito.spy()</code>.
35 * If the field is not initialized, will try to initialize it, with a no-arg constructor.
39 * If the field is also annotated with the <strong>compatible</strong> &#64;InjectMocks then the field will be ignored,
43 * <p>This engine will fail, if the field is also annotated with incompatible Mockito annotations.
51 for (Field field : fields) {
52 if (field.isAnnotationPresent(Spy.class) && !field.isAnnotationPresent(InjectMocks.class)) {
53 assertNoIncompatibleAnnotations(Spy.class, field, Mock.class, Captor.class);
54 field
74 spyInstance(Field field, Object instance) argument
81 spyNewInstance(Object testInstance, Field field) argument
137 assertNoIncompatibleAnnotations(Class<? extends Annotation> annotation, Field field, Class<? extends Annotation>... undesiredAnnotations) argument
[all...]
/external/guice/extensions/testlib/src/com/google/inject/testing/fieldbinder/
H A DBoundFieldModule.java46 * For each {@link Bind} annotated field of an object and its superclasses, this module will bind
47 * that field's type to that field's value at injector creation time. This includes both instance
51 * If {@link Bind#to} is specified, the field's value will be bound to the class specified by
52 * {@link Bind#to} instead of the field's actual type.
55 * If a {@link BindingAnnotation} or {@link javax.inject.Qualifier} is present on the field,
56 * that field will be bound using that annotation via {@link AnnotatedBindingBuilder#annotatedWith}.
62 * If the field is of type {@link Provider}, the field's value will be bound as a {@link Provider}
128 /** The field itsel
129 final Field field; field in class:BoundFieldModule.BoundFieldInfo
161 BoundFieldInfo( Field field, Bind bindAnnotation, TypeLiteral<?> fieldType) argument
230 hasInject(Field field) argument
241 getBoundFieldInfo( TypeLiteral<?> containingClassType, Field field) argument
260 verifyBindingAnnotations( Field field, AnnotatedBindingBuilder<?> annotatedBinder) argument
349 throwBoundFieldException(Field field, String format, Object... args) argument
[all...]
/external/mockito/src/test/java/org/mockito/internal/util/reflection/
H A DGenericMasterTest.java40 assertEquals(String.class, m.getGenericType(field("one")));
41 assertEquals(Integer.class, m.getGenericType(field("two")));
42 assertEquals(Double.class, m.getGenericType(field("map")));
47 assertEquals(Object.class, m.getGenericType(field("nonGeneric")));
52 assertEquals(Set.class, m.getGenericType(field("nested")));
53 assertEquals(Set.class, m.getGenericType(field("multiNested")));
56 private Field field(String fieldName) throws SecurityException, NoSuchFieldException { method in class:GenericMasterTest
/external/nanopb-c/examples/using_union_messages/
H A Ddecode.c27 const pb_field_t *field; local
28 for (field = UnionMessage_fields; field->tag != 0; field++)
30 if (field->tag == tag && (field->type & PB_LTYPE_SUBMESSAGE))
32 /* Found our field. */
33 return field->ptr;
38 /* Wasn't our field.. */
/external/protobuf/src/google/protobuf/compiler/javamicro/
H A Djavamicro_helpers.cc58 const string& FieldName(const FieldDescriptor* field) { argument
59 // Groups are hacky: The name of the field is just the lower-cased name
62 if (field->type() == FieldDescriptor::TYPE_GROUP) {
63 return field->message_type()->name();
65 return field->name();
102 string UnderscoresToCamelCase(const FieldDescriptor* field) { argument
103 return UnderscoresToCamelCaseImpl(FieldName(field), false);
106 string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field) { argument
107 return UnderscoresToCamelCaseImpl(FieldName(field), true);
194 string FieldConstantName(const FieldDescriptor *field) { argument
275 DefaultValue(const Params& params, const FieldDescriptor* field) argument
[all...]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/
H A DFieldPool.java47 public void intern(@Nonnull FieldReference field) { argument
48 Integer prev = internedItems.put(field, 0);
50 dexPool.typeSection.intern(field.getDefiningClass());
51 dexPool.stringSection.intern(field.getName());
52 dexPool.typeSection.intern(field.getType());
68 @Override public int getFieldIndex(@Nonnull Field field) { argument
69 return getItemIndex(field);
/external/strace/
H A Dprint_struct_stat.c69 #define PRINT_ST_TIME(field) \
71 tprintf(", st_" #field "=%lld", (long long) st->field); \
72 tprints_comment(sprinttime_nsec(st->field, \
73 zero_extend_signed_to_ull(st->field ## _nsec)));\
75 tprintf(", st_" #field "_nsec=%llu", \
77 st->field ## _nsec)); \
/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/
H A DFieldDefinition.java44 public static void writeTo(BaksmaliOptions options, IndentingWriter writer, Field field, argument
46 EncodedValue initialValue = field.getInitialValue();
47 int accessFlags = field.getAccessFlags();
54 writer.write("# The value of this static final field might be set in the static constructor\n");
62 writer.write(".field ");
63 writeAccessFlags(writer, field.getAccessFlags());
64 writer.write(field.getName());
66 writer.write(field.getType());
72 containingClass = field.getDefiningClass();
80 Collection<? extends Annotation> annotations = field
[all...]
/external/mesa3d/src/intel/genxml/
H A Dgen_pack_header.py304 for field in self.fields:
305 field.emit_template_struct(dim)
314 for field in self.fields:
315 if type(field) is Group:
316 if field.count == 1:
317 field.collect_dwords(dwords, start + field.start, dim)
319 for i in range(field.count):
320 field.collect_dwords(dwords,
321 start + field
[all...]
/external/nanopb-c/generator/google/protobuf/
H A Dtext_format.py69 for field, value in message.ListFields():
70 if field.label == descriptor.FieldDescriptor.LABEL_REPEATED:
72 PrintField(field, element, out, indent, as_utf8, as_one_line)
74 PrintField(field, value, out, indent, as_utf8, as_one_line)
77 def PrintField(field, value, out, indent=0, as_utf8=False, as_one_line=False):
78 """Print a single field name/value pair. For repeated fields, the value
82 if field.is_extension:
84 if (field.containing_type.GetOptions().message_set_wire_format and
85 field.type == descriptor.FieldDescriptor.TYPE_MESSAGE and
86 field
[all...]
/external/autotest/scheduler/
H A Dscheduler_config.py35 for field, data_type in self.FIELDS:
36 setattr(self, field, config.get_config_value(CONFIG_SECTION,
37 field,
/external/clang/test/CodeGenCXX/
H A Dreference-in-blocks.cpp15 A() : field(10), d1(3.14) {}
18 printf(" field = %d\n", field);
19 printf(" field = %f\n", d1);
21 int field; member in class:A
/external/clang/test/SemaTemplate/
H A Dinstantiate-deeply.cpp8 e field; member in struct:A::B::C::D::E
9 E() : field(0) {
14 field += v2 + v4;
/external/libevent/
H A Dht-internal.h101 #define _HT_SET_HASH(elm, field, hashfn) \
102 do { (elm)->field.hte_hash = hashfn(elm); } while (0)
103 #define _HT_SET_HASHVAL(elm, field, val) \
104 do { (elm)->field.hte_hash = (val); } while (0)
105 #define _HT_ELT_HASH(elm, field, hashfn) \
106 ((elm)->field.hte_hash)
108 #define _HT_SET_HASH(elm, field, hashfn) \
110 #define _HT_ELT_HASH(elm, field, hashfn) \
112 #define _HT_SET_HASHVAL(elm, field, val) \
117 #define _HT_BUCKET(head, field, el
[all...]
/external/r8/src/main/java/com/android/tools/r8/utils/
H A DFieldSignatureEquivalence.java31 protected int doHash(DexField field) { argument
32 return field.name.hashCode() * 31 + field.type.hashCode();
/external/syslinux/gpxe/src/drivers/net/
H A Detherfabric.h48 /** Dummy field low bit number */
50 /** Dummy field width */
69 /** Specified attribute (e.g. LBN) of the specified field */
70 #define EFAB_VAL(field,attribute) field ## _ ## attribute
71 /** Low bit number of the specified field */
72 #define EFAB_LOW_BIT( field ) EFAB_VAL ( field, LBN )
73 /** Bit width of the specified field */
74 #define EFAB_WIDTH( field ) EFAB_VA
[all...]
/external/syslinux/gpxe/src/net/
H A Ddhcppkt.c44 * Calculate used length of an IPv4 field within a DHCP packet
47 * @v len Length of field
48 * @ret used Used length of field
57 * Calculate used length of a string field within a DHCP packet
60 * @v len Length of field
61 * @ret used Used length of field
67 /** A dedicated field within a DHCP packet */
73 /** Length of field */
75 /** Calculate used length of field
78 * @v len Length of field
125 struct dhcp_packet_field *field; local
148 struct dhcp_packet_field *field; local
186 struct dhcp_packet_field *field; local
[all...]
/external/nanopb-c/generator/google/protobuf/internal/
H A Dpython_message.py92 for field in descriptor.fields:
93 _AttachFieldHelpers(cls, field)
116 of a protocol message field.
119 proto_field_name: The protocol message field name, exactly
132 # getattr() and setattr() to reflectively manipulate field values. If we
134 # the same transformation. Note that currently if you name a field "yield",
182 def _IsMessageSetExtension(field):
183 return (field.is_extension and
184 field.containing_type.has_options and
185 field
[all...]
/external/protobuf/python/google/protobuf/
H A Djson_format.py111 def _IsMapEntry(field):
112 return (field.type == descriptor.FieldDescriptor.TYPE_MESSAGE and
113 field.message_type.has_options and
114 field.message_type.GetOptions().map_entry)
123 for field, value in fields:
124 name = field.camelcase_name
125 if _IsMapEntry(field):
126 # Convert a map field.
127 v_field = field.message_type.fields_by_name['value']
140 elif field
[all...]
H A Dtext_format.py117 defined in source code instead of the field number. By default, use the
118 field number order.
121 use_field_number: If True, print field numbers instead of names.
138 def _IsMapEntry(field):
139 return (field.type == descriptor.FieldDescriptor.TYPE_MESSAGE and
140 field.message_type.has_options and
141 field.message_type.GetOptions().map_entry)
153 def PrintField(field, value, out, indent=0, as_utf8=False, as_one_line=False,
155 """Print a single field name/value pair."""
158 printer.PrintField(field, valu
[all...]
/external/v8/tools/
H A Dgc-nvp-trace-processor.py61 def __init__(self, title, field, axis = x1y1, **keywords):
65 if type(field) is types.ListType:
66 self.field = field
68 self.field = [field]
71 return self.field
75 'using %s' % context.format_fieldref(self.field),
112 return ':'.join([str(self.field_to_index[field]) for field i
[all...]
/external/libmojo/mojo/public/tools/bindings/pylib/mojom/generate/
H A Dpack.py70 def __init__(self, field, index, ordinal):
73 field: the original field.
74 index: the position of the original field in the struct.
75 ordinal: the ordinal of the field for serialization.
77 self.field = field
80 self.size = self.GetSizeForKind(field.kind)
81 self.alignment = self.GetAlignmentForKind(field.kind)
93 def GetFieldOffset(field, last_fiel
[all...]
/external/protobuf/java/core/src/main/java/com/google/protobuf/
H A DMapEntry.java162 for (final FieldDescriptor field : metadata.descriptor.getFields()) {
163 if (hasField(field)) {
164 result.put(field, getField(field));
170 private void checkFieldDescriptor(FieldDescriptor field) { argument
171 if (field.getContainingType() != metadata.descriptor) {
173 "Wrong FieldDescriptor \"" + field.getFullName()
179 public boolean hasField(FieldDescriptor field) { argument
180 checkFieldDescriptor(field);;
186 public Object getField(FieldDescriptor field) { argument
198 getRepeatedFieldCount(FieldDescriptor field) argument
204 getRepeatedField(FieldDescriptor field, int index) argument
296 checkFieldDescriptor(FieldDescriptor field) argument
305 newBuilderForField( FieldDescriptor field) argument
320 setField(FieldDescriptor field, Object value) argument
334 clearField(FieldDescriptor field) argument
345 setRepeatedField(FieldDescriptor field, int index, Object value) argument
352 addRepeatedField(FieldDescriptor field, Object value) argument
390 hasField(FieldDescriptor field) argument
396 getField(FieldDescriptor field) argument
408 getRepeatedFieldCount(FieldDescriptor field) argument
414 getRepeatedField(FieldDescriptor field, int index) argument
[all...]

Completed in 987 milliseconds

1234567891011>>