Home
last modified time | relevance | path

Searched refs:cvh (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DStatusBehavior.kt31 lateinit var cvh: ControlViewHolder in <lambda>() variable in com.android.systemui.controls.ui.StatusBehavior
33 override fun initialize(cvh: ControlViewHolder) { in <lambda>()
34 this.cvh = cvh in <lambda>()
43 cvh.layout.setOnClickListener(View.OnClickListener() { in <lambda>()
44 showNotFoundDialog(cvh, cws) in <lambda>()
46 cvh.layout.setOnLongClickListener(View.OnLongClickListener() { in <lambda>()
47 showNotFoundDialog(cvh, cws) in <lambda>()
53 cvh.isLoading = true in <lambda>()
57 cvh.setStatusText(cvh.context.getString(msg)) in <lambda>()
58 cvh.applyRenderInfo(false, colorOffset) in <lambda>()
[all …]
DControlActionCoordinatorImpl.kt65 override fun toggle(cvh: ControlViewHolder, templateId: String, isChecked: Boolean) { in <lambda>()
66 bouncerOrRun(Action(cvh.cws.ci.controlId, { in <lambda>()
67 cvh.layout.performHapticFeedback(HapticFeedbackConstants.CONTEXT_CLICK) in <lambda>()
68 cvh.action(BooleanAction(templateId, !isChecked)) in <lambda>()
72 override fun touch(cvh: ControlViewHolder, templateId: String, control: Control) { in <lambda>()
73 val blockable = cvh.usePanel() in <lambda>()
74 bouncerOrRun(Action(cvh.cws.ci.controlId, { in <lambda>()
75 cvh.layout.performHapticFeedback(HapticFeedbackConstants.CONTEXT_CLICK) in <lambda>()
76 if (cvh.usePanel()) { in <lambda>()
77 showDialog(cvh, control.getAppIntent().getIntent()) in <lambda>()
[all …]
DToggleRangeBehavior.kt55 lateinit var cvh: ControlViewHolder in <lambda>() variable in com.android.systemui.controls.ui.ToggleRangeBehavior
68 override fun initialize(cvh: ControlViewHolder) { in <lambda>()
69 this.cvh = cvh in <lambda>()
70 context = cvh.context in <lambda>()
72 val gestureListener = ToggleRangeGestureListener(cvh.layout) in <lambda>()
74 cvh.layout.setOnTouchListener { v: View, e: MotionEvent -> in <lambda>()
130 cvh.layout.setOnLongClickListener(null) in <lambda>()
132 val ld = cvh.layout.getBackground() as LayerDrawable in <lambda>()
142 cvh.applyRenderInfo(isChecked, colorOffset) in <lambda>()
148 cvh.layout.setAccessibilityDelegate(object : View.AccessibilityDelegate() { in <lambda>()
[all …]
DTouchBehavior.kt38 lateinit var cvh: ControlViewHolder variable in com.android.systemui.controls.ui.TouchBehavior
48 override fun initialize(cvh: ControlViewHolder) { in initialize()
49 this.cvh = cvh in initialize()
51 cvh.layout.setOnClickListener(View.OnClickListener() { in initialize()
52 cvh.controlActionCoordinator.touch(cvh, template.getTemplateId(), control) in initialize()
59 cvh.applyRenderInfo(enabled, lastColorOffset) in initialize()
60 cvh.uiExecutor.executeDelayed({ in initialize()
62 cvh.applyRenderInfo(enabled, lastColorOffset) in initialize()
71 cvh.setStatusText(control.getStatusText()) in bind()
74 val ld = cvh.layout.getBackground() as LayerDrawable in bind()
[all …]
DTemperatureControlBehavior.kt32 lateinit var cvh: ControlViewHolder in <lambda>() variable in com.android.systemui.controls.ui.TemperatureControlBehavior
35 override fun initialize(cvh: ControlViewHolder) { in <lambda>()
36 this.cvh = cvh in <lambda>()
42 cvh.setStatusText(control.getStatusText()) in <lambda>()
44 val ld = cvh.layout.getBackground() as LayerDrawable in <lambda>()
56 cvh.applyRenderInfo(enabled, activeMode) in <lambda>()
58 cvh.layout.setOnClickListener { _ -> in <lambda>()
59 cvh.controlActionCoordinator.touch(cvh, template.getTemplateId(), control) in <lambda>()
64 subBehavior = cvh.bindBehavior( in <lambda>()
DToggleBehavior.kt33 lateinit var cvh: ControlViewHolder variable in com.android.systemui.controls.ui.ToggleBehavior
35 override fun initialize(cvh: ControlViewHolder) { in initialize()
36 this.cvh = cvh in initialize()
38 cvh.layout.setOnClickListener(View.OnClickListener() { in initialize()
39 cvh.controlActionCoordinator.toggle(cvh, template.getTemplateId(), template.isChecked()) in initialize()
46 cvh.setStatusText(control.getStatusText()) in bind()
57 val ld = cvh.layout.getBackground() as LayerDrawable in bind()
62 cvh.applyRenderInfo(checked, colorOffset) in bind()
DDefaultBehavior.kt20 lateinit var cvh: ControlViewHolder variable in com.android.systemui.controls.ui.DefaultBehavior
22 override fun initialize(cvh: ControlViewHolder) { in initialize()
23 this.cvh = cvh in initialize()
27 cvh.setStatusText(cws.control?.getStatusText() ?: "") in bind()
28 cvh.applyRenderInfo(false, colorOffset) in bind()
DChallengeDialogs.kt51 cvh: ControlViewHolder, in <lambda>()
56 val lastAction = cvh.lastAction in <lambda>()
62 val res = cvh.context.resources in <lambda>()
70 res.getString(R.string.controls_pin_verify, cvh.title.getText()), in <lambda>()
74 val builder = AlertDialog.Builder(cvh.context, STYLE).apply { in <lambda>()
84 cvh.action(addChallengeValue(lastAction, pin)) in <lambda>()
118 fun createConfirmationDialog(cvh: ControlViewHolder, onCancel: () -> Unit): Dialog? { in <lambda>()
119 val lastAction = cvh.lastAction in <lambda>()
125 val builder = AlertDialog.Builder(cvh.context, STYLE).apply { in <lambda>()
126 val res = cvh.context.resources in <lambda>()
[all …]
DControlActionCoordinator.kt39 fun toggle(cvh: ControlViewHolder, templateId: String, isChecked: Boolean)
48 fun touch(cvh: ControlViewHolder, templateId: String, control: Control)
64 fun setValue(cvh: ControlViewHolder, templateId: String, newValue: Float)
83 fun longPress(cvh: ControlViewHolder)
DDetailDialog.kt39 val cvh: ControlViewHolder, in <lambda>() constant in com.android.systemui.controls.ui.DetailDialog
41 ) : Dialog(cvh.context, R.style.Theme_SystemUI_Dialog_Control_DetailPanel) { in <lambda>()
108 val resolver = cvh.context.contentResolver in <lambda>()
109 val defaultOffsetInPx = cvh.context.resources in <lambda>()
DBehavior.kt29 fun initialize(cvh: ControlViewHolder)
DControlsUiControllerImpl.kt392 val cvh = ControlViewHolder( in <lambda>() constant
399 cvh.bindData(it) in <lambda>()
400 controlViewsById.put(key, cvh) in <lambda>()