/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/data/repository/ |
D | CustomTileAddedSharedPreferencesRepositoryTest.kt | 90 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/ |
D | FakeIQSTileService.kt | 25 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/ |
D | CustomTileAddedRepository.kt | 34 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/ |
D | FakeCustomTileAddedRepository.kt | 25 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/ |
D | TileServiceManagerTest.java | 128 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/ |
D | QSTileHostTest.java | 558 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/ |
D | TileServiceManager.java | 122 if (!mCustomTileAddedRepository.isTileAdded(component, userId)) { in startLifecycleManagerAndAddTile()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/domain/interactor/ |
D | CurrentTilesInteractorImplTest.kt | 491 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/ |
D | QSTileHost.java | 531 public boolean isTileAdded(ComponentName componentName, int userId) { in isTileAdded() method in QSTileHost
|