Home
last modified time | relevance | path

Searched refs:IntArray (Results 1 – 25 of 91) sorted by relevance

1234

/packages/apps/Launcher3/tests/src/com/android/launcher3/search/
DStringMatcherUtilityTest.java30 import com.android.launcher3.util.IntArray;
148 assertEquals(IntArray.wrap(), getListOfBreakpoints("", MATCHER)); in testStringWithProperBreaks()
151 assertEquals(IntArray.wrap(0), getListOfBreakpoints("DDz", MATCHER)); in testStringWithProperBreaks()
154 assertEquals(IntArray.wrap(), getListOfBreakpoints("SNKRS", MATCHER)); in testStringWithProperBreaks()
155 assertEquals(IntArray.wrap(), getListOfBreakpoints("flutterappflorafy", MATCHER)); in testStringWithProperBreaks()
156 assertEquals(IntArray.wrap(), getListOfBreakpoints("LEGO®", MATCHER)); in testStringWithProperBreaks()
160 assertEquals(IntArray.wrap(9), getListOfBreakpoints("flutterappFlorafy", MATCHER)); in testStringWithProperBreaks()
162 assertEquals(IntArray.wrap(4), getListOfBreakpoints("MetroZone", MATCHER)); in testStringWithProperBreaks()
164 assertEquals(IntArray.wrap(4,5), getListOfBreakpoints("metroXZone", MATCHER)); in testStringWithProperBreaks()
166 assertEquals(IntArray.wrap(0), getListOfBreakpoints("GPay", MATCHER)); in testStringWithProperBreaks()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DIntArray.java27 public class IntArray implements Cloneable, Iterable<Integer> { class
35 private IntArray(int[] array, int size) { in IntArray() method in IntArray
43 public IntArray() { in IntArray() method in IntArray
50 public IntArray(int initialCapacity) { in IntArray() method in IntArray
62 public static IntArray wrap(int... array) { in wrap()
63 return new IntArray(array, array.length); in wrap()
96 public void addAll(IntArray values) { in addAll()
107 public void copyFrom(IntArray other) { in copyFrom()
136 public IntArray clone() { in clone()
145 if (obj instanceof IntArray) { in equals()
[all …]
DIntSet.java27 final IntArray mArray = new IntArray();
88 public IntArray getArray() { in getArray()
99 public static IntSet wrap(IntArray array) { in wrap()
110 return wrap(IntArray.wrap(array)); in wrap()
DResourceHelper.kt23 import kotlin.IntArray
34 open fun obtainStyledAttributes(attrs: AttributeSet, styleId: IntArray): TypedArray { in obtainStyledAttributes()
/packages/services/Car/car-lib/src/com/android/car/internal/util/
DIntArray.java29 public class IntArray implements Cloneable { class
35 private IntArray(int[] array, int size) { in IntArray() method in IntArray
43 public IntArray() { in IntArray() method in IntArray
50 public IntArray(int initialCapacity) { in IntArray() method in IntArray
62 public static IntArray wrap(int[] array) { in wrap()
63 return new IntArray(array, array.length); in wrap()
69 public static IntArray fromArray(int[] array, int size) { in fromArray()
136 public void addAll(IntArray values) { in addAll()
179 public IntArray clone() throws CloneNotSupportedException { in clone()
180 final IntArray clone = (IntArray) super.clone(); in clone()
/packages/apps/Launcher3/src/com/android/launcher3/
DAppWidgetsRestoredReceiver.java25 import com.android.launcher3.util.IntArray;
76 + "oldWidgetIds=" + IntArray.wrap(oldWidgetIds).toConcatString() in restoreAppWidgetIds()
77 + ", newWidgetIds=" + IntArray.wrap(newWidgetIds).toConcatString()); in restoreAppWidgetIds()
139 IntArray widgetIdList = new IntArray(); in logDatabaseWidgetInfo()
140 IntArray widgetRestoreList = new IntArray(); in logDatabaseWidgetInfo()
141 IntArray widgetProfileIdList = new IntArray(); in logDatabaseWidgetInfo()
/packages/apps/LegacyCamera/src/com/android/camera/
DIconListPreference.java90 IntArray iconIds = new IntArray(); in filterUnsupported()
91 IntArray largeIconIds = new IntArray(); in filterUnsupported()
92 IntArray imageIds = new IntArray(); in filterUnsupported()
/packages/apps/ThemePicker/src/com/android/customization/model/color/
DColorOptionImpl.kt42 @ColorInt val lightColors: IntArray,
43 @ColorInt val darkColors: IntArray,
46 fun resolveColors(darkTheme: Boolean): IntArray { in resolveColors()
74 @ColorInt var lightColors: IntArray = intArrayOf()
76 @ColorInt var darkColors: IntArray = intArrayOf()
DColorProvider.kt301 private fun ColorScheme.getLightColorPreview(): IntArray { in ColorScheme()
325 private fun ColorScheme.getDarkColorPreview(): IntArray { in getDarkColorPreview()
337 private fun getRevampedUILightColorPreview(colorScheme: ColorScheme): IntArray { in getRevampedUILightColorPreview()
354 private fun getRevampedUIDarkColorPreview(colorScheme: ColorScheme): IntArray { in getRevampedUIDarkColorPreview()
371 private fun getRevampedUILightMonochromePreview(colorScheme: ColorScheme): IntArray { in getRevampedUILightMonochromePreview()
388 private fun getRevampedUIDarkMonochromePreview(colorScheme: ColorScheme): IntArray { in getRevampedUIDarkMonochromePreview()
401 private fun getRevampedUIPresetColorPreview(colorScheme: ColorScheme, seed: Int): IntArray { in getRevampedUIPresetColorPreview()
417 private fun ColorScheme.getPresetColorPreview(seed: Int): IntArray { in getPresetColorPreview()
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DAbstractWorkspaceModelTest.kt26 import com.android.launcher3.util.IntArray in <lambda>()
47 protected lateinit var mExistingScreens: IntArray in <lambda>()
48 protected lateinit var mNewScreens: IntArray in <lambda>()
59 mExistingScreens = IntArray() in <lambda>()
61 mNewScreens = IntArray() in <lambda>()
133 fun fromIntArray(array: kotlin.IntArray) = NewItemSpace(array[0], array[1], array[2]) in toIntArray()
DAddWorkspaceItemsTaskTest.kt25 import com.android.launcher3.util.IntArray
171 eq(IntArray.wrap(*nonEmptyScreenIds.toIntArray())), in verifyItemSpaceFinderCall()
172 eq(IntArray()), in verifyItemSpaceFinderCall()
219 newScreens: IntArray?, in bindAppsAdded()
/packages/services/Car/service/src/com/android/car/telemetry/publisher/net/
DRefinedStats.java23 import com.android.car.internal.util.IntArray;
41 private final IntArray mUid = new IntArray();
42 private final IntArray mTag = new IntArray();
/packages/apps/Launcher3/src/com/android/launcher3/search/
DStringMatcherUtility.java21 import com.android.launcher3.util.IntArray;
74 public static IntArray getListOfBreakpoints(CharSequence input, StringMatcher matcher) {
80 return IntArray.wrap(IntStream.range(0, inputLength)
85 IntArray listOfBreakPoints = new IntArray();
/packages/apps/Launcher3/src/com/android/launcher3/model/
DModelUtils.java20 import com.android.launcher3.util.IntArray;
76 public static IntArray getMissingHotseatRanks(List<ItemInfo> items, int len) { in getMissingHotseatRanks()
81 IntArray result = new IntArray(len); in getMissingHotseatRanks()
DBaseLauncherBinder.java38 import com.android.launcher3.util.IntArray;
110 IntArray workspacePages) { in initWorkspaceBinder()
126 final IntArray orderedScreenIds = new IntArray(); in bindWorkspaceAllAtOnce()
245 private final IntArray mOrderedScreenIds;
256 IntArray orderedScreenIds) { in UnifiedWorkspaceBinder()
362 private final IntArray mOrderedScreenIds;
366 protected DisjointWorkspaceBinder(IntArray orderedScreenIds) { in DisjointWorkspaceBinder()
DWorkspaceItemSpaceFinder.java28 import com.android.launcher3.util.IntArray;
44 IntArray workspaceScreens, IntArray addedWorkspaceScreensFinal, int spanX, int spanY) { in findSpaceForItem()
DGridSizeMigrationUtil.java47 import com.android.launcher3.util.IntArray;
153 final IntArray toBeRemoved = new IntArray(); in migrate()
241 @NonNull final IntArray toBeRemoved) { in calcDiff()
302 private static void removeEntryFromDb(SQLiteDatabase db, String tableName, IntArray entryIds) { in removeEntryFromDb()
445 IntArray entriesToRemove = new IntArray(); in loadHotseatEntries()
514 IntArray entriesToRemove = new IntArray(); in loadAllWorkspaceEntries()
603 removeEntryFromDb(mDb, mTableName, IntArray.wrap(c.getInt(0))); in getFolderItemsCount()
/packages/apps/Launcher3/src/com/android/launcher3/pm/
DInstallSessionHelper.java38 import com.android.launcher3.util.IntArray;
98 mPromiseIconIds = IntSet.wrap(IntArray.fromConcatString( in getPromiseIconIds()
101 IntArray existingIds = new IntArray(); in getPromiseIconIds()
105 IntArray idsToRemove = new IntArray(); in getPromiseIconIds()
/packages/services/Car/service/src/com/android/car/
DCarUxRestrictionsManagerService.java77 import com.android.car.internal.util.IntArray;
231 private IntArray mDisplayIds = new IntArray(INITIAL_DISPLAYS_SIZE);
262 IntArray updatedDisplayIds = new IntArray(8);
263 IntArray newlyAddedDisplayIds = new IntArray(8);
351 IntArray displayIds; in init()
353 displayIds = IntArray.fromArray(mDisplayIds.toArray(), mDisplayIds.size()); in init()
466 private void initializeUxRestrictions(IntArray displayIds) { in initializeUxRestrictions()
881 IntArray displayIds) { in handleDrivingStateEventOnDisplaysLocked()
971 @FloatRange(from = 0f) float speed, IntArray displayIds) { in handleDispatchUxRestrictionsLocked()
985 IntArray displaysToDispatch = new IntArray(INITIAL_DISPLAYS_SIZE); in handleDispatchUxRestrictionsLocked()
[all …]
DCarOccupantZoneService.java70 import com.android.car.internal.util.IntArray;
126 DisplayConfig(int displayType, int occupantZoneId, IntArray inputTypes) { in DisplayConfig()
564 public IntArray getAllDisplayIdsForDriver(int displayType) { in getAllDisplayIdsForDriver()
568 return new IntArray(0); in getAllDisplayIdsForDriver()
570 IntArray displayIds = new IntArray(config.displayInfos.size()); in getAllDisplayIdsForDriver()
1098 ArrayMap<Integer, IntArray> allowlists = null; in doSyncWithCarServiceHelper()
1122 IntArray displays = new IntArray(); in getAllActivePassengerDisplaysLocked()
1173 private ArrayMap<Integer, IntArray> createDisplayAllowlistsLocked() { in createDisplayAllowlistsLocked()
1174 ArrayMap<Integer, IntArray> allowlists = new ArrayMap<>(); in createDisplayAllowlistsLocked()
1188 IntArray displays = allowlists.get(config.userId); in createDisplayAllowlistsLocked()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DLevenshteinDistance.kt30 private val mEditTypeTable: Array<IntArray>
31 private val mDistanceTable: Array<IntArray>
148 val editTab = Array(sourceSize + 1) { IntArray(targetSize + 1) } in <lambda>()
149 val distTab = Array(sourceSize + 1) { IntArray(targetSize + 1) } in <lambda>()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DBubbleTextViewTest.java37 import com.android.launcher3.util.IntArray;
265 IntArray breakPoints = StringMatcherUtility.getListOfBreakpoints( in modifyTitleToSupportMultiLine_TEST_STRING_WITH_SPACE_LONGER_THAN_CHAR_LIMIT()
276 IntArray breakPoints = StringMatcherUtility.getListOfBreakpoints( in modifyTitleToSupportMultiLine_TEST_LONG_STRING_NO_SPACE_LONGER_THAN_CHAR_LIMIT()
287 IntArray breakPoints = StringMatcherUtility.getListOfBreakpoints( in modifyTitleToSupportMultiLine_TEST_LONG_STRING_WITH_SPACE_LONGER_THAN_CHAR_LIMIT()
298 IntArray breakPoints = StringMatcherUtility.getListOfBreakpoints( in modifyTitleToSupportMultiLine_TEST_LONG_STRING_SYMBOL_LONGER_THAN_CHAR_LIMIT()
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DLauncherDbUtils.java44 import com.android.launcher3.util.IntArray;
59 public static IntArray queryIntArray(boolean distinct, SQLiteDatabase db, String tableName, in queryIntArray()
61 IntArray out = new IntArray(); in queryIntArray()
DRestoreDbTask.java59 import com.android.launcher3.util.IntArray;
284 IntArray distinctScreens = LauncherDbUtils.queryIntArray(true, db, Favorites.TABLE_NAME, in removeScreenIdGaps()
385 IntArray.fromConcatString(lp.get(OLD_APP_WIDGET_IDS)).toArray(), in restoreAppWidgetIdsIfExists()
386 IntArray.fromConcatString(lp.get(APP_WIDGET_IDS)).toArray(), in restoreAppWidgetIdsIfExists()
398 OLD_APP_WIDGET_IDS.to(IntArray.wrap(oldIds).toConcatString()), in setRestoredAppWidgetIds()
399 APP_WIDGET_IDS.to(IntArray.wrap(newIds).toConcatString())); in setRestoredAppWidgetIds()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DIntArrayTest.java36 String concat = IntArray.wrap(array).toConcatString(); in concatAndParseString()
38 int[] parsed = IntArray.fromConcatString(concat).toArray(); in concatAndParseString()

1234