/external/junit/src/org/junit/experimental/theories/internal/ |
H A D | AllMembersSupplier.java | 96 for (final Field field : fClass.getJavaClass().getFields()) { 97 if (Modifier.isStatic(field.getModifiers())) { 98 Class<?> type= field.getType(); 100 && field.getAnnotation(DataPoints.class) != null) { 101 addArrayValues(field.getName(), list, getStaticFieldValue(field)); 103 && field.getAnnotation(DataPoint.class) != null) { 105 .forValue(field.getName(), getStaticFieldValue(field))); 116 private Object getStaticFieldValue(final Field field) { argument [all...] |
/external/junit/src/org/junit/internal/runners/rules/ |
H A D | RuleFieldValidator.java | 53 private void validateField(FrameworkField field, List<Throwable> errors) { argument 54 optionallyValidateStatic(field, errors); 55 validatePublic(field, errors); 56 validateTestRuleOrMethodRule(field, errors); 59 private void optionallyValidateStatic(FrameworkField field, argument 61 if (fOnlyStaticFields && !field.isStatic()) 62 addError(errors, field, "must be static."); 65 private void validatePublic(FrameworkField field, List<Throwable> errors) { argument 66 if (!field.isPublic()) 67 addError(errors, field, "mus 70 validateTestRuleOrMethodRule(FrameworkField field, List<Throwable> errors) argument 86 addError(List<Throwable> errors, FrameworkField field, String suffix) argument [all...] |
/external/mockito/src/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...] |
H A D | PropertyAndSetterInjection.java | 30 * for each field annotated by @InjectMocks 32 * <li>initialize field annotated by @InjectMocks 36 * <li>order fields rom sub-type to super-type, then by field name 44 * <li>else set mock by field injection 47 * <li>remove injected field from list of class fields 55 * <u>Note:</u> If the field needing injection is not initialized, the strategy tries 56 * to create one using a no-arg constructor of the field type. 75 // for each field in the class hierarchy 86 private FieldInitializationReport initializeInjectMocksField(Field field, Object fieldOwner) { argument 89 report = new FieldInitializer(fieldOwner, field) [all...] |
/external/mockito/src/org/mockito/internal/util/reflection/ |
H A D | InstanceField.java | 13 * Represents an accessible instance field. 15 * Contains the instance reference on which the field can be read adn write. 18 private final Field field; field in class:InstanceField 25 * @param field The field that should be accessed, note that no checks are performed to ensure 26 * the field belong to this instance class. 27 * @param instance The instance from which the field shall be accessed. 29 public InstanceField(Field field, Object instance) { argument 30 this.field = Checks.checkNotNull(field, "fiel [all...] |
/external/nanopb-c/tests/decode_unittests/ |
H A D | decode_unittests.c | 22 bool callback_check(pb_istream_t *stream, const pb_field_t *field, void **arg) argument 183 * we use only a single uint8_t to store the size of the field. 205 COMMENT("Testing pb_decode with repeated int32 field") 219 COMMENT("Testing pb_decode with packed int32 field") 272 /* Unsupported field type */
|
/external/nanopb-c/tests/encode_unittests/ |
H A D | encode_unittests.c | 20 bool fieldcallback(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) argument 23 if (!pb_encode_tag_for_field(stream, field)) 28 bool crazyfieldcallback(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) argument 33 if (!pb_encode_tag_for_field(stream, field)) 99 pb_field_t field = {10, PB_LTYPE_SVARINT}; local 102 TEST(WRITES(pb_encode_tag_for_field(&s, &field), "\x50")); 104 field.type = PB_LTYPE_FIXED64; 105 TEST(WRITES(pb_encode_tag_for_field(&s, &field), "\x51")); 107 field.type = PB_LTYPE_STRING; 108 TEST(WRITES(pb_encode_tag_for_field(&s, &field), "\x5 132 pb_field_t field = {1, PB_LTYPE_VARINT, 0, 0, sizeof(value)}; local [all...] |
/external/proguard/src/proguard/classfile/util/ |
H A D | MemberFinder.java | 44 * Finds the field with the given name and descriptor in the given 142 * Returns whether the given field is shadowed anywhere down the class 146 Field field) 148 String name = field.getName(clazz); 149 String descriptor = field.getDescriptor(clazz); 151 // Go looking for the field down the class hierarchy. 162 // We've found a shadowing field. 145 isShadowed(Clazz clazz, Field field) argument
|
/external/proguard/src/proguard/optimize/evaluation/ |
H A D | StoringInvocationUnit.java | 133 private static void generalizeFieldClassValue(Field field, ReferenceValue value) argument 135 FieldOptimizationInfo info = FieldOptimizationInfo.getFieldOptimizationInfo(field); 143 public static ReferenceValue getFieldClassValue(Field field) argument 145 FieldOptimizationInfo info = FieldOptimizationInfo.getFieldOptimizationInfo(field); 152 private static void generalizeFieldValue(Field field, Value value) argument 154 FieldOptimizationInfo info = FieldOptimizationInfo.getFieldOptimizationInfo(field); 162 public static Value getFieldValue(Field field) argument 164 FieldOptimizationInfo info = FieldOptimizationInfo.getFieldOptimizationInfo(field);
|
/external/proguard/src/proguard/optimize/info/ |
H A D | FieldOptimizationInfo.java | 32 * a field. 50 public FieldOptimizationInfo(Clazz clazz, Field field) argument 52 int accessFlags = field.getAccessFlags(); 59 // See if we can initialize the static field with a constant value. 60 field.accept(clazz, new AllAttributeVisitor(this)); 66 // Otherwise initialize the non-final field with the default value. 67 value = initialValue(field.getDescriptor(clazz)); 151 public void visitConstantValueAttribute(Clazz clazz, Field field, ConstantValueAttribute constantValueAttribute) argument 153 // Retrieve the initial static field value. 190 public static void setFieldOptimizationInfo(Clazz clazz, Field field) argument 196 getFieldOptimizationInfo(Field field) argument [all...] |
H A D | NonPrivateMemberMarker.java | 131 private static void markCanNotBeMadePrivate(Field field) argument 133 FieldOptimizationInfo info = FieldOptimizationInfo.getFieldOptimizationInfo(field); 142 * Returns whether the given field can be made private. 144 public static boolean canBeMadePrivate(Field field) argument 146 FieldOptimizationInfo info = FieldOptimizationInfo.getFieldOptimizationInfo(field);
|
/external/protobuf/src/google/protobuf/compiler/javamicro/ |
H A D | javamicro_helpers.h | 53 // Converts the field's name to camel-case, e.g. "foo_bar_baz" becomes 55 string UnderscoresToCamelCase(const FieldDescriptor* field); 56 string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field); 104 // Get the unqualified name that should be used for a field's field 106 string FieldConstantName(const FieldDescriptor *field); 122 inline JavaType GetJavaType(const FieldDescriptor* field) { argument 123 return GetJavaType(field->type()); 131 string DefaultValue(const Params& params, const FieldDescriptor* field);
|
/external/protobuf/src/google/protobuf/compiler/javanano/ |
H A D | javanano_field.cc | 50 // No saved default for this field by default. 57 // No saved default for this field by default. 69 << "called on field generator that does not support packing."; 85 descriptor->field(i), params, &next_has_bit_index); 94 FieldGenerator* FieldGeneratorMap::MakeGenerator(const FieldDescriptor* field, argument 96 JavaType java_type = GetJavaType(field); 97 if (field->is_repeated()) { 100 return new RepeatedMessageFieldGenerator(field, params); 102 return new RepeatedEnumFieldGenerator(field, params); 104 return new RepeatedPrimitiveFieldGenerator(field, param [all...] |
H A D | javanano_helpers.h | 54 // Converts the field's name to camel-case, e.g. "foo_bar_baz" becomes 56 string UnderscoresToCamelCase(const FieldDescriptor* field); 57 string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field); 59 // Appends an "_" to the end of a field where the name is a reserved java 109 // Get the unqualified name that should be used for a field's field 111 string FieldConstantName(const FieldDescriptor *field); 113 string FieldDefaultConstantName(const FieldDescriptor *field); 115 // Print the field's proto-syntax definition as a comment. 116 void PrintFieldComment(io::Printer* printer, const FieldDescriptor* field); 132 GetJavaType(const FieldDescriptor* field) argument [all...] |
/external/protobuf/src/google/protobuf/ |
H A D | reflection_ops.cc | 63 const FieldDescriptor* field = fields[i]; local 65 if (field->is_repeated()) { 66 int count = from_reflection->FieldSize(from, field); 68 switch (field->cpp_type()) { 71 to_reflection->Add##METHOD(to, field, \ 72 from_reflection->GetRepeated##METHOD(from, field, j)); \ 87 to_reflection->AddMessage(to, field)->MergeFrom( 88 from_reflection->GetRepeatedMessage(from, field, j)); 93 switch (field->cpp_type()) { 96 to_reflection->Set##METHOD(to, field, \ 152 const FieldDescriptor* field = fields[i]; local 182 const FieldDescriptor* field = fields[i]; local 197 SubMessagePrefix(const string& prefix, const FieldDescriptor* field, int index) argument 237 const FieldDescriptor* field = fields[i]; local [all...] |
H A D | wire_format.h | 77 // Given a field return its WireType 79 const FieldDescriptor* field); 129 // Skips a field value of the given WireType. The input should start 131 // the contents of the field will be added to it. 178 // This is different from MakeTag(field->number(), field->type()) in the case 180 static uint32 MakeTag(const FieldDescriptor* field); 182 // Parse a single field. The input should start out positioned immidately 186 const FieldDescriptor* field, // May be NULL for unknown 190 // Serialize a single field 262 WireTypeForField( const FieldDescriptor* field) argument 280 MakeTag(const FieldDescriptor* field) argument [all...] |
/external/skia/src/animator/ |
H A D | SkAnimateBase.h | 53 // !!! make field part of a union with fFieldInfo, or fValues, something known later? 54 SkString field; // temporary; once target is known, this is reset member in class:SkAnimateBase
|
/external/skia/src/sfnt/ |
H A D | SkOTTable_gasp.h | 54 } field; member in union:SkOTTableGridAndScanProcedure::GaspRange::behavior
|
/external/smack/src/org/xbill/DNS/ |
H A D | ClientSubnetOption.java | 24 * The wire format of the option contains a 2-byte length field (1 for IPv4, 2 49 checkMaskLength(String field, int family, int val) { argument 52 throw new IllegalArgumentException("\"" + field + "\" " + val +
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/ |
H A D | ImmutableField.java | 86 public static ImmutableField of(Field field) { argument 87 if (field instanceof ImmutableField) { 88 return (ImmutableField)field; 91 field.getDefiningClass(), 92 field.getName(), 93 field.getType(), 94 field.getAccessFlags(), 95 field.getInitialValue(), 96 field.getAnnotations());
|
/external/chromium_org/ash/display/ |
H A D | display_layout.cc | 41 DisplayLayout::Position* field) { 42 if (ReverseFind(GetPositionToStringMap(), position, field)) 54 bool GetDisplayIdFromString(const base::StringPiece& position, int64* field) { argument 55 return base::StringToInt64(position, field); 40 GetPositionFromString(const base::StringPiece& position, DisplayLayout::Position* field) argument
|
/external/chromium_org/base/json/ |
H A D | json_value_converter_unittest.cc | 34 static bool ParseSimpleEnum(const StringPiece& value, SimpleEnum* field) { argument 36 *field = FOO; 39 *field = BAR; 212 // Convert() still succeeds even if the input doesn't have "bar" field.
|
/external/chromium_org/components/autofill/core/browser/ |
H A D | autocomplete_history_manager.cc | 26 bool IsTextField(const FormFieldData& field) { argument 28 field.form_control_type == "text" || 29 field.form_control_type == "search" || 30 field.form_control_type == "tel" || 31 field.form_control_type == "url" || 32 field.form_control_type == "email"; 122 // - text field
|
H A D | autocomplete_history_manager_unittest.cc | 157 // Search field. 240 FormFieldData field; local 241 test::CreateTestFormField("Address", "address", "", "textarea", &field); 251 field.name, 252 field.value, 253 field.form_control_type,
|
H A D | autofill_download_manager_unittest.cc | 138 FormFieldData field; local 139 field.label = ASCIIToUTF16("username"); 140 field.name = ASCIIToUTF16("username"); 141 field.form_control_type = "text"; 142 form.fields.push_back(field); 144 field.label = ASCIIToUTF16("First Name"); 145 field.name = ASCIIToUTF16("firstname"); 146 field.form_control_type = "text"; 147 form.fields.push_back(field); 149 field 348 FormFieldData field; local [all...] |