Home
last modified time | relevance | path

Searched refs:addWidget (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/communal/data/db/
DCommunalWidgetDaoTest.kt71 communalWidgetDao.addWidget( in <lambda>()
84 communalWidgetDao.addWidget( in <lambda>()
99 communalWidgetDao.addWidget( in <lambda>()
122 communalWidgetDao.addWidget( in <lambda>()
148 communalWidgetDao.addWidget( in <lambda>()
184 communalWidgetDao.addWidget( in <lambda>()
211 communalWidgetDao.addWidget( in <lambda>()
232 listOf(widgetInfo1, widgetInfo2, widgetInfo3).forEach { addWidget(it) } in <lambda>()
256 private fun addWidget(metadata: FakeWidgetMetadata, priority: Int? = null) { in <lambda>() method
257 communalWidgetDao.addWidget( in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/db/
DCommunalWidgetDao.kt80 .addWidget( in <lambda>()
135 fun addWidget(widgetId: Int, provider: ComponentName, priority: Int): Long { in addWidget() method
136 return addWidget( in addWidget()
144 fun addWidget(widgetId: Int, componentName: String, priority: Int): Long { in addWidget() method
169 state.widgets.forEach { addWidget(it.widgetId, it.componentName, it.rank) } in restoreCommunalHubState()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/data/repository/
DCommunalWidgetRepositoryImplTest.kt262 underTest.addWidget(provider, user, priority, kosmos.widgetConfiguratorSuccess) in addWidget_allocateId_bindWidget_andAddToDb()
266 verify(communalWidgetDao).addWidget(id, provider, priority) in addWidget_allocateId_bindWidget_andAddToDb()
288 underTest.addWidget(provider, user, priority, kosmos.widgetConfiguratorFail) in addWidget_configurationFails_doNotAddWidgetToDb()
292 verify(communalWidgetDao, never()).addWidget(id, provider, priority) in addWidget_configurationFails_doNotAddWidgetToDb()
315 underTest.addWidget(provider, user, priority) { in addWidget_configurationThrowsError_doNotAddWidgetToDb()
321 verify(communalWidgetDao, never()).addWidget(id, provider, priority) in addWidget_configurationThrowsError_doNotAddWidgetToDb()
344 underTest.addWidget(provider, user, priority, kosmos.widgetConfiguratorFail) in addWidget_configurationNotRequired_doesNotConfigure_addWidgetToDb()
348 verify(communalWidgetDao).addWidget(id, provider, priority) in addWidget_configurationNotRequired_doesNotConfigure_addWidgetToDb()
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/repository/
DCommunalWidgetRepository.kt57 fun addWidget( in <lambda>() method
145 override fun addWidget( in addWidget() method
184 communalWidgetDao.addWidget( in addWidget()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/communal/data/repository/
DFakeCommunalWidgetRepository.kt25 override fun addWidget( in addWidget() method in com.android.systemui.communal.data.repository.FakeCommunalWidgetRepository
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/ui/viewmodel/
DBaseCommunalViewModel.kt90 communalInteractor.addWidget(componentName, user, priority, configurator) in onAddWidget()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/communal/data/backup/
DCommunalBackupUtilsTest.kt73 expectedWidgets.forEach { dao.addWidget(it.widgetId, it.componentName, it.rank) } in <lambda>()
DCommunalBackupHelperTest.kt127 .onEach { dao.addWidget(it.widgetId, it.componentName, it.rank) } in setUpDatabase()
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/domain/interactor/
DCommunalInteractor.kt331 fun addWidget( in <lambda>() method
336 ) = widgetRepository.addWidget(componentName, user, priority, configurator) in <lambda>()