Lines Matching refs:boot
30 using ::android::hardware::boot::V1_0::IBootControl;
31 using ::android::hardware::boot::V1_0::CommandResult;
32 using ::android::hardware::boot::V1_0::BoolResult;
33 using ::android::hardware::boot::V1_0::Slot;
45 boot = IBootControl::getService(GetParam()); in SetUp()
46 ASSERT_NE(boot, nullptr); in SetUp()
51 sp<IBootControl> boot; member in BootHidlTest
60 uint32_t slots = boot->getNumberSlots(); in TEST_P()
66 Slot curSlot = boot->getCurrentSlot(); in TEST_P()
67 uint32_t slots = boot->getNumberSlots(); in TEST_P()
74 Return<void> result = boot->markBootSuccessful(generate_callback(&cr)); in TEST_P()
77 Slot curSlot = boot->getCurrentSlot(); in TEST_P()
78 BoolResult ret = boot->isSlotMarkedSuccessful(curSlot); in TEST_P()
84 Slot curSlot = boot->getCurrentSlot(); in TEST_P()
86 auto otherBootable = boot->isSlotBootable(otherSlot); in TEST_P()
90 Return<void> result = boot->setActiveBootSlot(s, generate_callback(&cr)); in TEST_P()
96 auto result = boot->setActiveBootSlot(curSlot, generate_callback(&cr)); in TEST_P()
101 result = boot->setSlotAsUnbootable(otherSlot, generate_callback(&cr)); in TEST_P()
106 result = boot->markBootSuccessful(generate_callback(&cr)); in TEST_P()
112 uint32_t slots = boot->getNumberSlots(); in TEST_P()
113 Return<void> result = boot->setActiveBootSlot(slots, generate_callback(&cr)); in TEST_P()
120 Slot curSlot = boot->getCurrentSlot(); in TEST_P()
122 auto otherBootable = boot->isSlotBootable(otherSlot); in TEST_P()
125 Return<void> result = boot->setSlotAsUnbootable(otherSlot, generate_callback(&cr)); in TEST_P()
128 EXPECT_EQ(BoolResult::FALSE, boot->isSlotBootable(otherSlot)); in TEST_P()
132 result = boot->setActiveBootSlot(otherSlot, generate_callback(&cr)); in TEST_P()
136 result = boot->setActiveBootSlot(curSlot, generate_callback(&cr)); in TEST_P()
139 result = boot->markBootSuccessful(generate_callback(&cr)); in TEST_P()
146 uint32_t slots = boot->getNumberSlots(); in TEST_P()
147 Return<void> result = boot->setSlotAsUnbootable(slots, generate_callback(&cr)); in TEST_P()
156 EXPECT_NE(BoolResult::INVALID_SLOT, boot->isSlotBootable(s)); in TEST_P()
158 uint32_t slots = boot->getNumberSlots(); in TEST_P()
159 EXPECT_EQ(BoolResult::INVALID_SLOT, boot->isSlotBootable(slots)); in TEST_P()
165 EXPECT_NE(BoolResult::INVALID_SLOT, boot->isSlotMarkedSuccessful(s)); in TEST_P()
167 uint32_t slots = boot->getNumberSlots(); in TEST_P()
168 EXPECT_EQ(BoolResult::INVALID_SLOT, boot->isSlotMarkedSuccessful(slots)); in TEST_P()
176 for (Slot i = 0; i < boot->getNumberSlots(); i++) { in TEST_P()
178 Return<void> result = boot->getSuffix(i, cb); in TEST_P()
185 ASSERT_EQ(boot->getNumberSlots(), suffixes.size()); in TEST_P()
188 Return<void> result = boot->getSuffix(boot->getNumberSlots(), cb); in TEST_P()