Home
last modified time | relevance | path

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

/hardware/google/pixel/power-libperfmgr/libperfmgr/tests/
DHintManagerTest.cc789 std::vector<std::shared_ptr<AdpfConfig>> adpfs = HintManager::ParseAdpfConfigs(json_doc_); in TEST_F() local
790 EXPECT_EQ(2u, adpfs.size()); in TEST_F()
791 EXPECT_EQ("REFRESH_120FPS", adpfs[0]->mName); in TEST_F()
792 EXPECT_EQ("REFRESH_60FPS", adpfs[1]->mName); in TEST_F()
793 EXPECT_TRUE(adpfs[0]->mPidOn); in TEST_F()
794 EXPECT_FALSE(adpfs[1]->mPidOn); in TEST_F()
795 EXPECT_EQ(5.0, adpfs[0]->mPidPo); in TEST_F()
796 EXPECT_EQ(0.0, adpfs[1]->mPidPo); in TEST_F()
797 EXPECT_EQ(3.0, adpfs[0]->mPidPu); in TEST_F()
798 EXPECT_EQ(0.0, adpfs[1]->mPidPu); in TEST_F()
[all …]
/hardware/google/pixel/power-libperfmgr/libperfmgr/
DHintManager.cc340 std::vector<std::shared_ptr<AdpfConfig>> adpfs = HintManager::ParseAdpfConfigs(json_doc); in GetFromJSON() local
341 if (adpfs.empty()) { in GetFromJSON()
355 sInstance = std::make_unique<HintManager>(std::move(nm), actions, adpfs, gpu_sysfs_node); in GetFromJSON()
665 static_assert(std::is_same<decltype(adpfs[i][ENTRY].as##TYPE()), decltype(VARIABLE)>::value, \
667 if (adpfs[i][ENTRY].empty() || !adpfs[i][ENTRY].is##TYPE()) { \
672 VARIABLE = adpfs[i][ENTRY].as##TYPE()
675 static_assert(std::is_same<decltype(adpfs[i][ENTRY].as##TYPE()), \
678 if (!adpfs[i][ENTRY].empty() && adpfs[i][ENTRY].is##TYPE()) { \
679 VARIABLE = adpfs[i][ENTRY].as##TYPE(); \
715 Json::Value adpfs = root["AdpfConfig"]; in ParseAdpfConfigs() local
[all …]
/hardware/google/pixel/power-libperfmgr/libperfmgr/include/perfmgr/
DHintManager.h92 const std::vector<std::shared_ptr<AdpfConfig>> &adpfs, in HintManager() argument
96 adpfs_(adpfs), in HintManager()