/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/reflection/ |
ReflectionField.java | 38 import org.jf.dexlib2.iface.Field; 45 public class ReflectionField extends BaseFieldReference implements Field { 46 private final java.lang.reflect.Field field; field in class:ReflectionField 48 public ReflectionField(java.lang.reflect.Field field) { 49 this.field = field; 53 return field.getModifiers(); 65 return ReflectionUtils.javaToDexName(field.getDeclaringClass().getName()) [all...] |
/libcore/luni/src/test/java/libcore/java/text/ |
OldFormatFieldTest.java | 24 private class MockFormatField extends Format.Field {
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
KeySetUtils.java | 22 import java.lang.reflect.Field; 29 Field pkField = ksms.getClass().getDeclaredField("mPublicKeys"); 43 Field pkField = ksms.getClass().getDeclaredField("mPublicKeys"); 57 Field ksField = ksms.getClass().getDeclaredField("mKeySets"); 71 Field ksField = ksms.getClass().getDeclaredField("mKeySetMapping"); 78 Field ksField = ksms.getClass().getDeclaredField("lastIssuedKeyId"); 85 Field ksField = ksms.getClass().getDeclaredField("lastIssuedKeySetId");
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
DateFormat.java | 103 * <li>only keep the field pattern letter and ignore all other parts in a pattern, such as space, punctuation, and 106 * <li>ignore certain differences in the field's pattern letter length: 109 * EEEE, and the field's pattern letter length is honored. 110 * <li>For the digit calendar fields, such as M or MM, d or dd, yy or yyyy, the field pattern length is ignored and the 111 * best match, which is defined in date time patterns, will be returned without honor the field pattern letter length in 126 * <li>align any particular field, or find out where it is for selection on the screen. 145 * The calendar that <code>DateFormat</code> uses to produce the time field 162 * FieldPosition selector for 'G' field alignment, 163 * corresponding to the {@link Calendar#ERA} field. 168 * FieldPosition selector for 'y' field alignment [all...] |
ScientificNumberFormatter.java | 170 if (attributeSet.containsKey(NumberFormat.Field.EXPONENT_SYMBOL)) { 174 iterator.getRunStart(NumberFormat.Field.EXPONENT_SYMBOL), 176 copyFromOffset = iterator.getRunLimit(NumberFormat.Field.EXPONENT_SYMBOL); 180 } else if (attributeSet.containsKey(NumberFormat.Field.EXPONENT)) { 181 int limit = iterator.getRunLimit(NumberFormat.Field.EXPONENT); 219 if (attributeSet.containsKey(NumberFormat.Field.EXPONENT_SYMBOL)) { 223 iterator.getRunStart(NumberFormat.Field.EXPONENT_SYMBOL), 225 copyFromOffset = iterator.getRunLimit(NumberFormat.Field.EXPONENT_SYMBOL); 228 } else if (attributeSet.containsKey(NumberFormat.Field.EXPONENT_SIGN)) { 229 int start = iterator.getRunStart(NumberFormat.Field.EXPONENT_SIGN) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
DateFormat.java | 102 * <li>only keep the field pattern letter and ignore all other parts in a pattern, such as space, punctuation, and 105 * <li>ignore certain differences in the field's pattern letter length: 108 * EEEE, and the field's pattern letter length is honored. 109 * <li>For the digit calendar fields, such as M or MM, d or dd, yy or yyyy, the field pattern length is ignored and the 110 * best match, which is defined in date time patterns, will be returned without honor the field pattern letter length in 125 * <li>align any particular field, or find out where it is for selection on the screen. 145 * The calendar that <code>DateFormat</code> uses to produce the time field 164 * FieldPosition selector for 'G' field alignment, 165 * corresponding to the {@link Calendar#ERA} field. 171 * FieldPosition selector for 'y' field alignment [all...] |
ScientificNumberFormatter.java | 174 if (attributeSet.containsKey(NumberFormat.Field.EXPONENT_SYMBOL)) { 178 iterator.getRunStart(NumberFormat.Field.EXPONENT_SYMBOL), 180 copyFromOffset = iterator.getRunLimit(NumberFormat.Field.EXPONENT_SYMBOL); 184 } else if (attributeSet.containsKey(NumberFormat.Field.EXPONENT)) { 185 int limit = iterator.getRunLimit(NumberFormat.Field.EXPONENT); 223 if (attributeSet.containsKey(NumberFormat.Field.EXPONENT_SYMBOL)) { 227 iterator.getRunStart(NumberFormat.Field.EXPONENT_SYMBOL), 229 copyFromOffset = iterator.getRunLimit(NumberFormat.Field.EXPONENT_SYMBOL); 232 } else if (attributeSet.containsKey(NumberFormat.Field.EXPONENT_SIGN)) { 233 int start = iterator.getRunStart(NumberFormat.Field.EXPONENT_SIGN) [all...] |
/external/guava/guava-tests/test/com/google/common/net/ |
HttpHeadersTest.java | 28 import java.lang.reflect.Field; 50 for (Field field : relevantFields(clazz)) { 51 assertEquals(upperToHttpHeaderName(field.getName(), specialCases, uppercaseAcronyms), 52 field.get(null)); 57 static ImmutableSet<Field> relevantFields(Class<?> cls) { 58 ImmutableSet.Builder<Field> builder = ImmutableSet.builder(); 59 for (Field field : cls.getDeclaredFields()) { 65 if (!field.isSynthetic() && field.getType() == String.class) [all...] |
/external/mockito/src/org/mockito/ |
MockitoAnnotations.java | 20 import java.lang.reflect.Field; 22 import static java.lang.annotation.ElementType.FIELD; 31 * <li>Makes the verification error easier to read because <b>field name</b> is used to identify the mock.</li> 78 @Target( { FIELD }) 112 Field[] fields = clazz.getDeclaredFields(); 114 for (Field field : fields) { 115 processAnnotationDeprecatedWay(annotationEngine, testClass, field); 120 static void processAnnotationDeprecatedWay(AnnotationEngine annotationEngine, Object testClass, Field field) { [all...] |
/external/mockito/src/org/mockito/internal/configuration/ |
SpyAnnotationEngine.java | 16 import java.lang.reflect.Field;
24 * Will try transform the field in a spy as with <code>Mockito.spy()</code>.
28 * If the field is not initialized, will try to initialize it, with a no-arg constructor.
32 * If the field is also annotated with the <strong>compatible</strong> @InjectMocks then the field will be ignored,
36 * <p>This engine will fail, if the field is also annotated with incompatible Mockito annotations.
41 public Object createMockFor(Annotation annotation, Field field) {
47 Field[] fields = context.getDeclaredFields();
48 for (Field field : fields) { [all...] |
DefaultAnnotationEngine.java | 16 import java.lang.reflect.Field;
39 * @see org.mockito.AnnotationEngine#createMockFor(java.lang.annotation.Annotation, java.lang.reflect.Field)
42 public Object createMockFor(Annotation annotation, Field field) {
43 return forAnnotation(annotation).process(annotation, field);
51 public Object process(A annotation, Field field) {
62 Field[] fields = clazz.getDeclaredFields();
63 for (Field field : fields) { [all...] |
/art/runtime/native/ |
java_lang_reflect_Field.cc | 25 #include "mirror/field.h" 33 ALWAYS_INLINE inline static bool VerifyFieldAccess(Thread* self, mirror::Field* field, 36 if (kIsSet && field->IsFinal()) { 38 StringPrintf("Cannot set %s field %s of class %s", 39 PrettyJavaAccessFlags(field->GetAccessFlags()).c_str(), 40 PrettyField(field->GetArtField()).c_str(), 41 field->GetDeclaringClass() == nullptr ? "null" : 42 PrettyClass(field->GetDeclaringClass()).c_str()).c_str()); 46 if (!VerifyAccess(self, obj, field->GetDeclaringClass(), field->GetAccessFlags() 421 ArtField* field = soa.Decode<mirror::Field*>(javaField)->GetArtField(); local 431 ArtField* field = soa.Decode<mirror::Field*>(javaField)->GetArtField(); local 445 ArtField* field = soa.Decode<mirror::Field*>(javaField)->GetArtField(); local 457 ArtField* field = soa.Decode<mirror::Field*>(javaField)->GetArtField(); local [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
IntlTestDecimalFormatAPIC.java | 352 v.add(new FieldContainer(0, 3, NumberFormat.Field.INTEGER)); 353 v.add(new FieldContainer(3, 4, NumberFormat.Field.DECIMAL_SEPARATOR)); 354 v.add(new FieldContainer(4, 6, NumberFormat.Field.FRACTION)); 360 // v.add(new FieldContainer(0, 3, NumberFormat.Field.INTEGER)); 361 // v.add(new FieldContainer(4, 6, NumberFormat.Field.CURRENCY)); 367 // v.add(new FieldContainer(0, 1, NumberFormat.Field.SIGN)); 368 // v.add(new FieldContainer(1, 4, NumberFormat.Field.INTEGER)); 369 // v.add(new FieldContainer(5, 7, NumberFormat.Field.CURRENCY)); 375 v.add(new FieldContainer(0, 1, NumberFormat.Field.CURRENCY)); 376 v.add(new FieldContainer(1, 4, NumberFormat.Field.INTEGER)) [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
IntlTestDecimalFormatAPIC.java | 348 v.add(new FieldContainer(0, 3, NumberFormat.Field.INTEGER)); 349 v.add(new FieldContainer(3, 4, NumberFormat.Field.DECIMAL_SEPARATOR)); 350 v.add(new FieldContainer(4, 6, NumberFormat.Field.FRACTION)); 356 // v.add(new FieldContainer(0, 3, NumberFormat.Field.INTEGER)); 357 // v.add(new FieldContainer(4, 6, NumberFormat.Field.CURRENCY)); 363 // v.add(new FieldContainer(0, 1, NumberFormat.Field.SIGN)); 364 // v.add(new FieldContainer(1, 4, NumberFormat.Field.INTEGER)); 365 // v.add(new FieldContainer(5, 7, NumberFormat.Field.CURRENCY)); 371 v.add(new FieldContainer(0, 1, NumberFormat.Field.CURRENCY)); 372 v.add(new FieldContainer(1, 4, NumberFormat.Field.INTEGER)) [all...] |
/external/caliper/caliper/src/main/java/com/google/caliper/memory/ |
ObjectExplorer.java | 25 import java.lang.reflect.Field; 142 final Field[] fields = getAllFields(value); 144 final Field field = fields[j]; local 147 childValue = field.get(value); 153 visitor.visit(chain.appendField(field, childValue)); 156 boolean isPrimitive = field.getType().isPrimitive(); 157 Chain extendedChain = chain.appendField(field, childValue); 199 * A cache of {@code Field}s that are accessible for a given {@code Class<?>}. 201 private static final ConcurrentHashMap<Class<?>, Field[]> clazzFields [all...] |
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gwtref/client/ |
Type.java | 30 private static final Field[] EMPTY_FIELDS = new Field[0];
52 Field[] fields = EMPTY_FIELDS;
60 private Field[] allFields;
103 /** @param name the name of the field
104 * @return the public field of this type or one of its super interfaces with the given name. See
107 public Field getField (String name) throws NoSuchFieldException {
108 for (Field f : getFields()) {
115 public Field[] getFields () {
117 ArrayList<Field> allFieldsList = new ArrayList<Field>(); [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/utils/reflect/ |
ClassReflection.java | 154 /** Returns an array of {@link Field} containing the public fields of the class represented by the supplied Class. */
155 static public Field[] getFields (Class c) {
156 java.lang.reflect.Field[] fields = c.getFields();
157 Field[] result = new Field[fields.length];
159 result[i] = new Field(fields[i]);
164 /** Returns a {@link Field} that represents the specified public member field for the supplied class. */
165 static public Field getField (Class c, String name) throws ReflectionException {
167 return new Field(c.getField(name)); [all...] |
/external/mockito/src/org/mockito/internal/util/reflection/ |
FieldInitializer.java | 10 import java.lang.reflect.Field;
19 * Initialize a field with type instance if a default constructor can be found.
22 * If the given field is already initialized, then <strong>the actual instance is returned</strong>.
30 private Field field;
field in class:FieldInitializer 35 * Prepare initializer with the given field on the given instance.
38 * This constructor fail fast if the field type cannot be handled.
42 * @param field Field to be initialize.
44 public FieldInitializer(Object fieldOwner, Field field) { 162 private Field field; field in class:FieldInitializer.NoArgConstructorInstantiator 213 private Field field; field in class:FieldInitializer.ParameterizedConstructorInstantiator [all...] |
/external/proguard/src/proguard/optimize/evaluation/ |
StoringInvocationUnit.java | 81 generalizeFieldClassValue((Field)referencedMember, value); 96 generalizeFieldValue((Field)referencedMember, value); 133 private static void generalizeFieldClassValue(Field field, ReferenceValue value) 135 FieldOptimizationInfo info = FieldOptimizationInfo.getFieldOptimizationInfo(field); 143 public static ReferenceValue getFieldClassValue(Field field) 145 FieldOptimizationInfo info = FieldOptimizationInfo.getFieldOptimizationInfo(field); 152 private static void generalizeFieldValue(Field field, Value value [all...] |
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/rewriter/ |
ClassDefRewriter.java | 38 import org.jf.dexlib2.iface.Field; 89 @Override @Nonnull public Iterable<? extends Field> getStaticFields() { 93 @Override @Nonnull public Iterable<? extends Field> getInstanceFields() { 99 public Iterable<? extends Field> getFields() { 100 return new Iterable<Field>() { 103 public Iterator<Field> iterator() {
|
/external/protobuf/java/src/main/java/com/google/protobuf/ |
UnknownFieldSet.java | 47 * parsing a protocol message but whose field numbers or types are unrecognized. 83 new UnknownFieldSet(Collections.<Integer, Field>emptyMap()); 89 private UnknownFieldSet(final Map<Integer, Field> fields) { 92 private Map<Integer, Field> fields; 110 public Map<Integer, Field> asMap() { 114 /** Check if the given field number is present in the set. */ 120 * Get a field by number. Returns an empty field if not present. Never 123 public Field getField(final int number) { 124 final Field result = fields.get(number) [all...] |
/external/protobuf/java/src/test/java/com/google/protobuf/ |
UnknownFieldSetTest.java | 48 * Tests related to unknown field handling. 61 UnknownFieldSet.Field getField(String name) { 62 Descriptors.FieldDescriptor field = descriptor.findFieldByName(name); local 63 assertNotNull(field); 64 return unknownFields.getField(field.getNumber()); 68 // numbers as allFieldsData except that each field is some other wire 73 UnknownFieldSet.Field varintField = 74 UnknownFieldSet.Field.newBuilder().addVarint(1).build(); 75 UnknownFieldSet.Field fixed32Field = 76 UnknownFieldSet.Field.newBuilder().addFixed32(1).build() 104 UnknownFieldSet.Field field = getField("optional_int32"); local 111 UnknownFieldSet.Field field = getField("optional_fixed32"); local 118 UnknownFieldSet.Field field = getField("optional_fixed64"); local 125 UnknownFieldSet.Field field = getField("optional_bytes"); local 136 UnknownFieldSet.Field field = getField("optionalgroup"); local 233 UnknownFieldSet.Field field = local 350 UnknownFieldSet.Field field = parsed.getField(1); local [all...] |
/external/pdfium/fpdfsdk/src/javascript/ |
Field.cpp | 7 #include "Field.h" 109 IMPLEMENT_JS_CLASS(CJS_Field, Field) 113 Field* pField = static_cast<Field*>(GetEmbedObject()); 117 Field::Field(CJS_Object* pJSObject) 126 Field::~Field() {} 129 void Field::ParseFieldName(const std::wstring& strFieldNameParsed, 155 FX_BOOL Field::AttachField(Document* pDocument [all...] |
/external/clang/lib/CodeGen/ |
CGRecordLayoutBuilder.cpp | 38 /// llvm::Type with correct size. We choose a field via a specific heuristic 54 /// fields. The existing asserts suggest that LLVM assumes that *every* field 80 enum InfoKind { VFPtr, VBPtr, Field, Base, VBase, Scissor } Kind; 100 return MemberInfo(Offset, MemberInfo::Field, Data); 104 /// units of the field's formal type and only combines adjacent 133 /// \brief Gets the storage type for a field decl and handles storage 175 void accumulateBitFields(RecordDecl::field_iterator Field, 248 // used by another field or base. The clipping process uses the capstone 292 // storage type isn't necessary, the first (non-0-length-bitfield) field's 295 for (const auto *Field : D->fields()) [all...] |
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/inject/ |
Injector.java | 22 import java.lang.reflect.Field; 66 * For each field marked with the InjectView annotation, a call to 69 * will be assigned to the field. 75 for (Field field : mActivity.getClass().getDeclaredFields()) { 76 for (Annotation annotation : field.getAnnotations()) { 79 Class<?> fieldType = field.getType(); 81 field.setAccessible(true); 86 field + ", can't inject"); 88 field.set(mActivity, injectedValue) [all...] |