Searched refs:nodes_ (Results 1 – 6 of 6) sorted by relevance
40 if (a.node_index >= nodes_.size()) { in Request()42 << " ,size: " << nodes_.size(); in Request()57 ret = nodes_[a.node_index]->AddRequest(a.value_index, hint_type, in Request()79 if (a.node_index >= nodes_.size()) { in Cancel()81 << " ,size: " << nodes_.size(); in Cancel()84 nodes_[a.node_index]->RemoveRequest(hint_type); in Cancel()93 for (auto& n : nodes_) { in DumpToFd()105 for (auto& n : nodes_) { in threadLoop()108 for (auto& n : nodes_) { in threadLoop()
38 nodes_.emplace_back(new FileNode( in SetUp()43 nodes_.emplace_back(new FileNode( in SetUp()50 nodes_.clear(); in TearDown()53 std::vector<std::unique_ptr<Node>> nodes_; member in android::perfmgr::NodeLooperThreadTest66 sp<NodeLooperThread> th = new NodeLooperThread(std::move(nodes_)); in TEST_F()77 sp<NodeLooperThread> th = new NodeLooperThread(std::move(nodes_)); in TEST_F()99 sp<NodeLooperThread> th = new NodeLooperThread(std::move(nodes_)); in TEST_F()130 sp<NodeLooperThread> th = new NodeLooperThread(std::move(nodes_)); in TEST_F()150 sp<NodeLooperThread> th = new NodeLooperThread(std::move(nodes_)); in TEST_F()
135 nodes_.emplace_back(new FileNode( in SetUp()140 nodes_.emplace_back(new FileNode( in SetUp()144 nodes_.emplace_back(new PropertyNode( in SetUp()147 nm_ = new NodeLooperThread(std::move(nodes_)); in SetUp()179 nodes_.clear(); in TearDown()185 std::vector<std::unique_ptr<Node>> nodes_; member in android::perfmgr::HintManagerTest
96 return node->parent_index == 0u ? nullptr : nodes_ + node->parent_index; in GetParent()100 return node - nodes_; in GetNodeIndex()104 CacheNode* prev = &nodes_[node->leaf_link_prev]; in RemoveNodeFromLRUList()105 CacheNode* next = &nodes_[node->leaf_link_next]; in RemoveNodeFromLRUList()111 CacheNode* next = &nodes_[0]; in AppendNodeToLRUList()112 CacheNode* prev = &nodes_[next->leaf_link_prev]; in AppendNodeToLRUList()130 CacheNode* nodes_; variable
34 nodes_ = new CacheNode[cache_stat_.max_node_count + 1]; // with 1 sentinel node in LRUCache()36 nodes_[0].is_leaf = 1; in LRUCache()37 nodes_[0].parent_index = 0; in LRUCache()38 nodes_[0].leaf_link_prev = nodes_[0].leaf_link_next = 0; in LRUCache()42 delete[] nodes_; in ~LRUCache()136 return &nodes_[++cache_stat_.used_node_count]; in AllocNode()139 CacheNode* node = &nodes_[nodes_->leaf_link_next]; in AllocNode()
57 : Thread(false), nodes_(std::move(nodes)) {} in NodeLooperThread()87 std::vector<std::unique_ptr<Node>> nodes_; // parsed from Config variable