Home
last modified time | relevance | path

Searched refs:ShareTarget (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/people/java/com/android/server/people/prediction/
DShareTargetPredictor.java88 List<ShareTarget> shareTargets = getDirectShareTargets(); in predictTargets()
92 Comparator.comparing(ShareTarget::getScore, reverseOrder()) in predictTargets()
113 List<ShareTarget> shareTargets = getAppShareTargets(targets); in sortTargets()
120 for (ShareTarget shareTarget : shareTargets) { in sortTargets()
132 private List<ShareTarget> getDirectShareTargets() { in getDirectShareTargets()
133 List<ShareTarget> shareTargets = new ArrayList<>(); in getDirectShareTargets()
158 shareTargets.add(new ShareTarget(appTarget, eventHistory, conversationInfo)); in getDirectShareTargets()
164 private List<ShareTarget> getAppShareTargets(List<AppTarget> targets) { in getAppShareTargets()
165 List<ShareTarget> shareTargets = new ArrayList<>(); in getAppShareTargets()
169 shareTargets.add(new ShareTarget(target, in getAppShareTargets()
[all …]
DSharesheetModelScorer.java69 static void computeScore(List<ShareTargetPredictor.ShareTarget> shareTargets, in computeScore()
83 for (ShareTargetPredictor.ShareTarget target : shareTargets) { in computeScore()
138 ShareTargetPredictor.ShareTarget target = shareTargets.get(i); in computeScore()
170 static void computeScoreForAppShare(List<ShareTargetPredictor.ShareTarget> shareTargets, in computeScoreForAppShare()
177 private static void postProcess(List<ShareTargetPredictor.ShareTarget> shareTargets, in postProcess()
181 Map<String, List<ShareTargetPredictor.ShareTarget>> shareTargetMap = new ArrayMap<>(); in postProcess()
182 for (ShareTargetPredictor.ShareTarget shareTarget : shareTargets) { in postProcess()
185 List<ShareTargetPredictor.ShareTarget> targetsList = shareTargetMap.get(packageName); in postProcess()
206 Map<String, List<ShareTargetPredictor.ShareTarget>> shareTargetMap, int targetsLimit, in promoteMostChosenAndFrequentlyUsedApps()
210 for (List<ShareTargetPredictor.ShareTarget> targets : shareTargetMap.values()) { in promoteMostChosenAndFrequentlyUsedApps()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/people/prediction/
DSharesheetModelScorerTest.java117 private ShareTargetPredictor.ShareTarget mShareTarget1;
118 private ShareTargetPredictor.ShareTarget mShareTarget2;
119 private ShareTargetPredictor.ShareTarget mShareTarget3;
120 private ShareTargetPredictor.ShareTarget mShareTarget4;
121 private ShareTargetPredictor.ShareTarget mShareTarget5;
122 private ShareTargetPredictor.ShareTarget mShareTarget6;
128 mShareTarget1 = new ShareTargetPredictor.ShareTarget( in setUp()
133 mShareTarget2 = new ShareTargetPredictor.ShareTarget( in setUp()
137 mShareTarget3 = new ShareTargetPredictor.ShareTarget( in setUp()
142 mShareTarget4 = new ShareTargetPredictor.ShareTarget( in setUp()
[all …]