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()
68 self_->TransitionFromSuspendedToRunnable(); in ~ScopedThreadStateChange()
70 self_->TransitionFromRunnableToSuspended(old_thread_state_); in ~ScopedThreadStateChange()
73 self_->SetState(old_thread_state_); in ~ScopedThreadStateChange()
97 return self_->GetState() == kRunnable; in IsRunnable()
101 : self_(ThreadForEnv(env)), env_(down_cast<JNIEnvExt*>(env)), vm_(env_->GetVm()) {} in ScopedObjectAccessAlreadyRunnable()
104 : self_(self), in ScopedObjectAccessAlreadyRunnable()
125 : self_(self), suspended_state_(suspended_state) { in ScopedThreadSuspension()
126 DCHECK(self_ != nullptr); in ScopedThreadSuspension()
127 self_->TransitionFromRunnableToSuspended(suspended_state); in ScopedThreadSuspension()
131 DCHECK_EQ(self_->GetState(), suspended_state_); in ~ScopedThreadSuspension()
132 self_->TransitionFromSuspendedToRunnable(); in ~ScopedThreadSuspension()