Home
last modified time | relevance | path

Searched refs:IntSet (Results 1 – 25 of 34) sorted by relevance

12

/packages/apps/Launcher3/src/com/android/launcher3/util/
DIntSet.java25 public class IntSet implements Iterable<Integer> { class
43 public IntSet addAll(IntSet other) { in addAll()
82 return (obj instanceof IntSet) && ((IntSet) obj).mArray.equals(mArray); in equals()
95 public void copyFrom(IntSet other) { in copyFrom()
99 public static IntSet wrap(IntArray array) { in wrap()
100 IntSet set = new IntSet(); in wrap()
109 public static IntSet wrap(int... array) { in wrap()
116 public static IntSet wrap(Iterable<Integer> iterable) { in wrap()
117 IntSet set = new IntSet(); in wrap()
DItemInfoMatcher.java75 public static Predicate<ItemInfo> ofItemIds(IntSet ids) { in ofItemIds()
83 IntSet ids = new IntSet(); in ofItems()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DIntSetTest.java39 IntSet set = new IntSet(); in shouldBeEmptyInitially()
45 IntSet set = new IntSet(); in oneElementSet()
55 IntSet set = new IntSet(); in twoElementSet()
65 IntSet set = new IntSet(); in threeElementSet()
76 IntSet set = new IntSet(); in duplicateEntries()
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DModelMultiCallbacksTest.java37 import com.android.launcher3.util.IntSet;
93 cb2.mPageToBindSync = IntSet.wrap(2); in testTwoCallbacks_loadedTogether()
175 IntSet mPageToBindSync = IntSet.wrap(0);
176 IntSet mPageBoundSync = new IntSet();
189 public void onInitialBindComplete(IntSet boundPages, RunnableList pendingTasks, in onInitialBindComplete()
207 public IntSet getPagesToBindSynchronously(IntArray orderedScreenIds) { in getPagesToBindSynchronously()
213 mPageBoundSync = new IntSet(); in reset()
224 assertEquals(IntSet.wrap(mItems.get(0).screenId), mPageBoundSync); in verifySynchronouslyBound()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetSections.java33 import com.android.launcher3.util.IntSet;
50 private static Map<ComponentName, IntSet> sWidgetsToCategories;
62 public static synchronized Map<ComponentName, IntSet> getWidgetsToCategory( in getWidgetsToCategory()
73 Map<ComponentName, IntSet> widgetsToCategories = new ArrayMap<>(); in parseWidgetSectionsXml()
96 final IntSet categories; in parseWidgetSectionsXml()
100 categories = new IntSet(); in parseWidgetSectionsXml()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/model/
DPackageInstallStateChangedTaskTest.java34 import com.android.launcher3.util.IntSet;
54 private IntSet mDownloadingApps;
76 mDownloadingApps = IntSet.wrap(4, 5, 6, 7, 8, 9, 10); in setup()
126 IntSet updates = IntSet.wrap(idsUpdated); in verifyProgressUpdate()
DAsyncBindingTest.kt32 import com.android.launcher3.util.IntSet in <lambda>()
142 val firstPageBindIds = IntSet() in <lambda>()
197 override fun getPagesToBindSynchronously(orderedScreenIds: IntArray?) = IntSet.wrap(0) in <lambda>()
200 boundPages: IntSet, in <lambda>()
DCacheDataUpdatedTaskTest.java43 import com.android.launcher3.util.IntSet;
168 IntSet updates = IntSet.wrap(idsUpdated); in verifyUpdate()
DWidgetsModelTest.kt37 import com.android.launcher3.util.IntSet in <lambda>()
96 val widgetToCategoryEntry: Map.Entry<ComponentName, IntSet> = in <lambda>()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DBgDataModel.java61 import com.android.launcher3.util.IntSet;
152 IntSet screenSet = new IntSet(); in collectWorkspaceScreens()
406 default IntSet getPagesToBindSynchronously(IntArray orderedScreenIds) { in getPagesToBindSynchronously()
407 return new IntSet(); in getPagesToBindSynchronously()
424 default void finishBindingItems(IntSet pagesBoundFirst) { } in finishBindingItems()
451 default void onInitialBindComplete(@NonNull IntSet boundPages, in onInitialBindComplete()
DWorkspaceItemSpaceFinder.java30 import com.android.launcher3.util.IntSet;
83 IntSet screensToExclude = new IntSet(); in findSpaceForItem()
DModelUtils.java24 import com.android.launcher3.util.IntSet;
36 public static Predicate<ItemInfo> currentScreenContentFilter(IntSet currentScreenIds) { in currentScreenContentFilter()
DPackageUpdatedTask.java54 import com.android.launcher3.util.IntSet;
209 final IntSet removedShortcuts = new IntSet(); in execute()
211 final IntSet forceKeepShortcuts = new IntSet(); in execute()
DWidgetsModel.java36 import com.android.launcher3.util.IntSet;
258 Map<ComponentName, IntSet> widgetsToCategories = in newPendingItemInfo()
272 Map<ComponentName, IntSet> widgetsToCategories = in getPackageUserKeys()
274 IntSet categories = widgetsToCategories.get(item.componentName); in getPackageUserKeys()
DDatabaseHelper.java49 import com.android.launcher3.util.IntSet;
328 final IntSet validWidgets = IntSet.wrap(LauncherDbUtils.queryIntArray(false, db, in removeGhostWidgets()
DBaseLauncherBinder.java50 import com.android.launcher3.util.IntSet;
274 final IntSet currentScreenIds = in bind()
352 IntSet currentScreenIds, in setupPendingBind()
/packages/apps/Launcher3/src/com/android/launcher3/pm/
DInstallSessionHelper.java42 import com.android.launcher3.util.IntSet;
88 private IntSet mPromiseIconIds;
99 private IntSet getPromiseIconIds() { in getPromiseIconIds()
104 mPromiseIconIds = IntSet.wrap(IntArray.fromConcatString( in getPromiseIconIds()
/packages/apps/Launcher3/src/com/android/launcher3/
DWorkspaceLayoutManager.java29 import com.android.launcher3.util.IntSet;
40 IntSet EXTRA_EMPTY_SCREEN_IDS =
41 IntSet.wrap(EXTRA_EMPTY_SCREEN_ID, EXTRA_EMPTY_SCREEN_SECOND_ID);
DDropTargetHandler.kt13 import com.android.launcher3.util.IntSet
82 IntSet.wrap(pageItem.screenId) in onDeleteComplete()
DPagedView.java61 import com.android.launcher3.util.IntSet;
328 public IntSet getVisiblePageIndices() { in getVisiblePageIndices()
337 private IntSet getPageIndices(int pageIndex) { in getPageIndices()
341 IntSet pageIndices = new IntSet(); in getPageIndices()
353 private IntSet getNeighbourPageIndices(int focus) { in getNeighbourPageIndices()
365 return new IntSet(); in getNeighbourPageIndices()
370 return new IntSet(); in getNeighbourPageIndices()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DActiveTrackpadList.kt23 import com.android.launcher3.util.IntSet
27 IntSet(), InputManager.InputDeviceListener {
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/
DQuickstepWidgetHolder.java34 import com.android.launcher3.util.IntSet;
291 public final IntSet changedViews = new IntSet();
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarModelCallbacks.java31 import com.android.launcher3.util.IntSet;
85 public void finishBindingItems(IntSet pagesBoundFirst) { in finishBindingItems()
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DLauncherDbUtils.kt45 import com.android.launcher3.util.IntSet in <lambda>()
175 val deletedShortcuts = IntSet() in <lambda>()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DLauncherPreviewRenderer.java107 import com.android.launcher3.util.IntSet;
546 IntSet missingHotseatRank = new IntSet();
553 .filter(currentScreenContentFilter(IntSet.wrap(mWorkspaceScreens.keySet())))

12