Home
last modified time | relevance | path

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

/bootable/recovery/tests/unit/
Dscreen_ui_test.cpp236 std::vector<const GRSurface*> items = { in TEST_F() local
241 GraphicMenu menu(header.get(), items, 0, draw_funcs_); in TEST_F()
263 std::vector<const GRSurface*> items = { in TEST_F() local
269 ASSERT_TRUE(GraphicMenu::Validate(200, 200, header.get(), items)); in TEST_F()
273 ASSERT_FALSE(GraphicMenu::Validate(299, 200, wide_surface.get(), items)); in TEST_F()
276 items.emplace_back(image.get()); in TEST_F()
277 ASSERT_FALSE(GraphicMenu::Validate(200, 249, header.get(), items)); in TEST_F()
/bootable/recovery/recovery_ui/
Dscreen_ui.cpp65 const std::vector<std::string>& headers, const std::vector<std::string>& items, in TextMenu() argument
77 size_t items_count = scrollable_ ? items.size() : std::min(items.size(), max_display_items_); in TextMenu()
79 text_items_.emplace_back(items[i].substr(0, max_item_length_)); in TextMenu()
1248 const std::vector<std::string>& items, size_t initial_selection, in ShowMenu() argument
1251 auto menu = CreateMenu(headers, items, initial_selection); in ShowMenu()
1256 return ShowMenu(CreateMenu(headers, items, initial_selection), menu_only, key_handler); in ShowMenu()
/bootable/recovery/recovery_ui/include/recovery_ui/
Dui.h162 const std::vector<std::string>& items, size_t initial_selection,
Dscreen_ui.h109 const std::vector<std::string>& headers, const std::vector<std::string>& items,
225 size_t ShowMenu(const std::vector<std::string>& headers, const std::vector<std::string>& items,
/bootable/recovery/
Drecovery.cpp168 std::vector<std::string> items{ " No", " Yes" }; in yes_no() local
171 headers, items, 0, true, in yes_no()
178 std::vector<std::string> items{ " Cancel", " Factory data reset" }; in ask_to_wipe_data() local
181 headers, items, in ask_to_wipe_data()