Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/data/repository/
DCustomTileAddedSharedPreferencesRepositoryTest.kt90 assertThat(underTest.isTileAdded(TEST_COMPONENT, userId)).isFalse() in isTileAdded_fromSharedPreferences()
93 assertThat(underTest.isTileAdded(TEST_COMPONENT, userId)).isTrue() in isTileAdded_fromSharedPreferences()
96 assertThat(underTest.isTileAdded(TEST_COMPONENT, userId)).isFalse() in isTileAdded_fromSharedPreferences()
109 assertThat(underTest.isTileAdded(TEST_COMPONENT, userId)).isFalse() in isTileAdded_differentComponents()
110 assertThat(underTest.isTileAdded(OTHER_TEST_COMPONENT, userId)).isTrue() in isTileAdded_differentComponents()
123 assertThat(underTest.isTileAdded(TEST_COMPONENT, userId = 0)).isFalse() in isTileAdded_differentUsers()
124 assertThat(underTest.isTileAdded(TEST_COMPONENT, userId = 1)).isTrue() in isTileAdded_differentUsers()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/external/
DFakeIQSTileService.kt25 var isTileAdded: Boolean = false variable in com.android.systemui.qs.external.FakeIQSTileService
41 isTileAdded = true in asBinder()
45 isTileAdded = false in onTileRemoved()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/data/repository/
DCustomTileAddedRepository.kt34 fun isTileAdded(componentName: ComponentName, userId: Int): Boolean in isTileAdded() method
48 override fun isTileAdded(componentName: ComponentName, userId: Int): Boolean { in isTileAdded() method in com.android.systemui.qs.pipeline.data.repository.CustomTileAddedSharedPrefsRepository
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/pipeline/data/repository/
DFakeCustomTileAddedRepository.kt25 override fun isTileAdded(componentName: ComponentName, userId: Int): Boolean { in isTileAdded() method in com.android.systemui.qs.pipeline.data.repository.FakeCustomTileAddedRepository
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileServiceManagerTest.java128 when(mCustomTileAddedRepository.isTileAdded(eq(mComponentName), anyInt())) in testSetTileAddedIfNotAdded()
138 when(mCustomTileAddedRepository.isTileAdded(eq(mComponentName), anyInt())) in testNotSetTileAddedIfAdded()
150 when(mCustomTileAddedRepository.isTileAdded(eq(mComponentName), anyInt())) in testSetTileAddedCorrectUser()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSTileHostTest.java558 assertTrue(mQSTileHost.isTileAdded(CUSTOM_TILE, user)); in testIsTileAdded_true()
569 assertFalse(mQSTileHost.isTileAdded(CUSTOM_TILE, user)); in testIsTileAdded_false()
576 assertFalse(mQSTileHost.isTileAdded(CUSTOM_TILE, user)); in testIsTileAdded_notSet()
587 assertFalse(mQSTileHost.isTileAdded(CUSTOM_TILE, user + 1)); in testIsTileAdded_differentUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileServiceManager.java122 if (!mCustomTileAddedRepository.isTileAdded(component, userId)) { in startLifecycleManagerAndAddTile()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/domain/interactor/
DCurrentTilesInteractorImplTest.kt491 assertThat(customTileAddedRepository.isTileAdded(TEST_COMPONENT, USER_INFO_0.id)) in removeTile_customTile_lifecycleEnded()
507 assertThat(customTileAddedRepository.isTileAdded(TEST_COMPONENT, USER_INFO_0.id)) in removeTile_customTile_lifecycleEnded()
579 assertThat(customTileAddedRepository.isTileAdded(TEST_COMPONENT, USER_INFO_0.id)) in setTiles_customTiles_lifecycleEndedIfGone()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSTileHost.java531 public boolean isTileAdded(ComponentName componentName, int userId) { in isTileAdded() method in QSTileHost