Lines Matching refs:Self
172 soa.Self()->ThrowNewExceptionF("Ljava/lang/ClassNotFoundException;", in Class_classForName()
178 StackHandleScope<2> hs(soa.Self()); in Class_classForName()
183 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor.c_str(), class_loader))); in Class_classForName()
199 class_linker->EnsureInitialized(soa.Self(), c, true, true); in Class_classForName()
212 StackHandleScope<1> hs(soa.Self()); in Class_getNameNative()
227 StackHandleScope<4> hs(soa.Self()); in Class_getInterfacesInternal()
231 return soa.AddLocalReference<jobjectArray>(klass->GetProxyInterfaces()->Clone(soa.Self())); in Class_getInterfacesInternal()
240 Handle<mirror::Class> class_array_class = hs.NewHandle(GetClassArrayClass(soa.Self())); in Class_getInterfacesInternal()
242 mirror::ObjectArray<mirror::Class>::Alloc(soa.Self(), class_array_class.Get(), num_ifaces)); in Class_getInterfacesInternal()
244 DCHECK(soa.Self()->IsExceptionPending()); in Class_getInterfacesInternal()
325 GetDeclaredFields(soa.Self(), DecodeClass(soa, javaThis), publicOnly != JNI_FALSE, false)); in Class_getDeclaredFieldsUnchecked()
331 GetDeclaredFields(soa.Self(), DecodeClass(soa, javaThis), false, true)); in Class_getDeclaredFields()
337 GetDeclaredFields(soa.Self(), DecodeClass(soa, javaThis), true, true)); in Class_getPublicDeclaredFields()
460 StackHandleScope<1> hs(soa.Self()); in Class_getPublicFieldRecursive()
462 soa.Self(), DecodeClass(soa, javaThis), name_string)); in Class_getPublicFieldRecursive()
464 ShouldBlockAccessToMember(field->GetArtField(), soa.Self())) { in Class_getPublicFieldRecursive()
472 StackHandleScope<3> hs(soa.Self()); in Class_getDeclaredField()
480 hs.NewHandle(GetDeclaredField(soa.Self(), h_klass.Get(), h_string.Get())); in Class_getDeclaredField()
481 if (result == nullptr || ShouldBlockAccessToMember(result->GetArtField(), soa.Self())) { in Class_getDeclaredField()
493 if (!soa.Self()->IsExceptionPending()) { in Class_getDeclaredField()
507 StackHandleScope<1> hs(soa.Self()); in Class_getDeclaredConstructorInternal()
510 soa.Self(), in Class_getDeclaredConstructorInternal()
513 if (result == nullptr || ShouldBlockAccessToMember(result->GetArtMethod(), soa.Self())) { in Class_getDeclaredConstructorInternal()
531 StackHandleScope<2> hs(soa.Self()); in Class_getDeclaredConstructorsInternal()
533 bool enforce_hidden_api = ShouldEnforceHiddenApi(soa.Self()); in Class_getDeclaredConstructorsInternal()
541 soa.Self(), mirror::Constructor::ArrayClass(), constructor_count)); in Class_getDeclaredConstructorsInternal()
543 soa.Self()->AssertPendingException(); in Class_getDeclaredConstructorsInternal()
552 soa.Self(), &m); in Class_getDeclaredConstructorsInternal()
554 soa.Self()->AssertPendingOOMException(); in Class_getDeclaredConstructorsInternal()
566 StackHandleScope<1> hs(soa.Self()); in Class_getDeclaredMethodInternal()
571 soa.Self(), in Class_getDeclaredMethodInternal()
575 if (result == nullptr || ShouldBlockAccessToMember(result->GetArtMethod(), soa.Self())) { in Class_getDeclaredMethodInternal()
584 StackHandleScope<2> hs(soa.Self()); in Class_getDeclaredMethodsUnchecked()
586 bool enforce_hidden_api = ShouldEnforceHiddenApi(soa.Self()); in Class_getDeclaredMethodsUnchecked()
600 soa.Self(), mirror::Method::ArrayClass(), num_methods)); in Class_getDeclaredMethodsUnchecked()
602 soa.Self()->AssertPendingOOMException(); in Class_getDeclaredMethodsUnchecked()
613 mirror::Method::CreateFromArtMethod<kRuntimePointerSize, false>(soa.Self(), &m); in Class_getDeclaredMethodsUnchecked()
615 soa.Self()->AssertPendingException(); in Class_getDeclaredMethodsUnchecked()
626 StackHandleScope<2> hs(soa.Self()); in Class_getDeclaredAnnotation()
645 StackHandleScope<1> hs(soa.Self()); in Class_getDeclaredAnnotations()
652 mirror::ObjectArray<mirror::Object>::Alloc(soa.Self(), in Class_getDeclaredAnnotations()
662 StackHandleScope<1> hs(soa.Self()); in Class_getDeclaredClasses()
670 if (soa.Self()->IsExceptionPending()) { in Class_getDeclaredClasses()
674 ObjPtr<mirror::Class> class_array_class = GetClassArrayClass(soa.Self()); in Class_getDeclaredClasses()
679 mirror::ObjectArray<mirror::Class>::Alloc(soa.Self(), class_array_class, 0); in Class_getDeclaredClasses()
687 StackHandleScope<1> hs(soa.Self()); in Class_getEnclosingClass()
697 StackHandleScope<1> hs(soa.Self()); in Class_getEnclosingConstructorNative()
714 StackHandleScope<1> hs(soa.Self()); in Class_getEnclosingMethodNative()
731 StackHandleScope<1> hs(soa.Self()); in Class_getInnerClassFlags()
738 StackHandleScope<1> hs(soa.Self()); in Class_getInnerClassName()
752 StackHandleScope<1> hs(soa.Self()); in Class_getSignatureAnnotation()
763 StackHandleScope<1> hs(soa.Self()); in Class_isAnonymousClass()
778 StackHandleScope<2> hs(soa.Self()); in Class_isDeclaredAnnotationPresent()
789 StackHandleScope<1> hs(soa.Self()); in Class_getDeclaringClass()
803 StackHandleScope<4> hs(soa.Self()); in Class_newInstance()
807 soa.Self()->ThrowNewExceptionF("Ljava/lang/InstantiationException;", in Class_newInstance()
815 caller.Assign(GetCallingClass(soa.Self(), 1)); in Class_newInstance()
817 soa.Self()->ThrowNewExceptionF( in Class_newInstance()
824 soa.Self(), in Class_newInstance()
827 if (UNLIKELY(constructor == nullptr) || ShouldBlockAccessToMember(constructor, soa.Self())) { in Class_newInstance()
828 soa.Self()->ThrowNewExceptionF("Ljava/lang/InstantiationException;", in Class_newInstance()
836 ObjPtr<mirror::Object> obj = mirror::String::AllocEmptyString<true>(soa.Self(), allocator_type); in Class_newInstance()
837 if (UNLIKELY(soa.Self()->IsExceptionPending())) { in Class_newInstance()
843 auto receiver = hs.NewHandle(klass->AllocObject(soa.Self())); in Class_newInstance()
845 soa.Self()->AssertPendingOOMException(); in Class_newInstance()
852 caller.Assign(GetCallingClass(soa.Self(), 1)); in Class_newInstance()
858 soa.Self()->ThrowNewExceptionF( in Class_newInstance()
867 soa.Self(), hs.NewHandle(declaring_class), true, true)) { in Class_newInstance()
868 soa.Self()->AssertPendingException(); in Class_newInstance()
875 constructor->Invoke(soa.Self(), args, sizeof(args), &result, "V"); in Class_newInstance()
876 if (UNLIKELY(soa.Self()->IsExceptionPending())) { in Class_newInstance()