Home
last modified time | relevance | path

Searched refs:cws (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DStatusBehavior.kt38 override fun bind(cws: ControlWithState, colorOffset: Int) { in <lambda>()
39 val status = cws.control?.status ?: Control.STATUS_UNKNOWN in <lambda>()
45 showNotFoundDialog(cvh, cws) in <lambda>()
48 showNotFoundDialog(cvh, cws) in <lambda>()
62 private fun showNotFoundDialog(cvh: ControlViewHolder, cws: ControlWithState) { in <lambda>()
64 val ai = pm.getApplicationInfo(cws.componentName.packageName, PackageManager.GET_META_DATA) in <lambda>()
82 cws.control?.getAppIntent()?.send(options) in <lambda>()
DControlViewHolder.kt105 lateinit var cws: ControlWithState variable in com.android.systemui.controls.ui.ControlViewHolder
114 get() = cws.control?.let { it.deviceType } ?: cws.ci.deviceType in <lambda>()
116 get() = cws.control?.let { it.status } ?: Control.STATUS_UNKNOWN in <lambda>()
118 get() = cws.control?.let { it.controlTemplate } ?: ControlTemplate.NO_TEMPLATE in <lambda>()
152 fun bindData(cws: ControlWithState, isLocked: Boolean) { in bindData()
158 this.cws = cws in bindData()
163 title.setText(cws.ci.controlTitle) in bindData()
164 subtitle.setText(cws.ci.controlSubtitle) in bindData()
166 cws.control?.let { in bindData()
173 cws.control?.let { in bindData()
[all …]
DControlActionCoordinatorImpl.kt92 cvh.cws.ci.controlId, in <lambda>()
98 cvh.cws.control?.isAuthRequired ?: true /* authIsRequired */ in <lambda>()
108 cvh.cws.ci.controlId, in <lambda>()
118 cvh.cws.control?.isAuthRequired ?: true /* authIsRequired */ in <lambda>()
136 cvh.cws.ci.controlId, in <lambda>()
139 cvh.cws.control?.isAuthRequired ?: true /* authIsRequired */ in <lambda>()
148 cvh.cws.ci.controlId, in <lambda>()
152 cvh.cws.control?.let { in <lambda>()
158 cvh.cws.control?.isAuthRequired ?: true /* authIsRequired */ in <lambda>()
DDefaultBehavior.kt26 override fun bind(cws: ControlWithState, colorOffset: Int) { in bind()
27 cvh.setStatusText(cws.control?.getStatusText() ?: "") in bind()
DToggleBehavior.kt43 override fun bind(cws: ControlWithState, colorOffset: Int) { in bind()
44 this.control = cws.control!! in bind()
DTemperatureControlBehavior.kt39 override fun bind(cws: ControlWithState, colorOffset: Int) { in <lambda>()
40 this.control = cws.control!! in <lambda>()
DTouchBehavior.kt68 override fun bind(cws: ControlWithState, colorOffset: Int) { in bind()
69 this.control = cws.control!! in bind()
DBehavior.kt37 fun bind(cws: ControlWithState, colorOffset: Int = 0)
DThumbnailBehavior.kt69 override fun bind(cws: ControlWithState, colorOffset: Int) { in bind()
70 this.control = cws.control!! in bind()
DToggleRangeBehavior.kt122 override fun bind(cws: ControlWithState, colorOffset: Int) { in <lambda>()
123 this.control = cws.control!! in <lambda>()
DControlsUiControllerImpl.kt797 val cws = ControlWithState(componentName, it.ci, c) in <lambda>() constant
799 controlsById.put(key, cws) in <lambda>()
802 uiExecutor.execute { it.bindData(cws, isLocked) } in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
DControlViewHolderTest.kt73 val cws = ControlWithState( in setUp() constant
81 cvh.bindData(cws, isLocked = false) in setUp()
120 val cws = ControlWithState( in chevronIcon() constant
127 cvh.bindData(cws, false) in chevronIcon()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DControlActionCoordinatorImplTest.kt106 `when`(cvh.cws.ci.controlId).thenReturn(ID) in any()
107 `when`(cvh.cws.control?.isAuthRequired()).thenReturn(true) in any()
187 `when`(cvh.cws.control).thenReturn(null) in testNullControl()