Home
last modified time | relevance | path

Searched refs:FileNode (Results 1 – 11 of 11) sorted by relevance

/hardware/google/graphics/common/libhwc2.1/libvrr/
DFileNode.cpp28 FileNode::FileNode(const std::string& nodePath) : mNodePath(nodePath) {} in FileNode() function in android::hardware::graphics::composer::FileNode
30 FileNode::~FileNode() { in ~FileNode()
36 std::string FileNode::dump() { in dump()
47 uint32_t FileNode::getLastWrittenValue(const std::string& nodeName) { in getLastWrittenValue()
53 std::optional<std::string> FileNode::readString(const std::string& nodeName) { in readString()
64 bool FileNode::WriteUint32(const std::string& nodeName, uint32_t value) { in WriteUint32()
82 int FileNode::getFileHandler(const std::string& nodeName) { in getFileHandler()
DFileNode.h30 class FileNode {
32 FileNode(const std::string& nodePath);
33 ~FileNode();
56 std::shared_ptr<FileNode> getFileNode(const std::string& nodePath) { in getFileNode()
58 mFileNodes[nodePath] = std::make_shared<FileNode>(nodePath); in getFileNode()
64 std::unordered_map<std::string, std::shared_ptr<FileNode>> mFileNodes;
DVariableRefreshRateController.h321 std::shared_ptr<FileNode> mFileNode;
/hardware/google/pixel/power-libperfmgr/libperfmgr/include/perfmgr/
DFileNode.h32 class FileNode : public Node {
34 FileNode(std::string name, std::string node_path, std::vector<RequestGroup> req_sorted,
46 FileNode(const Node& other) = delete;
47 FileNode& operator=(Node const&) = delete;
/hardware/google/pixel/power-libperfmgr/libperfmgr/
DFileNode.cc33 FileNode::FileNode(std::string name, std::string node_path, std::vector<RequestGroup> req_sorted, in FileNode() function in android::perfmgr::FileNode
42 std::chrono::milliseconds FileNode::Update(bool log_error) { in Update()
104 bool FileNode::GetHoldFd() const { in GetHoldFd()
108 bool FileNode::GetTruncate() const { in GetTruncate()
112 void FileNode::DumpToFd(int fd) const { in DumpToFd()
DAndroid.bp57 "FileNode.cc",
DHintManager.cc525 nodes_parsed.emplace_back(std::make_unique<FileNode>( in ParseNodes()
/hardware/google/pixel/power-libperfmgr/libperfmgr/tests/
DFileNodeTest.cc44 FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 1, false, false); in TEST()
52 FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 1, true, true); in TEST()
56 FileNode t2("t2", tf2.path, {{"value0"}, {"value1"}, {"value2"}}, 0, true, true); in TEST()
64 FileNode t("test_dump", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 1, in TEST()
85 FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 1, false, false); in TEST()
97 FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 1, false, false); in TEST()
109 FileNode t(test_name, test_path, {}, 0, false, false, true); in TEST()
120 FileNode t("t", "/sys/android/nonexist_node_test", in TEST()
139 FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 2, true, true); in TEST()
169 FileNode t("t", tf.path, {{"value0"}, {"value1"}, {"value2"}}, 2, true, true); in TEST()
[all …]
DNodeLooperThreadTest.cc37 nodes_.emplace_back(new FileNode( in SetUp()
42 nodes_.emplace_back(new FileNode( in SetUp()
DHintManagerTest.cc232 nodes_.emplace_back(new FileNode( in SetUp()
237 nodes_.emplace_back(new FileNode( in SetUp()
469 EXPECT_FALSE(reinterpret_cast<FileNode*>(nodes[0].get())->GetHoldFd()); in TEST_F()
470 EXPECT_TRUE(reinterpret_cast<FileNode*>(nodes[1].get())->GetHoldFd()); in TEST_F()
562 EXPECT_FALSE(reinterpret_cast<FileNode*>(nodes[0].get())->GetHoldFd()); in TEST_F()
563 EXPECT_TRUE(reinterpret_cast<FileNode*>(nodes[1].get())->GetHoldFd()); in TEST_F()
/hardware/google/graphics/common/libhwc2.1/
DAndroid.mk154 libvrr/FileNode.cpp \