Home
last modified time | relevance | path

Searched refs:file_id (Results 1 – 15 of 15) 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;
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
Dp2p_manager.cc104 vector<string> GetP2PClientArgs(const string &file_id, in GetP2PClientArgs() argument
108 args.push_back(string("--get-url=") + file_id); in GetP2PClientArgs()
133 void LookupUrlForFile(const string& file_id,
137 bool FileShare(const string& file_id,
139 FilePath FileGetPath(const string& file_id) override;
140 ssize_t FileGetSize(const string& file_id) override;
141 ssize_t FileGetExpectedSize(const string& file_id) override;
142 bool FileGetVisible(const string& file_id,
144 bool FileMakeVisible(const string& file_id) override;
160 FilePath GetPath(const string& file_id, Visibility visibility);
[all …]
Dfake_p2p_manager_configuration.h48 std::vector<std::string> GetP2PClientArgs(const std::string &file_id, in GetP2PClientArgs() argument
54 base::ReplaceSubstringsAfterOffset(&arg, 0, "{file_id}", file_id); in GetP2PClientArgs()
Domaha_request_action.cc1314 string file_id = in LookupPayloadViaP2P() local
1317 LOG(INFO) << "Checking if payload is available via p2p, file_id=" << file_id in LookupPayloadViaP2P()
1320 file_id, in LookupPayloadViaP2P()
/system/update_engine/payload_consumer/
Ddownload_action_unittest.cc627 string file_id = download_action_->p2p_file_id(); in TEST_F() local
628 EXPECT_NE("", file_id); in TEST_F()
630 p2p_manager_->FileGetSize(file_id)); in TEST_F()
632 p2p_manager_->FileGetExpectedSize(file_id)); in TEST_F()
634 EXPECT_TRUE(ReadFileToString(p2p_manager_->FileGetPath(file_id), in TEST_F()
666 string file_id = utils::CalculateP2PFileId( in TEST_F() local
668 ASSERT_TRUE(p2p_manager_->FileShare(file_id, data_.length())); in TEST_F()
672 ASSERT_EQ(WriteFile(p2p_manager_->FileGetPath(file_id), existing_data.c_str(), in TEST_F()
679 EXPECT_EQ(download_action_->p2p_file_id(), file_id); in TEST_F()
681 p2p_manager_->FileGetSize(file_id)); in TEST_F()
[all …]
Ddownload_action.cc259 string file_id = utils::CalculateP2PFileId(payload_->hash, payload_->size); in StartDownloading() local
263 p2p_file_id_ = file_id; in StartDownloading()
271 FilePath path = system_state_->p2p_manager()->FileGetPath(file_id); in StartDownloading()
/system/extras/puncture_fs/
Dpuncture_fs.c147 u64 file_id = 1; in puncture_fs() local
172 file_id++, in puncture_fs()
177 file_id++, in puncture_fs()
186 file_id++, in puncture_fs()
/system/extras/simpleperf/
Dcmd_report_sample.cpp295 FprintIndented(report_fp_, 2, "file_id: %u\n", callchain.file_id()); in DumpProtobufReport()
303 max_symbol_id_map[callchain.file_id()] = in DumpProtobufReport()
304 std::max(max_symbol_id_map[callchain.file_id()], symbol_id); in DumpProtobufReport()
477 uint32_t file_id; in PrintSampleRecordInProtobuf() local
478 if (!node.dso->GetDumpId(&file_id)) { in PrintSampleRecordInProtobuf()
479 file_id = node.dso->CreateDumpId(); in PrintSampleRecordInProtobuf()
488 callchain->set_file_id(file_id); in PrintSampleRecordInProtobuf()
551 uint32_t file_id; in PrintFileInfoInProtobuf() local
552 if (!dso->GetDumpId(&file_id)) { in PrintFileInfoInProtobuf()
557 file->set_id(file_id); in PrintFileInfoInProtobuf()
Dreport_sample.proto28 optional uint32 file_id = 2; field
32 // of File with 'id' field being file_id, otherwise it is -1.
/system/extras/simpleperf/scripts/
Dutils.py543 file_id = self._get_file_id(file_path)
544 cur_line_list.append((file_id, line_number))
561 file_id = self.file_name_to_id.get(file_path)
562 if file_id is None:
563 file_id = self.file_name_to_id[file_path] = len(self.file_id_to_name)
565 return file_id
574 return [(self.file_id_to_name[file_id], line) for (file_id, line) in source]
Dreport_html.py359 def __init__(self, file_id, abstract_path): argument
360 self.file_id = file_id
670 function.source_info = (source_file.file_id, start_line, end_line)
688 function.build_line_hit_map(source_file.file_id, line,
776 key=lambda x: x.file_id)
/system/nfc/src/nfc/tags/
Dce_t4t.cc111 static bool ce_t4t_select_file(uint16_t file_id) { in ce_t4t_select_file() argument
114 DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf("FileID:0x%04X", file_id); in ce_t4t_select_file()
116 if (file_id == T4T_CC_FILE_ID) { in ce_t4t_select_file()
125 if (file_id == CE_T4T_MANDATORY_NDEF_FILE_ID) { in ce_t4t_select_file()
137 LOG(ERROR) << StringPrintf("Cannot find file ID (0x%04X)", file_id); in ce_t4t_select_file()
340 uint16_t file_id, status_words; in ce_t4t_process_select_file_cmd() local
351 BE_STREAM_TO_UINT16(file_id, p_cmd); in ce_t4t_process_select_file_cmd()
353 if (ce_t4t_select_file(file_id)) { in ce_t4t_process_select_file_cmd()
Drw_t4t.cc96 static bool rw_t4t_select_file(uint16_t file_id);
610 static bool rw_t4t_select_file(uint16_t file_id) { in rw_t4t_select_file() argument
614 DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf("File ID:0x%04X", file_id); in rw_t4t_select_file()
639 UINT16_TO_BE_STREAM(p, file_id); in rw_t4t_select_file()
956 if ((p_t4t->cc_file.ndef_fc.file_id == T4T_CC_FILE_ID) || in rw_t4t_validate_cc_file()
957 (p_t4t->cc_file.ndef_fc.file_id == 0xE102) || in rw_t4t_validate_cc_file()
958 (p_t4t->cc_file.ndef_fc.file_id == 0xE103) || in rw_t4t_validate_cc_file()
959 ((p_t4t->cc_file.ndef_fc.file_id == 0x0000) && in rw_t4t_validate_cc_file()
961 (p_t4t->cc_file.ndef_fc.file_id == 0x3F00) || in rw_t4t_validate_cc_file()
962 (p_t4t->cc_file.ndef_fc.file_id == 0x3FFF) || in rw_t4t_validate_cc_file()
[all …]
/system/nfc/src/nfc/include/
Drw_int.h547 uint16_t file_id; /* File Identifier */ member