Lines Matching refs:Commander
17 #include "commander.h"
39 Commander::Commander() : mPipeFd(-1) {
42 Commander::~Commander() {
46 Result Commander::init() {
48 return Result::error("Commander already initialized");
56 void Commander::registerCommand(const char* commandStr, Command* command) {
60 void Commander::getPollData(std::vector<pollfd>* fds) const {
66 Pollable::Timestamp Commander::getTimeout() const {
70 bool Commander::onReadAvailable(int /*fd*/, int* /*status*/) {
88 LOGE("Commander failed to receive on pipe: %s", strerror(errno));
132 bool Commander::onClose(int /*fd*/, int* /*status*/) {
139 bool Commander::onTimeout(int* /*status*/) {
146 void Commander::openPipe() {
159 void Commander::closePipe() {