/external/libchrome/mojo/public/cpp/base/ |
D | thread_priority_mojom_traits.cc | 10 mojo_base::mojom::ThreadPriority 11 EnumTraits<mojo_base::mojom::ThreadPriority, base::ThreadPriority>::ToMojom( in ToMojom() 12 base::ThreadPriority thread_priority) { in ToMojom() 14 case base::ThreadPriority::BACKGROUND: in ToMojom() 15 return mojo_base::mojom::ThreadPriority::BACKGROUND; in ToMojom() 16 case base::ThreadPriority::NORMAL: in ToMojom() 17 return mojo_base::mojom::ThreadPriority::NORMAL; in ToMojom() 18 case base::ThreadPriority::DISPLAY: in ToMojom() 19 return mojo_base::mojom::ThreadPriority::DISPLAY; in ToMojom() 20 case base::ThreadPriority::REALTIME_AUDIO: in ToMojom() [all …]
|
D | thread_priority_unittest.cc | 11 TEST(ThreadPriorityTest, ThreadPriority) { in TEST() argument 12 static constexpr base::ThreadPriority kTestPriorities[] = { in TEST() 13 base::ThreadPriority::BACKGROUND, base::ThreadPriority::NORMAL, in TEST() 14 base::ThreadPriority::DISPLAY, base::ThreadPriority::REALTIME_AUDIO}; in TEST() 17 base::ThreadPriority priority_out; in TEST() 19 mojo_base::mojom::ThreadPriority serialized_priority = in TEST() 20 mojo::EnumTraits<mojo_base::mojom::ThreadPriority, in TEST() 21 base::ThreadPriority>::ToMojom(priority_in); in TEST() 23 (mojo::EnumTraits<mojo_base::mojom::ThreadPriority, in TEST() 24 base::ThreadPriority>::FromMojom(serialized_priority, in TEST()
|
D | thread_priority_mojom_traits.h | 15 EnumTraits<mojo_base::mojom::ThreadPriority, base::ThreadPriority> { in COMPONENT_EXPORT() 16 static mojo_base::mojom::ThreadPriority ToMojom( in COMPONENT_EXPORT() 17 base::ThreadPriority thread_priority); in COMPONENT_EXPORT() 18 static bool FromMojom(mojo_base::mojom::ThreadPriority input, in COMPONENT_EXPORT() 19 base::ThreadPriority* out); in COMPONENT_EXPORT()
|
D | thread_priority.typemap | 13 type_mappings = [ "mojo_base.mojom.ThreadPriority=base::ThreadPriority" ]
|
/external/libchrome/base/threading/ |
D | platform_thread_linux.cc | 35 ThreadPriority priority) { in ThreadPriorityToCgroupDirectory() 37 case ThreadPriority::NORMAL: in ThreadPriorityToCgroupDirectory() 39 case ThreadPriority::BACKGROUND: in ThreadPriorityToCgroupDirectory() 41 case ThreadPriority::DISPLAY: in ThreadPriorityToCgroupDirectory() 42 case ThreadPriority::REALTIME_AUDIO: in ThreadPriorityToCgroupDirectory() 61 ThreadPriority priority) { in SetThreadCgroupForThreadPriority() 74 ThreadPriority priority) { in SetThreadCgroupsForThreadPriority() 94 {ThreadPriority::BACKGROUND, 10}, 95 {ThreadPriority::NORMAL, 0}, 96 {ThreadPriority::DISPLAY, -8}, [all …]
|
D | platform_thread_unittest.cc | 221 const ThreadPriority kThreadPriorityTestValues[] = { 227 ThreadPriority::REALTIME_AUDIO, 229 ThreadPriority::DISPLAY, 232 ThreadPriority::BACKGROUND, 233 ThreadPriority::NORMAL, 234 ThreadPriority::BACKGROUND}; 238 explicit ThreadPriorityTestThread(ThreadPriority priority) in ThreadPriorityTestThread() 245 EXPECT_EQ(ThreadPriority::NORMAL, in RunTest() 253 const ThreadPriority priority_; 278 PlatformThread::SetCurrentThreadPriority(ThreadPriority::DISPLAY); in TEST() [all …]
|
D | platform_thread_posix.cc | 46 : delegate(nullptr), joinable(false), priority(ThreadPriority::NORMAL) {} in ThreadParams() 50 ThreadPriority priority; 90 ThreadPriority priority) { in CreateThread() 199 ThreadPriority priority) { in CreateWithPriority() 207 ThreadPriority::NORMAL); in CreateNonJoinable() 213 ThreadPriority priority) { in CreateNonJoinableWithPriority() 255 void PlatformThread::SetCurrentThreadPriority(ThreadPriority priority) { in SetCurrentThreadPriority() 277 ThreadPriority PlatformThread::GetCurrentThreadPriority() { in GetCurrentThreadPriority() 280 return ThreadPriority::NORMAL; in GetCurrentThreadPriority() 283 ThreadPriority platform_specific_priority; in GetCurrentThreadPriority() [all …]
|
D | platform_thread_internal_posix.h | 16 ThreadPriority priority; 27 int ThreadPriorityToNiceValue(ThreadPriority priority); 31 BASE_EXPORT ThreadPriority NiceValueToThreadPriority(int nice_value); 37 bool SetCurrentThreadPriorityForPlatform(ThreadPriority priority); 42 bool GetCurrentThreadPriorityForPlatform(ThreadPriority* priority);
|
D | platform_thread.h | 108 enum class ThreadPriority : int { enum 170 ThreadPriority::NORMAL); in Create() 177 ThreadPriority priority); 188 ThreadPriority priority); 216 static void SetCurrentThreadPriority(ThreadPriority priority); 218 static ThreadPriority GetCurrentThreadPriority(); 231 ThreadPriority priority);
|
D | platform_thread_internal_posix.cc | 14 int ThreadPriorityToNiceValue(ThreadPriority priority) { in ThreadPriorityToNiceValue() 23 ThreadPriority NiceValueToThreadPriority(int nice_value) { in NiceValueToThreadPriority() 34 return ThreadPriority::BACKGROUND; in NiceValueToThreadPriority()
|
D | simple_thread.h | 65 explicit Options(ThreadPriority priority_in) : priority(priority_in) {} in Options() 75 ThreadPriority priority = ThreadPriority::NORMAL;
|
D | thread.h | 88 ThreadPriority priority = ThreadPriority::NORMAL;
|
/external/libchrome/base/task_scheduler/ |
D | environment_config.h | 36 ThreadPriority priority_hint; 38 {"Foreground", base::ThreadPriority::NORMAL}, 39 {"ForegroundBlocking", base::ThreadPriority::NORMAL}, 40 {"Background", base::ThreadPriority::BACKGROUND}, 41 {"BackgroundBlocking", base::ThreadPriority::BACKGROUND},
|
D | scheduler_worker_pool_unittest.cc | 116 "TestWorkerPool", "A", ThreadPriority::NORMAL, in CreateWorkerPool()
|
/external/libchrome/mojo/public/mojom/base/ |
D | thread_priority.mojom | 7 // Corresponds to |base::ThreadPriority| 8 enum ThreadPriority {
|
/external/webrtc/webrtc/base/ |
D | platform_thread.h | 38 enum ThreadPriority { enum 72 bool SetPriority(ThreadPriority priority);
|
D | platform_thread.cc | 196 bool PlatformThread::SetPriority(ThreadPriority priority) { in SetPriority()
|
/external/libchrome/base/ |
D | lazy_instance_unittest.cc | 250 base::ThreadPriority thread_priority, in BlockingConstructorThread() 289 base::ThreadPriority::BACKGROUND, &lazy_blocking, base::OnceClosure()); in TEST() 306 base::ThreadPriority::NORMAL, &lazy_blocking, in TEST()
|