Home
last modified time | relevance | path

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

/bootable/recovery/tests/unit/
Dscreen_ui_test.cpp77 ASSERT_EQ(5u, menu.ItemsCount()); in TEST_F()
81 for (size_t i = 0; i < menu.ItemsCount(); i++) { in TEST_F()
92 ASSERT_EQ(5u, menu.ItemsCount()); in TEST_F()
96 for (size_t i = 0; i < menu.ItemsCount() - 1; i++) { in TEST_F()
107 ASSERT_EQ(1u, menu.ItemsCount()); in TEST_F()
111 for (size_t i = 0; i < menu.ItemsCount(); i++) { in TEST_F()
122 ASSERT_EQ(5u, menu.ItemsCount()); in TEST_F()
128 for (size_t i = 0; i < menu.ItemsCount(); i++) { in TEST_F()
197 ASSERT_EQ(5u, menu.ItemsCount()); in TEST_F()
/bootable/recovery/recovery_ui/
Dscreen_ui.cpp100 return std::min(ItemsCount(), menu_start_ + max_display_items_); in MenuEnd()
103 size_t TextMenu::ItemsCount() const { in ItemsCount() function in TextMenu
108 if (!scrollable_ || ItemsCount() <= max_display_items_) { in ItemsOverflow()
113 android::base::StringPrintf("Current item: %zu/%zu", selection_ + 1, ItemsCount()); in ItemsOverflow()
119 CHECK_LE(ItemsCount(), static_cast<size_t>(std::numeric_limits<int>::max())); in Select()
120 int count = ItemsCount(); in Select()
/bootable/recovery/recovery_ui/include/recovery_ui/
Dscreen_ui.h121 size_t ItemsCount() const;