Home
last modified time | relevance | path

Searched refs:footer (Results 1 – 25 of 25) sorted by relevance

/system/apex/apexd/
Dapex_file.cpp212 auto footer = std::make_unique<AvbFooter>(); in GetAvbFooter() local
231 footer.get())) { in GetAvbFooter()
236 return footer; in GetAvbFooter()
277 const AvbFooter& footer, in VerifyVbMeta() argument
279 if (footer.vbmeta_size > kVbMetaMaxSize) { in VerifyVbMeta()
287 off_t offset = apex.GetImageOffset().value() + footer.vbmeta_offset; in VerifyVbMeta()
288 std::unique_ptr<uint8_t[]> vbmeta_buf(new uint8_t[footer.vbmeta_size]); in VerifyVbMeta()
290 if (!ReadFullyAtOffset(fd, vbmeta_buf.get(), footer.vbmeta_size, offset)) { in VerifyVbMeta()
295 VerifyVbMetaSignature(apex, vbmeta_buf.get(), footer.vbmeta_size); in VerifyVbMeta()
369 Result<std::unique_ptr<AvbFooter>> footer = GetAvbFooter(*this, fd); in VerifyApexVerity() local
[all …]
/system/extras/libfec/
Davb_utils.cpp37 AvbFooter footer; in parse_vbmeta_from_footer() local
38 if (!avb_footer_validate_and_byteswap(&footer_read, &footer)) { in parse_vbmeta_from_footer()
42 uint64_t vbmeta_offset = footer.vbmeta_offset; in parse_vbmeta_from_footer()
43 uint64_t vbmeta_size = footer.vbmeta_size; in parse_vbmeta_from_footer()
44 check(vbmeta_offset <= f->size - sizeof(footer) - vbmeta_size); in parse_vbmeta_from_footer()
/system/core/fs_mgr/libsnapshot/
Dinspect_cow.cpp99 CowFooter footer; in Inspect() local
101 if (reader.GetFooter(&footer)) has_footer = true; in Inspect()
111 std::cout << "Total Ops size: " << footer.op.ops_size << "\n"; in Inspect()
112 std::cout << "Number of Ops: " << footer.op.num_ops << "\n"; in Inspect()
Dcow_reader.cpp188 CowFooter* footer = &footer_.value(); in ParseOps() local
189 memcpy(&footer_->op, &current_op, sizeof(footer->op)); in ParseOps()
195 if (!android::base::ReadFully(fd_, &footer->data, sizeof(footer->data))) { in ParseOps()
406 bool CowReader::GetFooter(CowFooter* footer) { in GetFooter() argument
408 *footer = footer_.value(); in GetFooter()
Dcow_api_test.cpp84 CowFooter footer; in TEST_F() local
87 ASSERT_TRUE(reader.GetFooter(&footer)); in TEST_F()
92 ASSERT_EQ(footer.op.num_ops, 4); in TEST_F()
/system/update_engine/payload_generator/
Dpayload_generation_config_android.cc141 AvbFooter footer; in LoadVerityConfig() local
143 reinterpret_cast<const AvbFooter*>(buffer.data()), &footer)); in LoadVerityConfig()
147 footer.vbmeta_offset + sizeof(AvbVBMetaImageHeader) <= part.size); in LoadVerityConfig()
149 part.path, footer.vbmeta_offset, footer.vbmeta_size, &buffer)); in LoadVerityConfig()
/system/testing/gtest_extras/
DIsolate.cpp469 void Isolate::PrintResults(size_t total, const ResultsType& results, std::string* footer) { in PrintResults() argument
493 *footer += ' '; in PrintResults()
495 *footer += in PrintResults()
564 std::string footer; in PrintFooter() local
568 PrintResults(total_skipped_tests_, SkippedResults, &footer); in PrintFooter()
573 PrintResults(total_slow_tests_, SlowResults, &footer); in PrintFooter()
578 PrintResults(total_xpass_tests_, XpassFailResults, &footer); in PrintFooter()
583 PrintResults(total_timeout_tests_, TimeoutResults, &footer); in PrintFooter()
588 PrintResults(total_fail_tests_, FailResults, &footer); in PrintFooter()
591 if (!footer.empty()) { in PrintFooter()
[all …]
DIsolate.h73 void PrintResults(size_t total, const ResultsType& results, std::string* footer);
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dcow_reader.h70 virtual bool GetFooter(CowFooter* footer) = 0;
129 bool GetFooter(CowFooter* footer) override;
/system/core/fastboot/device/
Dflashing.cpp131 std::string footer; in CopyAVBFooter() local
134 footer.push_back(data->at(footer_offset + idx)); in CopyAVBFooter()
136 if (0 != footer.compare(AVB_FOOTER_MAGIC)) { in CopyAVBFooter()
/system/core/fs_mgr/libfs_avb/
Davb_util.cpp349 auto footer = std::make_unique<AvbFooter>(); in GetAvbFooter() local
360 if (!avb_footer_validate_and_byteswap((const AvbFooter*)footer_buf.data(), footer.get())) { in GetAvbFooter()
365 return footer; in GetAvbFooter()
462 std::unique_ptr<AvbFooter> footer = GetAvbFooter(fd); in VerifyVBMetaData() local
463 if (!footer) { in VerifyVBMetaData()
466 vbmeta_offset = footer->vbmeta_offset; in VerifyVBMetaData()
467 vbmeta_size = footer->vbmeta_size; in VerifyVBMetaData()
/system/core/fs_mgr/libfs_avb/tests/
Davb_util_test.cpp79 std::unique_ptr<AvbFooter> footer = GetAvbFooter(fd); in SetVBMetaFlags() local
80 EXPECT_NE(nullptr, footer); in SetVBMetaFlags()
81 vbmeta_offset = footer->vbmeta_offset; in SetVBMetaFlags()
245 auto footer = GetAvbFooter(fd); in TEST_F() local
246 EXPECT_NE(nullptr, footer); in TEST_F()
247 EXPECT_EQ(10485760, footer->original_image_size); in TEST_F()
248 EXPECT_EQ(10661888, footer->vbmeta_offset); in TEST_F()
249 EXPECT_EQ(3648, footer->vbmeta_size); in TEST_F()
259 auto footer = GetAvbFooter(fd); in TEST_F() local
260 EXPECT_EQ(nullptr, footer); in TEST_F()
[all …]
/system/testing/gtest_extras/tests/
DSystemTests.cpp79 void RunTestCaptureFooter(const std::string& test_name, std::string* footer,
234 void SystemTests::RunTestCaptureFooter(const std::string& test_name, std::string* footer, in RunTestCaptureFooter() argument
241 footer->clear(); in RunTestCaptureFooter()
243 if (!footer->empty()) { in RunTestCaptureFooter()
244 *footer += line + '\n'; in RunTestCaptureFooter()
246 *footer = line + '\n'; in RunTestCaptureFooter()
249 ASSERT_FALSE(footer->empty()) << "Test output:\n" << raw_output_; in RunTestCaptureFooter()
718 std::string footer; in TEST_F() local
720 "*.DISABLED_all_*", &footer, in TEST_F()
741 footer); in TEST_F()
/system/libziparchive/cli-tests/
Dzipinfo.test28 name: zipinfo footer
/system/bt/gd/packet/parser/test/
Dbig_endian_test_packets.pdl10 footer : 8,
Dtest_packets.pdl10 footer : 8,
Dgenerated_packet_test.cc100 uint8_t footer = 0xb1; in TEST() local
101 auto packet = ChildBuilder::Create(field_name, footer); in TEST()
193 uint8_t footer = 0xb1; in TEST() local
194 auto packet = ChildBuilder::Create(field_name, footer); in TEST()
/system/chre/chpp/
Dtransport.c896 struct ChppTransportFooter footer; in chppAddFooter() local
897 footer.checksum = chppCrc32(0, &packet->payload[CHPP_PREAMBLE_LEN_BYTES], in chppAddFooter()
902 footer.checksum, packet->length, packet->length + sizeof(footer)); in chppAddFooter()
904 chppAppendToPendingTxPacket(packet, (const uint8_t *)&footer, sizeof(footer)); in chppAddFooter()
DREADME.md33 …pically starting with a 6-byte app header, and ends with a 4-byte packet footer. Defined as a stru…
167 …in the transport layer payload length. The transport layer 4-byte packet footer follows. Defined a…
/system/gsid/
Dgsi_service.cpp1113 AvbFooter footer; in GetAvbPublicKeyFromFd() local
1114 if (!avb_footer_validate_and_byteswap((const AvbFooter*)footer_bytes.data(), &footer)) { in GetAvbPublicKeyFromFd()
1119 std::vector<uint8_t> vbmeta_bytes(footer.vbmeta_size); in GetAvbPublicKeyFromFd()
1120 if (!ReadFullyAtOffset(fd, vbmeta_bytes.data(), vbmeta_bytes.size(), footer.vbmeta_offset)) { in GetAvbPublicKeyFromFd()
/system/bt/gd/docs/architecture/
Darchitecture.md236 footer : 8, // fiexed size footer of 8 bits
/system/chre/pal/doc/
DDoxyfile1081 # The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each
1083 # footer. See HTML_HEADER for more information on how to generate a default
1084 # footer and what special commands can be used inside the footer. See also
1085 # section "Doxygen usage" for information on how to generate the default footer
1156 # If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
1661 # The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for the
1662 # generated LaTeX document. The footer should contain everything after the last
1663 # chapter. If it is left blank doxygen will generate a standard footer. See
1664 # LATEX_HEADER for more information on how to generate a default footer and what
1665 # special commands can be used inside the footer.
[all …]
/system/chre/chre_api/doc/
DDoxyfile1081 # The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each
1083 # footer. See HTML_HEADER for more information on how to generate a default
1084 # footer and what special commands can be used inside the footer. See also
1085 # section "Doxygen usage" for information on how to generate the default footer
1156 # If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
1661 # The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for the
1662 # generated LaTeX document. The footer should contain everything after the last
1663 # chapter. If it is left blank doxygen will generate a standard footer. See
1664 # LATEX_HEADER for more information on how to generate a default footer and what
1665 # special commands can be used inside the footer.
[all …]
/system/media/audio_utils/
DDoxyfile1159 # The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each
1161 # footer. See HTML_HEADER for more information on how to generate a default
1162 # footer and what special commands can be used inside the footer. See also
1163 # section "Doxygen usage" for information on how to generate the default footer
1234 # If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
1764 # The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for the
1765 # generated LaTeX document. The footer should contain everything after the last
1766 # chapter. If it is left blank doxygen will generate a standard footer. See
1767 # LATEX_HEADER for more information on how to generate a default footer and what
1768 # special commands can be used inside the footer.
[all …]
/system/core/fastboot/
Dfastboot.cpp990 const AvbFooter* footer = reinterpret_cast<const AvbFooter*>(data.c_str() + footer_offset); in rewrite_vbmeta_buffer() local
991 vbmeta_offset = be64toh(footer->vbmeta_offset); in rewrite_vbmeta_buffer()