| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| ~ Copyright 2018 The Android Open Source Project |
| ~ |
| ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| ~ you may not use this file except in compliance with the License. |
| ~ You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, software |
| ~ distributed under the License is distributed on an "AS IS" BASIS, |
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ~ See the License for the specific language governing permissions and |
| ~ limitations under the License. |
| --> |
| |
| <!-- Test XML resource to read share-targets from, used in ShortcutManagerTest1.java --> |
| <shortcuts xmlns:android="http://schemas.android.com/apk/res/android"> |
| <shortcut |
| android:shortcutId="dummy_shortcut1" |
| android:enabled="true" |
| android:shortcutShortLabel="@string/shortcut_title1"> |
| <intent |
| android:action="android.intent.action.VIEW" |
| android:targetPackage="com.test.somepackage" |
| android:targetClass="com.test.somepackage.someclass" /> |
| <categories android:name="android.shortcut.conversation" /> |
| </shortcut> |
| |
| <!-- Valid share target definition --> |
| <share-target android:targetClass="com.test.directshare.TestActivity1"> |
| <data |
| android:scheme="http" |
| android:host="www.google.com" |
| android:port="1234" |
| android:path="somePath" |
| android:pathPrefix="somePathPrefix" |
| android:pathPattern="somePathPattern" |
| android:mimeType="text/plain"/> |
| <category android:name="com.test.category.CATEGORY1"/> |
| <category android:name="com.test.category.CATEGORY2"/> |
| </share-target> |
| |
| <!-- Share target missing data tag, will be dropped --> |
| <share-target android:targetClass="com.test.directshare.TestActivity"> |
| <category android:name="com.test.category.CATEGORY2"/> |
| </share-target> |
| |
| <!-- Share target missing target class, will be dropped --> |
| <share-target> |
| <data |
| android:scheme="file" |
| android:host="www.somehost.com" |
| android:port="1234" |
| android:mimeType="video/*"/> |
| <category android:name="com.test.category.CATEGORY3"/> |
| </share-target> |
| |
| <shortcut |
| android:shortcutId="dummy_shortcut2" |
| android:enabled="true" |
| android:shortcutShortLabel="@string/shortcut_title1"> |
| <intent |
| android:action="android.intent.action.VIEW" |
| android:targetPackage="com.test.somepackage" |
| android:targetClass="com.test.somepackage.someclass" /> |
| <categories android:name="android.shortcut.conversation" /> |
| </shortcut> |
| |
| <!-- Share target missing category, will be dropped --> |
| <share-target android:targetClass="com.test.directshare.TestActivity"> |
| <data |
| android:scheme="content" |
| android:mimeType="text/plain"/> |
| </share-target> |
| |
| <!-- Valid share target definition --> |
| <share-target android:targetClass="com.test.directshare.TestActivity5"> |
| <category android:name="com.test.category.CATEGORY5"/> |
| <category android:name="com.test.category.CATEGORY6"/> |
| <data android:mimeType="video/mp4"/> |
| <data |
| android:scheme="content" |
| android:mimeType="video/*"/> |
| </share-target> |
| </shortcuts> |