Lines Matching refs:Status
36 class [[nodiscard]] Status {
38 Status() = default;
39 explicit Status(int code) : mCode(code) {} in Status() function
42 Status(int code, std::string msg) : mCode(code), mMsg(std::move(msg)) { assert(!ok()); } in Status() function
44 Status(android::base::Result<void> result) in Status() function
57 bool operator==(const Status& other) const { return code() == other.code(); }
58 bool operator!=(const Status& other) const { return !(*this == other); }
67 const Status ok{0};
70 const Status eof{0x10001, "end of file"};
71 const Status undefined{std::numeric_limits<int>::max(), "undefined"};
78 inline bool isOk(const Status& status) { in isOk()
88 inline void expectOk(const Status& /*status*/) { in expectOk() argument
95 Status statusFromErrno(int err, const std::string& msg);
99 bool equalToErrno(const Status& status, int err);
103 std::string toString(const Status& status);
105 std::ostream& operator<<(std::ostream& os, const Status& s);
112 ::android::netdutils::Status tmp = (stmt); \