Searched refs:PanelItem (Results 1 – 7 of 7) sorted by relevance
25 import com.android.car.customization.tool.domain.panel.PanelItem32 ) : 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()
23 import com.android.car.customization.tool.domain.panel.PanelItem29 override fun bindTo(model: PanelItem, handleAction: (Action) -> Unit) { in bindTo()30 model as PanelItem.SectionTitle in bindTo()
24 import com.android.car.customization.tool.domain.panel.PanelItem32 override fun bindTo(model: PanelItem, handleAction: (Action) -> Unit) { in bindTo()33 model as PanelItem.Switch in bindTo()
22 import com.android.car.customization.tool.domain.panel.PanelItem29 abstract fun bindTo(model: PanelItem, handleAction: (Action) -> Unit)
26 val items: List<PanelItem> in <lambda>()61 internal sealed class PanelItem(open val isEnabled: Boolean) { class65 ) : PanelItem(isEnabled = true)73 ) : PanelItem(isEnabled)
25 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>()
27 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>()