Lines Matching refs:cb_

105     Runtime::Current()->GetRuntimeCallbacks()->AddThreadLifecycleCallback(&cb_);  in AddListener()
108 Runtime::Current()->GetRuntimeCallbacks()->RemoveThreadLifecycleCallback(&cb_); in RemoveListener()
149 Callback cb_; member in art::ThreadLifecycleCallbackRuntimeCallbacksTest
165 cb_.state = CallbackState::kBase; // Ignore main thread attach. in TEST_F()
196 EXPECT_EQ(cb_.state, CallbackState::kDied); in TEST_F()
224 EXPECT_TRUE(cb_.state == CallbackState::kStarted) << static_cast<int>(cb_.state); in TEST_F()
230 Runtime::Current()->GetRuntimeCallbacks()->AddClassLoadCallback(&cb_); in AddListener()
233 Runtime::Current()->GetRuntimeCallbacks()->RemoveClassLoadCallback(&cb_); in RemoveListener()
237 if (cb_.data.size() != list.size()) { in Expect()
242 if (!std::equal(cb_.data.begin(), cb_.data.end(), list.begin())) { in Expect()
256 for (const auto& s : cb_.data) { in PrintError()
294 Callback cb_; member in art::ClassLoadCallbackRuntimeCallbacksTest
300 cb_.data.clear(); // Clear class loading records from `LoadDex()`, if any. in TEST_F()
318 cb_.data.clear(); in TEST_F()
331 Runtime::Current()->GetRuntimeCallbacks()->AddRuntimeSigQuitCallback(&cb_); in AddListener()
334 Runtime::Current()->GetRuntimeCallbacks()->RemoveRuntimeSigQuitCallback(&cb_); in RemoveListener()
345 Callback cb_; member in art::RuntimeSigQuitCallbackRuntimeCallbacksTest
356 EXPECT_EQ(0u, cb_.sigquit_count); in TEST_F()
362 if (cb_.sigquit_count == 0) { in TEST_F()
368 EXPECT_EQ(1u, cb_.sigquit_count); in TEST_F()
374 Runtime::Current()->GetRuntimeCallbacks()->AddRuntimePhaseCallback(&cb_); in AddListener()
377 Runtime::Current()->GetRuntimeCallbacks()->RemoveRuntimePhaseCallback(&cb_); in RemoveListener()
412 Callback cb_; member in art::RuntimePhaseCallbackRuntimeCallbacksTest
416 ASSERT_EQ(0u, cb_.initial_agents_seen); in TEST_F()
417 ASSERT_EQ(0u, cb_.start_seen); in TEST_F()
418 ASSERT_EQ(0u, cb_.init_seen); in TEST_F()
419 ASSERT_EQ(0u, cb_.death_seen); in TEST_F()
429 ASSERT_EQ(0u, cb_.initial_agents_seen); in TEST_F()
430 ASSERT_EQ(1u, cb_.start_seen); in TEST_F()
431 ASSERT_EQ(1u, cb_.init_seen); in TEST_F()
432 ASSERT_EQ(0u, cb_.death_seen); in TEST_F()
437 ASSERT_EQ(0u, cb_.initial_agents_seen); in TEST_F()
438 ASSERT_EQ(1u, cb_.start_seen); in TEST_F()
439 ASSERT_EQ(1u, cb_.init_seen); in TEST_F()
440 ASSERT_EQ(1u, cb_.death_seen); in TEST_F()
446 Runtime::Current()->GetRuntimeCallbacks()->AddMonitorCallback(&cb_); in AddListener()
449 Runtime::Current()->GetRuntimeCallbacks()->RemoveMonitorCallback(&cb_); in RemoveListener()
497 Callback cb_; member in art::MonitorWaitCallbacksTest
503 ASSERT_FALSE(cb_.saw_wait_finished_); in TEST_F()
504 ASSERT_FALSE(cb_.saw_wait_start_); in TEST_F()
512 cb_.SetInterestingObject(WellKnownClasses::java_util_Collections.Get()); in TEST_F()
523 ASSERT_TRUE(cb_.saw_wait_start_); in TEST_F()
524 ASSERT_FALSE(cb_.saw_wait_finished_); in TEST_F()