Home
last modified time | relevance | path

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

/hardware/google/pixel/power-libperfmgr/aidl/tests/
DUClampVoterTest.cpp53 TEST(VoteRange, isTimeInRange) { in TEST() argument
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()
69 EXPECT_FALSE(vote_range.isTimeInRange(tNow)); in TEST()
70 EXPECT_FALSE(vote_range.isTimeInRange(tNow + 1ns)); in TEST()
71 EXPECT_FALSE(vote_range.isTimeInRange(tNow + 250ms)); in TEST()
72 EXPECT_FALSE(vote_range.isTimeInRange(tNow + 250ms + 1ns)); in TEST()
[all …]
/hardware/google/pixel/power-libperfmgr/aidl/
DUClampVoter.cpp28 if (!cpu_vote.isTimeInRange(t)) { in confine()
65 if (it != mGpuVotes.end() && it->second.isTimeInRange(t)) { in getGpuCapacityRequest()
104 if (!v.second.isTimeInRange(t)) { in anyTimedOut()
110 if (!v.second.isTimeInRange(t)) { in anyTimedOut()
119 if (v.second.isTimeInRange(t)) { in allTimedOut()
125 if (v.second.isTimeInRange(t)) { in allTimedOut()
DUClampVoter.h74 inline bool isTimeInRange(std::chrono::steady_clock::time_point t) const { in isTimeInRange() function