Home
last modified time | relevance | path

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

12

/external/libchrome/base/task_scheduler/
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 …]
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 …]
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_scheduler_impl_unittest.cc81 traits.priority() == TaskPriority::BACKGROUND in VerifyTaskEnvironment()
102 current_thread_name.find(traits.priority() == TaskPriority::BACKGROUND in VerifyTaskEnvironment()
109 traits.priority() == TaskPriority::BACKGROUND in VerifyTaskEnvironment()
196 for (size_t priority_index = static_cast<size_t>(TaskPriority::LOWEST); in GetTraitsExecutionModePairs()
197 priority_index <= static_cast<size_t>(TaskPriority::HIGHEST); in GetTraitsExecutionModePairs()
199 const TaskPriority priority = static_cast<TaskPriority>(priority_index); in GetTraitsExecutionModePairs()
394 {TaskPriority::USER_BLOCKING}), in TEST_P()
412 {TaskPriority::USER_BLOCKING}), in TEST_P()
474 {TaskPriority::BACKGROUND}); in TEST_F()
478 {MayBlock(), TaskPriority::BACKGROUND}); in TEST_F()
[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()
Dpriority_queue_unittest.cc62 TaskTraits(TaskPriority::USER_VISIBLE), in TEST()
68 TaskTraits(TaskPriority::USER_BLOCKING), in TEST()
74 TaskTraits(TaskPriority::USER_BLOCKING), in TEST()
80 TaskTraits(TaskPriority::BACKGROUND), TimeDelta())); in TEST()
Dtask_tracker_unittest.cc1066 Task task(FROM_HERE, DoNothing(), TaskTraits(TaskPriority::BACKGROUND), in TEST_F()
1090 TaskTraits(TaskPriority::BACKGROUND), TimeDelta()); in TEST_F()
1146 TaskTraits(TaskPriority::BACKGROUND), TimeDelta()); in TEST_F()
1158 TaskTraits(TaskPriority::BACKGROUND), TimeDelta()); in TEST_F()
1172 TaskTraits(TaskPriority::BACKGROUND), TimeDelta()); in TEST_F()
1213 TaskTraits(TaskPriority::BACKGROUND, in TEST_F()
1320 {{TaskPriority::BACKGROUND}, in TEST()
1323 {{MayBlock(), TaskPriority::BACKGROUND}, in TEST()
1326 {{WithBaseSyncPrimitives(), TaskPriority::BACKGROUND}, in TEST()
1329 {{TaskPriority::USER_VISIBLE}, in TEST()
[all …]
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] =
Dscheduler_single_thread_task_runner_manager_unittest.cc264 ->CreateSingleThreadTaskRunnerWithTraits({TaskPriority::BACKGROUND}, in TEST_P()
268 ->CreateSingleThreadTaskRunnerWithTraits({TaskPriority::USER_VISIBLE}, in TEST_P()
298 constexpr TaskTraits foo_traits = {TaskPriority::BACKGROUND, in TEST_P()
308 TaskPriority::USER_BLOCKING, MayBlock(), in TEST_P()
Dtask_tracker.cc298 DCHECK(*(&task_latency_histograms_[static_cast<int>(TaskPriority::HIGHEST) +
368 if (sort_key.priority() != TaskPriority::BACKGROUND) in WillScheduleSequence()
400 const TaskPriority task_priority = task->traits.priority(); in RunAndPopNextTask()
418 if (task_priority == TaskPriority::BACKGROUND) { in RunAndPopNextTask()
Dtask_scheduler_impl.cc233 DCHECK_NE(traits.priority(), TaskPriority::BACKGROUND); in GetMaxConcurrentNonBlockedTasksWithTraitsDeprecated()
276 ? TaskTraits::Override(traits, {TaskPriority::USER_BLOCKING}) in SetUserBlockingPriorityIfNeeded()
Dtask_tracker.h347 static_cast<int>(TaskPriority::HIGHEST) + 1;
/external/libchrome/base/process/
Dkill.cc45 {TaskPriority::BACKGROUND, TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN}, in EnsureProcessTerminated()
/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});

12