Lines Matching refs:art

63 bool ClassLoaderHelper::AddToClassLoader(art::Thread* self,  in AddToClassLoader()
64 art::Handle<art::mirror::ClassLoader> loader, in AddToClassLoader()
65 const art::DexFile* dex_file) { in AddToClassLoader()
66 art::ScopedObjectAccessUnchecked soa(self); in AddToClassLoader()
67 art::StackHandleScope<3> hs(self); in AddToClassLoader()
68 if (art::ClassLinker::IsBootClassLoader(soa, loader.Get())) { in AddToClassLoader()
69 art::Runtime::Current()->GetClassLinker()->AppendToBootClassPath(self, dex_file); in AddToClassLoader()
72 art::Handle<art::mirror::Object> java_dex_file_obj( in AddToClassLoader()
77 art::Handle<art::mirror::LongArray> old_cookie(hs.NewHandle(GetDexFileCookie(java_dex_file_obj))); in AddToClassLoader()
78 art::Handle<art::mirror::LongArray> cookie(hs.NewHandle( in AddToClassLoader()
83 art::ScopedAssertNoThreadSuspension nts("Replacing cookie fields in j.l.DexFile object"); in AddToClassLoader()
88 void ClassLoaderHelper::UpdateJavaDexFile(art::ObjPtr<art::mirror::Object> java_dex_file, in UpdateJavaDexFile()
89 art::ObjPtr<art::mirror::LongArray> new_cookie) { in UpdateJavaDexFile()
90 art::ArtField* internal_cookie_field = java_dex_file->GetClass()->FindDeclaredInstanceField( in UpdateJavaDexFile()
92 art::ArtField* cookie_field = java_dex_file->GetClass()->FindDeclaredInstanceField( in UpdateJavaDexFile()
95 art::ObjPtr<art::mirror::LongArray> orig_cookie( in UpdateJavaDexFile()
103 art::ObjPtr<art::mirror::LongArray> ClassLoaderHelper::GetDexFileCookie( in GetDexFileCookie()
104 art::Handle<art::mirror::Object> java_dex_file_obj) { in GetDexFileCookie()
108 art::ArtField* internal_cookie_field = java_dex_file_obj->GetClass()->FindDeclaredInstanceField( in GetDexFileCookie()
115 art::ObjPtr<art::mirror::LongArray> ClassLoaderHelper::AllocateNewDexFileCookie( in AllocateNewDexFileCookie()
116 art::Thread* self, in AllocateNewDexFileCookie()
117 art::Handle<art::mirror::LongArray> cookie, in AllocateNewDexFileCookie()
118 const art::DexFile* dex_file) { in AllocateNewDexFileCookie()
119 art::StackHandleScope<1> hs(self); in AllocateNewDexFileCookie()
122 art::Handle<art::mirror::LongArray> new_cookie( in AllocateNewDexFileCookie()
123 hs.NewHandle(art::mirror::LongArray::Alloc(self, cookie->GetLength() + 1))); in AllocateNewDexFileCookie()
137 art::ObjPtr<art::mirror::ObjectArray<art::mirror::Object>> ClassLoaderHelper::GetDexElementList( in GetDexElementList()
138 art::Thread* self, in GetDexElementList()
139 art::Handle<art::mirror::ClassLoader> loader) { in GetDexElementList()
140 art::StackHandleScope<4> hs(self); in GetDexElementList()
142 art::Handle<art::mirror::Class> in GetDexElementList()
144 art::WellKnownClasses::dalvik_system_BaseDexClassLoader)->AsClass())); in GetDexElementList()
147 art::ArtField* path_list_field = art::jni::DecodeArtField( in GetDexElementList()
148 art::WellKnownClasses::dalvik_system_BaseDexClassLoader_pathList); in GetDexElementList()
149 art::ArtField* dex_path_list_element_field = in GetDexElementList()
150 art::jni::DecodeArtField(art::WellKnownClasses::dalvik_system_DexPathList_dexElements); in GetDexElementList()
153 art::Handle<art::mirror::Class> loader_class(hs.NewHandle(loader->GetClass())); in GetDexElementList()
163 art::Handle<art::mirror::Object> path_list( in GetDexElementList()
166 art::ObjPtr<art::mirror::ObjectArray<art::mirror::Object>> dex_elements_list = in GetDexElementList()
167 dex_path_list_element_field->GetObject(path_list.Get())->AsObjectArray<art::mirror::Object>(); in GetDexElementList()
172 art::ObjPtr<art::mirror::Object> ClassLoaderHelper::FindSourceDexFileObject( in FindSourceDexFileObject()
173 art::Thread* self, art::Handle<art::mirror::ClassLoader> loader) { in FindSourceDexFileObject()
174 art::ObjPtr<art::mirror::Object> res = nullptr; in FindSourceDexFileObject()
177 [&] (art::ObjPtr<art::mirror::Object> dex_file) { in FindSourceDexFileObject()