Searched refs:NewItemSpace (Results 1 – 3 of 3) sorted by relevance
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
D | AddWorkspaceItemsTaskTest.kt | 67 givenNewItemSpaces(NewItemSpace(1, 2, 2)) in givenNewItemAndNonEmptyPages_whenExecuteTask_thenAddNewItem() 80 givenNewItemSpaces(NewItemSpace(1, 0, 0)) in givenNewAndExistingItems_whenExecuteTask_thenOnlyAddNewItem() 94 givenNewItemSpaces(NewItemSpace(1, 0, 0)) in givenOnlyExistingItem_whenExecuteTask_thenDoNotAddItem() 107 givenNewItemSpaces(NewItemSpace(2, 1, 3)) in givenNonSequentialScreenIds_whenExecuteTask_thenReturnNewScreenId() 129 NewItemSpace(1, 3, 3), in givenMultipleItems_whenExecuteTask_thenAddThem() 130 NewItemSpace(2, 0, 0), in givenMultipleItems_whenExecuteTask_thenAddThem() 131 NewItemSpace(2, 0, 1), in givenMultipleItems_whenExecuteTask_thenAddThem() 153 private fun givenNewItemSpaces(vararg newItemSpaces: NewItemSpace) { in givenNewItemSpaces()
|
D | WorkspaceItemSpaceFinderTest.kt | 44 private fun findSpace(spanX: Int, spanY: Int): NewItemSpace = in findSpace() 54 .let { NewItemSpace.fromIntArray(it) } in findSpace() 56 private fun assertRegionVacant(newItemSpace: NewItemSpace, spanX: Int, spanY: Int) { in assertRegionVacant()
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/model/ |
D | AbstractWorkspaceModelTest.kt | 129 data class NewItemSpace(val screenId: Int, val cellX: Int, val cellY: Int) { class 133 fun fromIntArray(array: kotlin.IntArray) = NewItemSpace(array[0], array[1], array[2]) in toIntArray()
|