Home
last modified time | relevance | path

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

/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/popup/
DPopupPopulatorTest.java19 import static com.android.launcher3.popup.PopupPopulator.MAX_SHORTCUTS;
49 filterShortcutsAndAssertNumStaticAndDynamic(createShortcutsList(5, 0), MAX_SHORTCUTS, 0); in testSortAndFilterShortcuts()
50 filterShortcutsAndAssertNumStaticAndDynamic(createShortcutsList(0, 5), 0, MAX_SHORTCUTS); in testSortAndFilterShortcuts()
52 MAX_SHORTCUTS - NUM_DYNAMIC, NUM_DYNAMIC); in testSortAndFilterShortcuts()
54 MAX_SHORTCUTS - NUM_DYNAMIC, NUM_DYNAMIC); in testSortAndFilterShortcuts()
55 … filterShortcutsAndAssertNumStaticAndDynamic(createShortcutsList(5, 1), MAX_SHORTCUTS - 1, 1); in testSortAndFilterShortcuts()
56 … filterShortcutsAndAssertNumStaticAndDynamic(createShortcutsList(1, 5), 1, MAX_SHORTCUTS - 1); in testSortAndFilterShortcuts()
58 MAX_SHORTCUTS - NUM_DYNAMIC, NUM_DYNAMIC); in testSortAndFilterShortcuts()
60 MAX_SHORTCUTS - NUM_DYNAMIC, NUM_DYNAMIC); in testSortAndFilterShortcuts()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupPopulator.java53 public static final int MAX_SHORTCUTS = 4; field in PopupPopulator
96 if (shortcuts.size() <= MAX_SHORTCUTS) { in sortAndFilterShortcuts()
102 List<ShortcutInfo> filteredShortcuts = new ArrayList<>(MAX_SHORTCUTS); in sortAndFilterShortcuts()
108 if (filteredSize < MAX_SHORTCUTS) { in sortAndFilterShortcuts()
DPopupContainerWithArrow.java22 import static com.android.launcher3.popup.PopupPopulator.MAX_SHORTCUTS;
365 ? MAX_SHORTCUTS_IF_NOTIFICATIONS : MAX_SHORTCUTS; in updateHiddenShortcuts()
/packages/apps/Contacts/src/com/android/contacts/
DDynamicShortcuts.java90 private static final int MAX_SHORTCUTS = 3; field in DynamicShortcuts
227 String.valueOf(MAX_SHORTCUTS)) in getStrequentShortcuts()
237 while (i < MAX_SHORTCUTS && cursor.moveToNext()) { in getStrequentShortcuts()