Home
last modified time | relevance | path

Searched refs:numDynamic (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/popup/
DPopupPopulatorTest.java78 int numDynamic = 0; in filterShortcutsAndAssertNumStaticAndDynamic() local
84 numDynamic++; in filterShortcutsAndAssertNumStaticAndDynamic()
88 assertEquals(expectedDynamic, numDynamic); in filterShortcutsAndAssertNumStaticAndDynamic()
111 private List<ShortcutInfo> createShortcutsList(int numStatic, int numDynamic) { in createShortcutsList() argument
116 for (int i = 0; i < numDynamic; i++) { in createShortcutsList()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupPopulator.java80 int numDynamic = 0; in sortAndFilterShortcuts() local
89 numDynamic++; in sortAndFilterShortcuts()
95 if (shortcut.isDynamic() && numDynamic < NUM_DYNAMIC) { in sortAndFilterShortcuts()
96 numDynamic++; in sortAndFilterShortcuts()
97 int lastStaticIndex = filteredSize - numDynamic; in sortAndFilterShortcuts()