Lines Matching refs:string
59 std::function<void(const std::string&)> prolog = [](const std::string&) {};
61 std::function<void(const std::string&)> info = [](const std::string&) {};
76 RetCode Boot(std::string* response = nullptr, std::vector<std::string>* info = nullptr);
77 RetCode Continue(std::string* response = nullptr, std::vector<std::string>* info = nullptr);
78 RetCode CreatePartition(const std::string& partition, const std::string& size);
79 RetCode DeletePartition(const std::string& partition);
80 RetCode Download(const std::string& name, android::base::borrowed_fd fd, size_t size,
81 std::string* response = nullptr, std::vector<std::string>* info = nullptr);
82 RetCode Download(android::base::borrowed_fd fd, size_t size, std::string* response = nullptr,
83 std::vector<std::string>* info = nullptr);
84 RetCode Download(const std::string& name, const std::vector<char>& buf,
85 std::string* response = nullptr, std::vector<std::string>* info = nullptr);
86 RetCode Download(const std::vector<char>& buf, std::string* response = nullptr,
87 std::vector<std::string>* info = nullptr);
88 RetCode Download(const std::string& partition, struct sparse_file* s, uint32_t sz,
89 size_t current, size_t total, bool use_crc, std::string* response = nullptr,
90 std::vector<std::string>* info = nullptr);
91 RetCode Download(sparse_file* s, bool use_crc = false, std::string* response = nullptr,
92 std::vector<std::string>* info = nullptr);
93 RetCode Erase(const std::string& partition, std::string* response = nullptr,
94 std::vector<std::string>* info = nullptr);
95 RetCode Flash(const std::string& partition, std::string* response = nullptr,
96 std::vector<std::string>* info = nullptr);
97 RetCode GetVar(const std::string& key, std::string* val,
98 std::vector<std::string>* info = nullptr);
99 RetCode GetVarAll(std::vector<std::string>* response);
100 RetCode Reboot(std::string* response = nullptr, std::vector<std::string>* info = nullptr);
101 RetCode RebootTo(std::string target, std::string* response = nullptr,
102 std::vector<std::string>* info = nullptr);
103 RetCode ResizePartition(const std::string& partition, const std::string& size);
104 RetCode SetActive(const std::string& slot, std::string* response = nullptr,
105 std::vector<std::string>* info = nullptr);
106 RetCode Upload(const std::string& outfile, std::string* response = nullptr,
107 std::vector<std::string>* info = nullptr);
108 RetCode SnapshotUpdateCommand(const std::string& command, std::string* response = nullptr,
109 std::vector<std::string>* info = nullptr);
110 RetCode FetchToFd(const std::string& partition, android::base::borrowed_fd fd,
111 int64_t offset = -1, int64_t size = -1, std::string* response = nullptr,
112 std::vector<std::string>* info = nullptr);
115 RetCode FlashPartition(const std::string& partition, const std::vector<char>& data);
116 RetCode FlashPartition(const std::string& partition, android::base::borrowed_fd fd,
118 RetCode FlashPartition(const std::string& partition, sparse_file* s, uint32_t sz,
121 RetCode Partitions(std::vector<std::tuple<std::string, uint64_t>>* partitions);
122 RetCode Require(const std::string& var, const std::vector<std::string>& allowed, bool* reqmet,
126 void SetInfoCallback(std::function<void(const std::string&)> info);
127 static const std::string RCString(RetCode rc);
128 std::string Error();
135 RetCode RawCommand(const std::string& cmd, const std::string& message,
136 std::string* response = nullptr, std::vector<std::string>* info = nullptr,
139 RetCode RawCommand(const std::string& cmd, std::string* response = nullptr,
140 std::vector<std::string>* info = nullptr, int* dsize = nullptr);
143 RetCode DownloadCommand(uint32_t size, std::string* response = nullptr,
144 std::vector<std::string>* info = nullptr);
145 RetCode HandleResponse(std::string* response = nullptr,
146 std::vector<std::string>* info = nullptr, int* dsize = nullptr);
148 std::string ErrnoStr(const std::string& msg);
159 RetCode UploadInner(const std::string& outfile, std::string* response = nullptr,
160 std::vector<std::string>* info = nullptr);
161 RetCode RunAndReadBuffer(const std::string& cmd, std::string* response,
162 std::vector<std::string>* info,
167 std::string error_;
168 std::function<void(const std::string&)> prolog_;
170 std::function<void(const std::string&)> info_;