/external/libchrome/base/task_scheduler/ |
D | lazy_task_runner_unittest.cc | 25 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 …]
|
D | sequence_sort_key_unittest.cc | 15 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 …]
|
D | task_traits_unittest.cc | 14 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 …]
|
D | task_scheduler_impl_unittest.cc | 81 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 …]
|
D | task_traits.h | 23 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);
|
D | service_thread.cc | 66 {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()
|
D | task_traits.cc | 15 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 <<()
|
D | scoped_set_task_priority_for_current_thread.cc | 16 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()
|
D | scoped_set_task_priority_for_current_thread_unittest.cc | 15 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()
|
D | sequence.cc | 53 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()
|
D | scoped_set_task_priority_for_current_thread.h | 19 ScopedSetTaskPriorityForCurrentThread(TaskPriority priority); 23 const TaskPriority priority_; 31 BASE_EXPORT TaskPriority GetTaskPriorityForCurrentThread();
|
D | sequence_sort_key.h | 18 SequenceSortKey(TaskPriority priority, TimeTicks next_task_sequenced_time); 20 TaskPriority priority() const { return priority_; } in priority() 42 TaskPriority priority_;
|
D | sequence_unittest.cc | 29 {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()
|
D | priority_queue_unittest.cc | 62 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()
|
D | task_tracker_unittest.cc | 1066 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 …]
|
D | task_traits_unittest.nc | 18 constexpr TaskTraits traits = {TaskPriority::BACKGROUND, 19 TaskPriority::USER_BLOCKING};
|
D | sequence_sort_key.cc | 10 SequenceSortKey::SequenceSortKey(TaskPriority priority, in SequenceSortKey()
|
D | environment_config.cc | 16 traits.priority() == base::TaskPriority::BACKGROUND; in GetEnvironmentIndexForTraits()
|
D | sequence.h | 90 size_t num_tasks_per_priority_[static_cast<int>(TaskPriority::HIGHEST) + 1] =
|
D | scheduler_single_thread_task_runner_manager_unittest.cc | 264 ->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()
|
D | task_tracker.cc | 298 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()
|
D | task_scheduler_impl.cc | 233 DCHECK_NE(traits.priority(), TaskPriority::BACKGROUND); in GetMaxConcurrentNonBlockedTasksWithTraitsDeprecated() 276 ? TaskTraits::Override(traits, {TaskPriority::USER_BLOCKING}) in SetUserBlockingPriorityIfNeeded()
|
D | task_tracker.h | 347 static_cast<int>(TaskPriority::HIGHEST) + 1;
|
/external/libchrome/base/process/ |
D | kill.cc | 45 {TaskPriority::BACKGROUND, TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN}, in EnsureProcessTerminated()
|
/external/libchrome/libchrome_tools/patch/ |
D | mojom_disable_trace_and_mem_dump.patch | 216 - {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});
|