Home
last modified time | relevance | path

Searched refs:PanelItem (Results 1 – 7 of 7) sorted by relevance

/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/ui/panel/items/
DPanelItemsAdapter.kt25 import com.android.car.customization.tool.domain.panel.PanelItem
32 ) : ListAdapter<PanelItem, PanelItemViewHolder>(ItemCallback()) {
65 is PanelItem.SectionTitle -> ViewType.SECTION_TITLE.ordinal in getItemViewType()
66 is PanelItem.Switch -> ViewType.SWITCH.ordinal in getItemViewType()
86 class ItemCallback : DiffUtil.ItemCallback<PanelItem>() {
88 override fun areItemsTheSame(p0: PanelItem, p1: PanelItem): Boolean { in areItemsTheSame()
92 override fun areContentsTheSame(p0: PanelItem, p1: PanelItem): Boolean { in areContentsTheSame()
DPanelSectionTitleItemViewHolder.kt23 import com.android.car.customization.tool.domain.panel.PanelItem
29 override fun bindTo(model: PanelItem, handleAction: (Action) -> Unit) { in bindTo()
30 model as PanelItem.SectionTitle in bindTo()
DPanelSwitchViewHolder.kt24 import com.android.car.customization.tool.domain.panel.PanelItem
32 override fun bindTo(model: PanelItem, handleAction: (Action) -> Unit) { in bindTo()
33 model as PanelItem.Switch in bindTo()
DPanelItemViewHolder.kt22 import com.android.car.customization.tool.domain.panel.PanelItem
29 abstract fun bindTo(model: PanelItem, handleAction: (Action) -> Unit)
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/domain/panel/
DPanel.kt26 val items: List<PanelItem> in <lambda>()
61 internal sealed class PanelItem(open val isEnabled: Boolean) { class
65 ) : PanelItem(isEnabled = true)
73 ) : PanelItem(isEnabled)
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/features/rro/unbundled/apprro/
DUnbundledRroPanelReducer.kt25 import com.android.car.customization.tool.domain.panel.PanelItem in <lambda>()
45 val items = listOf(PanelItem.SectionTitle(appPackage)) in <lambda>()
53 PanelItem.Switch( in <lambda>()
89 if (item is PanelItem.Switch && item.text == action.rroPackage) { in <lambda>()
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/features/rro/list/
DRroListPanelReducer.kt27 import com.android.car.customization.tool.domain.panel.PanelItem in <lambda>()
178 private fun createUiItems(): List<PanelItem> = rroState in <lambda>()
194 listOf(PanelItem.SectionTitle(packageName)).plus( in <lambda>()
196 PanelItem.Switch( in <lambda>()