Searched refs:fd_interface (Results 1 – 2 of 2) sorted by relevance
/hardware/google/pixel/power-libperfmgr/aidl/ |
D | GpuCapacityNode.cpp | 41 GpuCapacityNode::GpuCapacityNode(std::unique_ptr<FdInterface> fd_interface, in GpuCapacityNode() argument 44 : fd_interface_(std::move(fd_interface)), in GpuCapacityNode() 57 std::unique_ptr<FdInterface> fd_interface, std::string_view gpu_node_dir) { in init_gpu_capacity_node() argument 61 fd_interface->open(capacity_headroom_file.c_str(), O_RDWR | fd_flags_common); in init_gpu_capacity_node() 68 auto const frequency_fd = fd_interface->open(gpu_freq_file.c_str(), O_RDONLY | fd_flags_common); in init_gpu_capacity_node() 70 fd_interface->close(capacity_headroom_fd); in init_gpu_capacity_node() 75 return std::make_unique<GpuCapacityNode>(std::move(fd_interface), capacity_headroom_fd, in init_gpu_capacity_node()
|
D | GpuCapacityNode.h | 66 GpuCapacityNode(std::unique_ptr<FdInterface> fd_interface, int validated_capacity_headroom_fd, 69 std::unique_ptr<FdInterface> fd_interface, std::string_view gpu_node_dir);
|