Searched refs:indexToPin (Results 1 – 2 of 2) sorted by relevance
/packages/apps/Car/Launcher/docklib/tests/src/com/android/car/docklib/ |
D | DockViewModelTest.kt | 245 model.pinItem(newComponent, indexToPin = -1) in <lambda>() 262 model.pinItem(newComponent, indexToPin = MAX_ITEMS + 1) in <lambda>() 271 val indexToPin = 2 in <lambda>() constant 280 model.pinItem(newComponent, indexToPin) in <lambda>() 283 indexToPin].component).isEqualTo(newComponent) in <lambda>() 284 assertThat(items[indexToPin].type).isEqualTo(DockAppItem.Type.STATIC) in <lambda>() 297 model.pinItem(newComponent, indexToPin = null) in <lambda>() 312 model.pinItem(newComponent, indexToPin = null) in <lambda>() 325 model.pinItem(newComponent, indexToPin = null) in <lambda>() 338 model.pinItem(newComponent, indexToPin = null) in <lambda>()
|
/packages/apps/Car/Launcher/docklib/src/com/android/car/docklib/ |
D | DockViewModel.kt | 144 fun pinItem(component: ComponentName, indexToPin: Int? = null) { in <lambda>() 145 if (DEBUG) Log.d(TAG, "Pin Item, component: $component, indexToPin: $indexToPin") in <lambda>() 151 if (indexToPin != null) { in <lambda>() 152 if (indexToPin in 0..<maxItemsInDock) { in <lambda>() 153 if (DEBUG) Log.d(TAG, "Pinning $component at $indexToPin") in <lambda>() 154 internalItems[indexToPin] = dockItem in <lambda>()
|