HomeSort by relevance Sort by last modified time
    Searched refs:Field (Results 76 - 100 of 1003) sorted by null

1 2 34 5 6 7 8 91011>>

  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowContentProviderResult.java 3 import java.lang.reflect.Field;
16 Field field = realResult.getClass().getField("uri"); local
17 field.setAccessible(true);
18 field.set(realResult, uri);
22 Field field = realResult.getClass().getField("count"); local
23 field.setAccessible(true);
24 field.set(realResult, count);
  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/iface/
ClassDef.java 108 @Nonnull Iterable<? extends Field> getStaticFields();
117 @Nonnull Iterable<? extends Field> getInstanceFields();
132 @Nonnull Iterable<? extends Field> getFields();
  /frameworks/base/test-runner/src/android/test/
ActivityTestCase.java 21 import java.lang.reflect.Field;
67 final Field[] fields = getClass().getDeclaredFields();
68 for (Field field : fields) {
69 final Class<?> fieldClass = field.getDeclaringClass();
70 if (testCaseClass.isAssignableFrom(fieldClass) && !field.getType().isPrimitive()
71 && (field.getModifiers() & Modifier.FINAL) == 0) {
73 field.setAccessible(true);
74 field.set(this, null);
76 android.util.Log.d("TestCase", "Error: Could not nullify field!");
    [all...]
  /frameworks/data-binding/compiler/src/test/java/android/databinding/tool/reflection/java/
JavaField.java 20 import java.lang.reflect.Field;
24 public final Field mField;
26 public JavaField(Field field) {
27 mField = field;
  /libcore/luni/src/test/java/libcore/java/text/
AttributedCharacterIteratorAttributeTest.java 35 assertSameReserialized(DateFormat.Field.ERA);
36 assertSameReserialized(DateFormat.Field.TIME_ZONE);
37 assertSameReserialized(NumberFormat.Field.INTEGER);
  /packages/apps/UnifiedEmail/src/org/apache/james/mime4j/message/
Entity.java 25 import org.apache.james.mime4j.field.ContentTransferEncodingField;
26 import org.apache.james.mime4j.field.ContentTypeField;
27 import org.apache.james.mime4j.field.Field;
99 * is derived by looking at the parent's Content-Type field if no
100 * Content-Type field is set for this <code>Entity</code>.
106 (ContentTypeField) getHeader().getField(Field.CONTENT_TYPE);
109 getField(Field.CONTENT_TYPE)
122 (ContentTypeField) getHeader().getField(Field.CONTENT_TYPE));
132 getHeader().getField(Field.CONTENT_TRANSFER_ENCODING)
    [all...]
  /external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/experimental/javascript/
messages.js 25 goog.provide('ProtoRpc.Field');
65 * Field definition error.
78 * Invalid variant provided to field.
91 * Invalid number provided to field.
104 * Duplicate number assigned to field.
267 * @type {Object.<Number, ProtoRpc.Field>}
284 var field = this.fieldMap[number];
285 if (field.isRepeated()) {
286 var adder = ProtoRpc.Util.toCamelCase(field.getName(), 'add');
289 var setter = ProtoRpc.Util.toCamelCase(field.getName(), 'set')
    [all...]
  /art/test/528-long-hint/src/
Main.java 18 import java.lang.reflect.Field;
41 Field f = Unsafe.class.getDeclaredField("theUnsafe");
  /external/mockito/src/org/mockito/internal/configuration/
CaptorAnnotationProcessor.java 12 import java.lang.reflect.Field;
15 * Instantiate {@link ArgumentCaptor} a field annotated by &#64;Captor.
18 public Object process(Captor annotation, Field field) {
19 Class<?> type = field.getType();
21 throw new MockitoException("@Captor field must be of the type ArgumentCaptor.\n" + "Field: '"
22 + field.getName() + "' has wrong type\n"
25 Class cls = new GenericMaster().getGenericType(field);
  /external/mockito/src/org/mockito/internal/util/reflection/
GenericMaster.java 7 import java.lang.reflect.Field;
15 * Finds the generic type (parametrized type) of the field. If the field is not generic it returns Object.class.
17 * @param field
19 public Class getGenericType(Field field) {
20 Type generic = field.getGenericType();
BeanPropertySetter.java 7 import java.lang.reflect.Field;
21 private final Field field; field in class:BeanPropertySetter
26 * @param propertyField The field that should be accessed with the setter
29 public BeanPropertySetter(final Object target, final Field propertyField, boolean reportNoSetterFound) {
30 this.field = propertyField;
40 public BeanPropertySetter(final Object target, final Field propertyField) {
56 writeMethod = target.getClass().getMethod(setterName(field.getName()), field.getType());
64 throw new RuntimeException("Access not authorized on field '" + field + "' of object '" + target + "' with value: '" + value + "'", e);
    [all...]
InstanceField.java 10 import java.lang.reflect.Field;
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)
    [all...]
  /frameworks/base/media/mca/filterfw/java/android/filterfw/core/
FinalPort.java 20 import java.lang.reflect.Field;
27 public FinalPort(Filter filter, String name, Field field, boolean hasDefault) {
28 super(filter, name, field, hasDefault);
  /packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/
UnstructuredField.java 20 package org.apache.james.mime4j.field;
26 * Simple unstructured field such as <code>Subject</code>.
31 public class UnstructuredField extends Field {
44 public Field parse(final String name, final String body, final String raw) {
  /packages/services/Telephony/src/org/apache/james/mime4j/field/
UnstructuredField.java 20 package org.apache.james.mime4j.field;
26 * Simple unstructured field such as <code>Subject</code>.
31 public class UnstructuredField extends Field {
44 public Field parse(final String name, final String body, final String raw) {
  /packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
MimeHeader.java 51 protected final ArrayList<Field> mFields = new ArrayList<Field>();
66 mFields.add(new Field(name, value));
79 for (Field field : mFields) {
80 if (field.name.equalsIgnoreCase(name)) {
81 values.add(field.value);
91 ArrayList<Field> removeFields = new ArrayList<Field>();
92 for (Field field : mFields)
    [all...]
  /packages/services/Telephony/src/com/android/phone/common/mail/internet/
MimeHeader.java 50 protected final ArrayList<Field> mFields = new ArrayList<Field>();
65 mFields.add(new Field(name, value));
78 for (Field field : mFields) {
79 if (field.name.equalsIgnoreCase(name)) {
80 values.add(field.value);
90 ArrayList<Field> removeFields = new ArrayList<Field>();
91 for (Field field : mFields)
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
FieldPositionTest.java 30 assertEquals("Test1: Constructor failed to set field identifier!",
32 assertNull("Constructor failed to set field attribute!", fpos
37 * @tests java.text.FieldPosition#FieldPosition(java.text.Format$Field)
39 public void test_ConstructorLjava_text_Format$Field() {
40 // Test for constructor java.text.FieldPosition(Format.Field)
41 FieldPosition fpos = new FieldPosition(DateFormat.Field.MONTH);
42 assertSame("Constructor failed to set field attribute!",
43 DateFormat.Field.MONTH, fpos.getFieldAttribute());
44 assertEquals("Test1: Constructor failed to set field identifier!", -1,
49 * @tests java.text.FieldPosition#FieldPosition(java.text.Format$Field, int
    [all...]
  /external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
DecimalFormat.java     [all...]
  /prebuilts/tools/darwin-x86_64/protoc/include/google/protobuf/
repeated_field_reflection.h 51 // of the value depends on the field's cpp_type. Following is a mapping from
54 // field->cpp_type() T Actual type of void*
74 typedef void Field;
79 virtual bool IsEmpty(const Field* data) const = 0;
80 virtual int Size(const Field* data) const = 0;
81 // Depends on the underlying representation of the repeated field, this
87 const Field* data, int index, Value* scratch_space) const = 0;
89 virtual void Clear(Field* data) const = 0;
90 virtual void Set(Field* data, int index, const Value* value) const = 0;
91 virtual void Add(Field* data, const Value* value) const = 0
    [all...]
  /art/tools/dexfuzz/src/dexfuzz/rawdex/formats/
ContainsPoolIndex.java 30 Field,
  /external/apache-commons-math/src/main/java/org/apache/commons/math/
FieldElement.java 21 * Interface representing <a href="http://mathworld.wolfram.com/Field.html">field</a> elements.
22 * @param <T> the type of the field elements
23 * @see Field
55 /** Get the {@link Field} to which the instance belongs.
56 * @return {@link Field} to which the instance belongs
58 Field<T> getField();
  /external/guice/core/src/com/google/inject/internal/util/
Classes.java 22 import java.lang.reflect.Field;
51 } else if (memberType == Field.class) {
61 * Returns {@code Field.class}, {@code Method.class} or {@code Constructor.class}.
66 if (member instanceof Field) {
67 return Field.class;
  /external/mockito/src/org/mockito/internal/creation/cglib/
CGLIBHacker.java 8 import java.lang.reflect.Field;
20 Field createInfoField = reflectOnCreateInfo(methodProxy);
23 Field namingPolicyField = createInfo.getClass().getDeclaredField("namingPolicy");
35 private Field reflectOnCreateInfo(MethodProxy methodProxy) throws SecurityException, NoSuchFieldException {
  /external/proguard/src/proguard/classfile/attribute/
ConstantValueAttribute.java 58 public void accept(Clazz clazz, Field field, AttributeVisitor attributeVisitor)
60 attributeVisitor.visitConstantValueAttribute(clazz, field, this);

Completed in 650 milliseconds

1 2 34 5 6 7 8 91011>>