/libcore/benchmarks/src/benchmarks/regression/ |
ReflectionBenchmark.java | 20 import java.lang.reflect.Field; 76 Field f = klass.getDeclaredField("f"); 85 Field f = klass.getDeclaredField("f"); 175 // The field here (and in timeGetStaticField) were chosen to be 176 // ~75% down the bottom of the alphabetically sorted field list. 178 // a class whose field names are created algorithmically.
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
Duration.java | 35 * minutes, and seconds) plus a sign (+/-) field.</p> 38 * (which represents that the field is not set), 39 * and the seconds field has a non-negative decimal or null. 98 * i.e. {@link #isSet(DatatypeConstants.Field field)} == <code>true</code>.</p> 221 * {@link #getField(DatatypeConstants.Field field) getField(DatatypeConstants.YEARS)}.</p> 225 * Use {@link #getField(DatatypeConstants.Field field) getField(DatatypeConstants.YEARS)} to avoid possible loss of precision.</p> 227 * @return If the years field is present, return its value as an <code>int</code>, else return <code>0</code> [all...] |
/external/llvm/bindings/ocaml/llvm/ |
llvm_ocaml.c | 70 COverview = String_val(Field(Overview, 0)); 78 Field(Iter, 0) = Val_op(Value); 460 Field(Option, 0) = (value) Ty; 636 Field(Option, 0) = (value) MD; 728 Field(Option, 0) = caml_copy_int64(LLVMConstIntGetSExtValue(Const)); 761 Field(Option, 0) = caml_copy_double(Result); 834 Field(Option, 0) = Str; 891 idxs[i] = Int_val(Field(Indices, i)); 909 idxs[i] = Int_val(Field(Indices, i)); 1006 Field(Option, 0) = (value) First [all...] |
/external/clang/lib/Sema/ |
SemaInit.cpp | 283 RecordDecl::field_iterator Field, 341 void FillInEmptyInitForField(unsigned Init, FieldDecl *Field, 349 Expr *InitExpr, FieldDecl *Field, 461 << /*field*/1 << Entity.getDecl(); 481 void InitListChecker::FillInEmptyInitForField(unsigned Init, FieldDecl *Field, 489 = InitializedEntity::InitializeMember(Field, &ParentEntity); 497 Expr *Filler = new (SemaRef.Context) NoInitExpr(Field->getType()); 508 if (Field->hasInClassInitializer()) { 509 ExprResult DIE = SemaRef.BuildCXXDefaultInitExpr(Loc, Field); 523 if (Field->getType()->isReferenceType()) [all...] |
/art/tools/ahat/src/ |
ObjectHandler.java | 22 import com.android.tools.perflib.heap.Field; 109 for (ClassInstance.FieldValue field : selector.selected()) { 111 DocString.text(field.getField().getType().toString()), 112 DocString.text(field.getField().getName()), 113 Value.render(snapshot, field.getValue())); 146 List<Map.Entry<Field, Object>> fields 147 = new ArrayList<Map.Entry<Field, Object>>(clsobj.getStaticFieldValues().entrySet()); 148 SubsetSelector<Map.Entry<Field, Object>> selector 150 for (Map.Entry<Field, Object> field : selector.selected()) [all...] |
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
GrammarReport.java | 35 import java.lang.reflect.Field; 262 Field[] fields = ReportData.class.getDeclaredFields(); 264 for (Field f : fields) { 327 Field[] fields = ReportData.class.getDeclaredFields(); 328 for (Field f : fields) {
|
/external/caliper/caliper/src/main/java/com/google/caliper/options/ |
CommandLineParser.java | 34 import java.lang.reflect.Field; 89 * the field. 106 * Annotates a field or method in an options class to signify that parsed values should be 110 @Target({ElementType.FIELD, ElementType.METHOD}) 125 @Target({ElementType.FIELD, ElementType.METHOD}) 208 for (Field field : injectedClass.getDeclaredFields()) { 209 checkArgument(!field.isAnnotationPresent(Leftovers.class), 211 Option option = field.getAnnotation(Option.class); 213 InjectableOption injectable = FieldOption.create(field); 273 private Field field; field in class:CommandLineParser.FieldOption [all...] |
/external/clang/include/clang/AST/ |
APValue.h | 100 const FieldDecl *Field; 324 return ((const UnionData*)(const char*)Data.buffer)->Field; 381 void setUnion(const FieldDecl *Field, const APValue &Value) { 383 ((UnionData*)(char*)Data.buffer)->Field = Field;
|
/art/runtime/native/ |
java_lang_Class.cc | 29 #include "mirror/field-inl.h" 111 static mirror::ObjectArray<mirror::Field>* GetDeclaredFields( 120 for (ArtField& field : ifields) { 121 if (!field.IsPublic()) { 125 for (ArtField& field : sfields) { 126 if (!field.IsPublic()) { 132 auto object_array = hs.NewHandle(mirror::ObjectArray<mirror::Field>::Alloc( 133 self, mirror::Field::ArrayClass(), array_size)); 137 for (ArtField& field : ifields) { 138 if (!public_only || field.IsPublic()) 200 ArtField& field = fields->At(mid); local [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/ |
SparseFieldVector.java | 22 import org.apache.commons.math.Field; 30 * @param <T> the type of the field elements 40 /** Field to which the elements belong. */ 41 private final Field<T> field; field in class:SparseFieldVector 55 * @param field field to which the elements belong 57 public SparseFieldVector(Field<T> field) { 58 this(field, 0) [all...] |
/external/guava/guava-testlib/src/com/google/common/testing/ |
ArbitraryInstances.java | 95 import java.lang.reflect.Field; 175 private static final Ordering<Field> BY_FIELD_NAME = new Ordering<Field>() { 176 @Override public int compare(Field left, Field right) { 380 Field[] fields = type.getDeclaredFields(); 382 for (Field field : fields) { 383 if (Modifier.isPublic(field.getModifiers()) 384 && Modifier.isStatic(field.getModifiers() [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
Filter.java | 30 import java.lang.reflect.Field; 273 * transfer from a FieldPort or ProgramPort to its connected target (field or program variable). 355 Field field, 358 // Make sure field is accessible 359 field.setAccessible(true); 363 ? new FinalPort(this, name, field, hasDefault) 364 : new FieldPort(this, name, field, hasDefault); 368 MutableFrameFormat format = ObjectFormat.fromClass(field.getType(), 378 Field field [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
ntdef.h | 146 #define CONTAINING_RECORD(address, type, field) \ 147 ((type *)(((ULONG_PTR)address) - (ULONG_PTR)(&(((type *)0)->field)))) 152 #define FIELD_OFFSET(Type, Field) ((LONG)(LONG_PTR)&(((Type*) 0)->Field)) 154 #define FIELD_OFFSET(Type, Field) __builtin_offsetof(Type, Field) 634 #define RTL_FIELD_SIZE(type, field) (sizeof(((type *)0)->field)) 636 #define RTL_SIZEOF_THROUGH_FIELD(type, field) \ 637 (FIELD_OFFSET(type, field) + RTL_FIELD_SIZE(type, field) [all...] |
/external/clang/lib/CodeGen/ |
CGExprAgg.cpp | 327 // FIXME: Perform the checks on the field types in SemaInit. 329 RecordDecl::field_iterator Field = Record->field_begin(); 330 if (Field == Record->field_end()) { 336 if (!Field->getType()->isPointerType() || 337 !Ctx.hasSameType(Field->getType()->getPointeeType(), 345 LValue Start = CGF.EmitLValueForFieldInitialization(DestLV, *Field); 351 ++Field; 353 if (Field == Record->field_end()) { 359 LValue EndOrLength = CGF.EmitLValueForFieldInitialization(DestLV, *Field); 360 if (Field->getType()->isPointerType() & [all...] |
/art/test/046-reflect/src/ |
Main.java | 53 void printFieldInfo(Field field) { 54 System.out.println("Field name is " + field.getName()); 56 + field.getDeclaringClass().getName()); 57 System.out.println(" Field type is " + field.getType().getName()); 59 + Integer.toHexString(field.getModifiers())); 67 Field field = null local 109 Field field = target.getField("innerField"); local 126 Field field = null; local 468 Field field = niuClass.getField("staticField"); local 509 Field field; local 879 Field field = getClass().getDeclaredField("LONG"); local [all...] |
/external/chromium-trace/catapult/third_party/Paste/paste/ |
fixture.py | [all...] |
/art/runtime/ |
jni_internal_test.cc | 267 jobject field = env_->ToReflectedField(nullptr, fid, JNI_FALSE); local 269 EXPECT_EQ(field, nullptr); 272 EXPECT_NE(field, nullptr); 275 field = env_->ToReflectedField(c, nullptr, JNI_FALSE); 276 EXPECT_EQ(field, nullptr); 282 check_jni_abort_catcher.Check(check_jni ? "expected non-null java.lang.reflect.Field" 870 jobject field = env_->ToReflectedField(c, fid, JNI_FALSE); local [all...] |
/external/pdfium/fpdfsdk/src/javascript/ |
JS_EventHandler.cpp | 10 #include "Field.h" 550 return L"Field"; 603 Field* CJS_EventHandler::Source() { 621 Field* pField = (Field*)pJSField->GetEmbedObject(); 626 Field* CJS_EventHandler::Target_Field() { 644 Field* pField = (Field*)pJSField->GetEmbedObject();
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/ |
extra_types.py | 38 class DateField(messages.Field): 40 """Field definition for Date values.""" 43 # register this as the default field type for strings. 50 class __metaclass__(messages.Field.__metaclass__): 53 super(messages.Field.__metaclass__, cls).__init__(name, bases, dct) 81 field, value = assigned_entries[0] 82 if not isinstance(field, messages.MessageField): 84 elif field.message_type is JsonObject: 86 elif field.message_type is JsonArray: 242 def _EncodeDateTimeField(field, value) [all...] |
/external/conscrypt/src/platform/java/org/conscrypt/ |
Platform.java | 28 import java.lang.reflect.Field; 84 Field f_impl = Socket.class.getDeclaredField("impl"); 87 Field f_fd = SocketImpl.class.getDeclaredField("fd");
|
/external/mockito/src/org/mockito/internal/matchers/apachecommons/ |
EqualsBuilder.java | 11 import java.lang.reflect.Field; 32 * Derived fields may be ignored. In particular, any field used in 135 * @param excludeFields array of field names to exclude from testing 217 * @param excludeFields array of field names to exclude from testing 279 * @param excludeFields array of field names to exclude from testing 288 Field[] fields = clazz.getDeclaredFields(); 292 Field f = fields[i];
|
/external/proguard/src/proguard/classfile/ |
ProgramClass.java | 54 * An extra field pointing to the subclasses of this class. 55 * This field is filled out by the {@link ClassSubHierarchyInitializer}. 60 * An extra field in which visitors can store information. 324 public Field findField(String name, String descriptor) 328 Field field = fields[index]; local 329 if ((name == null || field.getName(this).equals(name)) && 330 (descriptor == null || field.getDescriptor(this).equals(descriptor))) 332 return field; 504 Field field = findField(name, descriptor) local [all...] |
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/media/ |
MediaRecorderFacade.java | 43 import java.lang.reflect.Field; 95 Field source = Class.forName("android.media.MediaRecorder$AudioSource").getField("CAMCORDER"); 178 Field source =
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
StatusBarWindowManager.java | 37 import java.lang.reflect.Field; 375 Field[] fields = this.getClass().getDeclaredFields(); 377 // Print field names paired with their values 378 for (Field field : fields) { 381 result.append(field.getName()); 383 //requires access to private field: 384 result.append(field.get(this));
|
/libcore/luni/src/main/java/java/util/concurrent/atomic/ |
AtomicLongFieldUpdater.java | 10 import java.lang.reflect.Field; 29 * Because this class cannot ensure that all uses of the field 36 * @param <T> The type of the object holding the updatable field 40 * Creates and returns an updater for objects with the given field. 44 * @param tclass the class of the objects holding the field 45 * @param fieldName the name of the field to be updated 48 * @throws IllegalArgumentException if the field is not a 51 * exception if the class does not hold field or is the wrong type, 52 * or the field is inaccessible to the caller according to Java language 72 * Atomically sets the field of the given object managed by this update 353 final Field field; local 483 Field field = null; local [all...] |