Home
last modified time | relevance | path

Searched refs:shareTargets (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() local
89 SharesheetModelScorer.computeScore(shareTargets, getShareEventType(mIntentFilter), in predictTargets()
91 Collections.sort(shareTargets, in predictTargets()
96 shareTargets.size()); i++) { in predictTargets()
97 res.add(shareTargets.get(i).getAppTarget()); in predictTargets()
113 List<ShareTarget> shareTargets = getAppShareTargets(targets); in sortTargets() local
114 SharesheetModelScorer.computeScoreForAppShare(shareTargets, in sortTargets()
118 Collections.sort(shareTargets, (t1, t2) -> -Float.compare(t1.getScore(), t2.getScore())); in sortTargets()
120 for (ShareTarget shareTarget : shareTargets) { in sortTargets()
133 List<ShareTarget> shareTargets = new ArrayList<>(); in getDirectShareTargets() local
[all …]
DSharesheetModelScorer.java69 static void computeScore(List<ShareTargetPredictor.ShareTarget> shareTargets, in computeScore() argument
71 if (shareTargets.isEmpty()) { in computeScore()
82 List<ShareTargetRankingScore> scoreList = new ArrayList<>(shareTargets.size()); 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() argument
173 computeScore(shareTargets, shareEventType, now); in computeScoreForAppShare()
174 postProcess(shareTargets, targetsLimit, dataManager, callingUserId); in computeScoreForAppShare()
177 private static void postProcess(List<ShareTargetPredictor.ShareTarget> shareTargets, in postProcess() argument
182 for (ShareTargetPredictor.ShareTarget shareTarget : shareTargets) { in postProcess()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest1.java8568 List<ShareTargetInfo> shareTargets = getCallerShareTargets(); in testParseShareTargetsFromManifest() local
8570 assertNotNull(shareTargets); in testParseShareTargetsFromManifest()
8571 assertEquals(expectedValues.size(), shareTargets.size()); in testParseShareTargetsFromManifest()
8575 ShareTargetInfo actual = shareTargets.get(i); in testParseShareTargetsFromManifest()
8627 List<ShareTargetInfo> shareTargets = new ArrayList<>(); in testShareTargetInfo_saveToXml() local
8631 shareTargets.add(ShareTargetInfo.loadFromXml(parser)); in testShareTargetInfo_saveToXml()
8636 assertNotNull(shareTargets); in testShareTargetInfo_saveToXml()
8637 assertEquals(expectedValues.size(), shareTargets.size()); in testShareTargetInfo_saveToXml()
8641 ShareTargetInfo actual = shareTargets.get(i); in testShareTargetInfo_saveToXml()