Home
last modified time | relevance | path

Searched refs:menu (Results 1 – 4 of 4) sorted by relevance

/bootable/recovery/tests/unit/
Dscreen_ui_test.cpp74 TextMenu menu(false, 10, 20, HEADERS, ITEMS, 0, 20, draw_funcs_); in TEST_F() local
75 ASSERT_FALSE(menu.scrollable()); in TEST_F()
76 ASSERT_EQ(HEADERS[0], menu.text_headers()[0]); in TEST_F()
77 ASSERT_EQ(5u, menu.ItemsCount()); in TEST_F()
80 ASSERT_FALSE(menu.ItemsOverflow(&message)); in TEST_F()
81 for (size_t i = 0; i < menu.ItemsCount(); i++) { in TEST_F()
82 ASSERT_EQ(ITEMS[i], menu.TextItem(i)); in TEST_F()
85 ASSERT_EQ(0, menu.selection()); in TEST_F()
89 TextMenu menu(true, 10, 8, HEADERS, ITEMS, 1, 20, draw_funcs_); in TEST_F() local
90 ASSERT_TRUE(menu.scrollable()); in TEST_F()
[all …]
/bootable/recovery/recovery_ui/
Dscreen_ui.cpp1222 size_t ScreenRecoveryUI::ShowMenu(std::unique_ptr<Menu>&& menu, bool menu_only, in ShowMenu() argument
1231 CHECK(menu != nullptr); in ShowMenu()
1234 menu_ = std::move(menu); in ShowMenu()
1286 auto menu = CreateMenu(headers, items, initial_selection); in ShowMenu() local
1287 if (menu == nullptr) { in ShowMenu()
1291 return ShowMenu(std::move(menu), menu_only, key_handler); in ShowMenu()
/bootable/recovery/
DREADME.md16 # Manually choose `Recovery mode` from bootloader menu.
71 recovery menu.
/bootable/recovery/recovery_ui/include/recovery_ui/
Dscreen_ui.h282 virtual size_t ShowMenu(std::unique_ptr<Menu>&& menu, bool menu_only,