Searched refs:hint_type (Results 1 - 8 of 8) sorted by relevance

/system/extras/libperfmgr/
H A DRequestGroup.cc24 bool RequestGroup::AddRequest(const std::string& hint_type, ReqTime end_time) { argument
25 if (request_map_.find(hint_type) == request_map_.end()) {
26 request_map_.emplace(hint_type, end_time);
29 if (request_map_[hint_type] < end_time) {
30 request_map_[hint_type] = end_time;
36 bool RequestGroup::RemoveRequest(const std::string& hint_type) { argument
37 return request_map_.erase(hint_type);
H A DHintManager.cc32 bool HintManager::ValidateHint(const std::string& hint_type) const {
37 if (actions_.find(hint_type) == actions_.end()) {
38 LOG(ERROR) << "PowerHint type not present in actions: " << hint_type;
44 bool HintManager::DoHint(const std::string& hint_type) { argument
45 LOG(VERBOSE) << "Do Powerhint: " << hint_type;
46 return ValidateHint(hint_type)
47 ? nm_->Request(actions_.at(hint_type), hint_type)
51 bool HintManager::DoHint(const std::string& hint_type, argument
53 LOG(VERBOSE) << "Do Powerhint: " << hint_type << " fo
65 EndHint(const std::string& hint_type) argument
266 const std::string& hint_type = actions[i]["PowerHint"].asString(); local
267 LOG(VERBOSE) << "Action[" << i << "]'s PowerHint: " << hint_type; local
[all...]
H A DNodeLooperThread.cc28 const std::string& hint_type) {
57 ret = nodes_[a.node_index]->AddRequest(a.value_index, hint_type,
67 const std::string& hint_type) {
84 nodes_[a.node_index]->RemoveRequest(hint_type);
27 Request(const std::vector<NodeAction>& actions, const std::string& hint_type) argument
66 Cancel(const std::vector<NodeAction>& actions, const std::string& hint_type) argument
H A DNode.cc48 bool Node::AddRequest(std::size_t value_index, const std::string& hint_type, argument
55 // Add/Update request to the new end_time for the specific hint_type
56 req_sorted_[value_index].AddRequest(hint_type, end_time);
60 bool Node::RemoveRequest(const std::string& hint_type) { argument
62 // Remove all requests for the specific hint_type
64 ret = value.RemoveRequest(hint_type) || ret;
/system/extras/libperfmgr/include/perfmgr/
H A DRequestGroup.h49 // existing active request on given hint_type.
50 bool AddRequest(const std::string& hint_type, ReqTime end_time);
52 // hint_type. If request exits and the new end_time is less than the active
54 bool RemoveRequest(const std::string& hint_type);
H A DHintManager.h45 // Do hint based on hint_type which defined as PowerHint in the actions
46 // section of the JSON config. Return true with valid hint_type and also
48 bool DoHint(const std::string& hint_type);
51 // hint_type. Return true with valid hint_type and also
53 bool DoHint(const std::string& hint_type,
56 // End hint early. Return true with valid hint_type and also
58 bool EndHint(const std::string& hint_type);
80 bool ValidateHint(const std::string& hint_type) const;
H A DNode.h54 bool AddRequest(std::size_t value_index, const std::string& hint_type,
58 bool RemoveRequest(const std::string& hint_type);
H A DNodeLooperThread.h63 // Return true when successfully adds request from actions for the hint_type
67 const std::string& hint_type);
68 // Return when successfully cancels request from actions for the hint_type
72 const std::string& hint_type);

Completed in 375 milliseconds