Lines Matching refs:Self

93   StackHandleScope<3> hs(soa.Self());  in Class_classForName()
96 soa.Self()->ThrowNewWrappedException("Ljava/lang/NullPointerException;", /*msg=*/ nullptr); in Class_classForName()
105 soa.Self()->ThrowNewExceptionF("Ljava/lang/ClassNotFoundException;", in Class_classForName()
115 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor.c_str(), class_loader))); in Class_classForName()
117 StackHandleScope<2> hs2(soa.Self()); in Class_classForName()
118 Handle<mirror::Object> cause = hs2.NewHandle(soa.Self()->GetException()); in Class_classForName()
119 soa.Self()->ClearException(); in Class_classForName()
122 hs2, soa.Self(), mirror_name, cause); in Class_classForName()
125 soa.Self()->SetException(ObjPtr<mirror::Throwable>::DownCast(cnfe.Get())); in Class_classForName()
130 class_linker->EnsureInitialized(soa.Self(), c, true, true); in Class_classForName()
141 if (!c->CheckIsVisibleWithTargetSdk(soa.Self())) { in Class_classForName()
142 DCHECK(soa.Self()->IsExceptionPending()); in Class_classForName()
157 StackHandleScope<1> hs(soa.Self()); in Class_getNameNative()
164 StackHandleScope<1> hs(soa.Self()); in Class_getInterfacesInternal()
172 StackHandleScope<1> hs2(soa.Self()); in Class_getInterfacesInternal()
176 mirror::ObjectArray<mirror::Class>::Clone(interfaces, soa.Self())); in Class_getInterfacesInternal()
189 mirror::ObjectArray<mirror::Class>::Alloc(soa.Self(), class_array_class, num_ifaces); in Class_getInterfacesInternal()
191 DCHECK(soa.Self()->IsExceptionPending()); in Class_getInterfacesInternal()
214 klass->GetDeclaredFields(soa.Self(), in Class_getDeclaredFieldsUnchecked()
223 klass->GetDeclaredFields(soa.Self(), in Class_getDeclaredFields()
232 klass->GetDeclaredFields(soa.Self(), in Class_getPublicDeclaredFields()
365 StackHandleScope<1> hs(soa.Self()); in Class_getPublicFieldRecursive()
367 soa.Self(), DecodeClass(soa, javaThis), name_string)); in Class_getPublicFieldRecursive()
368 if (field.Get() == nullptr || ShouldDenyAccessToMember(field->GetArtField(), soa.Self())) { in Class_getPublicFieldRecursive()
376 StackHandleScope<3> hs(soa.Self()); in Class_getDeclaredField()
384 hs.NewHandle(GetDeclaredField(soa.Self(), h_klass.Get(), h_string.Get())); in Class_getDeclaredField()
385 if (result == nullptr || ShouldDenyAccessToMember(result->GetArtField(), soa.Self())) { in Class_getDeclaredField()
397 if (!soa.Self()->IsExceptionPending()) { in Class_getDeclaredField()
411 StackHandleScope<1> hs(soa.Self()); in Class_getDeclaredConstructorInternal()
419 soa.Self(), in Class_getDeclaredConstructorInternal()
422 if (result == nullptr || ShouldDenyAccessToMember(result->GetArtMethod(), soa.Self())) { in Class_getDeclaredConstructorInternal()
441 StackHandleScope<2> hs(soa.Self()); in Class_getDeclaredConstructorsInternal()
443 auto hiddenapi_context = hiddenapi::GetReflectionCallerAccessContext(soa.Self()); in Class_getDeclaredConstructorsInternal()
455 soa.Self(), GetClassRoot<mirror::ObjectArray<mirror::Constructor>>(), constructor_count)); in Class_getDeclaredConstructorsInternal()
457 soa.Self()->AssertPendingException(); in Class_getDeclaredConstructorsInternal()
466 mirror::Constructor::CreateFromArtMethod<kRuntimePointerSize>(soa.Self(), &m); in Class_getDeclaredConstructorsInternal()
468 soa.Self()->AssertPendingOOMException(); in Class_getDeclaredConstructorsInternal()
480 StackHandleScope<1> hs(soa.Self()); in Class_getDeclaredMethodInternal()
490 soa.Self(), in Class_getDeclaredMethodInternal()
494 GetHiddenapiAccessContextFunction(soa.Self()))); in Class_getDeclaredMethodInternal()
495 if (result == nullptr || ShouldDenyAccessToMember(result->GetArtMethod(), soa.Self())) { in Class_getDeclaredMethodInternal()
504 StackHandleScope<2> hs(soa.Self()); in Class_getDeclaredMethodsUnchecked()
506 auto hiddenapi_context = hiddenapi::GetReflectionCallerAccessContext(soa.Self()); in Class_getDeclaredMethodsUnchecked()
524 soa.Self(), GetClassRoot<mirror::ObjectArray<mirror::Method>>(), num_methods)); in Class_getDeclaredMethodsUnchecked()
526 soa.Self()->AssertPendingOOMException(); in Class_getDeclaredMethodsUnchecked()
537 mirror::Method::CreateFromArtMethod<kRuntimePointerSize>(soa.Self(), &m); in Class_getDeclaredMethodsUnchecked()
539 soa.Self()->AssertPendingException(); in Class_getDeclaredMethodsUnchecked()
550 StackHandleScope<2> hs(soa.Self()); in Class_getDeclaredAnnotation()
573 StackHandleScope<1> hs(soa.Self()); in Class_getDeclaredAnnotations()
584 mirror::ObjectArray<mirror::Object>::Alloc(soa.Self(), in Class_getDeclaredAnnotations()
594 StackHandleScope<1> hs(soa.Self()); in Class_getDeclaredClasses()
606 if (soa.Self()->IsExceptionPending()) { in Class_getDeclaredClasses()
613 mirror::ObjectArray<mirror::Class>::Alloc(soa.Self(), class_array_class, 0); in Class_getDeclaredClasses()
621 StackHandleScope<1> hs(soa.Self()); in Class_getEnclosingClass()
635 StackHandleScope<1> hs(soa.Self()); in Class_getEnclosingConstructorNative()
655 StackHandleScope<1> hs(soa.Self()); in Class_getEnclosingMethodNative()
675 StackHandleScope<1> hs(soa.Self()); in Class_getInnerClassFlags()
686 StackHandleScope<3> hs(soa.Self()); in Class_getSimpleNameNative()
723 mirror::String::AllocFromString(soa.Self(), length, h_name, start_index, allocator_type)); in Class_getSimpleNameNative()
728 StackHandleScope<1> hs(soa.Self()); in Class_getSignatureAnnotation()
743 StackHandleScope<1> hs(soa.Self()); in Class_isAnonymousClass()
761 StackHandleScope<1> hs(soa.Self()); in Class_isRecord0()
769 StackHandleScope<2> hs(soa.Self()); in Class_isDeclaredAnnotationPresent()
784 StackHandleScope<1> hs(soa.Self()); in Class_getDeclaringClass()
802 StackHandleScope<1> hs(soa.Self()); in Class_getNestHostFromAnnotation()
820 StackHandleScope<1> hs(soa.Self()); in Class_getNestMembersFromAnnotation()
842 StackHandleScope<2> hs(soa.Self()); in Class_getRecordAnnotationElement()
859 StackHandleScope<1> hs(soa.Self()); in Class_getPermittedSubclassesFromAnnotation()
877 StackHandleScope<2> hs(soa.Self()); in Class_ensureExtDataPresent()
888 StackHandleScope<4> hs(soa.Self()); in Class_newInstance()
896 soa.Self()->ThrowNewExceptionF("Ljava/lang/InstantiationException;", in Class_newInstance()
904 caller.Assign(GetCallingClass(soa.Self(), 1)); in Class_newInstance()
906 soa.Self()->ThrowNewExceptionF( in Class_newInstance()
912 StackArtMethodHandleScope<1> mhs(soa.Self()); in Class_newInstance()
914 soa.Self(), ScopedNullHandle<mirror::ObjectArray<mirror::Class>>(), kRuntimePointerSize))); in Class_newInstance()
915 if (UNLIKELY(constructor == nullptr) || ShouldDenyAccessToMember(constructor.Get(), soa.Self())) { in Class_newInstance()
916 soa.Self()->ThrowNewExceptionF("Ljava/lang/InstantiationException;", in Class_newInstance()
924 ObjPtr<mirror::Object> obj = mirror::String::AllocEmptyString(soa.Self(), allocator_type); in Class_newInstance()
925 if (UNLIKELY(soa.Self()->IsExceptionPending())) { in Class_newInstance()
931 auto receiver = hs.NewHandle(klass->AllocObject(soa.Self())); in Class_newInstance()
933 soa.Self()->AssertPendingOOMException(); in Class_newInstance()
940 caller.Assign(GetCallingClass(soa.Self(), 1)); in Class_newInstance()
946 soa.Self()->ThrowNewExceptionF( in Class_newInstance()
954 Thread* self = soa.Self(); in Class_newInstance()
966 constructor->Invoke(soa.Self(), args, sizeof(args), &result, "V"); in Class_newInstance()
967 if (UNLIKELY(soa.Self()->IsExceptionPending())) { in Class_newInstance()