Lines Matching refs:art

63   art::Runtime* runtime = art::Runtime::Current();  in GetTopThreadGroups()
83 reinterpret_cast<JNIEnv*>(art::Thread::Current()->GetJniEnv())->NewLocalRef(sys_thread_group); in GetTopThreadGroups()
97 art::ScopedObjectAccess soa(art::Thread::Current()); in GetThreadGroupInfo()
98 if (soa.Env()->IsInstanceOf(group, art::WellKnownClasses::java_lang_ThreadGroup) == JNI_FALSE) { in GetThreadGroupInfo()
102 art::ObjPtr<art::mirror::Object> obj = soa.Decode<art::mirror::Object>(group); in GetThreadGroupInfo()
106 art::ArtField* name_field = in GetThreadGroupInfo()
107 art::jni::DecodeArtField(art::WellKnownClasses::java_lang_ThreadGroup_name); in GetThreadGroupInfo()
109 art::ObjPtr<art::mirror::String> name_obj = in GetThreadGroupInfo()
110 art::ObjPtr<art::mirror::String>::DownCast(name_field->GetObject(obj)); in GetThreadGroupInfo()
129 art::ArtField* parent_field = in GetThreadGroupInfo()
130 art::jni::DecodeArtField(art::WellKnownClasses::java_lang_ThreadGroup_parent); in GetThreadGroupInfo()
132 art::ObjPtr<art::mirror::Object> parent_group = parent_field->GetObject(obj); in GetThreadGroupInfo()
140 art::ArtField* prio_field = obj->GetClass()->FindDeclaredInstanceField("maxPriority", "I"); in GetThreadGroupInfo()
147 art::ArtField* daemon_field = obj->GetClass()->FindDeclaredInstanceField("daemon", "Z"); in GetThreadGroupInfo()
156 static bool IsInDesiredThreadGroup(art::Handle<art::mirror::Object> desired_thread_group, in IsInDesiredThreadGroup()
157 art::ObjPtr<art::mirror::Object> peer) in IsInDesiredThreadGroup()
158 REQUIRES_SHARED(art::Locks::mutator_lock_) { in IsInDesiredThreadGroup()
161 art::ArtField* thread_group_field = in IsInDesiredThreadGroup()
162 art::jni::DecodeArtField(art::WellKnownClasses::java_lang_Thread_group); in IsInDesiredThreadGroup()
164 art::ObjPtr<art::mirror::Object> group = thread_group_field->GetObject(peer); in IsInDesiredThreadGroup()
168 static void GetThreads(art::Handle<art::mirror::Object> thread_group, in GetThreads()
169 std::vector<art::ObjPtr<art::mirror::Object>>* thread_peers) in GetThreads()
170 REQUIRES_SHARED(art::Locks::mutator_lock_) REQUIRES(!art::Locks::thread_list_lock_) { in GetThreads()
173 art::MutexLock mu(art::Thread::Current(), *art::Locks::thread_list_lock_); in GetThreads()
174 for (art::Thread* t : art::Runtime::Current()->GetThreadList()->GetList()) { in GetThreads()
178 art::ObjPtr<art::mirror::Object> peer = t->GetPeerFromOtherThread(); in GetThreads()
188 static void GetChildThreadGroups(art::Handle<art::mirror::Object> thread_group, in GetChildThreadGroups()
189 std::vector<art::ObjPtr<art::mirror::Object>>* thread_groups) in GetChildThreadGroups()
190 REQUIRES_SHARED(art::Locks::mutator_lock_) { in GetChildThreadGroups()
194 art::ArtField* groups_field = in GetChildThreadGroups()
195 art::jni::DecodeArtField(art::WellKnownClasses::java_lang_ThreadGroup_groups); in GetChildThreadGroups()
196 art::ObjPtr<art::mirror::Object> groups_array = groups_field->GetObject(thread_group.Get()); in GetChildThreadGroups()
203 art::ObjPtr<art::mirror::ObjectArray<art::mirror::Object>> groups_array_as_array = in GetChildThreadGroups()
204 groups_array->AsObjectArray<art::mirror::Object>(); in GetChildThreadGroups()
208 art::ObjPtr<art::mirror::Object> entry = groups_array_as_array->Get(i); in GetChildThreadGroups()
225 art::ScopedObjectAccess soa(art::Thread::Current()); in GetThreadGroupChildren()
227 if (!soa.Env()->IsInstanceOf(group, art::WellKnownClasses::java_lang_ThreadGroup)) { in GetThreadGroupChildren()
231 art::StackHandleScope<1> hs(soa.Self()); in GetThreadGroupChildren()
232 art::Handle<art::mirror::Object> thread_group = hs.NewHandle( in GetThreadGroupChildren()
233 soa.Decode<art::mirror::Object>(group)); in GetThreadGroupChildren()
235 art::ObjectLock<art::mirror::Object> thread_group_lock(soa.Self(), thread_group); in GetThreadGroupChildren()
237 std::vector<art::ObjPtr<art::mirror::Object>> thread_peers; in GetThreadGroupChildren()
240 std::vector<art::ObjPtr<art::mirror::Object>> thread_groups; in GetThreadGroupChildren()