Home
last modified time | relevance | path

Searched refs:MiscWriter (Results 1 – 5 of 5) sorted by relevance

/hardware/google/pixel/misc_writer/
Dmisc_writer_test.cpp41 ASSERT_TRUE(MiscWriter::WriteMiscPartitionVendorSpace(zeros.data(), zeros.size(), 0, &err)) in TearDown()
47 std::unique_ptr<MiscWriter> misc_writer_;
52 ASSERT_TRUE(MiscWriter::OffsetAndSizeInVendorSpace(offset, expected.size())); in CheckMiscPartitionVendorSpaceContent()
66 misc_writer_ = std::make_unique<MiscWriter>(MiscWriterActions::kSetDarkThemeFlag); in TEST_F()
72 misc_writer_ = std::make_unique<MiscWriter>(MiscWriterActions::kClearDarkThemeFlag); in TEST_F()
79 misc_writer_ = std::make_unique<MiscWriter>(MiscWriterActions::kSetDarkThemeFlag); in TEST_F()
85 misc_writer_ = std::make_unique<MiscWriter>(MiscWriterActions::kClearDarkThemeFlag); in TEST_F()
92 misc_writer_ = std::make_unique<MiscWriter>(MiscWriterActions::kSetSotaFlag); in TEST_F()
103 misc_writer_ = std::make_unique<MiscWriter>(MiscWriterActions::kClearSotaFlag); in TEST_F()
113 MiscWriter::WriteMiscPartitionVendorSpace(kTestMessage.data(), kTestMessage.size(), 0, &err)); in TEST_F()
[all …]
Dmisc_writer.cpp31 bool MiscWriter::OffsetAndSizeInVendorSpace(size_t offset, size_t size) { in OffsetAndSizeInVendorSpace()
36 bool MiscWriter::WriteMiscPartitionVendorSpace(const void* data, size_t size, size_t offset, in WriteMiscPartitionVendorSpace()
50 bool MiscWriter::PerformAction(std::optional<size_t> override_offset) { in PerformAction()
Dmisc_writer_main.cpp34 using android::hardware::google::pixel::MiscWriter;
69 std::unique_ptr<MiscWriter> misc_writer; in main()
93 misc_writer = std::make_unique<MiscWriter>(iter->second); in main()
/hardware/google/pixel/recovery/
Drecovery_ui.cpp83 MiscWriter misc_writer(MiscWriterActions::kClearDarkThemeFlag); in WipeProvisionedFlag()
94 if (android::base::StartsWith(reason, MiscWriter::kSotaFlag)) { in ProvisionSilentOtaFlag()
95 MiscWriter misc_writer(MiscWriterActions::kSetSotaFlag); in ProvisionSilentOtaFlag()
/hardware/google/pixel/misc_writer/include/misc_writer/
Dmisc_writer.h39 class MiscWriter {
53 explicit MiscWriter(const MiscWriterActions& action) : action_(action) {} in MiscWriter() function