Home
last modified time | relevance | path

Searched refs:CommunalWidgetContentModel (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/communal/data/repository/
DFakeCommunalWidgetRepository.kt6 import com.android.systemui.communal.shared.model.CommunalWidgetContentModel
16 private val _communalWidgets = MutableStateFlow<List<CommunalWidgetContentModel>>(emptyList())
17 override val communalWidgets: Flow<List<CommunalWidgetContentModel>> = _communalWidgets
21 fun setCommunalWidgets(inventory: List<CommunalWidgetContentModel>) { in setCommunalWidgets()
55 listOf(CommunalWidgetContentModel.Available(id, providerInfo, priority)) in onConfigured()
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/shared/model/
DCommunalWidgetContentModel.kt24 sealed interface CommunalWidgetContentModel { interface
33 ) : CommunalWidgetContentModel
42 ) : CommunalWidgetContentModel
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/repository/
DCommunalWidgetRepository.kt29 import com.android.systemui.communal.shared.model.CommunalWidgetContentModel in <lambda>()
54 val communalWidgets: Flow<List<CommunalWidgetContentModel>> in <lambda>()
125 override val communalWidgets: Flow<List<CommunalWidgetContentModel>> =
293 private fun mapToContentModel(entry: CommunalWidgetEntry): CommunalWidgetContentModel { in mapToContentModel()
294 return CommunalWidgetContentModel.Available( in mapToContentModel()
309 ): CommunalWidgetContentModel? { in mapToContentModel()
311 return CommunalWidgetContentModel.Available( in mapToContentModel()
324 CommunalWidgetContentModel.Pending( in mapToContentModel()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/widgets/
DCommunalAppWidgetHostStartableTest.kt30 import com.android.systemui.communal.shared.model.CommunalWidgetContentModel
176 mock<CommunalWidgetContentModel.Available> { in removeAppWidgetReportedByHost()
180 mock<CommunalWidgetContentModel.Available> { in removeAppWidgetReportedByHost()
184 mock<CommunalWidgetContentModel.Available> { in removeAppWidgetReportedByHost()
265 ): CommunalWidgetContentModel.Available = in createWidgetForUser()
266 mock<CommunalWidgetContentModel.Available> { in createWidgetForUser()
279 ): CommunalWidgetContentModel.Pending = in createPendingWidgetForUser()
280 CommunalWidgetContentModel.Pending( in createPendingWidgetForUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/widgets/
DCommunalAppWidgetHostStartable.kt21 import com.android.systemui.communal.shared.model.CommunalWidgetContentModel in <lambda>()
86 private fun validateWidgetsAndDeleteOrphaned(widgets: List<CommunalWidgetContentModel>) { in <lambda>()
92 is CommunalWidgetContentModel.Available -> in <lambda>()
94 is CommunalWidgetContentModel.Pending -> widget.user.identifier in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/domain/interactor/
DCommunalInteractor.kt40 import com.android.systemui.communal.shared.model.CommunalWidgetContentModel in <lambda>()
380 val communalWidgets: Flow<List<CommunalWidgetContentModel>> = in <lambda>()
401 is CommunalWidgetContentModel.Available -> { in <lambda>()
417 is CommunalWidgetContentModel.Pending -> { in <lambda>()
430 list: List<CommunalWidgetContentModel>, in <lambda>()
432 ): List<CommunalWidgetContentModel> = in <lambda>()
441 is CommunalWidgetContentModel.Available -> in <lambda>()
443 is CommunalWidgetContentModel.Pending -> model.user.identifier in <lambda>()
526 list: List<CommunalWidgetContentModel>, in <lambda>()
527 ): List<CommunalWidgetContentModel> { in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/data/repository/
DCommunalWidgetRepositoryImplTest.kt38 import com.android.systemui.communal.shared.model.CommunalWidgetContentModel
139 CommunalWidgetContentModel.Available( in communalWidgets_queryWidgetsFromDb()
175 CommunalWidgetContentModel.Available( in communalWidgets_widgetsWithoutMatchingProvidersAreSkipped()
180 CommunalWidgetContentModel.Available( in communalWidgets_widgetsWithoutMatchingProvidersAreSkipped()
210 CommunalWidgetContentModel.Available( in communalWidgets_updatedWhenProvidersUpdate()
215 CommunalWidgetContentModel.Available( in communalWidgets_updatedWhenProvidersUpdate()
232 CommunalWidgetContentModel.Available( in communalWidgets_updatedWhenProvidersUpdate()
238 CommunalWidgetContentModel.Available( in communalWidgets_updatedWhenProvidersUpdate()
565 CommunalWidgetContentModel.Available( in pendingWidgets()
570 CommunalWidgetContentModel.Pending( in pendingWidgets()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/view/viewmodel/
DCommunalEditModeViewModelTest.kt47 import com.android.systemui.communal.shared.model.CommunalWidgetContentModel
134 CommunalWidgetContentModel.Available( in communalContent_onlyWidgetsAndCtaTileAreShownInEditMode()
139 CommunalWidgetContentModel.Available( in communalContent_onlyWidgetsAndCtaTileAreShownInEditMode()
204 CommunalWidgetContentModel.Available( in deleteWidget()
209 CommunalWidgetContentModel.Available( in deleteWidget()
DCommunalViewModelTest.kt44 import com.android.systemui.communal.shared.model.CommunalWidgetContentModel in <lambda>()
203 CommunalWidgetContentModel.Available( in <lambda>()
208 CommunalWidgetContentModel.Available( in <lambda>()
301 CommunalWidgetContentModel.Available( in <lambda>()
646 CommunalWidgetContentModel.Available( in <lambda>()
651 CommunalWidgetContentModel.Available( in <lambda>()
709 CommunalWidgetContentModel.Available( in <lambda>()
714 CommunalWidgetContentModel.Available( in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/domain/interactor/
DCommunalInteractorTest.kt54 import com.android.systemui.communal.shared.model.CommunalWidgetContentModel in <lambda>()
1202 ): CommunalWidgetContentModel.Available = in <lambda>()
1203 mock<CommunalWidgetContentModel.Available> { in <lambda>()
1219 ): CommunalWidgetContentModel.Pending { in <lambda>()
1220 return CommunalWidgetContentModel.Pending( in <lambda>()
1232 ): CommunalWidgetContentModel = in <lambda>()
1233 mock<CommunalWidgetContentModel.Available> { in <lambda>()