/libcore/benchmarks/src/benchmarks/regression/ |
AnnotatedElementBenchmark.java | 22 import java.lang.reflect.Field; 28 private Field field; field in class:AnnotatedElementBenchmark 34 field = Type.class.getField("field"); 49 field.getAnnotations(); 73 field.getAnnotation(Marker.class); 91 field.isAnnotationPresent(Marker.class); 214 @Marker public String field; field in class:AnnotatedElementBenchmark.Type
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/apache/harmony/kernel/dalvik/ |
ThreadsTest.java | 19 import java.lang.reflect.Field; 39 Field field = Unsafe.class.getDeclaredField("THE_ONE"); typedefs 40 field.setAccessible(true); 42 UNSAFE = (Unsafe) field.get(null);
|
/libcore/luni/src/main/java/java/util/concurrent/atomic/ |
AtomicReferenceFieldUpdater.java | 10 import java.lang.reflect.Field; 46 * Because this class cannot ensure that all uses of the field 53 * @param <T> The type of the object holding the updatable field 54 * @param <V> The type of the field 59 * Creates and returns an updater for objects with the given field. 63 * @param tclass the class of the objects holding the field 64 * @param vclass the class of the field 65 * @param fieldName the name of the field to be updated 69 * @throws ClassCastException if the field is of the wrong type 70 * @throws IllegalArgumentException if the field is not volatil 287 final Field field; local [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
SSLSocketFactoryTest.java | 19 import java.lang.reflect.Field; 194 Field field_secprops = Security.class.getDeclaredField("props");
|
/libcore/ojluni/src/main/java/sun/misc/ |
Unsafe.java | 29 import java.lang.reflect.Field; 71 * the memory used to store the indicated instance field. 73 * @param field non-null; the field in question, which must be an 74 * instance field 75 * @return the offset to the field 77 public long objectFieldOffset(Field field) { 78 if (Modifier.isStatic(field.getModifiers())) { 81 return field.getOffset() [all...] |
/libcore/ojluni/src/main/java/sun/security/x509/ |
CertificateExtensions.java | 31 import java.lang.reflect.Field; 365 Field field = extClass.getDeclaredField("NAME"); local 366 name = (String)(field.get(null)) + " ";
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
ApiHelper.java | 27 import java.lang.reflect.Field; 198 Field f = klass.getDeclaredField(fieldName);
|
/packages/apps/Settings/src/com/android/settings/dashboard/ |
SummaryLoader.java | 35 import java.lang.reflect.Field; 132 Field field = cls.getField(SUMMARY_PROVIDER_FACTORY); local 133 SummaryProviderFactory factory = (SummaryProviderFactory) field.get(null);
|
/packages/services/Car/car-systemtest-lib/src/android/car/test/ |
VehicleHalEmulator.java | 33 import java.lang.reflect.Field; 187 for (Field f : VehicleNetworkConsts.class.getDeclaredFields()) {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/manager/ |
CompiledResourcesMonitor.java | 43 import java.lang.reflect.Field; 267 for (Field f : inner.getDeclaredFields()) {
|
/system/tpm/attestation/common/ |
proto_print.py | 42 # Holds information about a protobuf message field. 45 # repeated: Whether the field is a repeated field. 46 # type_: The type of the field. E.g. int32. 47 # name: The name of the field. 48 Field = collections.namedtuple('Field', 'repeated type_ name') 56 fields: A list of Field tuples. 69 """Adds a new field to the message. 73 field_type: The type of the field. E.g. int32 [all...] |
/art/test/064-field-access/src/ |
Main.java | 18 import java.lang.reflect.Field; 23 * Test field access through reflection. 56 * Get the field specified by "field" from "obj". 59 * field.getByte(). 66 public Object getValue(Field field, Object obj, char type, 72 result = field.getBoolean(obj); 75 result = field.getByte(obj); 78 result = field.getShort(obj) [all...] |
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
ErrorManager.java | 46 import java.lang.reflect.Field; 64 * do field name expansion to save me some typing. I have to map 825 Field[] fields = ErrorManager.class.getFields(); 827 Field f = fields[i]; 855 Field[] fields = ErrorManager.class.getFields(); 857 Field f = fields[i]; [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/ |
MatrixUtils.java | 27 import org.apache.commons.math.Field; 72 * <p>The matrix elements are all set to field.getZero().</p> 73 * @param <T> the type of the field elements 74 * @param field field to which the matrix elements belong 81 public static <T extends FieldElement<T>> FieldMatrix<T> createFieldMatrix(final Field<T> field, 85 new Array2DRowFieldMatrix<T>(field, rows, columns) : new BlockFieldMatrix<T>(field, rows, columns); 119 * @param <T> the type of the field element [all...] |
/external/guice/core/src/com/google/inject/spi/ |
InjectionPoint.java | 37 import java.lang.reflect.Field; 53 * A constructor, field or method that can receive injections. Typically this is a member with the 84 InjectionPoint(TypeLiteral<?> declaringType, Field field, boolean optional) { 85 this.member = field; 89 Annotation[] annotations = field.getAnnotations(); 91 Errors errors = new Errors(field); 94 key = Annotations.getKey(declaringType.getFieldType(field), field, annotations, errors); 137 * Returns the injected constructor, field, or method 454 final Field field; field in class:InjectionPoint.InjectableField [all...] |
/external/protobuf/java/src/test/java/com/google/protobuf/ |
TextFormatTest.java | 167 // Creates an example unknown field set. 171 UnknownFieldSet.Field.newBuilder() 179 UnknownFieldSet.Field.newBuilder() 185 UnknownFieldSet.Field.newBuilder() 191 UnknownFieldSet.Field.newBuilder() 422 assertEquals("6:1: Non-repeated field " 528 "1:1: Message type \"protobuf_unittest.TestAllTypes\" has no field " + [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
ClassTest.java | 25 import java.lang.reflect.Field; 274 Field f = TestClass.class.getDeclaredField("pubField"); 275 assertEquals("Returned incorrect field", 2, f.getInt(new TestClass())); 282 Field[] f = TestClass.class.getDeclaredFields(); 321 Field f = TestClass.class.getField("pubField"); 322 assertEquals("Returned incorrect field", 2, f.getInt(new TestClass())); 325 fail("Private field access failed to throw exception"); 335 Field[] f = TestClass.class.getFields();
|
/system/tools/aidl/ |
generate_java_binder.cpp | 65 Field* descriptor = 66 new Field(STATIC | FINAL | PRIVATE, 199 this->elements.push_back(new Field(PRIVATE, mRemote)); 278 Field* transactCode = new Field(
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/ |
messages.py | 24 IntegerField: Field for integer values. 25 FloatField: Field for float values. 26 BooleanField: Field for boolean values. 27 BytesField: Field for binary string values. 28 StringField: Field for UTF-8 string values. 29 MessageField: Field for other message type values. 30 EnumField: Field for enumerated type values. 34 FieldDefinitionError: Raised when field is incorrectly defined. 35 InvalidVariantError: Raised when variant is not compatible with field type. 36 InvalidDefaultError: Raised when default is not compatiable with field 1104 def field(self): member in class:FieldList [all...] |
/cts/tests/app/src/android/app/cts/ |
SystemFeaturesTest.java | 45 import java.lang.reflect.Field; 356 Field[] fields = PackageManager.class.getFields(); 357 for (Field field : fields) { 358 if (field.getName().startsWith(prefix)) { 359 String feature = (String) field.get(null);
|
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/ |
DeviceInfoInstrument.java | 41 import java.lang.reflect.Field; 305 Field[] fields = PackageManager.class.getFields(); 306 for (Field field : fields) { 307 if (field.getName().startsWith("FEATURE_")) { 308 String feature = (String) field.get(null);
|
/external/conscrypt/src/test/java/org/conscrypt/ |
OpenSSLSocketImplTest.java | 36 import java.lang.reflect.Field; 63 private Field contextSSLParameters; 343 Field f = Socket.class.getDeclaredField("created");
|
/external/guice/core/test/com/google/inject/ |
TypeLiteralTypeResolutionTest.java | 34 import java.lang.reflect.Field; 68 Field list; 69 Field instance;
|
/external/guice/extensions/multibindings/test/com/google/inject/multibindings/ |
ProvidesIntoTest.java | 38 import java.lang.reflect.Field; 184 Field field; local 187 field = ProvidesIntoTest.class.getDeclaredField("wrappedKey1Holder"); 190 field = ProvidesIntoTest.class.getDeclaredField("wrappedKey2Holder"); 195 return field.getAnnotation(WrappedKey.class); 242 Field field; local 245 field = ProvidesIntoTest.class.getDeclaredField("arrayWrappedKeyHolder12"); 248 field = ProvidesIntoTest.class.getDeclaredField("arrayWrappedKeyHolder34") [all...] |
/external/mockito/src/org/mockito/exceptions/ |
Reporter.java | 25 import java.lang.reflect.Field; 596 throw new MockitoException("You cannot have more than one Mockito annotation on a field!\n" + 597 "The field '" + fieldName + "' has multiple Mockito annotations.\n" + 602 throw new MockitoException("This combination of annotations is not permitted on a single field:\n" + 607 throw new MockitoException(join("Cannot instantiate a @Spy for '" + fieldName + "' field.", 608 "You haven't provided the instance for spying at field declaration so I tried to construct the instance.", 618 throw new MockitoException(join("Cannot instantiate @InjectMocks field named '" + fieldName + "'.", 619 "You haven't provided the instance at field declaration so I tried to construct the instance.", 640 public void fieldInitialisationThrewException(Field field, Throwable details) [all...] |