Lines Matching refs:soa
77 ObjPtr<mirror::Class> FindClassByName(ScopedObjectAccess& soa, const std::string& name) in FindClassByName() argument
79 StackHandleScope<1> hs(soa.Self()); in FindClassByName()
81 hs.NewHandle(soa.Decode<mirror::ClassLoader>(class_loader_))); in FindClassByName()
83 class_linker_->FindClass(soa.Self(), name.c_str(), name.length(), class_loader_handle); in FindClassByName()
85 DCHECK(soa.Self()->IsExceptionPending()); in FindClassByName()
86 soa.Self()->ClearException(); in FindClassByName()
117 void LoadDexFile(ScopedObjectAccess& soa, const char* name1, const char* name2 = nullptr) in LoadDexFile() argument
124 StackHandleScope<1> hs(soa.Self()); in LoadDexFile()
126 hs.NewHandle(soa.Decode<mirror::ClassLoader>(class_loader_)); in LoadDexFile()
133 void LoadDexFile(ScopedObjectAccess& soa) REQUIRES_SHARED(Locks::mutator_lock_) { in LoadDexFile() argument
134 LoadDexFile(soa, "VerifierDeps"); in LoadDexFile()
136 klass_Main_ = FindClassByName(soa, "LMain;"); in LoadDexFile()
141 ScopedObjectAccess soa(Thread::Current()); in VerifyMethod() local
142 LoadDexFile(soa); in VerifyMethod()
144 StackHandleScope<2> hs(soa.Self()); in VerifyMethod()
146 hs.NewHandle(soa.Decode<mirror::ClassLoader>(class_loader_))); in VerifyMethod()
165 soa.Self(), class_linker_, arena_pool, class_loader_handle, primary_dex_file_); in VerifyMethod()
167 MethodVerifier::CreateVerifier(soa.Self(), in VerifyMethod()
178 soa.Self()->SetVerifierDeps(nullptr); in VerifyMethod()
189 ScopedObjectAccess soa(Thread::Current()); in VerifyDexFile() local
190 LoadDexFile(soa, "VerifierDeps", multidex); in VerifyDexFile()
197 ScopedObjectAccess soa(Thread::Current()); in TestAssignabilityRecording() local
198 LoadDexFile(soa); in TestAssignabilityRecording()
199 StackHandleScope<1> hs(soa.Self()); in TestAssignabilityRecording()
200 Handle<mirror::Class> klass_dst = hs.NewHandle(FindClassByName(soa, dst)); in TestAssignabilityRecording()
202 ObjPtr<mirror::Class> klass_src = FindClassByName(soa, src); in TestAssignabilityRecording()
214 ScopedObjectAccess soa(Thread::Current()); in VerifyClassStatus() local
215 StackHandleScope<2> hs(soa.Self()); in VerifyClassStatus()
217 hs.NewHandle(soa.Decode<mirror::ClassLoader>(class_loader_))); in VerifyClassStatus()
224 soa.Self(), *dex_file, dex_file->GetClassDef(i).class_idx_, class_loader_handle)); in VerifyClassStatus()
226 CHECK(soa.Self()->IsExceptionPending()); in VerifyClassStatus()
227 soa.Self()->ClearException(); in VerifyClassStatus()
318 ScopedObjectAccess soa(Thread::Current()); in RunValidation() local
332 StackHandleScope<1> hs(soa.Self()); in RunValidation()
334 hs.NewHandle<mirror::ClassLoader>(soa.Decode<mirror::ClassLoader>(second_loader)); in RunValidation()
336 return decoded_deps.ValidateDependenciesAndUpdateStatus(soa.Self(), in RunValidation()
349 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
350 LoadDexFile(soa); in TEST_F()
539 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
595 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
596 LoadDexFile(soa, "VerifierDeps", multi); in TEST_F()
604 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
605 LoadDexFile(soa, "VerifierDeps", multi); in TEST_F()