Loading packages/SystemUI/src/com/android/systemui/common/shared/model/Icon.kt +8 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,14 @@ import com.android.systemui.common.shared.model.Icon.Loaded sealed class Icon { abstract val contentDescription: ContentDescription? /** * An icon that is already loaded. * * @param res The resource ID of the icon. For when we want to have Loaded icon, but still keep * a reference to the resource id. A use case would be for tests that have to compare animated * drawables. It should only be used for SystemUI/frameworks resources and not for other * packages' resources as they may collide with SystemUI. */ data class Loaded @JvmOverloads constructor( Loading packages/SystemUI/src/com/android/systemui/qs/tiles/base/shared/model/QSTileState.kt +0 −3 Original line number Diff line number Diff line Loading @@ -29,9 +29,6 @@ import kotlin.reflect.KClass * [QSTileState.build] for better state creation experience and preset default values for certain * fields. * * @param iconRes For when we want to have Loaded icon, but still keep a reference to the resource * id. A use case would be for tests that have to compare animated drawables. * * // TODO(b/http://b/299909989): Clean up legacy mappings after the transition */ data class QSTileState( Loading Loading
packages/SystemUI/src/com/android/systemui/common/shared/model/Icon.kt +8 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,14 @@ import com.android.systemui.common.shared.model.Icon.Loaded sealed class Icon { abstract val contentDescription: ContentDescription? /** * An icon that is already loaded. * * @param res The resource ID of the icon. For when we want to have Loaded icon, but still keep * a reference to the resource id. A use case would be for tests that have to compare animated * drawables. It should only be used for SystemUI/frameworks resources and not for other * packages' resources as they may collide with SystemUI. */ data class Loaded @JvmOverloads constructor( Loading
packages/SystemUI/src/com/android/systemui/qs/tiles/base/shared/model/QSTileState.kt +0 −3 Original line number Diff line number Diff line Loading @@ -29,9 +29,6 @@ import kotlin.reflect.KClass * [QSTileState.build] for better state creation experience and preset default values for certain * fields. * * @param iconRes For when we want to have Loaded icon, but still keep a reference to the resource * id. A use case would be for tests that have to compare animated drawables. * * // TODO(b/http://b/299909989): Clean up legacy mappings after the transition */ data class QSTileState( Loading