Searched refs:CanRunPolicy (Results 1 – 5 of 5) sorted by relevance
/external/cronet/base/task/thread_pool/ |
D | can_run_policy_test.h | 36 task_tracker->SetCanRunPolicy(CanRunPolicy::kNone); in TestCanRunPolicyBasic() 55 task_tracker->SetCanRunPolicy(CanRunPolicy::kForegroundOnly); in TestCanRunPolicyBasic() 62 task_tracker->SetCanRunPolicy(CanRunPolicy::kAll); in TestCanRunPolicyBasic() 84 CanRunPolicy disallow_policy; in TestCanRunPolicyChangedBeforeRun() 86 CanRunPolicy allow_policy; in TestCanRunPolicyChangedBeforeRun() 88 {"BestEffort/kNone/kAll", TaskPriority::BEST_EFFORT, CanRunPolicy::kNone, in TestCanRunPolicyChangedBeforeRun() 89 CanRunPolicy::kAll}, in TestCanRunPolicyChangedBeforeRun() 91 CanRunPolicy::kForegroundOnly, CanRunPolicy::kAll}, in TestCanRunPolicyChangedBeforeRun() 93 CanRunPolicy::kNone, CanRunPolicy::kForegroundOnly}, in TestCanRunPolicyChangedBeforeRun() 95 CanRunPolicy::kNone, CanRunPolicy::kAll}}; in TestCanRunPolicyChangedBeforeRun() [all …]
|
D | task_tracker.h | 38 enum class CanRunPolicy { enum 92 void SetCanRunPolicy(CanRunPolicy can_run_policy); 246 std::atomic<CanRunPolicy> can_run_policy_;
|
D | thread_pool_impl.cc | 556 CanRunPolicy can_run_policy; in UpdateCanRunPolicy() 560 can_run_policy = CanRunPolicy::kAll; in UpdateCanRunPolicy() 562 can_run_policy = CanRunPolicy::kNone; in UpdateCanRunPolicy() 565 can_run_policy = CanRunPolicy::kForegroundOnly; in UpdateCanRunPolicy()
|
D | task_tracker.cc | 220 can_run_policy_(CanRunPolicy::kAll), in TaskTracker() 303 void TaskTracker::SetCanRunPolicy(CanRunPolicy can_run_policy) { in SetCanRunPolicy() 367 if (can_run_policy == CanRunPolicy::kAll) in CanRunPriority() 370 if (can_run_policy == CanRunPolicy::kForegroundOnly && in CanRunPriority()
|
D | thread_group_unittest.cc | 361 task_tracker_.SetCanRunPolicy(CanRunPolicy::kNone); in TEST_F() 368 task_tracker_.SetCanRunPolicy(CanRunPolicy::kForegroundOnly); in TEST_F() 375 task_tracker_.SetCanRunPolicy(CanRunPolicy::kAll); in TEST_F() 692 task_tracker_.SetCanRunPolicy(CanRunPolicy::kNone); in TEST_F() 710 task_tracker_.SetCanRunPolicy(CanRunPolicy::kAll); in TEST_F()
|