Searched refs:communalWidgetDao (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/communal/data/db/ |
D | CommunalWidgetDaoTest.kt | 45 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/ |
D | CommunalWidgetRepositoryImplTest.kt | 77 @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/ |
D | CommunalWidgetRepository.kt | 96 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/ |
D | CommunalDatabaseModule.kt | 40 database.communalWidgetDao()
|
D | CommunalDatabase.kt | 28 abstract fun communalWidgetDao(): CommunalWidgetDao in <lambda>() method
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/backup/ |
D | CommunalBackupUtils.kt | 43 val widgetsFromDb = runBlocking { database.communalWidgetDao().getWidgets().first() } in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/communal/data/backup/ |
D | CommunalBackupUtilsTest.kt | 54 dao = database.communalWidgetDao() in <lambda>()
|
D | CommunalBackupHelperTest.kt | 68 dao = database.communalWidgetDao() in setup()
|