Home
last modified time | relevance | path

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

/hardware/google/pixel/power-libperfmgr/aidl/tests/
DUClampVoterTest.cpp55 VoteRange vote_range(true, tNow, 250ms); in TEST() local
56 EXPECT_FALSE(vote_range.isTimeInRange(tNow - 1ns)); in TEST()
57 EXPECT_TRUE(vote_range.isTimeInRange(tNow)); in TEST()
58 EXPECT_TRUE(vote_range.isTimeInRange(tNow + 1ns)); in TEST()
59 EXPECT_TRUE(vote_range.isTimeInRange(tNow + 250ms)); in TEST()
60 EXPECT_FALSE(vote_range.isTimeInRange(tNow + 250ms + 1ns)); in TEST()
65 VoteRange vote_range(true, tNow, 250ms); in TEST() local
66 EXPECT_TRUE(vote_range.active()); in TEST()
67 vote_range.setActive(false); in TEST()
68 EXPECT_FALSE(vote_range.active()); in TEST()
[all …]