Home
last modified time | relevance | path

Searched refs:recommendations (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/shared/
DSmartspaceMediaDataTest.kt41 val recommendations = listOf(withIcon1, withoutIcon1, withIcon2, withoutIcon2) in getValidRecommendations_onlyReturnsRecsWithIcons() constant
43 val data = DEFAULT_DATA.copy(recommendations = recommendations) in getValidRecommendations_onlyReturnsRecsWithIcons()
50 val data = DEFAULT_DATA.copy(recommendations = listOf()) in isValid_emptyList_returnsFalse()
59 recommendations = in isValid_tooFewRecs_returnsFalse()
68 val recommendations = mutableListOf<SmartspaceAction>() in isValid_tooFewRecsWithIcons_returnsFalse() constant
71 recommendations.add(SmartspaceAction.Builder("id", "title").setIcon(icon).build()) in isValid_tooFewRecsWithIcons_returnsFalse()
74 recommendations.add(SmartspaceAction.Builder("id", "title").setIcon(null).build()) in isValid_tooFewRecsWithIcons_returnsFalse()
77 val data = DEFAULT_DATA.copy(recommendations = recommendations) in isValid_tooFewRecsWithIcons_returnsFalse()
84 val recommendations = mutableListOf<SmartspaceAction>() in isValid_enoughRecsWithIcons_returnsTrue() constant
87 recommendations.add(SmartspaceAction.Builder("id", "title").setIcon(icon).build()) in isValid_enoughRecsWithIcons_returnsTrue()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/media/controls/domain/interactor/
DMediaRecommendationsInteractorTest.kt73 recommendations = MediaTestHelper.getValidRecommendationList(icon),
85 val recommendations by collectLastValue(underTest.recommendations) in addRecommendation_smartspaceMediaDataUpdate() constant
102 assertThat(recommendations).isEqualTo(model) in addRecommendation_smartspaceMediaDataUpdate()
124 val recommendations by collectLastValue(underTest.recommendations) in addInvalidRecommendation() constant
125 val inValidData = smartspaceMediaData.copy(recommendations = listOf()) in addInvalidRecommendation()
128 assertThat(recommendations?.areRecommendationsValid).isTrue() in addInvalidRecommendation()
131 assertThat(recommendations?.areRecommendationsValid).isFalse() in addInvalidRecommendation()
132 assertThat(recommendations?.mediaRecs?.isEmpty()).isTrue() in addInvalidRecommendation()
DMediaCarouselInteractorTest.kt64 recommendations = MediaTestHelper.getValidRecommendationList(icon),
193 mediaRecommendation.copy(recommendations = listOf()) in addActiveRecommendation_thenInvalid()
/frameworks/base/services/print/java/com/android/server/print/
DRemotePrintServiceRecommendationService.java77 @Nullable List<RecommendationInfo> recommendations); in onPrintServiceRecommendationsUpdated()
206 List<RecommendationInfo> recommendations) { in onServiceConnected()
209 if (recommendations != null) { in onServiceConnected()
211 recommendations, "recommendation"); in onServiceConnected()
215 recommendations); in onServiceConnected()
DUserState.java725 public void onPrintServiceRecommendationsUpdated(List<RecommendationInfo> recommendations) { in onPrintServiceRecommendationsUpdated() argument
728 this, recommendations)); in onPrintServiceRecommendationsUpdated()
1184 @Nullable List<RecommendationInfo> recommendations) { in handleDispatchPrintServiceRecommendationsUpdated()
1192 mPrintServiceRecommendations = recommendations; in handleDispatchPrintServiceRecommendationsUpdated()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/binder/
DMediaRecommendationsViewBinder.kt55 val cardView = viewHolder.recommendations in <lambda>()
79 viewHolder.recommendations.backgroundTintList = ColorStateList.valueOf(viewModel.cardColor) in <lambda>()
80 viewHolder.recommendations.contentDescription = in <lambda>()
83 viewHolder.recommendations.setOnClickListener { in <lambda>()
88 viewHolder.recommendations.setOnLongClickListener { in <lambda>()
101 updateRecommendationsVisibility(mediaViewController, viewHolder.recommendations) in <lambda>()
222 viewHolder.recommendations.contentDescription = viewModel.contentDescription.invoke(true) in <lambda>()
233 viewHolder.recommendations.contentDescription = in <lambda>()
/frameworks/base/core/java/android/printservice/recommendation/
DRecommendationService.java67 public final void updateRecommendations(@Nullable List<RecommendationInfo> recommendations) { in updateRecommendations() argument
68 mHandler.obtainMessage(MyHandler.MSG_UPDATE, recommendations).sendToTarget(); in updateRecommendations()
DIRecommendationServiceCallbacks.aidl34 void onRecommendationsUpdated(in List<RecommendationInfo> recommendations); in onRecommendationsUpdated() argument
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/
DRecommendationServiceImpl.java145 ArrayList<RecommendationInfo> recommendations = new ArrayList<>(); in onChanged() local
155 recommendations.add(new RecommendationInfo(plugin.packageName, in onChanged()
163 updateRecommendations(recommendations); in onChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/shared/model/
DSmartspaceMediaData.kt42 val recommendations: List<SmartspaceAction> = emptyList(), constant in com.android.systemui.media.controls.shared.model.SmartspaceMediaData
64 fun getValidRecommendations() = recommendations.filter { it.icon != null } in isValid()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/media/controls/ui/viewmodel/
DMediaRecommendationsViewModelTest.kt59 recommendations = MediaTestHelper.getValidRecommendationList(icon),
81 .isEqualTo(smartspaceMediaData.recommendations.size) in loadRecommendations_recsCardViewModelIsLoaded()
DMediaCarouselViewModelTest.kt69 recommendations = MediaTestHelper.getValidRecommendationList(icon),
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/view/
DRecommendationViewHolder.kt35 val recommendations = itemView as TransitionLayout in <lambda>() constant
65 (recommendations.background as IlluminationDrawable).let { background -> in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/media/controls/data/repository/
DMediaDataRepositoryTest.kt91 recommendations = MediaTestHelper.getValidRecommendationList(icon), in setRecommendationInactive()
113 recommendations = MediaTestHelper.getValidRecommendationList(icon), in dismissRecommendation()
DMediaFilterRepositoryTest.kt145 recommendations = MediaTestHelper.getValidRecommendationList(icon), in addActiveRecommendation_thenInactive()
256 recommendations = MediaTestHelper.getValidRecommendationList(icon), in fullOrderTest()
321 recommendations = MediaTestHelper.getValidRecommendationList(icon), in loadMediaFromRec()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/domain/pipeline/interactor/
DMediaRecommendationsInteractor.kt58 val recommendations: Flow<MediaRecommendationsModel> = constant
121 data.recommendations.forEach { in toRecommendationsModel()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/controller/
DMediaControlPanelTest.kt309 recommendations = listOf(smartspaceAction, smartspaceAction, smartspaceAction), in <lambda>()
467 whenever(recommendationViewHolder.recommendations).thenReturn(view) in <lambda>()
1825 verify(recommendationViewHolder.recommendations).setOnLongClickListener(captor.capture()) in <lambda>()
1827 captor.value.onLongClick(recommendationViewHolder.recommendations) in <lambda>()
1861 verify(recommendationViewHolder.recommendations).setOnClickListener(captor.capture()) in <lambda>()
1862 captor.value.onClick(recommendationViewHolder.recommendations) in <lambda>()
1874 captor.value.onClick(recommendationViewHolder.recommendations) in <lambda>()
1886 recommendations = in <lambda>()
1914 recommendations = in <lambda>()
1960 recommendations = in <lambda>()
[all …]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DAddPrinterActivity.java801 public void updateRecommendations(List<RecommendationInfo> recommendations) { in updateRecommendations() argument
802 if (recommendations != null) { in updateRecommendations()
809 Collections.sort(recommendations, in updateRecommendations()
832 mRecommendations = recommendations; in updateRecommendations()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/
DMediaCarouselController.kt757 viewController.recommendationViewHolder.recommendations.layoutParams = lp in <lambda>()
764 mediaContent.addView(viewHolder.recommendations, position) in <lambda>()
798 mediaContent.removeView(it.recommendationViewHolder.recommendations) in <lambda>()
816 mediaContent.addView(it.recommendationViewHolder.recommendations, to) in <lambda>()
873 mediaContent.addView(it.recommendations) in <lambda>()
1034 newRecs.recommendationViewHolder?.recommendations?.setLayoutParams(lp) in <lambda>()
1080 mediaContent.removeView(removed.recommendationViewHolder?.recommendations) in <lambda>()
1150 mediaContent.addView(it.recommendations) in <lambda>()
DMediaControlPanel.java521 TransitionLayout recommendations = vh.getRecommendations(); in attachRecommendation() local
523 mMediaViewController.attach(recommendations, MediaViewController.TYPE.RECOMMENDATION); in attachRecommendation()
1480 List<SmartspaceAction> recommendations = data.getValidRecommendations();
1486 SmartspaceAction recommendation = recommendations.get(itemIndex);
/frameworks/base/core/java/android/print/
DPrintManager.java750 List<RecommendationInfo> recommendations = in getPrintServiceRecommendations() local
752 if (recommendations != null) { in getPrintServiceRecommendations()
753 return recommendations; in getPrintServiceRecommendations()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/viewmodel/
DMediaRecommendationsViewModel.kt76 interactor.recommendations.map { recsCard -> toRecsViewModel(recsCard) } in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/
DLegacyMediaDataFilterImplTest.kt126 whenever(smartspaceData.recommendations) in setup()
600 recommendations = listOf(smartspaceMediaRecommendationItem), in testOnSwipeToDismiss_persistentEnabled_recommendationSetInactive()
DMediaDataProcessorTest.kt1254 recommendations = validRecommendationList, in testOnSmartspaceMediaDataLoaded_hasNewValidMediaTarget_callsListener()
1357 recommendations = validRecommendationList, in testOnSmartspaceMediaDataLoaded_persistentEnabled_headphoneTrigger_isActive()
1391 recommendations = validRecommendationList, in testOnSmartspaceMediaDataLoaded_persistentEnabled_periodicTrigger_notActive()
1422 recommendations = validRecommendationList, in testOnSmartspaceMediaDataLoaded_persistentEnabled_noTargets_inactive()
1454 recommendations = validRecommendationList, in testSetRecommendationInactive_notifiesListeners()
DMediaDataFilterImplTest.kt147 whenever(smartspaceData.recommendations) in setup()
1045 recommendations = listOf(smartspaceMediaRecommendationItem), in onSwipeToDismiss_persistentEnabled_recommendationSetInactive()

12