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.java118 List<ShareTarget> shareTargets = getDirectShareTargets(); in predictTargets() local
119 SharesheetModelScorer.computeScore(shareTargets, getShareEventType(mIntentFilter), in predictTargets()
121 Collections.sort(shareTargets, in predictTargets()
126 shareTargets.size()); i++) { in predictTargets()
127 res.add(shareTargets.get(i).getAppTarget()); in predictTargets()
143 List<ShareTarget> shareTargets = getAppShareTargets(targets); in sortTargets() local
144 SharesheetModelScorer.computeScoreForAppShare(shareTargets, in sortTargets()
148 Collections.sort(shareTargets, (t1, t2) -> -Float.compare(t1.getScore(), t2.getScore())); in sortTargets()
150 for (ShareTarget shareTarget : shareTargets) { in sortTargets()
172 List<ShareTarget> shareTargets = new ArrayList<>(); in getDirectShareTargets() local
[all …]
DSharesheetModelScorer.java66 static void computeScore(List<ShareTargetPredictor.ShareTarget> shareTargets, in computeScore() argument
68 if (shareTargets.isEmpty()) { in computeScore()
79 List<ShareTargetRankingScore> scoreList = new ArrayList<>(shareTargets.size()); in computeScore()
80 for (ShareTargetPredictor.ShareTarget target : shareTargets) { in computeScore()
135 ShareTargetPredictor.ShareTarget target = shareTargets.get(i); in computeScore()
167 static void computeScoreForAppShare(List<ShareTargetPredictor.ShareTarget> shareTargets, in computeScoreForAppShare() argument
170 computeScore(shareTargets, shareEventType, now); in computeScoreForAppShare()
171 postProcess(shareTargets, targetsLimit, dataManager, callingUserId, chooserActivity); in computeScoreForAppShare()
174 private static void postProcess(List<ShareTargetPredictor.ShareTarget> shareTargets, in postProcess() argument
180 for (ShareTargetPredictor.ShareTarget shareTarget : shareTargets) { in postProcess()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest1.java8675 List<ShareTargetInfo> shareTargets = getCallerShareTargets(); in testParseShareTargetsFromManifest() local
8677 assertNotNull(shareTargets); in testParseShareTargetsFromManifest()
8678 assertEquals(expectedValues.size(), shareTargets.size()); in testParseShareTargetsFromManifest()
8682 ShareTargetInfo actual = shareTargets.get(i); in testParseShareTargetsFromManifest()
8734 List<ShareTargetInfo> shareTargets = new ArrayList<>(); in testShareTargetInfo_saveToXml() local
8738 shareTargets.add(ShareTargetInfo.loadFromXml(parser)); in testShareTargetInfo_saveToXml()
8743 assertNotNull(shareTargets); in testShareTargetInfo_saveToXml()
8744 assertEquals(expectedValues.size(), shareTargets.size()); in testShareTargetInfo_saveToXml()
8748 ShareTargetInfo actual = shareTargets.get(i); in testShareTargetInfo_saveToXml()