/frameworks/base/packages/SystemUI/src/com/android/systemui/common/data/repository/ |
D | PackageUpdateLogger.kt | 20 import com.android.systemui.common.shared.model.PackageChangeModel 27 private fun getChangeString(model: PackageChangeModel) = in getChangeString() 29 is PackageChangeModel.Installed -> "installed" in getChangeString() 30 is PackageChangeModel.Uninstalled -> "uninstalled" in getChangeString() 31 is PackageChangeModel.UpdateStarted -> "started updating" in getChangeString() 32 is PackageChangeModel.UpdateFinished -> "finished updating" in getChangeString() 33 is PackageChangeModel.Changed -> "changed" in getChangeString() 34 is PackageChangeModel.Empty -> throw IllegalStateException("Unexpected empty value: $model") in getChangeString() 41 fun logChange(model: PackageChangeModel) { in logChange()
|
D | PackageUpdateMonitor.kt | 23 import com.android.systemui.common.shared.model.PackageChangeModel in <lambda>() 67 MutableSharedFlow<PackageChangeModel>(replay = 0, extraBufferCapacity = BUFFER_CAPACITY) in <lambda>() 88 val packageChanged: Flow<PackageChangeModel> in <lambda>() 94 PackageChangeModel.Installed( in <lambda>() 105 PackageChangeModel.Uninstalled( in <lambda>() 120 PackageChangeModel.Changed( in <lambda>() 132 PackageChangeModel.UpdateStarted( in <lambda>() 143 PackageChangeModel.UpdateFinished( in <lambda>()
|
D | PackageChangeRepository.kt | 20 import com.android.systemui.common.shared.model.PackageChangeModel 31 fun packageChanged(user: UserHandle): Flow<PackageChangeModel>
|
D | PackageChangeRepositoryImpl.kt | 20 import com.android.systemui.common.shared.model.PackageChangeModel 40 override fun packageChanged(user: UserHandle): Flow<PackageChangeModel> = in packageChanged()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/shared/model/ |
D | PackageChangeModel.kt | 25 sealed interface PackageChangeModel { interface 47 data object Empty : PackageChangeModel { 68 ) : PackageChangeModel 80 ) : PackageChangeModel 93 ) : PackageChangeModel 105 ) : PackageChangeModel 117 ) : PackageChangeModel 119 fun isSamePackage(other: PackageChangeModel) =
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/common/data/repository/ |
D | FakePackageChangeRepository.kt | 20 import com.android.systemui.common.shared.model.PackageChangeModel 31 private var _packageChanged = MutableSharedFlow<PackageChangeModel>() 47 suspend fun notifyChange(model: PackageChangeModel) { in notifyChange() 53 PackageChangeModel.Installed( in notifyInstall() 67 PackageChangeModel.UpdateStarted( in notifyUpdateStarted() 81 PackageChangeModel.UpdateFinished( in notifyUpdateFinished() 95 PackageChangeModel.Uninstalled( in notifyUninstall()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/common/domain/interactor/ |
D | PackageChangeInteractorTest.kt | 26 import com.android.systemui.common.shared.model.PackageChangeModel 73 PackageChangeModel.Installed( in packageChanges() 79 assertThat(packageChange).isInstanceOf(PackageChangeModel.Installed::class.java) in packageChanges() 93 PackageChangeModel.Installed( in packageChanges_ignoresUpdatesFromOtherUsers() 112 PackageChangeModel.Installed( in packageChanges_forCurrentUser() 118 PackageChangeModel.Installed( in packageChanges_forCurrentUser() 125 PackageChangeModel.Installed( in packageChanges_forCurrentUser() 146 PackageChangeModel.Installed( in packageChanges_forSpecificPackageName() 154 PackageChangeModel.Installed( in packageChanges_forSpecificPackageName() 159 assertThat(packageChange).isInstanceOf(PackageChangeModel.Installed::class.java) in packageChanges_forSpecificPackageName()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/homecontrols/domain/interactor/ |
D | HomeControlsComponentInteractor.kt | 25 import com.android.systemui.common.shared.model.PackageChangeModel in <lambda>() 188 private fun PackageChangeModel.isUpdate() = in PackageChangeModel() method 189 this is PackageChangeModel.UpdateStarted || this is PackageChangeModel.UpdateFinished in PackageChangeModel() 192 updateStarted: PackageChangeModel, in PackageChangeModel() 193 updateFinished: PackageChangeModel in PackageChangeModel() 194 ): PackageChangeModel.UpdateStarted? = in PackageChangeModel() 197 updateStarted !is PackageChangeModel.UpdateStarted -> null in PackageChangeModel() 198 updateFinished !is PackageChangeModel.UpdateFinished -> null in PackageChangeModel()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/common/data/repository/ |
D | PackageUpdateMonitorTest.kt | 26 import com.android.systemui.common.shared.model.PackageChangeModel 108 PackageChangeModel.Installed( in packageAdded() 129 PackageChangeModel.Uninstalled( in packageRemoved() 150 PackageChangeModel.Changed( in packageChanged() 171 PackageChangeModel.UpdateStarted( in packageUpdateStarted() 192 PackageChangeModel.UpdateFinished( in packageUpdateFinished() 221 PackageChangeModel.Installed(TEST_PACKAGE, 123), in handlesBackflow() 222 PackageChangeModel.UpdateStarted(TEST_PACKAGE, 123), in handlesBackflow() 223 PackageChangeModel.UpdateFinished(TEST_PACKAGE, 123), in handlesBackflow()
|
D | PackageChangeRepositoryTest.kt | 26 import com.android.systemui.common.shared.model.PackageChangeModel in <lambda>() 92 assertThat(packageChange).isInstanceOf(PackageChangeModel.Uninstalled::class.java) in <lambda>() 109 assertThat(packageChange).isInstanceOf(PackageChangeModel.UpdateStarted::class.java) in <lambda>() 127 .isInstanceOf(PackageChangeModel.UpdateFinished::class.java) in <lambda>() 144 assertThat(packageChange).isInstanceOf(PackageChangeModel.Installed::class.java) in <lambda>() 162 assertThat(packageChange).isInstanceOf(PackageChangeModel.Changed::class.java) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/domain/interactor/ |
D | PackageChangeInteractor.kt | 21 import com.android.systemui.common.shared.model.PackageChangeModel in <lambda>() 52 fun packageChanged(user: UserHandle, packageName: String? = null): Flow<PackageChangeModel> { in <lambda>() 64 ): Flow<PackageChangeModel> = in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/data/repository/ |
D | InstalledTilesComponentRepository.kt | 31 import com.android.systemui.common.shared.model.PackageChangeModel 92 .onStart { emit(PackageChangeModel.Empty) } in getInstalledTilesComponents()
|
D | QSSettingsRestoredRepository.kt | 10 import com.android.systemui.common.shared.model.PackageChangeModel.Empty.user in <lambda>()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/data/repository/ |
D | InstalledTilesComponentRepositoryImplTest.kt | 36 import com.android.systemui.common.shared.model.PackageChangeModel in <lambda>() 135 kosmos.fakePackageChangeRepository.notifyChange(PackageChangeModel.Empty) in <lambda>() 269 kosmos.fakePackageChangeRepository.notifyChange(PackageChangeModel.Empty) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/start/ |
D | ControlsStartable.kt | 29 import com.android.systemui.common.shared.model.PackageChangeModel in <lambda>() 119 .filterIsInstance<PackageChangeModel.Uninstalled>() in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/start/ |
D | ControlsStartableTest.kt | 35 import com.android.systemui.common.shared.model.PackageChangeModel 347 PackageChangeModel.Uninstalled( in testSelectedComponentIsUninstalled() 377 PackageChangeModel.Changed( in testSelectedComponentIsChanged() 408 PackageChangeModel.Uninstalled( in testOtherPackageIsUninstalled()
|