Home
last modified time | relevance | path

Searched refs:Class (Results 1 – 25 of 834) sorted by relevance

12345678910>>...34

/art/test/589-super-imt/src/
DMain.java18 public Class<?> method1(); in method1()
19 public Class<?> method2(); in method2()
20 public Class<?> method3(); in method3()
21 public Class<?> method4(); in method4()
22 public Class<?> method5(); in method5()
23 public Class<?> method6(); in method6()
24 public Class<?> method7(); in method7()
25 public Class<?> method8(); in method8()
26 public Class<?> method9(); in method9()
27 public Class<?> method10(); in method10()
[all …]
/art/runtime/mirror/
Dclass-inl.h48 inline uint32_t Class::GetObjectSize() { in GetObjectSize()
55 inline uint32_t Class::GetObjectSizeAllocFastPath() { in GetObjectSizeAllocFastPath()
62 inline ObjPtr<Class> Class::GetSuperClass() { in GetSuperClass()
68 return GetFieldObject<Class, kVerifyFlags, kReadBarrierOption>( in GetSuperClass()
69 OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); in GetSuperClass()
72 inline void Class::SetSuperClass(ObjPtr<Class> new_super_class) { in SetSuperClass()
75 ObjPtr<Class> old_super_class = in SetSuperClass()
76 GetFieldObject<Class>(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); in SetSuperClass()
80 SetFieldObject<false>(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); in SetSuperClass()
83 inline bool Class::HasSuperClass() { in HasSuperClass()
[all …]
Dclass.cc61 ObjPtr<mirror::Class> Class::GetPrimitiveClass(ObjPtr<mirror::String> name) { in GetPrimitiveClass()
82 ObjPtr<mirror::Class> klass = GetClassRoot(class_root); in GetPrimitiveClass()
97 ObjPtr<ClassExt> Class::EnsureExtDataPresent(Thread* self) { in EnsureExtDataPresent()
104 Handle<Class> h_this(hs.NewHandle(this)); in EnsureExtDataPresent()
116 MemberOffset ext_offset(OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); in EnsureExtDataPresent()
143 void Class::SetStatus(Handle<Class> h_this, ClassStatus new_status, Thread* self) { in SetStatus()
187 ObjPtr<mirror::Class> h_this_ptr = h_this.Get(); in SetStatus()
188 SubtypeCheck<ObjPtr<mirror::Class>>::WriteStatus(h_this_ptr, new_status); in SetStatus()
238 void Class::SetDexCache(ObjPtr<DexCache> new_dex_cache) { in SetDexCache()
239 SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_), new_dex_cache); in SetDexCache()
[all …]
Dmethod_type.cc31 ObjPtr<ObjectArray<Class>> AllocatePTypesArray(Thread* self, int count) in AllocatePTypesArray()
33 ObjPtr<Class> class_array_type = GetClassRoot<mirror::ObjectArray<mirror::Class>>(); in AllocatePTypesArray()
34 return ObjectArray<Class>::Alloc(self, class_array_type, count); in AllocatePTypesArray()
40 Handle<Class> return_type, in Create()
41 Handle<ObjectArray<Class>> parameter_types) { in Create()
61 Handle<ObjectArray<Class>> src_ptypes = hs.NewHandle(method_type->GetPTypes()); in CloneWithoutLeadingParameter()
62 Handle<Class> dst_rtype = hs.NewHandle(method_type->GetRType()); in CloneWithoutLeadingParameter()
64 Handle<ObjectArray<Class>> dst_ptypes = hs.NewHandle(AllocatePTypesArray(self, dst_ptypes_count)); in CloneWithoutLeadingParameter()
76 ObjPtr<Class> collector_array_class, in CollectTrailingArguments()
84 Handle<Class> collector_class = hs.NewHandle(collector_array_class); in CollectTrailingArguments()
[all …]
/art/test/912-classes/src-art/art/
DTest912.java111 Class<?> base = Class.forName(className); in testClass()
115 private static void testClass(Class<?> base) throws Exception { in testClass()
125 private static void testClassType(Class<?> c) throws Exception { in testClassType()
133 private static void testClassFields(Class<?> c) throws Exception { in testClassFields()
137 private static void testClassMethods(Class<?> c) throws Exception { in testClassMethods()
141 private static void testClassStatus(Class<?> c) { in testClassStatus()
145 private static void testInterfaces(Class<?> c) { in testInterfaces()
154 private static void testClassLoader(Class<?> c) { in testClassLoader()
176 Class.forName("B", false, cl1); in testClassLoaderClasses()
177 Class.forName("A", false, cl1); in testClassLoaderClasses()
[all …]
/art/test/674-hiddenapi/src-ex/
DReflection.java24 public static boolean canDiscoverWithGetDeclaredField(Class<?> klass, String name) { in canDiscoverWithGetDeclaredField()
33 public static boolean canDiscoverWithGetDeclaredFields(Class<?> klass, String name) { in canDiscoverWithGetDeclaredFields()
42 public static boolean canDiscoverWithGetField(Class<?> klass, String name) { in canDiscoverWithGetField()
51 public static boolean canDiscoverWithGetFields(Class<?> klass, String name) { in canDiscoverWithGetFields()
60 public static boolean canGetField(Class<?> klass, String name) { in canGetField()
72 public static boolean canSetField(Class<?> klass, String name) { in canSetField()
84 public static boolean canDiscoverWithGetDeclaredMethod(Class<?> klass, String name) { in canDiscoverWithGetDeclaredMethod()
93 public static boolean canDiscoverWithGetDeclaredMethods(Class<?> klass, String name) { in canDiscoverWithGetDeclaredMethods()
102 public static boolean canDiscoverWithGetMethod(Class<?> klass, String name) { in canDiscoverWithGetMethod()
111 public static boolean canDiscoverWithGetMethods(Class<?> klass, String name) { in canDiscoverWithGetMethods()
[all …]
DJNI.java18 public static native boolean canDiscoverField(Class<?> klass, String name, boolean isStatic); in canDiscoverField()
19 public static native boolean canGetField(Class<?> klass, String name, boolean isStatic); in canGetField()
20 public static native boolean canSetField(Class<?> klass, String name, boolean isStatic); in canSetField()
22 public static native boolean canDiscoverMethod(Class<?> klass, String name, boolean isStatic); in canDiscoverMethod()
23 public static native boolean canInvokeMethodA(Class<?> klass, String name, boolean isStatic); in canInvokeMethodA()
24 public static native boolean canInvokeMethodV(Class<?> klass, String name, boolean isStatic); in canInvokeMethodV()
26 public static native boolean canDiscoverConstructor(Class<?> klass, String signature); in canDiscoverConstructor()
27 public static native boolean canInvokeConstructorA(Class<?> klass, String signature); in canInvokeConstructorA()
28 public static native boolean canInvokeConstructorV(Class<?> klass, String signature); in canInvokeConstructorV()
DJLI.java23 MethodHandles.Lookup lookup, Class<?> klass, String fieldName, Class<?> fieldType) { in canDiscoverWithLookupFindGetter()
34 MethodHandles.Lookup lookup, Class<?> klass, String fieldName, Class<?> fieldType) { in canDiscoverWithLookupFindSetter()
45 MethodHandles.Lookup lookup, Class<?> klass, String fieldName, Class<?> fieldType) { in canDiscoverWithLookupFindStaticGetter()
56 MethodHandles.Lookup lookup, Class<?> klass, String fieldName, Class<?> fieldType) { in canDiscoverWithLookupFindStaticSetter()
67 MethodHandles.Lookup lookup, Class<?> klass, MethodType methodType) { in canDiscoverWithLookupFindConstructor()
78 MethodHandles.Lookup lookup, Class<?> klass, String methodName, MethodType methodType) { in canDiscoverWithLookupFindVirtual()
89 MethodHandles.Lookup lookup, Class<?> klass, String methodName, MethodType methodType) { in canDiscoverWithLookupFindStatic()
/art/test/566-polymorphic-inlining/src/
DMain.java18 public Class<?> sameInvokeInterface(); in sameInvokeInterface()
19 public Class<?> sameInvokeInterface2(); in sameInvokeInterface2()
20 public Class<?> sameInvokeInterface3(); in sameInvokeInterface3()
84 public Class<?> sameInvokeVirtual() { in sameInvokeVirtual()
89 public Class<?> sameInvokeInterface() { in sameInvokeInterface()
94 public Class<?> sameInvokeInterface2() { in sameInvokeInterface2()
99 public Class<?> sameInvokeInterface3() { in sameInvokeInterface3()
104 public static Class<?> testInvokeInterface(Itf i) { in testInvokeInterface()
108 public static Class<?> testInvokeInterface2(Itf i) { in testInvokeInterface2()
116 public static Class<?> testInvokeVirtual(Main m) { in testInvokeVirtual()
[all …]
/art/test/042-new-instance/src/
DMain.java36 Class<?> c = Class.forName("LocalClass"); in testClassNewInstance()
46 Class<?> c = Class.forName("otherpackage.PackageAccess"); in testClassNewInstance()
74 Class<?> c = Class.forName("LocalClass"); in testConstructorNewInstance()
86 Class<?> c = Class.forName("LocalClass2"); in testConstructorNewInstance()
97 Class<?> c = Class.forName("Main$InnerClass"); in testConstructorNewInstance()
108 Class<?> c = Class.forName("Main$StaticInnerClass"); in testConstructorNewInstance()
119 Class<?> c = Class.forName("otherpackage.PackageAccess"); in testConstructorNewInstance()
132 Class<?> c = Class.forName("MaybeAbstract"); in testConstructorNewInstance()
146 Class<?> c = Class.forName("otherpackage.PackageAccess2"); in testConstructorNewInstance()
200 Class<?> c = CC.class; in newInstance()
/art/runtime/dex/
Ddex_file_annotations.h39 Handle<mirror::Class> annotation_class)
45 bool IsFieldAnnotationPresent(ArtField* field, Handle<mirror::Class> annotation_class)
52 Handle<mirror::Class> annotation_class)
56 ObjPtr<mirror::ObjectArray<mirror::Class>> GetExceptionTypesForMethod(ArtMethod* method)
64 Handle<mirror::Class> annotation_class)
78 Handle<mirror::Class> annotation_class,
113 ObjPtr<mirror::Object> GetAnnotationForClass(Handle<mirror::Class> klass,
114 Handle<mirror::Class> annotation_class)
116 ObjPtr<mirror::ObjectArray<mirror::Object>> GetAnnotationsForClass(Handle<mirror::Class> klass)
118 ObjPtr<mirror::ObjectArray<mirror::Class>> GetDeclaredClasses(Handle<mirror::Class> klass)
[all …]
/art/test/172-app-image-twice/src/
DMain.java25 Class<?> tc1 = Class.forName("TestClass"); in main()
28 Class<?> bdcl = Class.forName("dalvik.system.BaseDexClassLoader"); in main()
32 Class<?> tc2 = Class.forName("TestClass"); in main()
47 public static native void debugPrintClass(Class<?> cls); in debugPrintClass()
/art/test/155-java-set-resolved-type/src/
DMain.java25 Class<?> class_loader_class = Class.forName("dalvik.system.PathClassLoader"); in main()
40 Class<?> tpc = Class.forName("TestParameter", false, mainLoader); in main()
55 Class<?> timpl = Class.forName("TestImplementation", false, mainLoader); in main()
71 Class<?> class_loader_class = Class.forName("dalvik.system.PathClassLoader"); in getClassLoaderFor()
85 public static void clearResolvedTypes(Class<?> c) { in clearResolvedTypes()
93 public static native void nativeClearResolvedTypes(Class<?> c); in nativeClearResolvedTypes()
/art/test/626-const-class-linking/src/
DMain.java27 Class<?> class_loader_class = Class.forName("dalvik.system.PathClassLoader"); in main()
46 Class<?> helper = delegating_loader.loadClass("Helper1"); in testClearDexCache()
48 WeakReference<Class<?>> weak_test1 = wrapHelperGet(helper); in testClearDexCache()
52 WeakReference<Class<?>> weak_test2 = wrapHelperGet(helper); in testClearDexCache()
55 Class<?> test1 = weak_test1.get(); in testClearDexCache()
59 Class<?> test2 = weak_test2.get(); in testClearDexCache()
73 Class<?> helper1 = delegating_loader.loadClass("Helper1"); in testMultiDex()
74 WeakReference<Class<?>> weak_test1 = wrapHelperGet(helper1); in testMultiDex()
78 Class<?> helper2 = delegating_loader.loadClass("Helper2"); in testMultiDex()
79 WeakReference<Class<?>> weak_test2 = wrapHelperGet(helper2); in testMultiDex()
[all …]
/art/test/158-app-image-class-table/src/
DMain.java22 Class<?> class_loader_class = Class.forName("dalvik.system.PathClassLoader"); in main()
33 Class<?> timpl = in main()
34 Class.forName("TestImplementation", false, Main.class.getClassLoader()); in main()
46 public static void clearResolvedTypes(Class<?> c) { in clearResolvedTypes()
54 public static native void nativeClearResolvedTypes(Class<?> c); in nativeClearResolvedTypes()
/art/runtime/native/
Djava_lang_Class.cc80 ObjPtr<mirror::Class> declaring_class = m->GetDeclaringClass(); in GetReflectionCaller()
90 ObjPtr<mirror::Class> lookup_class = GetClassRoot<mirror::MethodHandlesLookup>(); in GetReflectionCaller()
110 ObjPtr<mirror::Class> caller = (visitor.caller == nullptr) in GetReflectionCaller()
147 ALWAYS_INLINE static inline ObjPtr<mirror::Class> DecodeClass( in DecodeClass()
150 ObjPtr<mirror::Class> c = soa.Decode<mirror::Class>(java_class); in DecodeClass()
182 Handle<mirror::Class> c( in Class_classForName()
206 ObjPtr<mirror::Class> klass = mirror::Class::GetPrimitiveClass(soa.Decode<mirror::String>(name)); in Class_getPrimitiveClass()
213 ObjPtr<mirror::Class> c = DecodeClass(soa, javaThis); in Class_getNameNative()
214 return soa.AddLocalReference<jstring>(mirror::Class::ComputeName(hs.NewHandle(c))); in Class_getNameNative()
220 Handle<mirror::Class> klass = hs.NewHandle(DecodeClass(soa, javaThis)); in Class_getInterfacesInternal()
[all …]
/art/runtime/
Dcommon_throws.h27 class Class; variable
56 void ThrowArrayStoreException(ObjPtr<mirror::Class> element_class,
57 ObjPtr<mirror::Class> array_class)
70 void ThrowClassCircularityError(ObjPtr<mirror::Class> c)
73 void ThrowClassCircularityError(ObjPtr<mirror::Class> c, const char* fmt, ...)
78 void ThrowClassCastException(ObjPtr<mirror::Class> dest_type, ObjPtr<mirror::Class> src_type)
86 void ThrowClassFormatError(ObjPtr<mirror::Class> referrer, const char* fmt, ...)
92 void ThrowIllegalAccessErrorClass(ObjPtr<mirror::Class> referrer, ObjPtr<mirror::Class> accessed)
95 void ThrowIllegalAccessErrorClassForMethodDispatch(ObjPtr<mirror::Class> referrer,
96 ObjPtr<mirror::Class> accessed,
[all …]
Dclass_linker.h101 virtual bool operator()(ObjPtr<mirror::Class> klass) = 0;
166 ObjPtr<mirror::Class> FindClass(Thread* self,
174 ObjPtr<mirror::Class> FindSystemClass(Thread* self, const char* descriptor) in FindSystemClass()
181 ObjPtr<mirror::Class> FindArrayClass(Thread* self, ObjPtr<mirror::Class> element_class)
191 ObjPtr<mirror::Class> DefineClass(Thread* self,
202 ObjPtr<mirror::Class> LookupClass(Thread* self,
209 void LookupClasses(const char* descriptor, std::vector<ObjPtr<mirror::Class>>& classes)
213 ObjPtr<mirror::Class> LookupPrimitiveClass(char type) REQUIRES_SHARED(Locks::mutator_lock_);
214 ObjPtr<mirror::Class> FindPrimitiveClass(char type) REQUIRES_SHARED(Locks::mutator_lock_);
247 ObjPtr<mirror::Class> ResolveType(dex::TypeIndex type_idx, ObjPtr<mirror::Class> referrer)
[all …]
Dmethod_handles_test.cc50 Handle<mirror::Class> parameter_type) in CreateVoidMethodType()
54 ObjPtr<mirror::Class> class_array_type = GetClassRoot<mirror::ObjectArray<mirror::Class>>(cl); in CreateVoidMethodType()
56 mirror::ObjectArray<mirror::Class>::Alloc(self, class_array_type, 1)); in CreateVoidMethodType()
58 Handle<mirror::Class> void_class = hs.NewHandle(GetClassRoot(ClassRoot::kPrimitiveVoid, cl)); in CreateVoidMethodType()
63 Handle<mirror::Class> from, in TryConversion()
64 Handle<mirror::Class> to, in TryConversion()
84 Handle<mirror::Class> from = hs.NewHandle(cl->FindPrimitiveClass('B')); in TEST_F()
85 Handle<mirror::Class> to = hs.NewHandle(cl->FindPrimitiveClass('I')); in TEST_F()
96 Handle<mirror::Class> from = hs.NewHandle(cl->FindPrimitiveClass('C')); in TEST_F()
97 Handle<mirror::Class> to = hs.NewHandle(cl->FindPrimitiveClass('J')); in TEST_F()
[all …]
/art/test/462-checker-inlining-dex-files/src-multidex/
DOtherDex.java41 public static Class<?> returnOtherDexClass() { in returnOtherDexClass()
45 public static Class<?> returnMainClass() { in returnMainClass()
49 private static Class<?> returnOtherDexClass2() { in returnOtherDexClass2()
53 public static Class<?> returnOtherDexClassStaticCall() { in returnOtherDexClassStaticCall()
59 public static Class<?> returnOtherDexCallingMain() { in returnOtherDexCallingMain()
/art/test/944-transform-classloaders/src/art/
DTest944.java123 private static void checkIsInstance(Class<?> klass, Object o) throws Exception { in checkIsInstance()
146 private static void checkDexFileInClassLoader(Class<?> klass) throws Exception { in checkDexFileInClassLoader()
172 Class<?> baseDexClassLoaderClass = Class.forName("dalvik.system.BaseDexClassLoader"); in checkDexFileInClassLoader()
175 Class<?> dexPathListClass = Class.forName("dalvik.system.DexPathList"); in checkDexFileInClassLoader()
178 Class<?> dexPathListElementClass = Class.forName("dalvik.system.DexPathList$Element"); in checkDexFileInClassLoader()
181 Class<?> dexFileClass = Class.forName("dalvik.system.DexFile"); in checkDexFileInClassLoader()
274 private static long getDexFilePointer(Class<?> target) throws Exception { in getDexFilePointer()
283 Field dexCacheField = Class.class.getDeclaredField("dexCache"); in getDexFilePointer()
285 Class<?> dexCacheClass = Class.forName("java.lang.DexCache"); in getDexFilePointer()
/art/test/910-methods/src/art/
DTest910.java41 private static void testMethod(String className, String methodName, Class<?>... types) in testMethod()
43 Class<?> base = Class.forName(className); in testMethod()
47 private static void testMethod(Class<?> base, String methodName, Class<?>... types) in testMethod()
53 private static void testMethod(Method m, Class<?> base, boolean printName) { in testMethod()
62 Class<?> declClass = getMethodDeclaringClass(m); in testMethod()
127 private static native Class<?> getMethodDeclaringClass(Method m); in getMethodDeclaringClass()
150 private static Class<?> proxyClass = null;
152 private static Class<?> getProxyClass() throws Exception { in getProxyClass()
167 private static Class<?> createProxyClass(int i) throws Exception { in createProxyClass()
169 Class<?>[] input = new Class<?>[count + 1]; in createProxyClass()
[all …]
/art/test/146-bad-interface/src-art/
DMain.java31 Class<?> c = Class.forName("A", true, p); in main()
33 Class<?> runner = Class.forName("InvokeInf", true, p); in main()
34 Class<?> arg = Class.forName("Iface", true, p); in main()
/art/tools/cpp-define-generator/
Dmirror_class.def22 art::mirror::Class::AccessFlagsOffset().Int32Value())
24 art::mirror::Class::ComponentTypeOffset().Int32Value())
26 art::mirror::Class::DexCacheOffset().Int32Value())
28 art::mirror::Class::IfTableOffset().Int32Value())
30 art::mirror::Class::PrimitiveTypeOffset().Int32Value())
32 art::mirror::Class::ObjectSizeAllocFastPathOffset().Int32Value())
34 art::mirror::Class::ObjectSizeOffset().Int32Value())
36 art::mirror::Class::StatusOffset().Int32Value())
38 art::mirror::Class::kPrimitiveTypeSizeShiftShift)
/art/test/462-checker-inlining-dex-files/src/
DMain.java109 public static Class<?> dontInlineOtherDexClass() { in dontInlineOtherDexClass()
126 public static Class<?> inlineMainClass() { in inlineMainClass()
138 public static Class<?> dontInlineOtherDexClassStaticCall() { in dontInlineOtherDexClassStaticCall()
155 public static Class<?> inlineOtherDexCallingMain() { in inlineOtherDexCallingMain()
159 public static Class<?> getOtherClass() { in getOtherClass()
199 public static Class<?> cls = AAA.class;

12345678910>>...34