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::StackHandleScope<2> hs(soa.Self()); in GetThreadGroupInfo()
103 art::Handle<art::mirror::Class> tg_class( in GetThreadGroupInfo()
104 hs.NewHandle(soa.Decode<art::mirror::Class>(art::WellKnownClasses::java_lang_ThreadGroup))); in GetThreadGroupInfo()
105 art::Handle<art::mirror::Object> obj(hs.NewHandle(soa.Decode<art::mirror::Object>(group))); in GetThreadGroupInfo()
109 art::ArtField* name_field = in GetThreadGroupInfo()
110 art::jni::DecodeArtField(art::WellKnownClasses::java_lang_ThreadGroup_name); in GetThreadGroupInfo()
112 art::ObjPtr<art::mirror::String> name_obj = in GetThreadGroupInfo()
113 art::ObjPtr<art::mirror::String>::DownCast(name_field->GetObject(obj.Get())); in GetThreadGroupInfo()
132 art::ArtField* parent_field = in GetThreadGroupInfo()
133 art::jni::DecodeArtField(art::WellKnownClasses::java_lang_ThreadGroup_parent); in GetThreadGroupInfo()
135 art::ObjPtr<art::mirror::Object> parent_group = parent_field->GetObject(obj.Get()); in GetThreadGroupInfo()
143 art::ArtField* prio_field = tg_class->FindDeclaredInstanceField("maxPriority", "I"); in GetThreadGroupInfo()
150 art::ArtField* daemon_field = tg_class->FindDeclaredInstanceField("daemon", "Z"); in GetThreadGroupInfo()
159 static bool IsInDesiredThreadGroup(art::Handle<art::mirror::Object> desired_thread_group, in IsInDesiredThreadGroup()
160 art::ObjPtr<art::mirror::Object> peer) in IsInDesiredThreadGroup()
161 REQUIRES_SHARED(art::Locks::mutator_lock_) { in IsInDesiredThreadGroup()
164 art::ArtField* thread_group_field = in IsInDesiredThreadGroup()
165 art::jni::DecodeArtField(art::WellKnownClasses::java_lang_Thread_group); in IsInDesiredThreadGroup()
167 art::ObjPtr<art::mirror::Object> group = thread_group_field->GetObject(peer); in IsInDesiredThreadGroup()
171 static void GetThreads(art::Handle<art::mirror::Object> thread_group, in GetThreads()
172 std::vector<art::ObjPtr<art::mirror::Object>>* thread_peers) in GetThreads()
173 REQUIRES_SHARED(art::Locks::mutator_lock_) REQUIRES(!art::Locks::thread_list_lock_) { in GetThreads()
176 art::MutexLock mu(art::Thread::Current(), *art::Locks::thread_list_lock_); in GetThreads()
177 for (art::Thread* t : art::Runtime::Current()->GetThreadList()->GetList()) { in GetThreads()
181 art::ObjPtr<art::mirror::Object> peer = t->GetPeerFromOtherThread(); in GetThreads()
191 static void GetChildThreadGroups(art::Handle<art::mirror::Object> thread_group, in GetChildThreadGroups()
192 std::vector<art::ObjPtr<art::mirror::Object>>* thread_groups) in GetChildThreadGroups()
193 REQUIRES_SHARED(art::Locks::mutator_lock_) { in GetChildThreadGroups()
197 art::ArtField* groups_field = in GetChildThreadGroups()
198 art::jni::DecodeArtField(art::WellKnownClasses::java_lang_ThreadGroup_groups); in GetChildThreadGroups()
199 art::ObjPtr<art::mirror::Object> groups_array = groups_field->GetObject(thread_group.Get()); in GetChildThreadGroups()
206 art::ObjPtr<art::mirror::ObjectArray<art::mirror::Object>> groups_array_as_array = in GetChildThreadGroups()
207 groups_array->AsObjectArray<art::mirror::Object>(); in GetChildThreadGroups()
227 art::ScopedObjectAccess soa(art::Thread::Current()); in GetThreadGroupChildren()
229 if (!soa.Env()->IsInstanceOf(group, art::WellKnownClasses::java_lang_ThreadGroup)) { in GetThreadGroupChildren()
233 art::StackHandleScope<1> hs(soa.Self()); in GetThreadGroupChildren()
234 art::Handle<art::mirror::Object> thread_group = hs.NewHandle( in GetThreadGroupChildren()
235 soa.Decode<art::mirror::Object>(group)); in GetThreadGroupChildren()
237 art::ObjectLock<art::mirror::Object> thread_group_lock(soa.Self(), thread_group); in GetThreadGroupChildren()
239 std::vector<art::ObjPtr<art::mirror::Object>> thread_peers; in GetThreadGroupChildren()
242 std::vector<art::ObjPtr<art::mirror::Object>> thread_groups; in GetThreadGroupChildren()