Lines Matching refs:Command
55 Command::Command(const android::sp<android::weave::IWeaveCommand>& proxy) in Command() function in weaved::Command
58 Command::~Command() {} in ~Command()
60 std::string Command::GetID() const { in GetID()
68 std::string Command::GetName() const { in GetName()
76 std::string Command::GetComponent() const { in GetComponent()
84 Command::State Command::GetState() const { in GetState()
90 return Command::State::kQueued; in GetState()
92 return Command::State::kInProgress; in GetState()
94 return Command::State::kPaused; in GetState()
96 return Command::State::kError; in GetState()
98 return Command::State::kDone; in GetState()
100 return Command::State::kCancelled; in GetState()
102 return Command::State::kAborted; in GetState()
104 return Command::State::kExpired; in GetState()
106 return Command::State::kQueued; in GetState()
109 Command::Origin Command::GetOrigin() const { in GetOrigin()
115 return Command::Origin::kLocal; in GetOrigin()
117 return Command::Origin::kCloud; in GetOrigin()
119 return Command::Origin::kLocal; in GetOrigin()
122 const base::DictionaryValue& Command::GetParameters() const { in GetParameters()
133 bool Command::SetProgress(const base::DictionaryValue& progress, in SetProgress()
138 bool Command::Complete(const base::DictionaryValue& results, in Complete()
143 bool Command::Abort(const std::string& error_code, in Abort()
151 bool Command::AbortWithCustomError(const brillo::Error* command_error, in AbortWithCustomError()
157 bool Command::AbortWithCustomError(android::binder::Status status, in AbortWithCustomError()
163 bool Command::Cancel(brillo::ErrorPtr* error) { in Cancel()
167 bool Command::Pause(brillo::ErrorPtr* error) { in Pause()
171 bool Command::SetError(const std::string& error_code, in SetError()
179 bool Command::SetCustomError(const brillo::Error* command_error, in SetCustomError()
185 bool Command::SetCustomError(android::binder::Status status, in SetCustomError()