Searched defs:actions (Results 1 - 6 of 6) sorted by relevance
/system/extras/libperfmgr/include/perfmgr/ |
H A D | HintManager.h | 31 // the actions that are parsed from the configuration file as a mapping from a 32 // PowerHint to the set of actions that are performed for that PowerHint. 36 const std::map<std::string, std::vector<NodeAction>>& actions) 37 : nm_(std::move(nm)), actions_(actions) {} 45 // Do hint based on hint_type which defined as PowerHint in the actions 50 // Do hint with the override time for all actions defined for the given 35 HintManager(sp<NodeLooperThread> nm, const std::map<std::string, std::vector<NodeAction>>& actions) argument
|
/system/extras/libperfmgr/ |
H A D | NodeLooperThread.cc | 27 bool NodeLooperThread::Request(const std::vector<NodeAction>& actions, argument 39 for (const auto& a : actions) { 66 bool NodeLooperThread::Cancel(const std::vector<NodeAction>& actions, argument 78 for (const auto& a : actions) {
|
H A D | HintManager.cc | 38 LOG(ERROR) << "PowerHint type not present in actions: " << hint_type; 116 std::map<std::string, std::vector<NodeAction>> actions = local 119 if (actions.empty()) { 126 std::make_unique<HintManager>(std::move(nm), actions); 257 Json::Value actions = root["Actions"]; local 265 for (Json::Value::ArrayIndex i = 0; i < actions.size(); ++i) { 266 const std::string& hint_type = actions[i]["PowerHint"].asString(); 275 std::string node_name = actions[i]["Node"].asString(); 288 std::string value_name = actions[i]["Value"].asString(); 302 if (actions[ [all...] |
/system/extras/libperfmgr/tests/ |
H A D | HintManagerTest.cc | 117 // Set up dummy actions 244 // Test parsing actions 275 // Test parsing actions 279 std::map<std::string, std::vector<NodeAction>> actions = local 281 EXPECT_EQ(2u, actions.size()); 282 EXPECT_EQ(1u, actions["INTERACTION"].size()); 284 EXPECT_EQ(1u, actions["INTERACTION"][0].node_index); 285 EXPECT_EQ(1u, actions["INTERACTION"][0].value_index); 287 actions["INTERACTION"][0].timeout_ms.count()); 289 EXPECT_EQ(2u, actions["LAUNC 311 std::map<std::string, std::vector<NodeAction>> actions = local 320 std::map<std::string, std::vector<NodeAction>> actions = local [all...] |
/system/extras/libperfmgr/tools/ |
H A D | ConfigVerifier.cc | 69 const std::map<std::string, std::vector<NodeAction>>& actions) 70 : HintManager(nm, actions) {} 68 NodeVerifier(sp<NodeLooperThread> nm, const std::map<std::string, std::vector<NodeAction>>& actions) argument
|
/system/core/adb/client/ |
H A D | usb_linux.cpp | 592 struct sigaction actions; local 593 memset(&actions, 0, sizeof(actions)); 594 sigemptyset(&actions.sa_mask); 595 actions.sa_flags = 0; 596 actions.sa_handler = [](int) {}; 597 sigaction(SIGALRM, &actions, nullptr);
|
Completed in 91 milliseconds