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/
Drecovery.cpp163 std::vector<std::string> items{ " No", " Yes" }; in yes_no() local
166 headers, items, 0, true, in yes_no()
173 std::vector<std::string> items{ " Cancel", " Factory data reset" }; in ask_to_wipe_data() local
176 headers, items, in ask_to_wipe_data()
348 std::vector<std::string> items{ " Cancel", item_text }; in AskToReboot() local
351 headers, items, 0, true /* menu_only */, in AskToReboot()
/bootable/recovery/recovery_ui/
Dscreen_ui.cpp66 const std::vector<std::string>& headers, const std::vector<std::string>& items, in TextMenu() argument
78 size_t items_count = scrollable_ ? items.size() : std::min(items.size(), max_display_items_); in TextMenu()
80 text_items_.emplace_back(items[i].substr(0, max_item_length_)); in TextMenu()
1283 const std::vector<std::string>& items, size_t initial_selection, in ShowMenu() argument
1286 auto menu = CreateMenu(headers, items, initial_selection); in ShowMenu()
/bootable/recovery/recovery_ui/include/recovery_ui/
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,
Dui.h164 const std::vector<std::string>& items, size_t initial_selection,