Home
last modified time | relevance | path

Searched refs:TaskPriority (Results 1 – 18 of 18) sorted by relevance

/external/libchrome/base/task_scheduler/
Dsequence_sort_key_unittest.cc15 SequenceSortKey key_a(TaskPriority::USER_BLOCKING, in TEST()
17 SequenceSortKey key_b(TaskPriority::USER_BLOCKING, in TEST()
19 SequenceSortKey key_c(TaskPriority::USER_VISIBLE, in TEST()
21 SequenceSortKey key_d(TaskPriority::USER_VISIBLE, in TEST()
23 SequenceSortKey key_e(TaskPriority::BACKGROUND, in TEST()
25 SequenceSortKey key_f(TaskPriority::BACKGROUND, in TEST()
72 SequenceSortKey key_a(TaskPriority::USER_BLOCKING, in TEST()
74 SequenceSortKey key_b(TaskPriority::USER_BLOCKING, in TEST()
76 SequenceSortKey key_c(TaskPriority::USER_VISIBLE, in TEST()
78 SequenceSortKey key_d(TaskPriority::USER_VISIBLE, in TEST()
[all …]
Dlazy_task_runner_unittest.cc25 LAZY_SEQUENCED_TASK_RUNNER_INITIALIZER({TaskPriority::USER_VISIBLE});
27 LAZY_SEQUENCED_TASK_RUNNER_INITIALIZER({TaskPriority::USER_BLOCKING});
31 {TaskPriority::USER_VISIBLE},
35 {TaskPriority::USER_BLOCKING},
41 {TaskPriority::USER_VISIBLE},
45 {TaskPriority::USER_BLOCKING},
59 TaskPriority expected_priority) { in ExpectSequencedEnvironment()
67 TaskPriority expected_priority in ExpectSingleThreadEnvironment()
89 TaskPriority expected_priority in TestTaskRunnerEnvironment()
130 TaskPriority::USER_VISIBLE); in TEST_F()
[all …]
Dtask_traits_unittest.cc14 EXPECT_EQ(TaskPriority::USER_VISIBLE, traits.priority()); in TEST()
20 TEST(TaskSchedulerTaskTraitsTest, TaskPriority) { in TEST() argument
21 constexpr TaskTraits traits = {TaskPriority::BACKGROUND}; in TEST()
23 EXPECT_EQ(TaskPriority::BACKGROUND, traits.priority()); in TEST()
32 EXPECT_EQ(TaskPriority::USER_VISIBLE, traits.priority()); in TEST()
41 EXPECT_EQ(TaskPriority::USER_VISIBLE, traits.priority()); in TEST()
50 EXPECT_EQ(TaskPriority::USER_VISIBLE, traits.priority()); in TEST()
57 constexpr TaskTraits traits = {TaskPriority::BACKGROUND, in TEST()
61 EXPECT_EQ(TaskPriority::BACKGROUND, traits.priority()); in TEST()
68 constexpr TaskTraits traits = {TaskPriority::BACKGROUND, in TEST()
[all …]
Dtask_traits.h23 enum class TaskPriority { enum
121 ValidTrait(TaskPriority) {} in ValidTrait()
153 internal::HasArgOfType<TaskPriority, ArgTypes...>::value), in TaskTraits()
155 internal::EnumArgGetter<TaskPriority, TaskPriority::USER_VISIBLE>(), in TaskTraits()
187 constexpr TaskPriority priority() const { return priority_; } in priority()
224 TaskPriority priority_;
233 BASE_EXPORT const char* TaskPriorityToString(TaskPriority task_priority);
240 const TaskPriority& shutdown_behavior);
Dservice_thread.cc66 {TaskPriority::BACKGROUND}, {TaskPriority::BACKGROUND, MayBlock()}, in PerformHeartbeatLatencyReport()
67 {TaskPriority::USER_VISIBLE}, {TaskPriority::USER_VISIBLE, MayBlock()}, in PerformHeartbeatLatencyReport()
68 {TaskPriority::USER_BLOCKING}, {TaskPriority::USER_BLOCKING, MayBlock()}}; in PerformHeartbeatLatencyReport()
Dtask_traits.cc15 const char* TaskPriorityToString(TaskPriority task_priority) { in TaskPriorityToString()
17 case TaskPriority::BACKGROUND: in TaskPriorityToString()
19 case TaskPriority::USER_VISIBLE: in TaskPriorityToString()
21 case TaskPriority::USER_BLOCKING: in TaskPriorityToString()
42 std::ostream& operator<<(std::ostream& os, const TaskPriority& task_priority) { in operator <<()
Dscoped_set_task_priority_for_current_thread.cc16 LazyInstance<ThreadLocalPointer<const TaskPriority>>::Leaky
22 TaskPriority priority) in ScopedSetTaskPriorityForCurrentThread()
34 TaskPriority GetTaskPriorityForCurrentThread() { in GetTaskPriorityForCurrentThread()
35 const TaskPriority* priority = in GetTaskPriorityForCurrentThread()
37 return priority ? *priority : TaskPriority::USER_VISIBLE; in GetTaskPriorityForCurrentThread()
Dscoped_set_task_priority_for_current_thread_unittest.cc15 EXPECT_EQ(TaskPriority::USER_VISIBLE, GetTaskPriorityForCurrentThread()); in TEST()
19 TaskPriority::USER_BLOCKING); in TEST()
20 EXPECT_EQ(TaskPriority::USER_BLOCKING, GetTaskPriorityForCurrentThread()); in TEST()
22 EXPECT_EQ(TaskPriority::USER_VISIBLE, GetTaskPriorityForCurrentThread()); in TEST()
Dsequence.cc53 TaskPriority priority = TaskPriority::LOWEST; in GetSortKey()
61 const int highest_priority_index = static_cast<int>(TaskPriority::HIGHEST); in GetSortKey()
62 const int lowest_priority_index = static_cast<int>(TaskPriority::LOWEST); in GetSortKey()
65 priority = static_cast<TaskPriority>(i); in GetSortKey()
Dscoped_set_task_priority_for_current_thread.h19 ScopedSetTaskPriorityForCurrentThread(TaskPriority priority);
23 const TaskPriority priority_;
31 BASE_EXPORT TaskPriority GetTaskPriorityForCurrentThread();
Dsequence_sort_key.h18 SequenceSortKey(TaskPriority priority, TimeTicks next_task_sequenced_time);
20 TaskPriority priority() const { return priority_; } in priority()
42 TaskPriority priority_;
Dsequence_unittest.cc29 {TaskPriority::BACKGROUND}, TimeDelta()); in CreateTask()
100 Task background_task(FROM_HERE, DoNothing(), {TaskPriority::BACKGROUND}, in TEST()
113 EXPECT_EQ(TaskPriority::BACKGROUND, background_sort_key.priority()); in TEST()
125 Task foreground_task(FROM_HERE, DoNothing(), {TaskPriority::USER_VISIBLE}, in TEST()
138 EXPECT_EQ(TaskPriority::USER_VISIBLE, foreground_sort_key.priority()); in TEST()
Dtask_traits_unittest.nc18 constexpr TaskTraits traits = {TaskPriority::BACKGROUND,
19 TaskPriority::USER_BLOCKING};
Dsequence_sort_key.cc10 SequenceSortKey::SequenceSortKey(TaskPriority priority, in SequenceSortKey()
Denvironment_config.cc16 traits.priority() == base::TaskPriority::BACKGROUND; in GetEnvironmentIndexForTraits()
Dsequence.h90 size_t num_tasks_per_priority_[static_cast<int>(TaskPriority::HIGHEST) + 1] =
/external/libchrome/libchrome_tools/patch/
Dmojom_disable_trace_and_mem_dump.patch216 - {base::MayBlock(), base::TaskPriority::USER_BLOCKING,
220 + // {base::MayBlock(), base::TaskPriority::USER_BLOCKING,
241 - {base::MayBlock(), base::TaskPriority::BACKGROUND});
250 + // {base::MayBlock(), base::TaskPriority::BACKGROUND});
/external/libchrome/base/process/
Dkill.cc45 {TaskPriority::BACKGROUND, TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN}, in EnsureProcessTerminated()