• Home
  • Raw
  • Download

Lines Matching refs:string

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