Lines Matching refs:self_
34 : self_(self), thread_state_(new_thread_state), expected_has_no_thread_(false) { in ScopedThreadStateChange()
35 if (UNLIKELY(self_ == nullptr)) { in ScopedThreadStateChange()
39 CHECK(runtime == nullptr || !runtime->IsStarted() || runtime->IsShuttingDown(self_)); in ScopedThreadStateChange()
47 self_->TransitionFromSuspendedToRunnable(); in ScopedThreadStateChange()
49 self_->TransitionFromRunnableToSuspended(new_thread_state); in ScopedThreadStateChange()
52 self_->SetState(new_thread_state); in ScopedThreadStateChange()
59 if (UNLIKELY(self_ == nullptr)) { in ~ScopedThreadStateChange()
64 self_->TransitionFromSuspendedToRunnable(); in ~ScopedThreadStateChange()
66 self_->TransitionFromRunnableToSuspended(old_thread_state_); in ~ScopedThreadStateChange()
69 self_->SetState(old_thread_state_); in ~ScopedThreadStateChange()
93 return self_->GetState() == kRunnable; in IsRunnable()
97 : self_(ThreadForEnv(env)), env_(down_cast<JNIEnvExt*>(env)), vm_(env_->GetVm()) {} in ScopedObjectAccessAlreadyRunnable()
100 : self_(self), in ScopedObjectAccessAlreadyRunnable()
121 : self_(self), suspended_state_(suspended_state) { in ScopedThreadSuspension()
122 DCHECK(self_ != nullptr); in ScopedThreadSuspension()
123 self_->TransitionFromRunnableToSuspended(suspended_state); in ScopedThreadSuspension()
127 DCHECK_EQ(self_->GetState(), suspended_state_); in ~ScopedThreadSuspension()
128 self_->TransitionFromSuspendedToRunnable(); in ~ScopedThreadSuspension()