Searched refs:CommunalContentModel (Results 1 – 11 of 11) sorted by relevance
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/domain/model/ |
D | CommunalContentModel.kt | 29 sealed interface CommunalContentModel { interface 40 sealed interface Ongoing : CommunalContentModel { 47 sealed interface WidgetContent : CommunalContentModel { 91 class WidgetPlaceholder : CommunalContentModel { 98 class CtaTileInViewMode : CommunalContentModel { 107 ) : CommunalContentModel {
|
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/ |
D | ContentListState.kt | 24 import com.android.systemui.communal.domain.model.CommunalContentModel in <lambda>() 31 communalContent: List<CommunalContentModel>, in <lambda>() 58 communalContent: List<CommunalContentModel>, 75 val widget = list[indexToRemove] as CommunalContentModel.WidgetContent in onRemove() 103 if (item is CommunalContentModel.WidgetContent) { in onSaveList()
|
D | CommunalHub.kt | 138 import com.android.systemui.communal.domain.model.CommunalContentModel in <lambda>() 234 CommunalContentModel.CtaTileInViewMode in <lambda>() 408 communalContent: List<CommunalContentModel>, in ScrollOnUpdatedLiveContentEffect() 435 communalContent: List<CommunalContentModel>, in CommunalHubLazyGrid() 862 model: CommunalContentModel, in CommunalContent() 873 is CommunalContentModel.WidgetContent.Widget -> in CommunalContent() 884 is CommunalContentModel.WidgetPlaceholder -> HighlightedItem(modifier) in CommunalContent() 885 is CommunalContentModel.WidgetContent.DisabledWidget -> in CommunalContent() 887 is CommunalContentModel.WidgetContent.PendingWidget -> in CommunalContent() 889 is CommunalContentModel.CtaTileInViewMode -> CtaTileInViewModeContent(viewModel, modifier) in CommunalContent() [all …]
|
D | DragAndDropTargetState.kt | 43 import com.android.systemui.communal.domain.model.CommunalContentModel in <lambda>() 158 private var placeHolder = CommunalContentModel.WidgetPlaceholder()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/domain/interactor/ |
D | CommunalInteractor.kt | 33 import com.android.systemui.communal.domain.model.CommunalContentModel in <lambda>() 34 import com.android.systemui.communal.domain.model.CommunalContentModel.WidgetContent in <lambda>() 463 val ctaTileContent: Flow<List<CommunalContentModel.CtaTileInViewMode>> = in <lambda>() 465 if (isDismissed) emptyList() else listOf(CommunalContentModel.CtaTileInViewMode()) in <lambda>() 469 val tutorialContent: List<CommunalContentModel.Tutorial> = in <lambda>() 471 CommunalContentModel.Tutorial(id = 0, FULL), in <lambda>() 472 CommunalContentModel.Tutorial(id = 1, THIRD), in <lambda>() 473 CommunalContentModel.Tutorial(id = 2, THIRD), in <lambda>() 474 CommunalContentModel.Tutorial(id = 3, THIRD), in <lambda>() 475 CommunalContentModel.Tutorial(id = 4, HALF), in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/view/viewmodel/ |
D | CommunalViewModelTest.kt | 42 import com.android.systemui.communal.domain.model.CommunalContentModel in <lambda>() 191 assertThat(model is CommunalContentModel.Tutorial).isTrue() in <lambda>() 231 .isInstanceOf(CommunalContentModel.Smartspace::class.java) in <lambda>() 232 assertThat(communalContent?.get(1)).isInstanceOf(CommunalContentModel.Umo::class.java) in <lambda>() 234 .isInstanceOf(CommunalContentModel.WidgetContent::class.java) in <lambda>() 236 .isInstanceOf(CommunalContentModel.WidgetContent::class.java) in <lambda>() 238 .isInstanceOf(CommunalContentModel.CtaTileInViewMode::class.java) in <lambda>() 249 assertThat(communalContent?.get(0)).isInstanceOf(CommunalContentModel.Umo::class.java) in <lambda>() 263 .isInstanceOf(CommunalContentModel.CtaTileInViewMode::class.java) in <lambda>() 325 .isInstanceOf(CommunalContentModel.CtaTileInViewMode::class.java) in <lambda>() [all …]
|
D | CommunalEditModeViewModelTest.kt | 45 import com.android.systemui.communal.domain.model.CommunalContentModel 162 .isInstanceOf(CommunalContentModel.WidgetContent::class.java) in communalContent_onlyWidgetsAndCtaTileAreShownInEditMode() 164 .isInstanceOf(CommunalContentModel.WidgetContent::class.java) in communalContent_onlyWidgetsAndCtaTileAreShownInEditMode() 172 val key = CommunalContentModel.KEY.widget(123) in selectedKey_onReorderWidgets_isCleared() 222 .isInstanceOf(CommunalContentModel.WidgetContent::class.java) in deleteWidget() 224 .isInstanceOf(CommunalContentModel.WidgetContent::class.java) in deleteWidget() 232 if (item is CommunalContentModel.WidgetContent) item.appWidgetId else null in deleteWidget()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/domain/interactor/ |
D | CommunalInteractorTest.kt | 50 import com.android.systemui.communal.domain.model.CommunalContentModel in <lambda>() 304 .isEqualTo(CommunalContentModel.KEY.smartspace("target3")) in <lambda>() 418 assertThat(umoContent?.get(0)).isInstanceOf(CommunalContentModel.Umo::class.java) in <lambda>() 419 assertThat(umoContent?.get(0)?.key).isEqualTo(CommunalContentModel.KEY.umo()) in <lambda>() 462 .isEqualTo(CommunalContentModel.KEY.smartspace("timer3")) in <lambda>() 465 .isEqualTo(CommunalContentModel.KEY.smartspace("timer2")) in <lambda>() 467 assertThat(ongoingContent?.get(2)?.key).isEqualTo(CommunalContentModel.KEY.umo()) in <lambda>() 470 .isEqualTo(CommunalContentModel.KEY.smartspace("timer1")) in <lambda>() 483 .isInstanceOf(CommunalContentModel.CtaTileInViewMode::class.java) in <lambda>() 485 .isEqualTo(CommunalContentModel.KEY.CTA_TILE_IN_VIEW_MODE_KEY) in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/ui/viewmodel/ |
D | BaseCommunalViewModel.kt | 27 import com.android.systemui.communal.domain.model.CommunalContentModel 98 abstract val communalContent: Flow<List<CommunalContentModel>>
|
D | CommunalEditModeViewModel.kt | 31 import com.android.systemui.communal.domain.model.CommunalContentModel in <lambda>() 91 override val communalContent: Flow<List<CommunalContentModel>> = in <lambda>() 134 widgets.filterIsInstance<CommunalContentModel.WidgetContent.Widget>().mapTo( in <lambda>()
|
D | CommunalViewModel.kt | 26 import com.android.systemui.communal.domain.model.CommunalContentModel in <lambda>() 103 private var frozenCommunalContent: List<CommunalContentModel>? = null in <lambda>() 106 private val latestCommunalContent: Flow<List<CommunalContentModel>> = in <lambda>() 147 override val communalContent: Flow<List<CommunalContentModel>> = in <lambda>()
|