Home
last modified time | relevance | path

Searched refs:favorite (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DControlAdapter.kt111 ) { id, favorite -> in <lambda>() method
112 model?.changeFavoriteStatus(id, favorite) in <lambda>()
146 holder.updateFavorite(el.favorite) in <lambda>()
175 open fun updateFavorite(favorite: Boolean) {} in bindData()
227 private val favorite: CheckBox = itemView.requireViewById<CheckBox>(R.id.favorite).apply { in <lambda>() constant
242 private fun stateDescription(favorite: Boolean): CharSequence? { in stateDescription()
243 if (!favorite) { in stateDescription()
259 updateFavorite(wrapper.favorite) in bindData()
266 updateFavorite(!favorite.isChecked) in bindData()
267 favoriteCallback(wrapper.controlId, favorite.isChecked) in bindData()
[all …]
DAllModel.kt68 override fun changeFavoriteStatus(controlId: String, favorite: Boolean) { in <lambda>()
72 if (favorite == toChange?.controlStatus?.favorite) return in <lambda>()
73 val changed: Boolean = if (favorite) { in <lambda>()
83 it.controlStatus.favorite = favorite in <lambda>()
DControlsModel.kt51 fun changeFavoriteStatus(controlId: String, favorite: Boolean) {} in changeFavoriteStatus()
123 override var favorite: Boolean in nullIconGetter() variable in com.android.systemui.controls.management.ControlInfoWrapper
133 favorite: Boolean, in nullIconGetter()
135 ): this(component, controlInfo, favorite) { in nullIconGetter()
DFavoritesModel.kt96 override fun changeFavoriteStatus(controlId: String, favorite: Boolean) { in changeFavoriteStatus()
101 if (position < dividerPosition && favorite || position > dividerPosition && !favorite) { in changeFavoriteStatus()
104 if (favorite) { in changeFavoriteStatus()
146 (elements[from] as ControlInfoWrapper).favorite = false in onMoveItemInternal()
149 (elements[from] as ControlInfoWrapper).favorite = true in onMoveItemInternal()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/
DControlStatus.kt25 val favorite: Boolean constant
39 override var favorite: Boolean, variable in com.android.systemui.controls.ControlStatus
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
DAllModelTest.kt175 .controlStatus.favorite in <lambda>()
221 .controlStatus.favorite in <lambda>()
DFavoritesModelTest.kt84 assertEquals(index < dividerIndex, element.favorite) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DControlsControllerImplTest.kt373 assertTrue(controlStatus.favorite) in <lambda>()
404 assertTrue(controlStatus.favorite) in <lambda>()