Home
last modified time | relevance | path

Searched refs:file_id (Results 1 – 19 of 19) 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, size_t expected_size) = 0;
128 virtual base::FilePath FileGetPath(const std::string& file_id) = 0;
136 virtual ssize_t FileGetSize(const std::string& file_id) = 0;
145 virtual ssize_t FileGetExpectedSize(const std::string& file_id) = 0;
150 virtual bool FileGetVisible(const std::string& file_id, bool* out_result) = 0;
156 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.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, 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 …]
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()
Domaha_request_action.cc1160 string file_id = in LookupPayloadViaP2P() local
1163 LOG(INFO) << "Checking if payload is available via p2p, file_id=" << file_id in LookupPayloadViaP2P()
1166 file_id, in LookupPayloadViaP2P()
/system/update_engine/payload_consumer/
Ddownload_action_unittest.cc626 string file_id = delegate_.p2p_file_id_; in TEST_F() local
627 EXPECT_NE("", file_id); in TEST_F()
629 p2p_manager_->FileGetSize(file_id)); in TEST_F()
631 p2p_manager_->FileGetExpectedSize(file_id)); in TEST_F()
634 ReadFileToString(p2p_manager_->FileGetPath(file_id), &p2p_file_contents)); in TEST_F()
653 string file_id = utils::CalculateP2PFileId( in TEST_F() local
655 ASSERT_TRUE(p2p_manager_->FileShare(file_id, data_.length())); in TEST_F()
661 p2p_manager_->FileGetPath(file_id), existing_data.c_str(), 1000), in TEST_F()
668 EXPECT_EQ(delegate_.p2p_file_id_, file_id); in TEST_F()
670 p2p_manager_->FileGetSize(file_id)); in TEST_F()
[all …]
Ddownload_action.cc300 string file_id = utils::CalculateP2PFileId(payload_->hash, payload_->size); in StartDownloading() local
304 p2p_file_id_ = file_id; in StartDownloading()
312 FilePath path = system_state_->p2p_manager()->FileGetPath(file_id); in StartDownloading()
/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/extras/simpleperf/scripts/
Dutils.py544 file_id = self._get_file_id(file_path)
547 cur_line_list.append((file_id, line_number, func_id))
549 cur_line_list.append((file_id, line_number))
589 file_id = self.file_name_to_id.get(file_path)
590 if file_id is None:
591 file_id = self.file_name_to_id[file_path] = len(self.file_id_to_name)
593 return file_id
610 return [(self.file_id_to_name[file_id], line, self.func_id_to_name[func_id])
611 for (file_id, line, func_id) in source]
612 return [(self.file_id_to_name[file_id], line) for (file_id, line) in source]
Dannotate.py32 def __init__(self, file_id, function, line): argument
33 self.file = file_id
112 def __init__(self, file_id): argument
113 self.file = file_id
Dreport_html.py444 def __init__(self, file_id, abstract_path): argument
445 self.file_id = file_id
710 function.source_info = (source_file.file_id, start_line, end_line)
728 function.build_line_hit_map(source_file.file_id, line, count_info[0],
827 key=lambda x: x.file_id)
/system/incremental_delivery/incfs/kernel-headers/linux/
Dincrementalfs.h115 incfs_uuid_t file_id; member
194 incfs_uuid_t file_id; member
/system/extras/simpleperf/
Dcmd_report_sample.cpp349 FprintIndented(report_fp_, 2, "file_id: %u\n", callchain.file_id()); in DumpProtobufReport()
357 max_symbol_id_map[callchain.file_id()] = in DumpProtobufReport()
358 std::max(max_symbol_id_map[callchain.file_id()], symbol_id); in DumpProtobufReport()
540 uint32_t file_id; in PrintSampleRecordInProtobuf() local
541 if (!node.dso->GetDumpId(&file_id)) { in PrintSampleRecordInProtobuf()
542 file_id = node.dso->CreateDumpId(); in PrintSampleRecordInProtobuf()
551 callchain->set_file_id(file_id); in PrintSampleRecordInProtobuf()
613 uint32_t file_id; in PrintFileInfoInProtobuf() local
614 if (!dso->GetDumpId(&file_id)) { in PrintFileInfoInProtobuf()
619 file->set_id(file_id); in PrintFileInfoInProtobuf()
Dreport_sample.proto30 optional uint32 file_id = 2; field
34 // of File with 'id' field being file_id, otherwise it is -1.
/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.cc95 static bool rw_t4t_select_file(uint16_t file_id);
609 static bool rw_t4t_select_file(uint16_t file_id) { in rw_t4t_select_file() argument
613 DLOG_IF(INFO, nfc_debug_enabled) << StringPrintf("File ID:0x%04X", file_id); in rw_t4t_select_file()
638 UINT16_TO_BE_STREAM(p, file_id); in rw_t4t_select_file()
955 if ((p_t4t->cc_file.ndef_fc.file_id == T4T_CC_FILE_ID) || in rw_t4t_validate_cc_file()
956 (p_t4t->cc_file.ndef_fc.file_id == 0xE102) || in rw_t4t_validate_cc_file()
957 (p_t4t->cc_file.ndef_fc.file_id == 0xE103) || in rw_t4t_validate_cc_file()
958 ((p_t4t->cc_file.ndef_fc.file_id == 0x0000) && in rw_t4t_validate_cc_file()
960 (p_t4t->cc_file.ndef_fc.file_id == 0x3F00) || in rw_t4t_validate_cc_file()
961 (p_t4t->cc_file.ndef_fc.file_id == 0x3FFF) || in rw_t4t_validate_cc_file()
[all …]
/system/core/adb/client/
Dincremental_server.cpp122 FileId file_id; // 2 bytes member
131 FileId file_id; // 2 bytes member
347 request.file_id = readBigEndian<FileId>(&commandBuf[2]); in ReadRequest()
401 buffer.header.file_id = toBigEndian(fileId); in SendTreeBlock()
454 header->file_id = toBigEndian(fileId); in SendDataBlock()
467 header.file_id = -1; in SendDone()
581 FileId fileId = request->file_id; in Serve()
/system/incremental_delivery/incfs/
Dincfs.cpp679 static_assert(sizeof(args.file_id.bytes) == sizeof(id.data)); in IncFs_MakeFile()
680 memcpy(args.file_id.bytes, id.data, sizeof(args.file_id.bytes)); in IncFs_MakeFile()
1010 memcpy(&buffer[i].id.data, pendingReads[i].file_id.bytes, sizeof(buffer[i].id.data)); in IncFs_WaitForPendingReads()
1036 memcpy(&buffer[i].id.data, pendingReads[i].file_id.bytes, sizeof(buffer[i].id.data)); in IncFs_WaitForPageReads()
/system/nfc/src/nfc/include/
Drw_int.h547 uint16_t file_id; /* File Identifier */ member