Home
last modified time | relevance | path

Searched refs:TaskPriority (Results 1 – 8 of 8) 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 …]
Dsequence_unittest.cc22 TaskTraits().WithPriority(TaskPriority::BACKGROUND), in TaskSchedulerSequenceTest()
27 TaskTraits().WithPriority(TaskPriority::USER_VISIBLE), in TaskSchedulerSequenceTest()
32 TaskTraits().WithPriority(TaskPriority::USER_BLOCKING), in TaskSchedulerSequenceTest()
37 TaskTraits().WithPriority(TaskPriority::USER_BLOCKING), in TaskSchedulerSequenceTest()
42 TaskTraits().WithPriority(TaskPriority::BACKGROUND), in TaskSchedulerSequenceTest()
129 EXPECT_EQ(SequenceSortKey(TaskPriority::BACKGROUND, task_a_->sequenced_time), in TEST_F()
136 SequenceSortKey(TaskPriority::USER_VISIBLE, task_a_->sequenced_time), in TEST_F()
143 SequenceSortKey(TaskPriority::USER_BLOCKING, task_a_->sequenced_time), in TEST_F()
150 SequenceSortKey(TaskPriority::USER_BLOCKING, task_a_->sequenced_time), in TEST_F()
157 SequenceSortKey(TaskPriority::USER_BLOCKING, task_b_->sequenced_time), in TEST_F()
[all …]
Dtask_traits.cc18 priority_(TaskPriority::BACKGROUND), in TaskTraits()
28 TaskTraits& TaskTraits::WithPriority(TaskPriority priority) { in WithPriority()
39 std::ostream& operator<<(std::ostream& os, const TaskPriority& task_priority) { in operator <<()
41 case TaskPriority::BACKGROUND: in operator <<()
44 case TaskPriority::USER_VISIBLE: in operator <<()
47 case TaskPriority::USER_BLOCKING: in operator <<()
Dtask_traits.h21 enum class TaskPriority { enum
96 TaskTraits& WithPriority(TaskPriority priority);
105 TaskPriority priority() const { return priority_; } in priority()
112 TaskPriority priority_;
132 const TaskPriority& shutdown_behavior);
Dsequence.cc52 TaskPriority priority = TaskPriority::LOWEST; in GetSortKey()
60 const int highest_priority_index = static_cast<int>(TaskPriority::HIGHEST); in GetSortKey()
61 const int lowest_priority_index = static_cast<int>(TaskPriority::LOWEST); in GetSortKey()
64 priority = static_cast<TaskPriority>(i); in GetSortKey()
Dsequence_sort_key.h18 SequenceSortKey(TaskPriority priority, TimeTicks next_task_sequenced_time);
20 TaskPriority priority() const { return priority_; } in priority()
39 TaskPriority priority_;
Dsequence_sort_key.cc10 SequenceSortKey::SequenceSortKey(TaskPriority priority, in SequenceSortKey()
Dsequence.h70 size_t num_tasks_per_priority_[static_cast<int>(TaskPriority::HIGHEST) + 1] =