Home
last modified time | relevance | path

Searched refs:ControlTemplate (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/service/controls/templates/
DControlTemplateTest.java58 ControlTemplate toParcel = ControlTemplate.NO_TEMPLATE; in testUnparcelingCorrectClass_none()
60 ControlTemplate fromParcel = parcelAndUnparcel(toParcel); in testUnparcelingCorrectClass_none()
62 assertEquals(ControlTemplate.NO_TEMPLATE, fromParcel); in testUnparcelingCorrectClass_none()
67 ControlTemplate toParcel = new ToggleTemplate(TEST_ID, mControlButton); in testUnparcelingCorrectClass_toggle()
69 ControlTemplate fromParcel = parcelAndUnparcel(toParcel); in testUnparcelingCorrectClass_toggle()
71 assertEquals(ControlTemplate.TYPE_TOGGLE, fromParcel.getTemplateType()); in testUnparcelingCorrectClass_toggle()
77 ControlTemplate toParcel = new RangeTemplate(TEST_ID, 0, 2, 1, 1, "%f"); in testUnparcelingCorrectClass_range()
79 ControlTemplate fromParcel = parcelAndUnparcel(toParcel); in testUnparcelingCorrectClass_range()
81 assertEquals(ControlTemplate.TYPE_RANGE, fromParcel.getTemplateType()); in testUnparcelingCorrectClass_range()
107 ControlTemplate toParcel = new ToggleRangeTemplate(TEST_ID, mControlButton, in testUnparcelingCorrectClass_toggleRange()
[all …]
/frameworks/base/core/java/android/service/controls/templates/
DControlTemplate.java43 public abstract class ControlTemplate { class
54 public static final @NonNull ControlTemplate NO_TEMPLATE = new ControlTemplate("") {
65 private static final @NonNull ControlTemplate ERROR_TEMPLATE = new ControlTemplate("") {
151 private ControlTemplate() { in ControlTemplate() method in ControlTemplate
159 ControlTemplate(@NonNull Bundle b) { in ControlTemplate() method in ControlTemplate
166 ControlTemplate(@NonNull String templateId) { in ControlTemplate() method in ControlTemplate
178 static ControlTemplate createTemplateFromBundle(@Nullable Bundle bundle) { in createTemplateFromBundle()
212 public static ControlTemplate getErrorTemplate() { in getErrorTemplate()
229 public static ControlTemplate getNoTemplateObject() { in getNoTemplateObject()
DControlTemplateWrapper.java31 private final @NonNull ControlTemplate mControlTemplate;
33 public ControlTemplateWrapper(@NonNull ControlTemplate template) { in ControlTemplateWrapper()
44 public ControlTemplate getWrappedTemplate() { in getWrappedTemplate()
58 ControlTemplate.createTemplateFromBundle(source.readBundle()));
DTemperatureControlTemplate.java37 public final class TemperatureControlTemplate extends ControlTemplate {
146 private final @NonNull ControlTemplate mTemplate;
164 @NonNull ControlTemplate controlTemplate, in TemperatureControlTemplate()
202 mTemplate = ControlTemplate.createTemplateFromBundle(b.getBundle(KEY_TEMPLATE)); in TemperatureControlTemplate()
224 public ControlTemplate getTemplate() { in getTemplate()
DStatelessTemplate.java29 public final class StatelessTemplate extends ControlTemplate {
DToggleTemplate.java34 public final class ToggleTemplate extends ControlTemplate {
DToggleRangeTemplate.java31 public final class ToggleRangeTemplate extends ControlTemplate {
DRangeTemplate.java30 public final class RangeTemplate extends ControlTemplate {
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DTemperatureControlBehavior.kt22 import android.service.controls.templates.ControlTemplate in <lambda>()
50 if (subTemplate == ControlTemplate.getNoTemplateObject() || in <lambda>()
51 subTemplate == ControlTemplate.getErrorTemplate()) { in <lambda>()
DTouchBehavior.kt23 import android.service.controls.templates.ControlTemplate
36 lateinit var template: ControlTemplate
DToggleRangeBehavior.kt27 import android.service.controls.templates.ControlTemplate in <lambda>()
104 private fun setupTemplate(template: ControlTemplate): Boolean { in <lambda>()
/frameworks/base/core/java/android/service/controls/
DControl.java30 import android.service.controls.templates.ControlTemplate;
122 private final @NonNull ControlTemplate mControlTemplate;
151 @NonNull ControlTemplate controlTemplate, in Control()
326 public ControlTemplate getControlTemplate() { in getControlTemplate()
587 ControlTemplate.NO_TEMPLATE, in build()
624 private @NonNull ControlTemplate mControlTemplate = ControlTemplate.NO_TEMPLATE;
805 public StatefulBuilder setControlTemplate(@NonNull ControlTemplate controlTemplate) { in setControlTemplate()
DControlsProviderService.java35 import android.service.controls.templates.ControlTemplate;
246 == ControlTemplate.TYPE_NO_TEMPLATE
/frameworks/base/core/java/android/service/controls/actions/
DControlAction.java26 import android.service.controls.templates.ControlTemplate;
/frameworks/base/api/
Dcurrent.txt43390 method @NonNull public android.service.controls.templates.ControlTemplate getControlTemplate();
43415 …ol.StatefulBuilder setControlTemplate(@NonNull android.service.controls.templates.ControlTemplate);
43581 public abstract class ControlTemplate {
43582 …method @NonNull public static android.service.controls.templates.ControlTemplate getErrorTemplate(…
43583 …method @NonNull public static android.service.controls.templates.ControlTemplate getNoTemplateObje…
43595 public final class RangeTemplate extends android.service.controls.templates.ControlTemplate {
43605 public final class StatelessTemplate extends android.service.controls.templates.ControlTemplate {
43610 …final class TemperatureControlTemplate extends android.service.controls.templates.ControlTemplate {
43611 …emplate(@NonNull String, @NonNull android.service.controls.templates.ControlTemplate, int, int, in…
43615 method @NonNull public android.service.controls.templates.ControlTemplate getTemplate();
[all …]