Home
last modified time | relevance | path

Searched refs:NUM_REQUIRED_RECOMMENDATIONS (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/shared/
DSmartspaceMediaDataTest.kt24 import com.android.systemui.media.controls.shared.model.NUM_REQUIRED_RECOMMENDATIONS
70 for (i in 1 until NUM_REQUIRED_RECOMMENDATIONS) { in isValid_tooFewRecsWithIcons_returnsFalse()
86 for (i in 0 until NUM_REQUIRED_RECOMMENDATIONS) { in isValid_enoughRecsWithIcons_returnsTrue()
99 for (i in 0 until NUM_REQUIRED_RECOMMENDATIONS + 3) { in isValid_manyRecsWithIcons_returnsTrue()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/shared/model/
DSmartspaceMediaData.kt61 fun isValid() = getValidRecommendations().size >= NUM_REQUIRED_RECOMMENDATIONS in isValid()
111 const val NUM_REQUIRED_RECOMMENDATIONS = 3 constant
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/binder/
DMediaRecommendationsViewBinder.kt32 import com.android.systemui.media.controls.shared.model.NUM_REQUIRED_RECOMMENDATIONS in <lambda>()
163 if (index >= NUM_REQUIRED_RECOMMENDATIONS) return@forEachIndexed in <lambda>()
295 return min(fittedNum.toDouble(), NUM_REQUIRED_RECOMMENDATIONS.toDouble()).toInt() in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/
DMediaControlPanel.java22 …om.android.systemui.media.controls.shared.model.SmartspaceMediaDataKt.NUM_REQUIRED_RECOMMENDATIONS;
1485 for (int itemIndex = 0; itemIndex < NUM_REQUIRED_RECOMMENDATIONS; itemIndex++) {
1549 mSmartspaceMediaItemsCount = NUM_REQUIRED_RECOMMENDATIONS;
1614 for (int itemIndex = 0; itemIndex < NUM_REQUIRED_RECOMMENDATIONS; itemIndex++) {
1645 return Math.min(fittedNum, NUM_REQUIRED_RECOMMENDATIONS);