Home
last modified time | relevance | path

Searched refs:RetCode (Results 1 – 9 of 9) sorted by relevance

/system/core/fastboot/
Dfastboot_driver.h68 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,
75 RetCode Download(android::base::borrowed_fd fd, size_t size, std::string* response = nullptr,
77 RetCode Download(const std::string& name, const std::vector<char>& buf,
79 RetCode Download(const std::vector<char>& buf, std::string* response = nullptr,
81 RetCode Download(const std::string& partition, struct sparse_file* s, uint32_t sz,
84 RetCode Download(sparse_file* s, bool use_crc = false, std::string* response = nullptr,
[all …]
Dfastboot_driver_mock.h25 MOCK_METHOD(RetCode, FlashPartition, (const std::string&, android::base::borrowed_fd, uint32_t),
27 MOCK_METHOD(RetCode, DeletePartition, (const std::string&), (override));
28 MOCK_METHOD(RetCode, Reboot, (std::string*, std::vector<std::string>*), (override));
29 MOCK_METHOD(RetCode, RebootTo, (std::string, std::string*, std::vector<std::string>*),
31 MOCK_METHOD(RetCode, GetVar, (const std::string&, std::string*, std::vector<std::string>*),
33 MOCK_METHOD(RetCode, FetchToFd,
37 MOCK_METHOD(RetCode, Download,
41 MOCK_METHOD(RetCode, RawCommand,
45 MOCK_METHOD(RetCode, ResizePartition, (const std::string&, const std::string&), (override));
46 MOCK_METHOD(RetCode, Erase, (const std::string&, std::string*, std::vector<std::string>*),
[all …]
Dfastboot_driver_interface.h26 enum RetCode : int { enum
37 RetCode virtual FlashPartition(const std::string& partition, android::base::borrowed_fd fd,
39 RetCode virtual DeletePartition(const std::string& partition) = 0;
40 RetCode virtual WaitForDisconnect() = 0;
41 RetCode virtual Reboot(std::string* response = nullptr,
44 RetCode virtual RebootTo(std::string target, std::string* response = nullptr,
46 RetCode virtual GetVar(const std::string& key, std::string* val,
48 RetCode virtual FetchToFd(const std::string& partition, android::base::borrowed_fd fd,
52 RetCode virtual Download(const std::string& name, android::base::borrowed_fd fd, size_t size,
55 RetCode virtual RawCommand(const std::string& cmd, const std::string& message,
[all …]
Dfastboot_driver.cpp74 RetCode FastBootDriver::Boot(std::string* response, std::vector<std::string>* info) { in Boot()
78 RetCode FastBootDriver::Continue(std::string* response, std::vector<std::string>* info) { in Continue()
82 RetCode FastBootDriver::CreatePartition(const std::string& partition, const std::string& size) { in CreatePartition()
87 RetCode FastBootDriver::DeletePartition(const std::string& partition) { in DeletePartition()
91 RetCode FastBootDriver::Erase(const std::string& partition, std::string* response, in Erase()
96 RetCode FastBootDriver::Flash(const std::string& partition, std::string* response, in Flash()
101 RetCode FastBootDriver::GetVar(const std::string& key, std::string* val, in GetVar()
106 RetCode FastBootDriver::GetVarAll(std::vector<std::string>* response) { in GetVarAll()
111 RetCode FastBootDriver::Reboot(std::string* response, std::vector<std::string>* info) { in Reboot()
115 RetCode FastBootDriver::RebootTo(std::string target, std::string* response, in RebootTo()
[all …]
Dtask.cpp255 if (fp_->fb->GetVar("super-partition-name", &super_name) != fastboot::RetCode::SUCCESS) { in Run()
Dfastboot.cpp1445 if (fb->FetchToFd(partition, fd, offset, chunk_size) != fastboot::RetCode::SUCCESS) { in fetch_partition()
/system/core/fastboot/fuzzy_fastboot/
Dfixtures.h58 RetCode DownloadCommand(uint32_t size, std::string* response = nullptr,
61 RetCode SendBuffer(const std::vector<char>& buf);
62 RetCode HandleResponse(std::string* response = nullptr,
Dfixtures.cpp105 RetCode FastBootTest::DownloadCommand(uint32_t size, std::string* response, in DownloadCommand()
110 RetCode FastBootTest::SendBuffer(const std::vector<char>& buf) { in SendBuffer()
114 RetCode FastBootTest::HandleResponse(std::string* response, std::vector<std::string>* info, in HandleResponse()
Dmain.cpp97 ::std::ostream& operator<<(::std::ostream& os, const RetCode& ret) { in operator <<()
110 RetCode ret; in PartitionHash()
693 ASSERT_EQ(fastboot::RetCode::SUCCESS, ret) in TEST_F()
794 RetCode ret = SendBuffer(buf); in TEST_F()
811 RetCode ret = SendBuffer(buf); in TEST_F()
899 RetCode ret = fb->RawCommand(s); in TEST_F()
938 RetCode ret; in TEST_F()
972 RetCode ret = fb->Download(*sparse); in TEST_F()
1063 RetCode ret = fb->Download(*sparse); in TEST_F()
1629 const RetCode expect = (test.expect == extension::FAIL) ? DEVICE_FAIL : SUCCESS; in TEST_P()