Home
last modified time | relevance | path

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

/system/update_engine/cros/
Dp2p_manager.h55 const std::string& file_id, size_t minimum_size) = 0;
101 virtual void LookupUrlForFile(const std::string& file_id,
121 virtual bool FileShare(const std::string& file_id, size_t expected_size) = 0;
127 virtual base::FilePath FileGetPath(const std::string& file_id) = 0;
135 virtual ssize_t FileGetSize(const std::string& file_id) = 0;
144 virtual ssize_t FileGetExpectedSize(const std::string& file_id) = 0;
149 virtual bool FileGetVisible(const std::string& file_id, bool* out_result) = 0;
155 virtual bool FileMakeVisible(const std::string& file_id) = 0;
Dfake_p2p_manager.h47 void LookupUrlForFile(const std::string& file_id, in LookupUrlForFile() argument
54 bool FileShare(const std::string& file_id, size_t expected_size) override { in FileShare() argument
58 base::FilePath FileGetPath(const std::string& file_id) override { in FileGetPath() argument
62 ssize_t FileGetSize(const std::string& file_id) override { return -1; } in FileGetSize() argument
64 ssize_t FileGetExpectedSize(const std::string& file_id) override { in FileGetExpectedSize() argument
68 bool FileGetVisible(const std::string& file_id, bool* out_result) override { in FileGetVisible() argument
72 bool FileMakeVisible(const std::string& file_id) override { return false; } in FileMakeVisible() argument
Dp2p_manager.cc102 vector<string> GetP2PClientArgs(const string& file_id, in GetP2PClientArgs() argument
106 args.push_back(string("--get-url=") + file_id); in GetP2PClientArgs()
130 void LookupUrlForFile(const string& file_id,
134 bool FileShare(const string& file_id, size_t expected_size) override;
135 FilePath FileGetPath(const string& file_id) override;
136 ssize_t FileGetSize(const string& file_id) override;
137 ssize_t FileGetExpectedSize(const string& file_id) override;
138 bool FileGetVisible(const string& file_id, bool* out_result) override;
139 bool FileMakeVisible(const string& file_id) override;
152 FilePath GetPath(const string& file_id, Visibility visibility);
[all …]
Ddownload_action_chromeos_unittest.cc614 string file_id = delegate_.p2p_file_id_; in TEST_F() local
615 EXPECT_NE("", file_id); in TEST_F()
617 p2p_manager_->FileGetSize(file_id)); in TEST_F()
619 p2p_manager_->FileGetExpectedSize(file_id)); in TEST_F()
622 ReadFileToString(p2p_manager_->FileGetPath(file_id), &p2p_file_contents)); in TEST_F()
641 string file_id = utils::CalculateP2PFileId( in TEST_F() local
643 ASSERT_TRUE(p2p_manager_->FileShare(file_id, data_.length())); in TEST_F()
649 p2p_manager_->FileGetPath(file_id), existing_data.c_str(), 1000), in TEST_F()
656 EXPECT_EQ(delegate_.p2p_file_id_, file_id); in TEST_F()
658 p2p_manager_->FileGetSize(file_id)); in TEST_F()
[all …]
Dfake_p2p_manager_configuration.h46 std::vector<std::string> GetP2PClientArgs(const std::string& file_id, in GetP2PClientArgs() argument
52 base::ReplaceSubstringsAfterOffset(&arg, 0, "{file_id}", file_id); in GetP2PClientArgs()
Ddownload_action_chromeos.cc302 string file_id = utils::CalculateP2PFileId(payload_->hash, payload_->size); in StartDownloading() local
306 p2p_file_id_ = file_id; in StartDownloading()
314 FilePath path = SystemState::Get()->p2p_manager()->FileGetPath(file_id); in StartDownloading()
Domaha_request_action.cc1192 string file_id = in LookupPayloadViaP2P() local
1195 LOG(INFO) << "Checking if payload is available via p2p, file_id=" << file_id in LookupPayloadViaP2P()
1198 file_id, in LookupPayloadViaP2P()
/system/extras/puncture_fs/
Dpuncture_fs.cpp147 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/incremental_delivery/incfs/kernel-headers/linux/
Dincrementalfs.h188 incfs_uuid_t file_id; member
209 incfs_uuid_t file_id; member
293 incfs_uuid_t file_id; member
/system/extras/simpleperf/
Dcmd_report_sample.cpp398 FprintIndented(report_fp_, 2, "file_id: %u\n", callchain.file_id()); in DumpProtobufReport()
406 max_symbol_id_map[callchain.file_id()] = in DumpProtobufReport()
407 std::max(max_symbol_id_map[callchain.file_id()], symbol_id); in DumpProtobufReport()
591 uint32_t file_id; in PrintSampleRecordInProtobuf() local
592 if (!node.dso->GetDumpId(&file_id)) { in PrintSampleRecordInProtobuf()
593 file_id = node.dso->CreateDumpId(); in PrintSampleRecordInProtobuf()
602 callchain->set_file_id(file_id); in PrintSampleRecordInProtobuf()
709 uint32_t file_id; in PrintFileInfoInProtobuf() local
710 if (!dso->GetDumpId(&file_id)) { in PrintFileInfoInProtobuf()
715 file->set_id(file_id); in PrintFileInfoInProtobuf()
Dcmd_report_sample.proto30 optional uint32 file_id = 2; field
34 // of File with 'id' field being file_id, otherwise it is -1.
/system/extras/simpleperf/scripts/
Dsimpleperf_utils.py660 file_id = self._get_file_id(file_path)
663 cur_line_list.append((file_id, line_number, func_id))
665 cur_line_list.append((file_id, line_number))
705 file_id = self.file_name_to_id.get(file_path)
706 if file_id is None:
707 file_id = self.file_name_to_id[file_path] = len(self.file_id_to_name)
709 return file_id
726 return [(self.file_id_to_name[file_id], line, self.func_id_to_name[func_id])
727 for (file_id, line, func_id) in source]
728 return [(self.file_id_to_name[file_id], line) for (file_id, line) in source]
Dannotate.py34 def __init__(self, file_id, function, line): argument
35 self.file = file_id
117 def __init__(self, file_id): argument
118 self.file = file_id
Dreport_html.py480 def __init__(self, file_id: int, abstract_path: str):
481 self.file_id = file_id
759 function.source_info = (source_file.file_id, start_line, end_line)
777 function.build_line_hit_map(source_file.file_id, line, count_info[0],
883 key=lambda x: x.file_id)
/system/nfc/src/nfc/tags/
Dce_t4t.cc110 static bool ce_t4t_select_file(uint16_t file_id) { in ce_t4t_select_file() argument
113 DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf("FileID:0x%04X", file_id); in ce_t4t_select_file()
115 if (file_id == T4T_CC_FILE_ID) { in ce_t4t_select_file()
124 if (file_id == CE_T4T_MANDATORY_NDEF_FILE_ID) { in ce_t4t_select_file()
136 LOG(ERROR) << StringPrintf("Cannot find file ID (0x%04X)", file_id); in ce_t4t_select_file()
339 uint16_t file_id, status_words; in ce_t4t_process_select_file_cmd() local
350 BE_STREAM_TO_UINT16(file_id, p_cmd); in ce_t4t_process_select_file_cmd()
352 if (ce_t4t_select_file(file_id)) { in ce_t4t_process_select_file_cmd()
Drw_t4t.cc97 static bool rw_t4t_select_file(uint16_t file_id);
764 static bool rw_t4t_select_file(uint16_t file_id) { in rw_t4t_select_file() argument
769 << StringPrintf("%s - File ID:0x%04X", __func__, file_id); in rw_t4t_select_file()
795 UINT16_TO_BE_STREAM(p, file_id); in rw_t4t_select_file()
1240 if ((p_t4t->cc_file.ndef_fc.file_id == T4T_CC_FILE_ID) || in rw_t4t_validate_cc_file()
1241 (p_t4t->cc_file.ndef_fc.file_id == 0xE102) || in rw_t4t_validate_cc_file()
1242 ((p_t4t->cc_file.ndef_fc.file_id == 0x0000) && in rw_t4t_validate_cc_file()
1245 (p_t4t->cc_file.ndef_fc.file_id == 0x3F00) || in rw_t4t_validate_cc_file()
1246 (p_t4t->cc_file.ndef_fc.file_id == 0x3FFF) || in rw_t4t_validate_cc_file()
1247 (p_t4t->cc_file.ndef_fc.file_id == 0xFFFF)) { in rw_t4t_validate_cc_file()
[all …]
/system/incremental_delivery/incfs/
Dincfs.cpp777 static_assert(sizeof(args.file_id.bytes) == sizeof(id.data)); in IncFs_MakeFile()
778 memcpy(args.file_id.bytes, id.data, sizeof(args.file_id.bytes)); in IncFs_MakeFile()
1145 memcpy(&res.id.data, rawRead.file_id.bytes, sizeof(res.id.data)); in convertRead()
/system/nfc/src/nfc/include/
Drw_int.h566 uint16_t file_id; /* File Identifier */ member