Home
last modified time | relevance | path

Searched refs:communalWidgetDao (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/communal/data/db/
DCommunalWidgetDaoTest.kt45 private lateinit var communalWidgetDao: CommunalWidgetDao in <lambda>() variable in com.android.systemui.communal.data.db.CommunalWidgetDaoTest
58 communalWidgetDao = db.communalWidgetDao() in <lambda>()
71 communalWidgetDao.addWidget( in <lambda>()
76 val entry = communalWidgetDao.getWidgetByIdNow(id = 1) in <lambda>()
84 communalWidgetDao.addWidget( in <lambda>()
89 assertThat(communalWidgetDao.deleteWidgetById(widgetId = 123)).isFalse() in <lambda>()
96 val widgets = collectLastValue(communalWidgetDao.getWidgets()) in <lambda>()
99 communalWidgetDao.addWidget( in <lambda>()
118 val widgets = collectLastValue(communalWidgetDao.getWidgets()) in <lambda>()
122 communalWidgetDao.addWidget( in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/data/repository/
DCommunalWidgetRepositoryImplTest.kt77 @Mock private lateinit var communalWidgetDao: CommunalWidgetDao variable in com.android.systemui.communal.data.repository.CommunalWidgetRepositoryImplTest
110 whenever(communalWidgetDao.getWidgets()).thenReturn(fakeWidgets) in setUp()
119 communalWidgetDao, in setUp()
136 verify(communalWidgetDao).getWidgets() in communalWidgets_queryWidgetsFromDb()
266 verify(communalWidgetDao).addWidget(id, provider, priority) in addWidget_allocateId_bindWidget_andAddToDb()
292 verify(communalWidgetDao, never()).addWidget(id, provider, priority) in addWidget_configurationFails_doNotAddWidgetToDb()
321 verify(communalWidgetDao, never()).addWidget(id, provider, priority) in addWidget_configurationThrowsError_doNotAddWidgetToDb()
348 verify(communalWidgetDao).addWidget(id, provider, priority) in addWidget_configurationNotRequired_doesNotConfigure_addWidgetToDb()
358 whenever(communalWidgetDao.deleteWidgetById(eq(id))).thenReturn(true) in deleteWidget_deleteFromDbTrue_alsoDeleteFromHost()
362 verify(communalWidgetDao).deleteWidgetById(id) in deleteWidget_deleteFromDbTrue_alsoDeleteFromHost()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/repository/
DCommunalWidgetRepository.kt96 private val communalWidgetDao: CommunalWidgetDao, constant in com.android.systemui.communal.data.repository.CommunalWidgetRepositoryImpl
111 communalWidgetDao.getWidgets(),
184 communalWidgetDao.addWidget( in addWidget()
199 if (communalWidgetDao.deleteWidgetById(widgetId)) { in deleteWidget()
209 communalWidgetDao.updateWidgetOrder(widgetIdToPriorityMap) in updateWidgetOrder()
264 communalWidgetDao.restoreCommunalHubState(newState) in restoreWidgets()
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/db/
DCommunalDatabaseModule.kt40 database.communalWidgetDao()
DCommunalDatabase.kt28 abstract fun communalWidgetDao(): CommunalWidgetDao in <lambda>() method in com.android.systemui.communal.data.db.CommunalDatabase
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/backup/
DCommunalBackupUtils.kt43 val widgetsFromDb = runBlocking { database.communalWidgetDao().getWidgets().first() } in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/communal/data/backup/
DCommunalBackupUtilsTest.kt54 dao = database.communalWidgetDao() in <lambda>()
DCommunalBackupHelperTest.kt68 dao = database.communalWidgetDao() in setup()