Home
last modified time | relevance | path

Searched refs:sel (Results 1 – 3 of 3) sorted by relevance

/bootable/recovery/tests/unit/
Dscreen_ui_test.cpp137 int sel = 0; in TEST_F() local
138 TextMenu menu(false, 10, 20, HEADERS, ITEMS, sel, 20, draw_funcs_); in TEST_F()
141 sel = menu.Select(++sel); in TEST_F()
142 ASSERT_EQ(sel, menu.selection()); in TEST_F()
154 sel = menu.Select(--sel); in TEST_F()
155 ASSERT_EQ(sel, menu.selection()); in TEST_F()
166 int sel = 0; in TEST_F() local
167 TextMenu menu(true, 10, 20, HEADERS, ITEMS, sel, 20, draw_funcs_); in TEST_F()
170 sel = menu.Select(++sel); in TEST_F()
171 ASSERT_EQ(sel, menu.selection()); in TEST_F()
[all …]
/bootable/recovery/recovery_ui/
Dscreen_ui.cpp119 int TextMenu::Select(int sel) { in Select() argument
125 if (sel < 0) { in Select()
127 } else if (sel >= count) { in Select()
130 selection_ = sel; in Select()
136 if (sel < 0) { in Select()
138 } else if (sel >= count) { in Select()
141 if (static_cast<size_t>(sel) < menu_start_) { in Select()
143 } else if (static_cast<size_t>(sel) >= MenuEnd()) { in Select()
146 selection_ = sel; in Select()
212 int GraphicMenu::Select(int sel) { in Select() argument
[all …]
/bootable/recovery/recovery_ui/include/recovery_ui/
Dscreen_ui.h89 virtual int Select(int sel) = 0;
112 int Select(int sel) override;
173 int Select(int sel) override;
287 virtual int SelectMenu(int sel);
412 void SelectAndShowBackgroundText(const std::vector<std::string>& locales_entries, size_t sel);