Home
last modified time | relevance | path

Searched refs:complication (Results 1 – 25 of 62) sorted by relevance

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/complication/
DComplicationViewModelTransformer.java17 package com.android.systemui.complication;
19 import com.android.systemui.complication.dagger.ComplicationViewModelComponent;
43 public ComplicationViewModel getViewModel(Complication complication) { in getViewModel() argument
44 final ComplicationId id = getComplicationId(complication); in getViewModel()
45 return mViewModelComponentFactory.create(complication, id) in getViewModel()
49 private ComplicationId getComplicationId(Complication complication) { in getComplicationId() argument
50 if (!mComplicationIdMapping.containsKey(complication)) { in getComplicationId()
51 mComplicationIdMapping.put(complication, mComplicationIdFactory.getNextId()); in getComplicationId()
54 return mComplicationIdMapping.get(complication); in getComplicationId()
DComplicationUtils.java17 package com.android.systemui.complication;
19 import static com.android.systemui.complication.Complication.COMPLICATION_TYPE_AIR_QUALITY;
20 import static com.android.systemui.complication.Complication.COMPLICATION_TYPE_CAST_INFO;
21 import static com.android.systemui.complication.Complication.COMPLICATION_TYPE_DATE;
22 import static com.android.systemui.complication.Complication.COMPLICATION_TYPE_HOME_CONTROLS;
23 import static com.android.systemui.complication.Complication.COMPLICATION_TYPE_MEDIA_ENTRY;
24 import static com.android.systemui.complication.Complication.COMPLICATION_TYPE_NONE;
25 import static com.android.systemui.complication.Complication.COMPLICATION_TYPE_SMARTSPACE;
26 import static com.android.systemui.complication.Complication.COMPLICATION_TYPE_TIME;
27 import static com.android.systemui.complication.Complication.COMPLICATION_TYPE_WEATHER;
DComplicationHostViewController.java17 package com.android.systemui.complication;
19 import static com.android.systemui.complication.dagger.ComplicationHostViewModule.SCOPED_COMPLICATI…
20 import static com.android.systemui.complication.dagger.ComplicationModule.SCOPED_COMPLICATIONS_MODE…
133 .filter(complication -> !mComplications.containsKey(complication.getId())) in updateComplications()
137 .forEach(complication -> { in updateComplications()
138 final ComplicationId id = complication.getId(); in updateComplications()
139 final Complication.ViewHolder viewHolder = complication.getComplication() in updateComplications()
140 .createView(complication); in updateComplications()
158 + complication.getComplication().getClass() in updateComplications()
DComplicationLayoutEngine.java17 package com.android.systemui.complication;
19 import static com.android.systemui.complication.ComplicationLayoutParams.DIRECTION_DOWN;
20 import static com.android.systemui.complication.ComplicationLayoutParams.DIRECTION_END;
21 import static com.android.systemui.complication.ComplicationLayoutParams.DIRECTION_START;
22 import static com.android.systemui.complication.ComplicationLayoutParams.DIRECTION_UP;
23 import static com.android.systemui.complication.ComplicationLayoutParams.POSITION_BOTTOM;
24 import static com.android.systemui.complication.ComplicationLayoutParams.POSITION_END;
25 import static com.android.systemui.complication.ComplicationLayoutParams.POSITION_START;
26 import static com.android.systemui.complication.ComplicationLayoutParams.POSITION_TOP;
27 import static com.android.systemui.complication.dagger.ComplicationHostViewModule.COMPLICATIONS_FAD…
[all …]
DComplicationViewModel.java16 package com.android.systemui.complication;
38 public ComplicationViewModel(Complication complication, ComplicationId id, in ComplicationViewModel() argument
40 mComplication = complication; in ComplicationViewModel()
DComplicationCollectionViewModel.java17 package com.android.systemui.complication;
52 .map(complication -> mTransformer.getViewModel(complication)) in convert()
DOpenHubComplication.java17 package com.android.systemui.complication;
19 import static com.android.systemui.complication.dagger.OpenHubComplicationComponent.OpenHubModule.O…
20 import static com.android.systemui.complication.dagger.RegisteredComplicationsModule.OPEN_HUB_CHIP_…
33 import com.android.systemui.complication.dagger.OpenHubComplicationComponent;
98 public Registrant(OpenHubComplication complication, in Registrant() argument
102 mComplication = complication; in Registrant()
DDreamClockTimeComplication.java17 package com.android.systemui.complication;
19 import static com.android.systemui.complication.dagger.DreamClockTimeComplicationComponent.DreamClo…
20 import static com.android.systemui.complication.dagger.RegisteredComplicationsModule.DREAM_CLOCK_TI…
26 import com.android.systemui.complication.dagger.DreamClockTimeComplicationComponent;
DComplicationViewModelProvider.java16 package com.android.systemui.complication;
21 import com.android.systemui.complication.dagger.DaggerViewModelProviderFactory;
DDreamHomeControlsComplication.java17 package com.android.systemui.complication;
19 import static com.android.systemui.complication.dagger.DreamHomeControlsComplicationComponent.Dream…
20 import static com.android.systemui.complication.dagger.RegisteredComplicationsModule.DREAM_HOME_CON…
21 import static com.android.systemui.complication.dagger.RegisteredComplicationsModule.OPEN_HUB_CHIP_…
40 import com.android.systemui.complication.dagger.DreamHomeControlsComplicationComponent;
118 public Registrant(DreamHomeControlsComplication complication, in Registrant() argument
124 mComplication = complication; in Registrant()
DDreamMediaEntryComplication.java17 package com.android.systemui.complication;
19 import static com.android.systemui.complication.dagger.DreamMediaEntryComplicationComponent.DreamMe…
20 import static com.android.systemui.complication.dagger.RegisteredComplicationsModule.DREAM_MEDIA_EN…
28 import com.android.systemui.complication.dagger.DreamMediaEntryComplicationComponent;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/
DComplicationUtilsTest.java17 package com.android.systemui.complication;
19 import static com.android.systemui.complication.Complication.COMPLICATION_TYPE_AIR_QUALITY;
20 import static com.android.systemui.complication.Complication.COMPLICATION_TYPE_CAST_INFO;
21 import static com.android.systemui.complication.Complication.COMPLICATION_TYPE_DATE;
22 import static com.android.systemui.complication.Complication.COMPLICATION_TYPE_HOME_CONTROLS;
23 import static com.android.systemui.complication.Complication.COMPLICATION_TYPE_MEDIA_ENTRY;
24 import static com.android.systemui.complication.Complication.COMPLICATION_TYPE_SMARTSPACE;
25 import static com.android.systemui.complication.Complication.COMPLICATION_TYPE_TIME;
26 import static com.android.systemui.complication.Complication.COMPLICATION_TYPE_WEATHER;
27 import static com.android.systemui.complication.ComplicationUtils.convertComplicationType;
[all …]
DDreamClockTimeComplicationTest.java16 package com.android.systemui.complication;
33 import com.android.systemui.complication.dagger.DreamClockTimeComplicationComponent;
111 final DreamClockTimeComplication complication = in testComplicationRequiredTypeAvailability() local
114 complication.getRequiredTypeAvailability()); in testComplicationRequiredTypeAvailability()
123 final DreamClockTimeComplication complication = in testComplicationViewHolderComponentOnCreateView() local
125 final Complication.ViewHolder viewHolder = complication.createView(mComplicationViewModel); in testComplicationViewHolderComponentOnCreateView()
DComplicationViewModelTransformerTest.java17 package com.android.systemui.complication;
30 import com.android.systemui.complication.dagger.ComplicationViewModelComponent;
72 final Complication complication = Mockito.mock(Complication.class); in testStableIds() local
76 transformer.getViewModel(complication); in testStableIds()
82 transformer.getViewModel(complication); in testStableIds()
DComplicationCollectionLiveDataTest.java17 package com.android.systemui.complication;
113 private void addComplication(Complication complication, in addComplication() argument
115 complications.add(complication); in addComplication()
116 mStateController.addComplication(complication); in addComplication()
DDreamMediaEntryComplicationTest.java17 package com.android.systemui.complication;
19 import static com.android.systemui.complication.Complication.COMPLICATION_TYPE_MEDIA_ENTRY;
37 import com.android.systemui.complication.dagger.DreamMediaEntryComplicationComponent;
101 final DreamMediaEntryComplication complication = in testGetRequiredTypeAvailability() local
103 assertThat(complication.getRequiredTypeAvailability()).isEqualTo( in testGetRequiredTypeAvailability()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/
DDreamLogger.kt27 fun logIgnoreAddComplication(reason: String, complication: String) = in logIgnoreAddComplication()
30 str2 = complication
33 fun logIgnoreRemoveComplication(reason: String, complication: String) = in logIgnoreRemoveComplication()
36 str2 = complication
39 fun logAddComplication(complication: String) = in logAddComplication()
40 d({ "Add dream complication: $str1" }) { str1 = complication } in logAddComplication()
42 fun logRemoveComplication(complication: String) = in logRemoveComplication()
43 d({ "Remove dream complication: $str1" }) { str1 = complication } in logRemoveComplication()
DDreamOverlayStateController.java26 import com.android.systemui.complication.Complication;
147 public void addComplication(Complication complication) { in addComplication() argument
149 mLogger.logIgnoreAddComplication("overlay disabled", complication.toString()); in addComplication()
154 if (mComplications.add(complication)) { in addComplication()
155 mLogger.logAddComplication(complication.toString()); in addComplication()
164 public void removeComplication(Complication complication) { in removeComplication() argument
166 mLogger.logIgnoreRemoveComplication("overlay disabled", complication.toString()); in removeComplication()
171 if (mComplications.remove(complication)) { in removeComplication()
172 mLogger.logRemoveComplication(complication.toString()); in removeComplication()
196 .filter(complication -> { in getComplications()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/complication/dagger/
DComplicationViewModelComponent.java16 package com.android.systemui.complication.dagger;
18 import com.android.systemui.complication.Complication;
19 import com.android.systemui.complication.ComplicationId;
20 import com.android.systemui.complication.ComplicationViewModelProvider;
38 ComplicationViewModelComponent create(@BindsInstance Complication complication, in create() argument
DComplicationComponent.kt1 package com.android.systemui.complication.dagger
5 import com.android.systemui.complication.Complication
6 import com.android.systemui.complication.ComplicationHostViewController
7 import com.android.systemui.complication.ComplicationLayoutEngine
DComplicationModule.java17 package com.android.systemui.complication.dagger;
24 import com.android.systemui.complication.Complication;
25 import com.android.systemui.complication.ComplicationCollectionViewModel;
26 import com.android.systemui.complication.ComplicationLayoutEngine;
DDreamClockTimeComplicationComponent.kt18 package com.android.systemui.complication.dagger
25 import com.android.systemui.complication.DreamClockTimeComplication
26 import com.android.systemui.complication.DreamClockTimeComplication.DreamClockTimeViewHolder
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/complication/dagger/
DComplicationComponent.kt1 package com.android.systemui.dreams.complication.dagger
3 import com.android.systemui.complication.Complication
4 import com.android.systemui.dreams.complication.HideComplicationTouchHandler
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/
DDreamOverlayStateControllerTest.java33 import com.android.systemui.complication.Complication;
236 final Complication complication = Mockito.mock(Complication.class); in testComplicationWithNoTypeNotFiltered() local
238 stateController.addComplication(complication); in testComplicationWithNoTypeNotFiltered()
240 assertThat(stateController.getComplications(true).contains(complication)) in testComplicationWithNoTypeNotFiltered()
246 final Complication complication = Mockito.mock(Complication.class); in testComplicationsNotShownForHomeControlPanelDream() local
250 stateController.addComplication(complication); in testComplicationsNotShownForHomeControlPanelDream()
252 assertThat(stateController.getComplications().contains(complication)) in testComplicationsNotShownForHomeControlPanelDream()
263 final Complication complication = Mockito.mock(Complication.class); in testComplicationsNotShownForLowLight() local
267 stateController.addComplication(complication); in testComplicationsNotShownForLowLight()
269 assertThat(stateController.getComplications().contains(complication)) in testComplicationsNotShownForLowLight()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dream/
DMediaDreamComplication.java19 import com.android.systemui.complication.Complication;
20 import com.android.systemui.complication.ComplicationViewModel;

123