HomeSort by relevance Sort by last modified time
    Searched refs:Field (Results 26 - 50 of 614) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/mockito/src/org/mockito/internal/configuration/injection/filter/
MockCandidateFilter.java 7 import java.lang.reflect.Field;
14 Field fieldToBeInjected,
  /external/mockito/src/org/mockito/internal/configuration/injection/scanner/
InjectMocksScanner.java 13 import java.lang.reflect.Field;
18 * Scan field for injection.
39 public void addTo(Set<Field> mockDependentFields) {
48 private Set<Field> scan() {
49 Set<Field> mockDependentFields = new HashSet<Field>();
50 Field[] fields = clazz.getDeclaredFields();
51 for (Field field : fields) {
52 if (null != field.getAnnotation(InjectMocks.class))
    [all...]
  /external/mockito/src/org/mockito/internal/util/reflection/
FieldCopier.java 7 import java.lang.reflect.Field;
11 public <T> void copyValue(T from, T to, Field field) throws IllegalAccessException {
12 Object value = field.get(from);
13 field.set(to, value);
FieldReader.java 9 import java.lang.reflect.Field;
14 final Field field; field in class:FieldReader
17 public FieldReader(Object target, Field field) {
19 this.field = field;
20 changer.enableAccess(field);
29 return field.get(target);
31 throw new MockitoException("Cannot read state from field: " + field + ", on instance: " + target);
    [all...]
FieldSetter.java 7 import java.lang.reflect.Field;
12 private final Field field; field in class:FieldSetter
14 public FieldSetter(Object target, Field field) {
16 this.field = field;
21 changer.enableAccess(field);
23 field.set(target, value);
25 throw new RuntimeException("Access not authorized on field '" + field + "' of object '" + target + "' with value: '" + value + "'", e);
    [all...]
Whitebox.java 7 import java.lang.reflect.Field;
11 public static Object getInternalState(Object target, String field) {
14 Field f = getFieldFromHierarchy(c, field);
18 throw new RuntimeException("Unable to set internal state on a private field. Please report to mockito mailing list.", e);
22 public static void setInternalState(Object target, String field, Object value) {
25 Field f = getFieldFromHierarchy(c, field);
29 throw new RuntimeException("Unable to set internal state on a private field. Please report to mockito mailing list.", e);
33 private static Field getFieldFromHierarchy(Class<?> clazz, String field) {
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
SettingsSecureCompatUtils.java 19 import java.lang.reflect.Field;
24 private static final Field FIELD_ACCESSIBILITY_SPEAK_PASSWORD = CompatUtils.getField(
SuggestionsInfoCompatUtils.java 21 import java.lang.reflect.Field;
26 private static final Field FIELD_RESULT_ATTR_HAS_RECOMMENDED_SUGGESTIONS =
  /external/pdfium/fpdfsdk/include/javascript/
Field.h 95 class Field : public CJS_EmbedObj
98 Field(CJS_Object* pJSObject);
99 virtual ~Field(void);
273 JS_STATIC_PROP(alignment, Field);
274 JS_STATIC_PROP(borderStyle, Field);
275 JS_STATIC_PROP(buttonAlignX, Field);
276 JS_STATIC_PROP(buttonAlignY, Field);
277 JS_STATIC_PROP(buttonFitBounds, Field);
278 JS_STATIC_PROP(buttonPosition, Field);
279 JS_STATIC_PROP(buttonScaleHow, Field);
    [all...]
  /external/mockito/src/org/mockito/internal/configuration/injection/
MockInjectionStrategy.java 8 import java.lang.reflect.Field;
21 protected boolean processInjection(Field field, Object fieldOwner, Set<Object> mockCandidates) {
50 * Actually inject mockCandidates on field.
53 * Actual algorithm is defined in the implementations of {@link #processInjection(Field, Object, Set)}.
62 * @param onField Field needing injection.
63 * @param fieldOwnedBy The owning instance of the field.
67 public boolean process(Field onField, Object fieldOwnedBy, Set<Object> mockCandidates) {
78 * Don't call this method directly, instead call {@link #process(Field, Object, Set)}
81 * @param field Field needing injectio
    [all...]
PropertyAndSetterInjection.java 18 import java.lang.reflect.Field;
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.
62 private Comparator<Field> superTypesLast = new FieldTypeAndNameComparator();
64 private ListUtil.Filter<Field> notFinalOrStatic = new ListUtil.Filter<Field>()
113 Field field = it.next(); local
    [all...]
MockInjection.java 8 import java.lang.reflect.Field;
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) {
36 return new OngoingMockInjection(field, ofInstance);
44 * @param ofInstance Instance owning the <code>field</code>
47 public static OngoingMockInjection onFields(Set<Field> fields, Object ofInstance)
    [all...]
  /dalvik/dx/src/com/android/dx/cf/iface/
Field.java 24 public interface Field
27 * Get the constant value for this field, if any. This only returns
28 * non-{@code null} for a {@code static final} field which
32 * field isn't a constant
  /external/junit/src/org/junit/runners/model/
FrameworkField.java 4 import java.lang.reflect.Field;
10 * Represents a field on a test class (currently used only for Rules in
14 private final Field fField;
16 FrameworkField(Field field) {
17 fField= field;
45 * @return the underlying java Field
47 public Field getField() {
52 * @return the underlying Java Field type
53 * @see java.lang.reflect.Field#getType(
    [all...]
  /art/test/035-enum/src/
Main.java 17 import java.lang.reflect.Field;
26 Field field; local
28 field = Shubbery.class.getDeclaredField("CRAWLING");
33 System.out.println("found field " + field.getName());
34 System.out.println(" synthetic? " + field.isSynthetic());
35 System.out.println(" enum? " + field.isEnumConstant());
  /external/clang/test/CodeGen/
pointer-signext.c 10 #define CR(Record, TYPE, Field) \
11 ((TYPE *) ((unsigned char *) (Record) - (unsigned char *) &(((TYPE *) 0)->Field)))
  /external/mockito/src/org/mockito/internal/configuration/
DefaultInjectionEngine.java 9 import java.lang.reflect.Field;
19 public void injectMocksOnFields(Set<Field> needingInjection, Set<Object> mocks, Object testClassInstance) {
  /frameworks/base/tools/layoutlib/bridge/src/android/os/
Looper_Accessor.java 18 import java.lang.reflect.Field;
29 Field sMainLooper = Looper.class.getDeclaredField("sMainLooper");
  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/reflection/
ReflectionClassDef.java 42 import org.jf.dexlib2.iface.Field;
108 @Nonnull @Override public Iterable<? extends Field> getStaticFields() {
109 return new Iterable<Field>() {
110 @Nonnull @Override public Iterator<Field> iterator() {
111 Iterator<java.lang.reflect.Field> staticFields = Iterators.filter(
113 new Predicate<java.lang.reflect.Field>() {
114 @Override public boolean apply(@Nullable java.lang.reflect.Field input) {
120 new Function<java.lang.reflect.Field, Field>() {
121 @Nullable @Override public Field apply(@Nullable java.lang.reflect.Field input)
    [all...]
  /libcore/luni/src/test/java/libcore/java/text/
OldNumberFormatFieldTest.java 32 MyNumberFormat field = new MyNumberFormat(name); local
33 assertEquals("field has wrong name", name, field.getName());
35 field = new MyNumberFormat(null);
36 assertEquals("field has wrong name", null, field.getName());
48 MyNumberFormat field; local
50 NumberFormat.Field nfield = NumberFormat.Field.CURRENCY;
52 field = new MyNumberFormat(null)
    [all...]
  /libcore/luni/src/main/java/java/text/
NumberFormat.java 115 * pass the {@code FieldPosition} in your format call, with {@code field} =
147 * Field constant identifying the integer part of a number.
152 * Field constant identifying the fractional part of a number.
220 * If the {@code field} member of {@code position} contains a value
221 * specifying a format field, then its {@code beginIndex} and
223 * occurrence of this field in the formatted text.
230 * @param field
231 * on input: an optional alignment field; on output: the offsets
232 * of the alignment field in the formatted text.
235 public abstract StringBuffer format(double value, StringBuffer buffer, FieldPosition field);
    [all...]
  /external/llvm/lib/Target/SystemZ/Disassembler/
SystemZDisassembler.cpp 189 static DecodeStatus decodeBDAddr12Operand(MCInst &Inst, uint64_t Field,
191 uint64_t Base = Field >> 12;
192 uint64_t Disp = Field & 0xfff;
199 static DecodeStatus decodeBDAddr20Operand(MCInst &Inst, uint64_t Field,
201 uint64_t Base = Field >> 20;
202 uint64_t Disp = ((Field << 12) & 0xff000) | ((Field >> 8) & 0xfff);
209 static DecodeStatus decodeBDXAddr12Operand(MCInst &Inst, uint64_t Field,
211 uint64_t Index = Field >> 16;
212 uint64_t Base = (Field >> 12) & 0xf
    [all...]
  /external/droiddriver/src/com/google/android/droiddriver/helpers/
D2ActivityInstrumentationTestCase2.java 23 import java.lang.reflect.Field;
50 final Field[] fields = getClass().getDeclaredFields();
51 for (Field field : fields) {
52 final Class<?> fieldClass = field.getDeclaringClass();
53 if (testCaseClass.isAssignableFrom(fieldClass) && !field.getType().isPrimitive()
54 && !Modifier.isFinal(field.getModifiers()) && !Modifier.isStatic(field.getModifiers())) {
56 field.setAccessible(true);
57 field.set(this, null)
    [all...]
  /external/nist-sip/java/gov/nist/javax/sip/header/
SIPHeaderNamesCache.java 4 import java.lang.reflect.Field;
15 Field[] fields = SIPHeaderNames.class.getFields();
17 Field field = fields[i]; typedefs
18 if (field.getType().equals(String.class) && Modifier.isStatic(field.getModifiers())) {
20 String value = (String) field.get(null);
  /external/robolectric/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);

Completed in 1761 milliseconds

12 3 4 5 6 7 8 91011>>