Home
last modified time | relevance | path

Searched refs:file_id (Results 1 – 14 of 14) sorted by relevance

/system/update_engine/
Dp2p_manager.h56 const std::string& file_id, size_t minimum_size) = 0;
102 virtual void LookupUrlForFile(const std::string& file_id,
122 virtual bool FileShare(const std::string& file_id,
129 virtual base::FilePath FileGetPath(const std::string& file_id) = 0;
137 virtual ssize_t FileGetSize(const std::string& file_id) = 0;
146 virtual ssize_t FileGetExpectedSize(const std::string& file_id) = 0;
151 virtual bool FileGetVisible(const std::string& file_id,
158 virtual bool FileMakeVisible(const std::string& file_id) = 0;
Dp2p_manager.cc101 vector<string> GetP2PClientArgs(const string &file_id, in GetP2PClientArgs() argument
105 args.push_back(string("--get-url=") + file_id); in GetP2PClientArgs()
130 void LookupUrlForFile(const string& file_id,
134 bool FileShare(const string& file_id,
136 FilePath FileGetPath(const string& file_id) override;
137 ssize_t FileGetSize(const string& file_id) override;
138 ssize_t FileGetExpectedSize(const string& file_id) override;
139 bool FileGetVisible(const string& file_id,
141 bool FileMakeVisible(const string& file_id) override;
157 FilePath GetPath(const string& file_id, Visibility visibility);
[all …]
Dfake_p2p_manager.h55 void LookupUrlForFile(const std::string& file_id, in LookupUrlForFile() argument
62 bool FileShare(const std::string& file_id, in FileShare() argument
67 base::FilePath FileGetPath(const std::string& file_id) override { in FileGetPath() argument
71 ssize_t FileGetSize(const std::string& file_id) override { in FileGetSize() argument
75 ssize_t FileGetExpectedSize(const std::string& file_id) override { in FileGetExpectedSize() argument
79 bool FileGetVisible(const std::string& file_id, in FileGetVisible() argument
84 bool FileMakeVisible(const std::string& file_id) override { in FileMakeVisible() argument
Dfake_p2p_manager_configuration.h60 std::vector<std::string> GetP2PClientArgs(const std::string &file_id, in GetP2PClientArgs() argument
66 base::ReplaceSubstringsAfterOffset(&arg, 0, "{file_id}", file_id); in GetP2PClientArgs()
Domaha_request_action.cc1096 string file_id = utils::CalculateP2PFileId(response.hash, response.size); in LookupPayloadViaP2P() local
1099 << file_id << " minimum_size=" << minimum_size; in LookupPayloadViaP2P()
1101 file_id, in LookupPayloadViaP2P()
/system/update_engine/payload_consumer/
Ddownload_action_unittest.cc530 string file_id = download_action_->p2p_file_id(); in TEST_F() local
531 EXPECT_NE("", file_id); in TEST_F()
533 p2p_manager_->FileGetSize(file_id)); in TEST_F()
535 p2p_manager_->FileGetExpectedSize(file_id)); in TEST_F()
537 EXPECT_TRUE(ReadFileToString(p2p_manager_->FileGetPath(file_id), in TEST_F()
569 string file_id = utils::CalculateP2PFileId("1234hash", data_.length()); in TEST_F() local
570 ASSERT_TRUE(p2p_manager_->FileShare(file_id, data_.length())); in TEST_F()
574 ASSERT_EQ(WriteFile(p2p_manager_->FileGetPath(file_id), existing_data.c_str(), in TEST_F()
581 EXPECT_EQ(download_action_->p2p_file_id(), file_id); in TEST_F()
583 p2p_manager_->FileGetSize(file_id)); in TEST_F()
[all …]
Ddownload_action.cc196 string file_id = utils::CalculateP2PFileId(install_plan_.payload_hash, in PerformAction() local
201 p2p_file_id_ = file_id; in PerformAction()
209 FilePath path = system_state_->p2p_manager()->FileGetPath(file_id); in PerformAction()
/system/extras/puncture_fs/
Dpuncture_fs.c147 u64 file_id = 1; in puncture_fs() local
168 file_id++, in puncture_fs()
173 file_id++, in puncture_fs()
182 file_id++, in puncture_fs()
/system/webservd/webservd/
Drequest.cc121 base::File Request::GetFileData(int file_id) { in GetFileData() argument
123 if (file_id >= 0 && static_cast<size_t>(file_id) < file_info_.size()) { in GetFileData()
124 file.Initialize(file_info_[file_id]->temp_file_name, in GetFileData()
Drequest.h80 base::File GetFileData(int file_id);
/system/webservd/libwebserv/
Drequest.cc26 int file_id, in FileInfo() argument
32 file_id_{file_id},
Ddbus_protocol_handler.h128 int file_id,
Drequest.h55 int file_id,
Ddbus_protocol_handler.cc257 int file_id, in GetFileData() argument
292 proxy->GetRequestFileDataAsync(request_id, file_id, base::Bind(on_success), in GetFileData()