Home
last modified time | relevance | path

Searched refs:ShareTargetInfo (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/
DShareTargetInfo.java31 class ShareTargetInfo { class
104 ShareTargetInfo(TargetData[] data, String targetClass, String[] categories) { in ShareTargetInfo() method in ShareTargetInfo
152 static ShareTargetInfo loadFromXml(XmlPullParser parser) in loadFromXml()
155 final ArrayList<ShareTargetInfo.TargetData> targetData = new ArrayList<>(); in loadFromXml()
176 return new ShareTargetInfo( in loadFromXml()
177 targetData.toArray(new ShareTargetInfo.TargetData[targetData.size()]), in loadFromXml()
181 private static ShareTargetInfo.TargetData parseTargetData(XmlPullParser parser) { in parseTargetData()
190 return new ShareTargetInfo.TargetData(scheme, host, port, path, pathPattern, pathPrefix, in parseTargetData()
DShortcutParser.java65 @UserIdInt int userId, @NonNull List<ShareTargetInfo> outShareTargets) in parseShortcuts()
108 List<ShortcutInfo> result, @NonNull List<ShareTargetInfo> outShareTargets) in parseShortcutsOneFile()
138 ShareTargetInfo currentShareTarget = null; in parseShortcutsOneFile()
147 final ArrayList<ShareTargetInfo.TargetData> dataList = new ArrayList<>(); in parseShortcutsOneFile()
221 final ShareTargetInfo sti = currentShareTarget; in parseShortcutsOneFile()
229 final ShareTargetInfo newShareTarget = new ShareTargetInfo( in parseShortcutsOneFile()
230 dataList.toArray(new ShareTargetInfo.TargetData[dataList.size()]), in parseShortcutsOneFile()
271 final ShareTargetInfo sti = parseShareTargetAttributes(service, attrs); in parseShortcutsOneFile()
335 final ShareTargetInfo.TargetData data = parseShareTargetData(service, attrs); in parseShortcutsOneFile()
471 private static ShareTargetInfo parseShareTargetAttributes(ShortcutService service, in parseShareTargetAttributes()
[all …]
DShortcutPackage.java130 private final ArrayList<ShareTargetInfo> mShareTargets = new ArrayList<>(0);
662 final List<ShareTargetInfo> matchedTargets = new ArrayList<>(); in getMatchingShareTargets()
664 final ShareTargetInfo target = mShareTargets.get(i); in getMatchingShareTargets()
665 for (ShareTargetInfo.TargetData data : target.mTargetData) { in getMatchingShareTargets()
692 final ShareTargetInfo target = matchedTargets.get(j); in getMatchingShareTargets()
736 final ShareTargetInfo target = mShareTargets.get(j); in getSharingShortcutCount()
1639 ret.mShareTargets.add(ShareTargetInfo.loadFromXml(parser)); in loadFromXml()
1830 List<ShareTargetInfo> getAllShareTargetsForTest() { in getAllShareTargetsForTest()
DOWNERS49 per-file ShareTargetInfo.java = omakoto@google.com, yamasani@google.com
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest1.java8052 List<ShareTargetInfo> expectedValues = new ArrayList<>(); in testParseShareTargetsFromManifest()
8053 expectedValues.add(new ShareTargetInfo( in testParseShareTargetsFromManifest()
8054 new ShareTargetInfo.TargetData[]{new ShareTargetInfo.TargetData( in testParseShareTargetsFromManifest()
8058 expectedValues.add(new ShareTargetInfo(new ShareTargetInfo.TargetData[]{ in testParseShareTargetsFromManifest()
8059 new ShareTargetInfo.TargetData(null, null, null, null, null, null, "video/mp4"), in testParseShareTargetsFromManifest()
8060 new ShareTargetInfo.TargetData("content", null, null, null, null, null, "video/*")}, in testParseShareTargetsFromManifest()
8071 List<ShareTargetInfo> shareTargets = getCallerShareTargets(); in testParseShareTargetsFromManifest()
8077 ShareTargetInfo expected = expectedValues.get(i); in testParseShareTargetsFromManifest()
8078 ShareTargetInfo actual = shareTargets.get(i); in testParseShareTargetsFromManifest()
8103 List<ShareTargetInfo> expectedValues = new ArrayList<>(); in testShareTargetInfo_saveToXml()
[all …]
DBaseShortcutManagerTest.java1830 protected List<ShareTargetInfo> getCallerShareTargets() {