Home
last modified time | relevance | path

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

/hardware/google/pixel/power-libperfmgr/aidl/
DPower.cpp45 using ::android::perfmgr::HintManager;
62 HintManager::GetInstance()->DoHint("SUSTAINED_PERFORMANCE"); in Power()
66 HintManager::GetInstance()->DoHint(state); in Power()
70 HintManager::GetInstance()->DoHint("VR_SUSTAINED_PERFORMANCE"); in Power()
80 HintManager::GetInstance()->DoHint(state); in Power()
86 HintManager::GetInstance()->DoHint("EXPENSIVE_RENDERING"); in Power()
95 if (HintManager::GetInstance()->GetAdpfProfile() && in setMode()
96 HintManager::GetInstance()->GetAdpfProfile()->mReportingRateLimitNs > 0) { in setMode()
103 HintManager::GetInstance()->DoHint(toString(type)); in setMode()
105 HintManager::GetInstance()->EndHint(toString(type)); in setMode()
[all …]
DPowerExt.cpp40 using ::android::perfmgr::HintManager;
46 HintManager::GetInstance()->DoHint(mode); in setMode()
48 HintManager::GetInstance()->EndHint(mode); in setMode()
50 if (HintManager::GetInstance()->GetAdpfProfile() && in setMode()
51 HintManager::GetInstance()->GetAdpfProfile()->mReportingRateLimitNs > 0) { in setMode()
59 bool supported = HintManager::GetInstance()->IsHintSupported(mode); in isModeSupported()
61 if (!supported && HintManager::GetInstance()->IsAdpfProfileSupported(mode)) { in isModeSupported()
71 if (HintManager::GetInstance()->GetAdpfProfile() && in setBoost()
72 HintManager::GetInstance()->GetAdpfProfile()->mReportingRateLimitNs > 0) { in setBoost()
77 HintManager::GetInstance()->DoHint(boost, std::chrono::milliseconds(durationMs)); in setBoost()
[all …]
Dservice.cpp36 using ::android::perfmgr::HintManager;
43 HintManager *hm = HintManager::GetInstance(); in main()
73 HintManager::GetInstance()->Start(); in main()
DPowerSessionManager.cpp43 using ::android::perfmgr::HintManager;
92 if (HintManager::GetInstance()->GetAdpfProfile()) { in updateHintMode()
93 HintManager::GetInstance()->SetAdpfProfile(mode); in updateHintMode()
404 if (HintManager::GetInstance()->IsHintSupported(kDisableBoostHintName)) { in enableSystemTopAppBoost()
406 HintManager::GetInstance()->EndHint(kDisableBoostHintName); in enableSystemTopAppBoost()
412 if (HintManager::GetInstance()->IsHintSupported(kDisableBoostHintName)) { in disableSystemTopAppBoost()
414 HintManager::GetInstance()->DoHint(kDisableBoostHintName); in disableSystemTopAppBoost()
472 auto config = HintManager::GetInstance()->GetAdpfProfile(); in applyUclampLocked()
516 auto const gpuVotingOn = HintManager::GetInstance()->GetAdpfProfile()->mGpuBoostOn; in applyGpuVotesLocked()
DPowerHintSession.h52 template <class HintManagerT = ::android::perfmgr::HintManager,
DGpuCapacityNode.cpp132 auto const path = ::android::perfmgr::HintManager::GetInstance()->gpu_sysfs_config_path(); in createGpuCapacityNode()
DPowerSessionManager.h42 template <class HintManagerT = ::android::perfmgr::HintManager>
/hardware/google/pixel/power-libperfmgr/libperfmgr/include/perfmgr/
DHintManager.h89 class HintManager {
91 HintManager(sp<NodeLooperThread> nm, const std::unordered_map<std::string, Hint> &actions, in HintManager() function
99 ~HintManager() { in ~HintManager()
138 static HintManager *GetFromJSON(const std::string &config_path, bool start = true);
153 static HintManager *GetInstance();
161 static bool InitHintStatus(const std::unique_ptr<HintManager> &hm);
164 HintManager(HintManager const&) = delete;
165 HintManager &operator=(HintManager const &) = delete;
182 static std::unique_ptr<HintManager> sInstance;
/hardware/google/pixel/power-libperfmgr/libperfmgr/
DHintManager.cc51 bool HintManager::ValidateHint(const std::string& hint_type) const { in ValidateHint()
59 bool HintManager::IsHintSupported(const std::string& hint_type) const { in IsHintSupported()
67 bool HintManager::IsHintEnabled(const std::string &hint_type) const { in IsHintEnabled()
72 bool HintManager::InitHintStatus(const std::unique_ptr<HintManager> &hm) { in InitHintStatus()
94 void HintManager::DoHintStatus(const std::string &hint_type, std::chrono::milliseconds timeout_ms) { in DoHintStatus()
112 void HintManager::EndHintStatus(const std::string &hint_type) { in EndHintStatus()
126 void HintManager::DoHintAction(const std::string &hint_type) { in DoHintAction()
157 void HintManager::EndHintAction(const std::string &hint_type) { in EndHintAction()
167 bool HintManager::DoHint(const std::string& hint_type) { in DoHint()
178 bool HintManager::DoHint(const std::string& hint_type, in DoHint()
[all …]
DAndroid.bp60 "HintManager.cc",
/hardware/google/pixel/power-libperfmgr/libperfmgr/tests/
DHintManagerTest.cc220 class HintManagerTest : public ::testing::Test, public HintManager {
223 : HintManager(nullptr, std::unordered_map<std::string, Hint>{}, in HintManagerTest()
311 HintManager hm(nm_, actions_, std::vector<std::shared_ptr<AdpfConfig>>(), {}); in TEST_F()
323 std::make_unique<HintManager>(nm_, actions_, std::vector<std::shared_ptr<AdpfConfig>>(), in TEST_F()
337 HintManager hm(nm_, actions_, std::vector<std::shared_ptr<AdpfConfig>>(), {}); in TEST_F()
348 HintManager hm(nm_, actions_, std::vector<std::shared_ptr<AdpfConfig>>(), {}); in TEST_F()
357 std::make_unique<HintManager>(nm_, actions_, std::vector<std::shared_ptr<AdpfConfig>>(), in TEST_F()
408 std::make_unique<HintManager>(nm_, actions_, std::vector<std::shared_ptr<AdpfConfig>>(), in TEST_F()
452 HintManager::ParseNodes(json_doc_); in TEST_F()
486 HintManager::ParseNodes(json_doc_); in TEST_F()
[all …]
/hardware/google/pixel/power-libperfmgr/libperfmgr/tools/
DConfigVerifier.cc30 class NodeVerifier : public HintManager {
87 android::perfmgr::HintManager *hm = android::perfmgr::HintManager::GetFromJSON(json_file); in execConfig()
/hardware/google/pixel/power-libperfmgr/disp-power/
DInteractionHandler.cpp83 using ::android::perfmgr::HintManager;
134 if (!HintManager::GetInstance()->DoHint("INTERACTION")) { in PerfLock()
141 if (!HintManager::GetInstance()->EndHint("INTERACTION")) { in PerfRel()
164 HintManager::GetInstance()->DoHint("INTERACTION", std::chrono::milliseconds(finalDuration)); in Acquire()