Lines Matching refs:self_
31 : self_(self), thread_state_(new_thread_state), expected_has_no_thread_(false) { in ScopedThreadStateChange()
32 if (UNLIKELY(self_ == nullptr)) { in ScopedThreadStateChange()
36 CHECK(runtime == nullptr || !runtime->IsStarted() || runtime->IsShuttingDown(self_)); in ScopedThreadStateChange()
44 self_->TransitionFromSuspendedToRunnable(); in ScopedThreadStateChange()
46 self_->TransitionFromRunnableToSuspended(new_thread_state); in ScopedThreadStateChange()
49 self_->SetState(new_thread_state); in ScopedThreadStateChange()
56 if (UNLIKELY(self_ == nullptr)) { in ~ScopedThreadStateChange()
65 self_->TransitionFromSuspendedToRunnable(); in ~ScopedThreadStateChange()
67 self_->TransitionFromRunnableToSuspended(old_thread_state_); in ~ScopedThreadStateChange()
70 self_->SetState(old_thread_state_); in ~ScopedThreadStateChange()
94 return self_->GetState() == kRunnable; in IsRunnable()
98 : self_(ThreadForEnv(env)), env_(down_cast<JNIEnvExt*>(env)), vm_(env_->vm) {} in ScopedObjectAccessAlreadyRunnable()
101 : self_(self), in ScopedObjectAccessAlreadyRunnable()
122 : self_(self), suspended_state_(suspended_state) { in ScopedThreadSuspension()
123 DCHECK(self_ != nullptr); in ScopedThreadSuspension()
124 self_->TransitionFromRunnableToSuspended(suspended_state); in ScopedThreadSuspension()
128 DCHECK_EQ(self_->GetState(), suspended_state_); in ~ScopedThreadSuspension()
129 self_->TransitionFromSuspendedToRunnable(); in ~ScopedThreadSuspension()