/libcore/luni/src/test/java/libcore/java/net/ |
OldSocketImplFactoryTest.java | 6 import java.lang.reflect.Field; 19 Field factoryField = null; 65 Field [] fields = Socket.class.getDeclaredFields(); 67 for (Field field : fields) { 68 if (SocketImplFactory.class.equals(field.getType())) { 70 factoryField = field;
|
/external/jetty/src/java/org/eclipse/jetty/http/ |
HttpFields.java | 301 private final ArrayList<Field> _fields = new ArrayList<Field>(20); 302 private final HashMap<Buffer,Field> _names = new HashMap<Buffer,Field>(32); 352 for (Field f : _fields) 390 * Get a Field by index. 391 * @return A Field value or null if the Field value has not been set 394 public Field getField(int i) 400 private Field getField(String name [all...] |
/external/vboot_reference/utility/ |
tlcl_generator.c | 24 /* See struct Command below. This structure represent a field in a TPM 25 * command. [name] is the field name. [visible] is 1 if the field is 27 * and remain constant. [size] is the field size in bytes. [value] is the 30 typedef struct Field { 36 struct Field* next; 37 } Field; 49 Field* fields; 53 /* Adds a field to a command, and makes its offset visible. The fields must be 57 Field* fld = (Field*) calloc(1, sizeof(Field)) [all...] |
/external/vogar/src/vogar/ |
OptionParser.java | 22 import java.lang.reflect.Field; 80 * by the option parser. The collection field should be initialized 104 * String mode = "standard; // Supply a default just by setting the field. 117 * // The collection field itself must be non-null. 194 throw new RuntimeException("cannot handle unknown field type " + type); 198 private final HashMap<String, Field> optionMap; 199 private final Map<Field, Object> defaultOptionMap; 207 this.defaultOptionMap = new HashMap<Field, Object>(); 279 private Field fieldForArg(String name) { 280 final Field field = optionMap.get(name) local 298 final Field field = fieldForArg(name); local 318 final Field field = fieldForArg(name); local [all...] |
/external/nist-sip/java/gov/nist/javax/sip/header/ |
SIPObject.java | 34 import java.lang.reflect.Field; 89 Field[] fields = myclass.getDeclaredFields(); 92 Field[] hisfields = hisclass.getDeclaredFields(); 94 Field f = fields[i]; 95 Field g = hisfields[i]; 143 System.out.println("accessed field " + fieldName); 167 * Null in any field matches anything. Some book-keeping fields 182 Field[] fields = myclass.getDeclaredFields(); 183 Field[] hisfields = hisclass.getDeclaredFields(); 185 Field f = fields[i] [all...] |
/external/llvm/lib/Transforms/Utils/ |
SymbolRewriter.cpp | 313 for (auto &Field : *Descriptor) { 320 Key = dyn_cast<yaml::ScalarNode>(Field.getKey()); 322 YS.printError(Field.getKey(), "descriptor key must be a scalar"); 326 Value = dyn_cast<yaml::ScalarNode>(Field.getValue()); 328 YS.printError(Field.getValue(), "descriptor value must be a scalar"); 338 YS.printError(Field.getKey(), "invalid regex: " + Error); 351 YS.printError(Field.getKey(), "unknown key for function"); 380 for (auto &Field : *Descriptor) { 387 Key = dyn_cast<yaml::ScalarNode>(Field.getKey()); 389 YS.printError(Field.getKey(), "descriptor Key must be a scalar") [all...] |
/prebuilts/tools/darwin-x86_64/protoc/include/google/protobuf/ |
reflection.h | 53 const Message& message, const FieldDescriptor* field) const { 54 return RepeatedFieldRef<T>(message, field); 59 Message* message, const FieldDescriptor* field) const { 60 return MutableRepeatedFieldRef<T>(message, field); 94 const FieldDescriptor* field) { 97 const_cast<Message*>(&message), field, 99 accessor_ = reflection->RepeatedFieldAccessor(field); 160 const FieldDescriptor* field) { 163 message, field, internal::RefTypeTraits<T>::cpp_type, NULL); 164 accessor_ = reflection->RepeatedFieldAccessor(field); [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/ |
FormatTests.java | 1116 // Once formatToCharacterIterator is called, NumberFormat.Field 1117 // instances are created and stored in the private List field. 1118 // NumberForamt.Field is not a serializable, so serializing such [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/ |
FormatTests.java | 1115 // Once formatToCharacterIterator is called, NumberFormat.Field 1116 // instances are created and stored in the private List field. 1117 // NumberForamt.Field is not a serializable, so serializing such [all...] |
/art/test/067-preemptive-unpark/src/ |
Main.java | 3 import java.lang.reflect.Field; 49 Field field = null; local 51 field = Unsafe.class.getDeclaredField("THE_ONE"); 54 field = Unsafe.class.getDeclaredField("theUnsafe"); 59 field.setAccessible(true); 60 UNSAFE = (Unsafe) field.get(null);
|
/art/tools/ahat/test/ |
TestDump.java | 20 import com.android.tools.perflib.heap.Field; 62 * Return the value of a field in the DumpedStuff instance in the 68 for (Map.Entry<Field, Object> fields : main.getStaticFieldValues().entrySet()) {
|
/cts/tests/tests/os/src/android/os/cts/ |
CustomClassLoaderTest.java | 69 // Load the class and get the field 'MESSAGE' and 71 Field field = cl.loadClass("android.os.cts.TestClass").getField("MESSAGE"); local 72 assertTrue(((String)field.get(null)).equals("expected_field")); 87 // Load the class and get the field 'MESSAGE' and 89 Field field = cl.loadClass("android.os.cts.TestClass").getField("MESSAGE"); local 90 assertTrue(((String)field.get(null)).equals("expected_field"));
|
/dalvik/dexgen/src/com/android/dexgen/rop/ |
StdField.java | 25 * Standard implementation of {@link Field}, which directly stores 28 public final class StdField extends StdMember implements Field { 43 * Constructs an instance having Java field as its pattern. 45 * @param field {@code non-null;} pattern for dex field 47 public StdField(java.lang.reflect.Field field) { 48 this(CstType.intern(field.getDeclaringClass()), 49 field.getModifiers(), 50 new CstNat(new CstUtf8(field.getName()) [all...] |
/external/clang/test/SemaCXX/ |
offsetof.cpp | 35 int j : 12; // expected-note{{bit-field is declared here}} 38 int test3 = __builtin_offsetof(struct has_bitfields, j); // expected-error{{cannot compute offset of bit-field 'j'}} 79 int Field; 82 void Fun() { (void)__builtin_offsetof(Derived, Field); } // expected-warning {{offset of on non-POD type}} \ 83 expected-error {{invalid application of 'offsetof' to a field of a virtual base}}
|
/external/dagger2/compiler/src/it/functional-tests/src/test/java/test/staticprovides/ |
StaticProvidesTest.java | 19 import java.lang.reflect.Field; 56 for (Field field : DaggerStaticTestComponent.Builder.class.getDeclaredFields()) { 57 assertWithMessage(field.getName()) 58 .that(field.getType()).isNotEqualTo(AllStaticModule.class);
|
/external/guice/extensions/testlib/src/com/google/inject/testing/fieldbinder/ |
BoundFieldModule.java | 32 import java.lang.reflect.Field; 46 * 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 129 final Field field; field in class:BoundFieldModule.BoundFieldInfo [all...] |
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/ |
MessageFormat.java | [all...] |
/external/mockito/src/org/mockito/internal/configuration/injection/ |
SpyOnInjectedFieldsHandler.java | 15 import java.lang.reflect.Field; 21 * Handler for field annotated with @InjectMocks and @Spy. 24 * The handler assumes that field initialization AND injection already happened. 25 * So if the field is still null, then nothing will happen there. 31 protected boolean processInjection(Field field, Object fieldOwner, Set<Object> mockCandidates) { 32 FieldReader fieldReader = new FieldReader(fieldOwner, field); 35 if(!fieldReader.isNull() && field.isAnnotationPresent(Spy.class)) { 43 new FieldSetter(fieldOwner, field).set( 47 .name(field.getName()) [all...] |
/external/proguard/src/proguard/classfile/attribute/ |
Attribute.java | 41 * An extra field in which visitors can store information. 83 * Accepts the given visitor in the context of the given field. 85 public void accept(Clazz clazz, Field field, AttributeVisitor attributeVisitor) 87 // Delegate to the default invocation if the field is null anyway. 88 if (field == null) 106 accept(clazz, (Field)null, attributeVisitor);
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/builder/ |
BuilderField.java | 35 import org.jf.dexlib2.iface.Field; 41 public class BuilderField extends BaseFieldReference implements Field {
|
/external/smali/smalidea/src/main/java/org/jf/smalidea/dexlib/ |
SmalideaClassDef.java | 47 import org.jf.dexlib2.iface.Field; 133 @Nonnull @Override public Iterable<? extends Field> getStaticFields() { 144 new Function<PsiField, Field>() { 145 @Nullable @Override public Field apply(@Nullable PsiField psiField) { 151 @Nonnull @Override public Iterable<? extends Field> getInstanceFields() { 162 new Function<PsiField, Field>() { 163 @Nullable @Override public Field apply(@Nullable PsiField psiField) { 169 @Nonnull @Override public Iterable<? extends Field> getFields() {
|
/external/testng/src/main/java/org/testng/mustache/ |
Model.java | 3 import java.lang.reflect.Field; 51 Field f = cls.getField(variable);
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
Choreographer_Delegate.java | 22 import java.lang.reflect.Field; 73 Field threadInstanceField = Choreographer.class.getDeclaredField("sThreadInstance");
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
PhoneStateListenerTest.java | 25 import java.lang.reflect.Field; 66 Field field = PhoneStateListener.class.getDeclaredField("callback"); local 67 field.setAccessible(true); 74 ((IPhoneStateListener) field.get(mPhoneStateListenerUT)).onServiceStateChanged(ss);
|
/frameworks/support/design/src/android/support/design/widget/ |
DrawableUtils.java | 24 import java.lang.reflect.Field; 37 private static Field sDrawableContainerStateField; 48 // Else we'll just have to set the field directly
|