Home
last modified time | relevance | path

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

/hardware/google/pixel/power-libperfmgr/aidl/
DAdpfTypes.h50 enum class AdpfVoteType : int32_t { enum
63 constexpr const char *AdpfVoteTypeToStr(AdpfVoteType voteType) { in AdpfVoteTypeToStr()
65 case AdpfVoteType::CPU_VOTE_DEFAULT: in AdpfVoteTypeToStr()
67 case AdpfVoteType::CPU_LOAD_UP: in AdpfVoteTypeToStr()
69 case AdpfVoteType::CPU_LOAD_RESET: in AdpfVoteTypeToStr()
71 case AdpfVoteType::CPU_LOAD_RESUME: in AdpfVoteTypeToStr()
73 case AdpfVoteType::VOTE_POWER_EFFICIENCY: in AdpfVoteTypeToStr()
75 case AdpfVoteType::GPU_LOAD_UP: in AdpfVoteTypeToStr()
77 case AdpfVoteType::GPU_LOAD_DOWN: in AdpfVoteTypeToStr()
79 case AdpfVoteType::GPU_LOAD_RESET: in AdpfVoteTypeToStr()
[all …]
DUClampVoter.cpp42 constexpr static auto gpu_vote_id = static_cast<int>(AdpfVoteType::GPU_CAPACITY);
45 AdpfVoteType const type = static_cast<AdpfVoteType>(type_raw); in isGpuVote()
46 return type == AdpfVoteType::GPU_CAPACITY || type == AdpfVoteType::GPU_LOAD_UP || in isGpuVote()
47 type == AdpfVoteType::GPU_LOAD_DOWN || type == AdpfVoteType::GPU_LOAD_RESET; in isGpuVote()
59 constexpr AdpfVoteType gpu_capacity_hints[] = { in getGpuCapacityRequest()
60 AdpfVoteType::GPU_CAPACITY, in getGpuCapacityRequest()
61 AdpfVoteType::GPU_LOAD_UP, in getGpuCapacityRequest()
DPowerSessionManager.cpp131 static_cast<std::underlying_type_t<AdpfVoteType>>(AdpfVoteType::CPU_VOTE_DEFAULT), in addPowerSession()
292 int64_t sessionId, AdpfVoteType voteId, std::chrono::nanoseconds durationNs) { in updateTargetWorkDuration()
293 int voteIdInt = static_cast<std::underlying_type_t<AdpfVoteType>>(voteId); in updateTargetWorkDuration()
314 void PowerSessionManager<HintManagerT>::voteSet(int64_t sessionId, AdpfVoteType voteId, in voteSet()
318 const int voteIdInt = static_cast<std::underlying_type_t<AdpfVoteType>>(voteId); in voteSet()
347 void PowerSessionManager<HintManagerT>::voteSet(int64_t sessionId, AdpfVoteType voteId, in voteSet()
351 const int voteIdInt = static_cast<std::underlying_type_t<AdpfVoteType>>(voteId); in voteSet()
390 for (auto vid : {AdpfVoteType::CPU_LOAD_UP, AdpfVoteType::CPU_LOAD_RESET, in disableBoosts()
391 AdpfVoteType::CPU_LOAD_RESUME, AdpfVoteType::VOTE_POWER_EFFICIENCY, in disableBoosts()
392 AdpfVoteType::GPU_LOAD_UP, AdpfVoteType::GPU_LOAD_RESET}) { in disableBoosts()
[all …]
DPowerSessionManager.h66 void updateTargetWorkDuration(int64_t sessionId, AdpfVoteType voteId,
70 void voteSet(int64_t sessionId, AdpfVoteType voteId, int uclampMin, int uclampMax,
73 void voteSet(int64_t sessionId, AdpfVoteType voteId, Cycles capacity,
DPowerHintSession.cpp162 mSessionId, AdpfVoteType::CPU_LOAD_RESET, adpfConfig->mUclampMinLoadReset, kUclampMax, in PowerHintSession()
166 mPSManager->voteSet(mSessionId, AdpfVoteType::CPU_VOTE_DEFAULT, adpfConfig->mUclampMinInit, in PowerHintSession()
193 mPSManager->voteSet(mSessionId, AdpfVoteType::CPU_VOTE_DEFAULT, pidControlVariable, in updatePidControlVariable()
288 mPSManager->updateTargetWorkDuration(mSessionId, AdpfVoteType::CPU_VOTE_DEFAULT, in updateTargetWorkDuration()
425 mSessionId, AdpfVoteType::GPU_CAPACITY, additional_gpu_capacity_clamped, in reportActualWorkDuration()
449 mPSManager->voteSet(mSessionId, AdpfVoteType::CPU_LOAD_UP, adpfConfig->mUclampMinLoadUp, in sendHint()
461 mPSManager->voteSet(mSessionId, AdpfVoteType::CPU_LOAD_RESET, in sendHint()
468 mPSManager->voteSet(mSessionId, AdpfVoteType::CPU_LOAD_RESUME, in sendHint()
478 mPSManager->voteSet(mSessionId, AdpfVoteType::GPU_LOAD_UP, in sendHint()
DAppDescriptorTrace.h77 AdpfVoteTypeToStr(static_cast<AdpfVoteType>(i))); in AppDescriptorTrace()
108 std::array<std::string, static_cast<int32_t>(AdpfVoteType::VOTE_TYPE_SIZE)> trace_votes;
/hardware/google/pixel/power-libperfmgr/aidl/tests/
DUClampVoterTest.cpp207 static constexpr int gpu_vote_id = static_cast<int>(AdpfVoteType::GPU_CAPACITY); in TEST()
208 static constexpr int cpu_vote_id = static_cast<int>(AdpfVoteType::CPU_LOAD_UP); in TEST()
231 static constexpr int gpu_vote_id1 = static_cast<int>(AdpfVoteType::GPU_CAPACITY); in TEST()
232 static constexpr int gpu_vote_id2 = static_cast<int>(AdpfVoteType::GPU_LOAD_UP); in TEST()
242 auto const gpu_vote_id = static_cast<int>(AdpfVoteType::GPU_CAPACITY); in TEST()
262 auto const gpu_vote_id = static_cast<int>(AdpfVoteType::GPU_CAPACITY); in TEST()
278 auto const gpu_vote_id = static_cast<int>(AdpfVoteType::GPU_CAPACITY); in TEST()
279 auto const cpu_vote_id = static_cast<int>(AdpfVoteType::CPU_LOAD_UP); in TEST()
300 auto const gpu_vote_id = static_cast<int>(AdpfVoteType::GPU_CAPACITY); in TEST()
319 auto const capacity_vote_id = static_cast<int>(AdpfVoteType::GPU_CAPACITY); in TEST()
[all …]
DSessionTaskMapTest.cpp337 static auto constexpr gpu_vote_id = static_cast<int>(AdpfVoteType::GPU_CAPACITY); in TEST()
369 auto const capacity_vote_id = static_cast<int>(AdpfVoteType::GPU_CAPACITY); in TEST()
370 auto const load_vote_id = static_cast<int>(AdpfVoteType::GPU_LOAD_UP); in TEST()
/hardware/google/pixel/power-libperfmgr/aidl/tests/mocks/
DMockPowerSessionManager.h49 (int64_t sessionId, impl::pixel::AdpfVoteType voteId,
53 (int64_t sessionId, impl::pixel::AdpfVoteType voteId, int uclampMin, int uclampMax,
58 (int64_t sessionId, impl::pixel::AdpfVoteType voteId, impl::pixel::Cycles capacity,