Lines Matching refs:klass
206 ObjPtr<mirror::Class> klass = mirror::Class::GetPrimitiveClass(soa.Decode<mirror::String>(name)); in Class_getPrimitiveClass() local
207 return soa.AddLocalReference<jclass>(klass); in Class_getPrimitiveClass()
220 Handle<mirror::Class> klass = hs.NewHandle(DecodeClass(soa, javaThis)); in Class_getInterfacesInternal() local
222 if (klass->IsProxyClass()) { in Class_getInterfacesInternal()
223 return soa.AddLocalReference<jobjectArray>(klass->GetProxyInterfaces()->Clone(soa.Self())); in Class_getInterfacesInternal()
226 const dex::TypeList* iface_list = klass->GetInterfaceTypeList(); in Class_getInterfacesInternal()
248 ObjPtr<mirror::Class> interface = linker->LookupResolvedType(type_idx, klass.Get()); in Class_getInterfacesInternal()
258 ObjPtr<mirror::Class> klass, in GetDeclaredFields() argument
262 IterationRange<StrideIterator<ArtField>> ifields = klass->GetIFields(); in GetDeclaredFields()
263 IterationRange<StrideIterator<ArtField>> sfields = klass->GetSFields(); in GetDeclaredFields()
264 size_t array_size = klass->NumInstanceFields() + klass->NumStaticFields(); in GetDeclaredFields()
583 Handle<mirror::Class> klass = hs.NewHandle(DecodeClass(soa, javaThis)); in Class_getDeclaredMethodsUnchecked() local
585 for (ArtMethod& m : klass->GetDeclaredMethods(kRuntimePointerSize)) { in Class_getDeclaredMethodsUnchecked()
600 for (ArtMethod& m : klass->GetDeclaredMethods(kRuntimePointerSize)) { in Class_getDeclaredMethodsUnchecked()
621 Handle<mirror::Class> klass(hs.NewHandle(DecodeClass(soa, javaThis))); in Class_getDeclaredAnnotation() local
629 if (klass->IsProxyClass() || klass->GetDexCache() == nullptr) { in Class_getDeclaredAnnotation()
634 annotations::GetAnnotationForClass(klass, annotation_class)); in Class_getDeclaredAnnotation()
640 Handle<mirror::Class> klass(hs.NewHandle(DecodeClass(soa, javaThis))); in Class_getDeclaredAnnotations() local
641 if (klass->IsProxyClass() || klass->GetDexCache() == nullptr) { in Class_getDeclaredAnnotations()
651 return soa.AddLocalReference<jobjectArray>(annotations::GetAnnotationsForClass(klass)); in Class_getDeclaredAnnotations()
657 Handle<mirror::Class> klass(hs.NewHandle(DecodeClass(soa, javaThis))); in Class_getDeclaredClasses() local
659 if (!klass->IsProxyClass() && klass->GetDexCache() != nullptr) { in Class_getDeclaredClasses()
660 classes = annotations::GetDeclaredClasses(klass); in Class_getDeclaredClasses()
680 Handle<mirror::Class> klass(hs.NewHandle(DecodeClass(soa, javaThis))); in Class_getEnclosingClass() local
681 if (klass->IsProxyClass() || klass->GetDexCache() == nullptr) { in Class_getEnclosingClass()
684 return soa.AddLocalReference<jclass>(annotations::GetEnclosingClass(klass)); in Class_getEnclosingClass()
690 Handle<mirror::Class> klass(hs.NewHandle(DecodeClass(soa, javaThis))); in Class_getEnclosingConstructorNative() local
691 if (klass->IsProxyClass() || klass->GetDexCache() == nullptr) { in Class_getEnclosingConstructorNative()
694 ObjPtr<mirror::Object> method = annotations::GetEnclosingMethod(klass); in Class_getEnclosingConstructorNative()
706 Handle<mirror::Class> klass(hs.NewHandle(DecodeClass(soa, javaThis))); in Class_getEnclosingMethodNative() local
707 if (klass->IsProxyClass() || klass->GetDexCache() == nullptr) { in Class_getEnclosingMethodNative()
710 ObjPtr<mirror::Object> method = annotations::GetEnclosingMethod(klass); in Class_getEnclosingMethodNative()
722 Handle<mirror::Class> klass(hs.NewHandle(DecodeClass(soa, javaThis))); in Class_getInnerClassFlags() local
723 return mirror::Class::GetInnerClassFlags(klass, defaultValue); in Class_getInnerClassFlags()
729 Handle<mirror::Class> klass(hs.NewHandle(DecodeClass(soa, javaThis))); in Class_getInnerClassName() local
730 if (klass->IsProxyClass() || klass->GetDexCache() == nullptr) { in Class_getInnerClassName()
734 if (!annotations::GetInnerClass(klass, &class_name)) { in Class_getInnerClassName()
743 Handle<mirror::Class> klass(hs.NewHandle(DecodeClass(soa, javaThis))); in Class_getSignatureAnnotation() local
744 if (klass->IsProxyClass() || klass->GetDexCache() == nullptr) { in Class_getSignatureAnnotation()
748 annotations::GetSignatureAnnotationForClass(klass)); in Class_getSignatureAnnotation()
754 Handle<mirror::Class> klass(hs.NewHandle(DecodeClass(soa, javaThis))); in Class_isAnonymousClass() local
755 if (klass->IsProxyClass() || klass->GetDexCache() == nullptr) { in Class_isAnonymousClass()
759 if (!annotations::GetInnerClass(klass, &class_name)) { in Class_isAnonymousClass()
769 Handle<mirror::Class> klass(hs.NewHandle(DecodeClass(soa, javaThis))); in Class_isDeclaredAnnotationPresent() local
770 if (klass->IsProxyClass() || klass->GetDexCache() == nullptr) { in Class_isDeclaredAnnotationPresent()
774 return annotations::IsClassAnnotationPresent(klass, annotation_class); in Class_isDeclaredAnnotationPresent()
780 Handle<mirror::Class> klass(hs.NewHandle(DecodeClass(soa, javaThis))); in Class_getDeclaringClass() local
781 if (klass->IsProxyClass() || klass->GetDexCache() == nullptr) { in Class_getDeclaringClass()
788 return soa.AddLocalReference<jclass>(annotations::GetDeclaringClass(klass)); in Class_getDeclaringClass()
794 Handle<mirror::Class> klass = hs.NewHandle(DecodeClass(soa, javaThis)); in Class_newInstance() local
795 if (UNLIKELY(klass->GetPrimitiveType() != 0 || klass->IsInterface() || klass->IsArrayClass() || in Class_newInstance()
796 klass->IsAbstract())) { in Class_newInstance()
799 klass->PrettyClass().c_str()); in Class_newInstance()
804 if (!klass->IsPublic()) { in Class_newInstance()
806 if (caller != nullptr && !caller->CanAccess(klass.Get())) { in Class_newInstance()
809 klass->PrettyClass().c_str(), caller->PrettyClass().c_str()); in Class_newInstance()
813 ArtMethod* constructor = klass->GetDeclaredConstructor( in Class_newInstance()
820 klass->PrettyClass().c_str()); in Class_newInstance()
824 if (klass->IsStringClass()) { in Class_newInstance()
833 auto receiver = hs.NewHandle(klass->AllocObject(soa.Self())); in Class_newInstance()