Lines Matching refs:string
51 std::function<void(const std::string&)> prolog = [](const std::string&) {};
53 std::function<void(const std::string&)> info = [](const std::string&) {};
54 std::function<void(const std::string&)> text = [](const std::string&) {};
69 RetCode Boot(std::string* response = nullptr, std::vector<std::string>* info = nullptr);
70 RetCode Continue(std::string* response = nullptr, std::vector<std::string>* info = nullptr);
71 RetCode CreatePartition(const std::string& partition, const std::string& size);
72 RetCode DeletePartition(const std::string& partition) override;
73 RetCode Download(const std::string& name, android::base::borrowed_fd fd, size_t size,
74 std::string* response = nullptr,
75 std::vector<std::string>* info = nullptr) override;
76 RetCode Download(android::base::borrowed_fd fd, size_t size, std::string* response = nullptr,
77 std::vector<std::string>* info = nullptr);
78 RetCode Download(const std::string& name, const std::vector<char>& buf,
79 std::string* response = nullptr, std::vector<std::string>* info = nullptr);
80 RetCode Download(const std::vector<char>& buf, std::string* response = nullptr,
81 std::vector<std::string>* info = nullptr);
82 RetCode Download(const std::string& partition, struct sparse_file* s, uint32_t sz,
83 size_t current, size_t total, bool use_crc, std::string* response = nullptr,
84 std::vector<std::string>* info = nullptr);
85 RetCode Download(sparse_file* s, bool use_crc = false, std::string* response = nullptr,
86 std::vector<std::string>* info = nullptr);
87 RetCode Erase(const std::string& partition, std::string* response = nullptr,
88 std::vector<std::string>* info = nullptr) override;
89 RetCode Flash(const std::string& partition, std::string* response = nullptr,
90 std::vector<std::string>* info = nullptr);
91 RetCode GetVar(const std::string& key, std::string* val,
92 std::vector<std::string>* info = nullptr) override;
93 RetCode GetVarAll(std::vector<std::string>* response);
94 RetCode Reboot(std::string* response = nullptr,
95 std::vector<std::string>* info = nullptr) override;
96 RetCode RebootTo(std::string target, std::string* response = nullptr,
97 std::vector<std::string>* info = nullptr) override;
98 RetCode ResizePartition(const std::string& partition, const std::string& size) override;
99 RetCode SetActive(const std::string& slot, std::string* response = nullptr,
100 std::vector<std::string>* info = nullptr);
101 RetCode Upload(const std::string& outfile, std::string* response = nullptr,
102 std::vector<std::string>* info = nullptr);
103 RetCode SnapshotUpdateCommand(const std::string& command, std::string* response = nullptr,
104 std::vector<std::string>* info = nullptr);
105 RetCode FetchToFd(const std::string& partition, android::base::borrowed_fd fd,
106 int64_t offset = -1, int64_t size = -1, std::string* response = nullptr,
107 std::vector<std::string>* info = nullptr);
110 RetCode FlashPartition(const std::string& partition, const std::vector<char>& data);
111 RetCode FlashPartition(const std::string& partition, android::base::borrowed_fd fd,
113 RetCode FlashPartition(const std::string& partition, sparse_file* s, uint32_t sz,
116 RetCode Partitions(std::vector<std::tuple<std::string, uint64_t>>* partitions);
117 RetCode Require(const std::string& var, const std::vector<std::string>& allowed, bool* reqmet,
121 void SetInfoCallback(std::function<void(const std::string&)> info);
122 static const std::string RCString(RetCode rc);
123 std::string Error();
130 RetCode RawCommand(const std::string& cmd, const std::string& message,
131 std::string* response = nullptr, std::vector<std::string>* info = nullptr,
134 RetCode RawCommand(const std::string& cmd, std::string* response = nullptr,
135 std::vector<std::string>* info = nullptr, int* dsize = nullptr);
138 RetCode DownloadCommand(uint32_t size, std::string* response = nullptr,
139 std::vector<std::string>* info = nullptr);
140 RetCode HandleResponse(std::string* response = nullptr,
141 std::vector<std::string>* info = nullptr, int* dsize = nullptr);
143 std::string ErrnoStr(const std::string& msg);
154 RetCode UploadInner(const std::string& outfile, std::string* response = nullptr,
155 std::vector<std::string>* info = nullptr);
156 RetCode RunAndReadBuffer(const std::string& cmd, std::string* response,
157 std::vector<std::string>* info,
162 std::string error_;
163 std::function<void(const std::string&)> prolog_;
165 std::function<void(const std::string&)> info_;
166 std::function<void(const std::string&)> text_;