Home
last modified time | relevance | path

Searched refs:gpu_vote_id (Results 1 – 3 of 3) sorted by relevance

/hardware/google/pixel/power-libperfmgr/aidl/tests/
DUClampVoterTest.cpp207 static constexpr int gpu_vote_id = static_cast<int>(AdpfVoteType::GPU_CAPACITY); in TEST() local
215 votes.add(gpu_vote_id, CpuVote(true, now, 250ns, 66, 77)); in TEST()
216 EXPECT_FALSE(votes.voteIsActive(gpu_vote_id)); in TEST()
242 auto const gpu_vote_id = static_cast<int>(AdpfVoteType::GPU_CAPACITY); in TEST() local
245 votes.add(gpu_vote_id, GpuVote(true, now, 250ns, Cycles(100))); in TEST()
248 EXPECT_TRUE(votes.voteIsActive(gpu_vote_id)); in TEST()
250 votes.setUseVote(gpu_vote_id, false); in TEST()
251 EXPECT_FALSE(votes.voteIsActive(gpu_vote_id)); in TEST()
253 votes.setUseVote(gpu_vote_id, true); in TEST()
254 EXPECT_TRUE(votes.voteIsActive(gpu_vote_id)); in TEST()
[all …]
DSessionTaskMapTest.cpp337 static auto constexpr gpu_vote_id = static_cast<int>(AdpfVoteType::GPU_CAPACITY); in TEST() local
349 m.addGpuVote(session_id1, gpu_vote_id, Cycles(222), now, 400ms); in TEST()
353 m.addGpuVote(session_id1, gpu_vote_id, Cycles(111), now, 100ms); in TEST()
357 m.addGpuVote(session_id2, gpu_vote_id, Cycles(555), now, 50ms); in TEST()
/hardware/google/pixel/power-libperfmgr/aidl/
DUClampVoter.cpp42 constexpr static auto gpu_vote_id = static_cast<int>(AdpfVoteType::GPU_CAPACITY); variable