Home
last modified time | relevance | path

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

/aosp12/hardware/google/pixel/power-libperfmgr/libperfmgr/
H A DHintManager.cc156 if (!ValidateHint(hint_type) || !IsHintEnabled(hint_type) || in DoHint()
157 !nm_->Request(actions_.at(hint_type).node_actions, hint_type)) { in DoHint()
160 DoHintStatus(hint_type, actions_.at(hint_type).status->max_timeout); in DoHint()
161 DoHintAction(hint_type); in DoHint()
169 if (!ValidateHint(hint_type) || !IsHintEnabled(hint_type)) { in DoHint()
180 DoHintAction(hint_type); in DoHint()
186 if (!ValidateHint(hint_type) || !nm_->Cancel(actions_.at(hint_type).node_actions, hint_type)) { in EndHint()
189 EndHintStatus(hint_type); in EndHint()
190 EndHintAction(hint_type); in EndHint()
208 if (ValidateHint(hint_type)) { in GetHintStats()
[all …]
H A DRequestGroup.cc29 bool RequestGroup::AddRequest(const std::string& hint_type, ReqTime end_time) { in AddRequest() argument
30 if (request_map_.find(hint_type) == request_map_.end()) { in AddRequest()
31 request_map_.emplace(hint_type, end_time); in AddRequest()
34 if (request_map_[hint_type] < end_time) { in AddRequest()
35 request_map_[hint_type] = end_time; in AddRequest()
41 bool RequestGroup::RemoveRequest(const std::string& hint_type) { in RemoveRequest() argument
42 return request_map_.erase(hint_type); in RemoveRequest()
H A DNodeLooperThread.cc30 const std::string& hint_type) { in Request() argument
36 LOG(WARNING) << "NodeLooperThread is not running, request " << hint_type; in Request()
59 ret = nodes_[a.node_index]->AddRequest(a.value_index, hint_type, in Request()
69 const std::string& hint_type) { in Cancel() argument
75 LOG(WARNING) << "NodeLooperThread is not running, cancel " << hint_type; in Cancel()
86 nodes_[a.node_index]->RemoveRequest(hint_type); in Cancel()
H A DNode.cc39 bool Node::AddRequest(std::size_t value_index, const std::string& hint_type, in AddRequest() argument
47 req_sorted_[value_index].AddRequest(hint_type, end_time); in AddRequest()
51 bool Node::RemoveRequest(const std::string& hint_type) { in RemoveRequest() argument
55 ret = value.RemoveRequest(hint_type) || ret; in RemoveRequest()
/aosp12/hardware/google/pixel/power-libperfmgr/libperfmgr/include/perfmgr/
H A DHintManager.h94 bool DoHint(const std::string& hint_type);
99 bool DoHint(const std::string& hint_type,
104 bool EndHint(const std::string& hint_type);
107 bool IsHintSupported(const std::string& hint_type) const;
110 bool IsHintEnabled(const std::string &hint_type) const;
120 HintStats GetHintStats(const std::string &hint_type) const;
138 bool ValidateHint(const std::string& hint_type) const;
140 void DoHintStatus(const std::string &hint_type, std::chrono::milliseconds timeout_ms);
142 void EndHintStatus(const std::string &hint_type);
144 void DoHintAction(const std::string &hint_type);
[all …]
H A DRequestGroup.h51 bool AddRequest(const std::string& hint_type, ReqTime end_time);
55 bool RemoveRequest(const std::string& hint_type);
H A DNode.h52 bool AddRequest(std::size_t value_index, const std::string& hint_type,
56 bool RemoveRequest(const std::string& hint_type);
H A DNodeLooperThread.h69 const std::string& hint_type);
74 const std::string& hint_type);