Searched refs:ThreadPriorityForTest (Results 1 – 12 of 12) sorted by relevance
/aosp_15_r20/external/cronet/base/threading/ |
H A D | scoped_thread_priority_unittest.cc | 39 ASSERT_EQ(ThreadPriorityForTest::kNormal, in SetUp() 46 ThreadPriorityForTest expected_priority) { in FunctionThatBoostsPriorityOnFirstInvoke() 54 EXPECT_EQ(base::ThreadPriorityForTest::kNormal, in FunctionThatBoostsPriorityOnEveryInvoke() 101 EXPECT_EQ(ThreadPriorityForTest::kNormal, in TEST_F() 104 EXPECT_EQ(ThreadPriorityForTest::kNormal, in TEST_F() 117 EXPECT_EQ(ThreadPriorityForTest::kNormal, in TEST_F() 120 EXPECT_EQ(ThreadPriorityForTest::kBackground, in TEST_F() 136 EXPECT_EQ(ThreadPriorityForTest::kNormal, in TEST_F() 140 EXPECT_EQ(ThreadPriorityForTest::kNormal, in TEST_F() 143 EXPECT_EQ(ThreadPriorityForTest::kNormal, in TEST_F() [all …]
|
H A D | platform_thread_unittest.cc | 280 ThreadPriorityForTest priority) in ThreadPriorityTestThread() 299 const ThreadPriorityForTest priority; 324 ThreadPriorityForTest priority) { in TestPriorityResultingFromThreadType() 338 ThreadPriorityForTest GetCurrentThreadPriorityIfStartWithThreadType( in GetCurrentThreadPriorityIfStartWithThreadType() 349 ThreadPriorityForTest priority; in GetCurrentThreadPriorityIfStartWithThreadType() 352 [](ThreadPriorityForTest* priority) { in GetCurrentThreadPriorityIfStartWithThreadType() 362 ThreadPriorityForTest GetCurrentThreadPriorityIfSetThreadTypeLater( in GetCurrentThreadPriorityIfSetThreadTypeLater() 372 ThreadPriorityForTest priority; in GetCurrentThreadPriorityIfSetThreadTypeLater() 376 [](ThreadType thread_type, ThreadPriorityForTest* priority) { in GetCurrentThreadPriorityIfSetThreadTypeLater() 388 ThreadPriorityForTest priority) { in TestPriorityResultingFromThreadType() [all …]
|
H A D | platform_thread_android.cc | 33 {ThreadPriorityForTest::kRealtimeAudio, -16}, 34 {ThreadPriorityForTest::kDisplay, -4}, 35 {ThreadPriorityForTest::kCompositing, -4}, 36 {ThreadPriorityForTest::kNormal, 0}, 37 {ThreadPriorityForTest::kResourceEfficient, 0}, 38 {ThreadPriorityForTest::kUtility, 1}, 39 {ThreadPriorityForTest::kBackground, 10}, 80 std::optional<ThreadPriorityForTest> 85 return std::make_optional(ThreadPriorityForTest::kRealtimeAudio); in GetCurrentThreadPriorityForPlatformForTest()
|
H A D | platform_thread_linux.cc | 108 {ThreadPriorityForTest::kRealtimeAudio, -10}, 109 {ThreadPriorityForTest::kDisplay, -8}, 111 {ThreadPriorityForTest::kCompositing, -8}, 115 {ThreadPriorityForTest::kCompositing, -1}, 117 {ThreadPriorityForTest::kNormal, 0}, 118 {ThreadPriorityForTest::kResourceEfficient, 1}, 119 {ThreadPriorityForTest::kUtility, 2}, 120 {ThreadPriorityForTest::kBackground, 10}, 160 std::optional<ThreadPriorityForTest> 169 return std::make_optional(ThreadPriorityForTest::kRealtimeAudio); in GetCurrentThreadPriorityForPlatformForTest()
|
H A D | platform_thread_win.cc | 457 ThreadPriorityForTest::kBackground) { in SetCurrentThreadPriority() 511 ThreadPriorityForTest PlatformThread::GetCurrentThreadPriorityForTest() { in GetCurrentThreadPriorityForTest() 546 return ThreadPriorityForTest::kBackground; in GetCurrentThreadPriorityForTest() 550 return ThreadPriorityForTest::kUtility; in GetCurrentThreadPriorityForTest() 552 return ThreadPriorityForTest::kNormal; in GetCurrentThreadPriorityForTest() 556 return ThreadPriorityForTest::kDisplay; in GetCurrentThreadPriorityForTest() 559 return ThreadPriorityForTest::kDisplay; in GetCurrentThreadPriorityForTest() 561 return ThreadPriorityForTest::kRealtimeAudio; in GetCurrentThreadPriorityForTest() 567 return ThreadPriorityForTest::kNormal; in GetCurrentThreadPriorityForTest()
|
H A D | platform_thread_fuchsia.cc | 143 ThreadPriorityForTest PlatformThread::GetCurrentThreadPriorityForTest() { in GetCurrentThreadPriorityForTest() 153 return ThreadPriorityForTest::kNormal; in GetCurrentThreadPriorityForTest() 155 return ThreadPriorityForTest::kDisplay; in GetCurrentThreadPriorityForTest() 157 return ThreadPriorityForTest::kRealtimeAudio; in GetCurrentThreadPriorityForTest()
|
H A D | platform_thread_internal_posix.h | 24 ThreadPriorityForTest priority; 65 ThreadPriorityForTest NiceValueToThreadPriorityForTest(int nice_value); 67 std::optional<ThreadPriorityForTest>
|
H A D | platform_thread_apple.mm | 343 ThreadPriorityForTest PlatformThreadBase::GetCurrentThreadPriorityForTest() { 346 return ThreadPriorityForTest::kRealtimeAudio; 354 return ThreadPriorityForTest::kBackground; 356 return ThreadPriorityForTest::kUtility; 358 return ThreadPriorityForTest::kNormal; 360 return ThreadPriorityForTest::kDisplay; 362 return ThreadPriorityForTest::kNormal;
|
H A D | platform_thread_internal_posix.cc | 30 ThreadPriorityForTest NiceValueToThreadPriorityForTest(int nice_value) { in NiceValueToThreadPriorityForTest() 41 return ThreadPriorityForTest::kBackground; in NiceValueToThreadPriorityForTest()
|
H A D | platform_thread.h | 128 enum class ThreadPriorityForTest : int { enum 275 static ThreadPriorityForTest GetCurrentThreadPriorityForTest();
|
H A D | platform_thread_posix.cc | 400 ThreadPriorityForTest PlatformThreadBase::GetCurrentThreadPriorityForTest() { in GetCurrentThreadPriorityForTest() 403 return ThreadPriorityForTest::kNormal; in GetCurrentThreadPriorityForTest()
|
H A D | platform_thread_nacl.cc | 20 std::optional<ThreadPriorityForTest>
|