Home
last modified time | relevance | path

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

12345678910

/art/runtime/mirror/
Dclass-inl.h41 inline uint32_t Class::GetObjectSize() { in GetObjectSize()
48 return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_)); in GetObjectSize()
51 inline Class* Class::GetSuperClass() { in GetSuperClass()
55 return GetFieldObject<Class>(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); in GetSuperClass()
58 inline ClassLoader* Class::GetClassLoader() { in GetClassLoader()
59 return GetFieldObject<ClassLoader>(OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); in GetClassLoader()
63 inline DexCache* Class::GetDexCache() { in GetDexCache()
64 return GetFieldObject<DexCache, kVerifyFlags>(OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); in GetDexCache()
67 inline ObjectArray<ArtMethod>* Class::GetDirectMethods() { in GetDirectMethods()
69 return GetFieldObject<ObjectArray<ArtMethod>>(OFFSET_OF_OBJECT_MEMBER(Class, direct_methods_)); in GetDirectMethods()
[all …]
Dclass.cc39 GcRoot<Class> Class::java_lang_Class_;
41 void Class::SetClassClass(Class* java_lang_Class) { in SetClassClass()
46 java_lang_Class_ = GcRoot<Class>(java_lang_Class); in SetClassClass()
49 void Class::ResetClass() { in ResetClass()
51 java_lang_Class_ = GcRoot<Class>(nullptr); in ResetClass()
54 void Class::VisitRoots(RootCallback* callback, void* arg) { in VisitRoots()
58 void Class::SetStatus(Status new_status, Thread* self) { in SetStatus()
88 Class* eiie_class; in SetStatus()
106 Class* exception_class = old_exception->GetClass(); in SetStatus()
120 SetField32Volatile<true>(OFFSET_OF_OBJECT_MEMBER(Class, status_), new_status); in SetStatus()
[all …]
Dclass.h85 class MANAGED Class FINAL : public Object {
159 GetField32Volatile<kVerifyFlags>(OFFSET_OF_OBJECT_MEMBER(Class, status_))); in GetStatus()
165 return OFFSET_OF_OBJECT_MEMBER(Class, status_); in StatusOffset()
247 uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); in SetFinalizable()
300 Class* component = GetComponentType(); in CannotBeAssignedFromOtherTypes()
319 static String* ComputeName(Handle<Class> h_this) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
326 uint32_t access_flags = GetField32<kVerifyFlags>(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); in IsProxyClass()
335 SetField32<false>(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), new_type); in SetPrimitiveType()
399 for (Class* klass = this; klass->GetSuperClass() != NULL; klass = klass->GetSuperClass()) { in Depth()
429 return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); in ComponentTypeOffset()
[all …]
Dreference.cc22 GcRoot<Class> Reference::java_lang_ref_Reference_;
24 void Reference::SetClass(Class* java_lang_ref_Reference) { in SetClass()
27 java_lang_ref_Reference_ = GcRoot<Class>(java_lang_ref_Reference); in SetClass()
32 java_lang_ref_Reference_ = GcRoot<Class>(nullptr); in ResetClass()
Dobject_test.cc82 EXPECT_EQ(CLASS_COMPONENT_TYPE_OFFSET, Class::ComponentTypeOffset().Int32Value()); in TEST_F()
108 EXPECT_TRUE(Class::IsInSamePackage("Ljava/lang/Object;", "Ljava/lang/Class;")); in TEST_F()
109 EXPECT_TRUE(Class::IsInSamePackage("LFoo;", "LBar;")); in TEST_F()
112 EXPECT_FALSE(Class::IsInSamePackage("Ljava/lang/Object;", "Ljava/io/File;")); in TEST_F()
113 EXPECT_FALSE(Class::IsInSamePackage("Ljava/lang/Object;", "Ljava/lang/reflect/Method;")); in TEST_F()
142 Class* aioobe = class_linker_->FindSystemClass(soa.Self(), in TEST_F()
156 Handle<mirror::Class> klass(hs.NewHandle(oa->GetClass())); in TEST_F()
159 mirror::Class::GetDirectInterface(soa.Self(), klass, 0)); in TEST_F()
161 mirror::Class::GetDirectInterface(soa.Self(), klass, 1)); in TEST_F()
166 Class* c = class_linker_->FindSystemClass(soa.Self(), "[I"); in TEST_F()
[all …]
Darray.cc44 Handle<Class> array_class, int current_dimension, in RecursiveCreateMultiArray()
61 Handle<mirror::Class> h_component_type(hs.NewHandle(array_class->GetComponentType())); in RecursiveCreateMultiArray()
75 Array* Array::CreateMultiArray(Thread* self, Handle<Class> element_class, in CreateMultiArray()
95 mirror::Class* element_class_ptr = element_class.Get(); in CreateMultiArray()
97 Handle<mirror::Class> array_class( in CreateMultiArray()
104 mirror::Class* array_class_ptr = array_class.Get(); in CreateMultiArray()
127 template <typename T> GcRoot<Class> PrimitiveArray<T>::array_class_;
Dart_field.cc32 GcRoot<Class> ArtField::java_lang_reflect_ArtField_;
34 void ArtField::SetClass(Class* java_lang_reflect_ArtField) { in SetClass()
37 java_lang_reflect_ArtField_ = GcRoot<Class>(java_lang_reflect_ArtField); in SetClass()
42 java_lang_reflect_ArtField_ = GcRoot<Class>(nullptr); in ResetClass()
63 ArtField* ArtField::FindInstanceFieldWithOffset(mirror::Class* klass, uint32_t field_offset) { in FindInstanceFieldWithOffset()
/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()
75 Constructor cons = c.getConstructor(new Class[0] /*(Class[])null*/); in testConstructorNewInstance()
86 Class c = Class.forName("LocalClass2"); in testConstructorNewInstance()
87 Constructor cons = c.getConstructor((Class[]) null); in testConstructorNewInstance()
97 Class c = Class.forName("Main$InnerClass"); in testConstructorNewInstance()
98 Constructor cons = c.getDeclaredConstructor(new Class<?>[]{Main.class}); in testConstructorNewInstance()
108 Class c = Class.forName("Main$StaticInnerClass"); in testConstructorNewInstance()
109 Constructor cons = c.getDeclaredConstructor((Class[]) null); in testConstructorNewInstance()
[all …]
/art/runtime/
Dclass_linker.h57 typedef bool (ClassVisitor)(mirror::Class* c, void* arg);
75 mirror::Class* FindClass(Thread* self, const char* descriptor,
81 mirror::Class* FindClassInPathClassLoader(ScopedObjectAccessAlreadyRunnable& soa,
88 mirror::Class* FindSystemClass(Thread* self, const char* descriptor)
92 mirror::Class* FindArrayClass(Thread* self, mirror::Class** element_class)
99 mirror::Class* DefineClass(Thread* self, const char* descriptor, size_t hash,
106 mirror::Class* LookupClass(const char* descriptor, size_t hash,
112 void LookupClasses(const char* descriptor, std::vector<mirror::Class*>& classes)
116 mirror::Class* FindPrimitiveClass(char type) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
151 mirror::Class* ResolveType(const DexFile& dex_file, uint16_t type_idx, mirror::Class* referrer)
[all …]
Dcommon_throws.h27 class Class; variable
50 void ThrowArrayStoreException(mirror::Class* element_class, mirror::Class* array_class)
55 void ThrowClassCircularityError(mirror::Class* c)
60 void ThrowClassCastException(mirror::Class* dest_type, mirror::Class* src_type)
68 void ThrowClassFormatError(mirror::Class* referrer, const char* fmt, ...)
74 void ThrowIllegalAccessErrorClass(mirror::Class* referrer, mirror::Class* accessed)
77 void ThrowIllegalAccessErrorClassForMethodDispatch(mirror::Class* referrer, mirror::Class* accessed,
82 void ThrowIllegalAccessErrorMethod(mirror::Class* referrer, mirror::ArtMethod* accessed)
85 void ThrowIllegalAccessErrorField(mirror::Class* referrer, mirror::ArtField* accessed)
91 void ThrowIllegalAccessError(mirror::Class* referrer, const char* fmt, ...)
[all …]
Dclass_linker-inl.h32 inline mirror::Class* ClassLinker::FindSystemClass(Thread* self, const char* descriptor) { in FindSystemClass()
36 inline mirror::Class* ClassLinker::FindArrayClass(Thread* self, mirror::Class** element_class) { in FindArrayClass()
39 mirror::Class* array_class = find_array_class_cache_[i].Read(); in FindArrayClass()
50 HandleWrapper<mirror::Class> h_element_class(hs.NewHandleWrapper(element_class)); in FindArrayClass()
51 mirror::Class* array_class = FindClass(self, descriptor.c_str(), class_loader); in FindArrayClass()
54 find_array_class_cache_[victim_index] = GcRoot<mirror::Class>(array_class); in FindArrayClass()
61 mirror::Class* declaring_class = referrer->GetDeclaringClass(); in ResolveString()
75 inline mirror::Class* ClassLinker::ResolveType(uint16_t type_idx, in ResolveType()
77 mirror::Class* resolved_type = referrer->GetDexCacheResolvedType(type_idx); in ResolveType()
79 mirror::Class* declaring_class = referrer->GetDeclaringClass(); in ResolveType()
[all …]
Dproxy_test.cc32 mirror::Class* GenerateProxyClass(ScopedObjectAccess& soa, jobject jclass_loader, in GenerateProxyClass()
34 const std::vector<mirror::Class*>& interfaces) in GenerateProxyClass()
36 … mirror::Class* javaLangObject = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;"); in GenerateProxyClass()
39 jclass javaLangClass = soa.AddLocalReference<jclass>(mirror::Class::GetJavaLangClass()); in GenerateProxyClass()
52 for (mirror::Class* interface : interfaces) { in GenerateProxyClass()
83 for (mirror::Class* interface : interfaces) { in GenerateProxyClass()
99 mirror::Class* proxyClass = class_linker_->CreateProxyClass(soa, in GenerateProxyClass()
116 Handle<mirror::Class> I(hs.NewHandle( in TEST_F()
118 Handle<mirror::Class> J(hs.NewHandle( in TEST_F()
123 std::vector<mirror::Class*> interfaces; in TEST_F()
[all …]
Dclass_linker.cc89 static void ThrowEarlierClassFailure(mirror::Class* c) in ThrowEarlierClassFailure()
190 memset(find_array_class_cache_, 0, kFindArrayCacheSize * sizeof(mirror::Class*)); in ClassLinker()
211 Handle<mirror::Class> java_lang_Class(hs.NewHandle(down_cast<mirror::Class*>( in InitWithoutImage()
213 mirror::Class::ClassClassSize(), in InitWithoutImage()
216 mirror::Class::SetClassClass(java_lang_Class.Get()); in InitWithoutImage()
221 java_lang_Class->SetClassSize(mirror::Class::ClassClassSize()); in InitWithoutImage()
226 Handle<mirror::Class> class_array_class(hs.NewHandle( in InitWithoutImage()
227 AllocClass(self, java_lang_Class.Get(), mirror::ObjectArray<mirror::Class>::ClassSize()))); in InitWithoutImage()
231 Handle<mirror::Class> java_lang_Object(hs.NewHandle( in InitWithoutImage()
236 java_lang_Object->SetStatus(mirror::Class::kStatusLoaded, self); in InitWithoutImage()
[all …]
Dclass_linker_test.cc54 mirror::Class* exception_class = in AssertNonExistentClass()
65 void AssertPrimitiveClass(const std::string& descriptor, mirror::Class* primitive) in AssertPrimitiveClass()
76 EXPECT_EQ(mirror::Class::kStatusInitialized, primitive->GetStatus()); in AssertPrimitiveClass()
108 Handle<mirror::Class> array( in AssertArrayClass()
117 void AssertArrayClass(const std::string& array_descriptor, Handle<mirror::Class> array) in AssertArrayClass()
131 EXPECT_EQ(mirror::Class::kStatusInitialized, array->GetStatus()); in AssertArrayClass()
152 mirror::Class* direct_interface0 = mirror::Class::GetDirectInterface(self, array, 0); in AssertArrayClass()
155 mirror::Class* direct_interface1 = mirror::Class::GetDirectInterface(self, array, 1); in AssertArrayClass()
157 mirror::Class* array_ptr = array->GetComponentType(); in AssertArrayClass()
175 void AssertField(mirror::Class* klass, mirror::ArtField* field) in AssertField()
[all …]
Dcommon_throws.cc35 static void AddReferrerLocation(std::ostream& os, mirror::Class* referrer) in AddReferrerLocation()
47 mirror::Class* referrer, const char* fmt, va_list* args = NULL) in ThrowException()
69 mirror::Class* referrer, const char* fmt, va_list* args = NULL) in ThrowWrappedException()
112 void ThrowArrayStoreException(mirror::Class* element_class, mirror::Class* array_class) { in ThrowArrayStoreException()
121 void ThrowClassCastException(mirror::Class* dest_type, mirror::Class* src_type) { in ThrowClassCastException()
134 void ThrowClassCircularityError(mirror::Class* c) { in ThrowClassCircularityError()
142 void ThrowClassFormatError(mirror::Class* referrer, const char* fmt, ...) { in ThrowClassFormatError()
150 void ThrowIllegalAccessErrorClass(mirror::Class* referrer, mirror::Class* accessed) { in ThrowIllegalAccessErrorClass()
157 void ThrowIllegalAccessErrorClassForMethodDispatch(mirror::Class* referrer, mirror::Class* accessed, in ThrowIllegalAccessErrorClassForMethodDispatch()
167 void ThrowIllegalAccessErrorMethod(mirror::Class* referrer, mirror::ArtMethod* accessed) { in ThrowIllegalAccessErrorMethod()
[all …]
/art/runtime/entrypoints/portable/
Dportable_cast_entrypoints.cc23 extern "C" int32_t art_portable_is_assignable_from_code(mirror::Class* dest_type, in art_portable_is_assignable_from_code()
24 mirror::Class* src_type) in art_portable_is_assignable_from_code()
31 extern "C" void art_portable_check_cast_from_code(mirror::Class* dest_type, in art_portable_check_cast_from_code()
32 mirror::Class* src_type) in art_portable_check_cast_from_code()
48 mirror::Class* array_class = array->GetClass(); in art_portable_check_put_array_element_from_code()
50 mirror::Class* component_type = array_class->GetComponentType(); in art_portable_check_put_array_element_from_code()
51 mirror::Class* element_class = element->GetClass(); in art_portable_check_put_array_element_from_code()
/art/runtime/native/
Djava_lang_Class.cc32 static mirror::Class* DecodeClass(const ScopedFastNativeObjectAccess& soa, jobject java_class) in DecodeClass()
34 mirror::Class* c = soa.Decode<mirror::Class*>(java_class); in DecodeClass()
66 Handle<mirror::Class> c( in Class_classForName()
89 mirror::Class* const c = DecodeClass(soa, javaThis); in Class_getNameNative()
90 return soa.AddLocalReference<jstring>(mirror::Class::ComputeName(hs.NewHandle(c))); in Class_getNameNative()
95 mirror::Class* c = DecodeClass(soa, javaThis); in Class_getProxyInterfaces()
100 …NATIVE_METHOD(Class, classForName, "!(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;…
101 NATIVE_METHOD(Class, getNameNative, "!()Ljava/lang/String;"),
102 NATIVE_METHOD(Class, getProxyInterfaces, "!()[Ljava/lang/Class;"),
/art/test/068-classloader/src/
DFancyLoader.java44 private Class mDexClass;
68 protected Class<?> findClass(String name) throws ClassNotFoundException in findClass()
80 private Class<?> findClassDalvik(String name) in findClassDalvik()
90 ctor = mDexClass.getConstructor(new Class[] {String.class}); in findClassDalvik()
115 new Class[] { String.class, ClassLoader.class }); in findClassDalvik()
135 private Class<?> findClassNonDalvik(String name) in findClassNonDalvik()
184 protected Class<?> loadClass(String name, boolean resolve) in loadClass()
187 Class res; in loadClass()
/art/runtime/verifier/
Dreg_type.h35 class Class; variable
213 mirror::Class* GetClass() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in GetClass()
231 bool CanAccessMember(mirror::Class* klass, uint32_t access_flags)
268 static mirror::Class* ClassJoin(mirror::Class* s, mirror::Class* t)
276 RegType(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id) in RegType()
278 : descriptor_(descriptor), klass_(GcRoot<mirror::Class>(klass)), cache_id_(cache_id) { in RegType()
288 GcRoot<mirror::Class> klass_;
310 static ConflictType* CreateInstance(mirror::Class* klass, const std::string& descriptor,
318 ConflictType(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id) in ConflictType()
340 static UndefinedType* CreateInstance(mirror::Class* klass, const std::string& descriptor,
[all …]
Dreg_type.cc67 PrimitiveType::PrimitiveType(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id) in PrimitiveType()
74 Cat1Type::Cat1Type(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id) in Cat1Type()
79 Cat2Type::Cat2Type(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id) in Cat2Type()
145 DoubleHiType* DoubleHiType::CreateInstance(mirror::Class* klass, const std::string& descriptor, in CreateInstance()
165 DoubleLoType* DoubleLoType::CreateInstance(mirror::Class* klass, const std::string& descriptor, in CreateInstance()
185 LongLoType* LongLoType::CreateInstance(mirror::Class* klass, const std::string& descriptor, in CreateInstance()
193 LongHiType* LongHiType::CreateInstance(mirror::Class* klass, const std::string& descriptor, in CreateInstance()
225 FloatType* FloatType::CreateInstance(mirror::Class* klass, const std::string& descriptor, in CreateInstance()
244 CharType* CharType::CreateInstance(mirror::Class* klass, const std::string& descriptor, in CreateInstance()
264 ShortType* ShortType::CreateInstance(mirror::Class* klass, const std::string& descriptor, in CreateInstance()
[all …]
/art/runtime/entrypoints/
Dentrypoint_utils-inl.h40 static inline mirror::Class* CheckObjectAlloc(uint32_t type_idx, in CheckObjectAlloc()
43 mirror::Class* klass = method->GetDexCacheResolvedType<false>(type_idx); in CheckObjectAlloc()
62 mirror::Class* referrer = method->GetDeclaringClass(); in CheckObjectAlloc()
71 Handle<mirror::Class> h_klass(hs.NewHandle(klass)); in CheckObjectAlloc()
93 static inline mirror::Class* CheckClassInitializedForObjectAlloc(mirror::Class* klass, in CheckClassInitializedForObjectAlloc()
98 Handle<mirror::Class> h_class(hs.NewHandle(klass)); in CheckClassInitializedForObjectAlloc()
128 mirror::Class* klass = CheckObjectAlloc<kAccessCheck>(type_idx, method, self, &slow_path); in AllocObjectFromCode()
142 static inline mirror::Object* AllocObjectFromCodeResolved(mirror::Class* klass, in AllocObjectFromCodeResolved()
164 static inline mirror::Object* AllocObjectFromCodeInitialized(mirror::Class* klass, in AllocObjectFromCodeInitialized()
176 static inline mirror::Class* CheckArrayAlloc(uint32_t type_idx, in CheckArrayAlloc()
[all …]
/art/test/087-gc-after-link/src/
DMain.java69 private Class<?> findDexClass(String name) in findDexClass()
73 Class dexClass = null; in findDexClass()
84 getConstructor(new Class[] {String.class}); in findDexClass()
87 new Class[] { String.class, ClassLoader.class }); in findDexClass()
97 Method meth = dexClass.getMethod("close", (Class[]) null); in findDexClass()
120 public Class<?> loadClass(String name, boolean resolve) in loadClass()
/art/test/004-UnsafeTest/
Dunsafe_test.cc29 mirror::Class* klass = soa.Decode<mirror::Class*>(classObj); in Java_Main_vmArrayBaseOffset()
36 mirror::Class* klass = soa.Decode<mirror::Class*>(classObj); in Java_Main_vmArrayIndexScale()
/art/test/086-null-super/src/
DMain.java69 private Class<?> findDexClass(String name) in findDexClass()
78 Class mDexClass = ClassLoader.getSystemClassLoader(). in findDexClass()
81 getConstructor(new Class[] {String.class}); in findDexClass()
85 new Class[] { String.class, ClassLoader.class }); in findDexClass()
111 public Class<?> loadClass(String name, boolean resolve) in loadClass()
/art/compiler/
Dcompiled_class.h26 explicit CompiledClass(mirror::Class::Status status) : status_(status) {} in CompiledClass()
28 mirror::Class::Status GetStatus() const { in GetStatus()
32 const mirror::Class::Status status_;

12345678910