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 art::StackHandleScope<2> hs(soa.Self()); in GetThreadGroupInfo()
99 art::Handle<art::mirror::Class> tg_class = in GetThreadGroupInfo()
100 hs.NewHandle(art::WellKnownClasses::java_lang_ThreadGroup.Get()); in GetThreadGroupInfo()
101 art::Handle<art::mirror::Object> thread_group = in GetThreadGroupInfo()
102 hs.NewHandle(soa.Decode<art::mirror::Object>(group)); in GetThreadGroupInfo()
109 art::ArtField* name_field = art::WellKnownClasses::java_lang_ThreadGroup_name; in GetThreadGroupInfo()
111 art::ObjPtr<art::mirror::String> name_obj = in GetThreadGroupInfo()
112 art::ObjPtr<art::mirror::String>::DownCast(name_field->GetObject(thread_group.Get())); in GetThreadGroupInfo()
131 art::ArtField* parent_field = art::WellKnownClasses::java_lang_ThreadGroup_parent; in GetThreadGroupInfo()
133 art::ObjPtr<art::mirror::Object> parent_group = parent_field->GetObject(thread_group.Get()); in GetThreadGroupInfo()
141 art::ArtField* prio_field = tg_class->FindDeclaredInstanceField("maxPriority", "I"); in GetThreadGroupInfo()
148 art::ArtField* daemon_field = tg_class->FindDeclaredInstanceField("daemon", "Z"); in GetThreadGroupInfo()
157 static bool IsInDesiredThreadGroup(art::Handle<art::mirror::Object> desired_thread_group, in IsInDesiredThreadGroup()
158 art::ObjPtr<art::mirror::Object> peer) in IsInDesiredThreadGroup()
159 REQUIRES_SHARED(art::Locks::mutator_lock_) { in IsInDesiredThreadGroup()
162 art::ArtField* thread_group_field = 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 std::list<art::Thread*> thread_list = art::Runtime::Current()->GetThreadList()->GetList(); in GetThreads()
176 std::vector<art::ThreadExitFlag> tefs(thread_list.size()); in GetThreads()
178 for (art::Thread* thd : thread_list) { in GetThreads()
184 for (art::Thread* t : thread_list) { in GetThreads()
185 art::ThreadExitFlag* tef = &*i++; in GetThreads()
186 art::ObjPtr<art::mirror::Object> peer = t->LockedGetPeerFromOtherThread(tef); in GetThreads()
196 static void GetChildThreadGroups(art::Handle<art::mirror::Object> thread_group, in GetChildThreadGroups()
197 std::vector<art::ObjPtr<art::mirror::Object>>* thread_groups) in GetChildThreadGroups()
198 REQUIRES_SHARED(art::Locks::mutator_lock_) { in GetChildThreadGroups()
202 art::ArtField* groups_field = art::WellKnownClasses::java_lang_ThreadGroup_groups; in GetChildThreadGroups()
203 art::ObjPtr<art::mirror::Object> groups_array = groups_field->GetObject(thread_group.Get()); in GetChildThreadGroups()
210 art::ObjPtr<art::mirror::ObjectArray<art::mirror::Object>> groups_array_as_array = in GetChildThreadGroups()
211 groups_array->AsObjectArray<art::mirror::Object>(); in GetChildThreadGroups()
231 art::ScopedObjectAccess soa(art::Thread::Current()); in GetThreadGroupChildren()
232 art::StackHandleScope<1> hs(soa.Self()); in GetThreadGroupChildren()
233 art::Handle<art::mirror::Object> thread_group = in GetThreadGroupChildren()
234 hs.NewHandle(soa.Decode<art::mirror::Object>(group)); in GetThreadGroupChildren()
235 if (!thread_group->InstanceOf(art::WellKnownClasses::java_lang_ThreadGroup.Get())) { in GetThreadGroupChildren()
240 art::ObjectLock<art::mirror::Object> thread_group_lock(soa.Self(), thread_group); in GetThreadGroupChildren()
242 std::vector<art::ObjPtr<art::mirror::Object>> thread_peers; in GetThreadGroupChildren()
245 std::vector<art::ObjPtr<art::mirror::Object>> thread_groups; in GetThreadGroupChildren()