1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2020 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License. 16 --> 17 18<manifest xmlns:android="http://schemas.android.com/apk/res/android" 19 package="android.dynamicmime.preferred"> 20 <application android:testOnly="true" 21 android:label="TestApp.Application"> 22 <uses-library android:name="android.test.runner"/> 23 <activity android:name="android.dynamicmime.common.activity.FirstActivity" 24 android:exported="true"> 25 <intent-filter android:label="TestApp.FirstActivity"> 26 <action android:name="android.dynamicmime.preferred.TEST_ACTION"/> 27 <action android:name="android.dynamicmime.preferred.FILTER_INFO_HOOK_group_first"/> 28 <category android:name="android.intent.category.DEFAULT"/> 29 <data android:mimeGroup="group_first"/> 30 </intent-filter> 31 </activity> 32 33 <activity android:name="android.dynamicmime.common.activity.TwoGroupsActivity" 34 android:exported="true"> 35 <intent-filter android:label="TestApp.TwoGroupsActivity"> 36 <action android:name="android.dynamicmime.preferred.TEST_ACTION"/> 37 <action android:name="android.dynamicmime.preferred.FILTER_INFO_HOOK_group_both"/> 38 <category android:name="android.intent.category.DEFAULT"/> 39 <data android:mimeGroup="group_third"/> 40 <data android:mimeGroup="group_second"/> 41 </intent-filter> 42 </activity> 43 44 <activity android:name="android.dynamicmime.common.activity.StaticActivity1" 45 android:exported="true"> 46 <intent-filter android:label="StaticActivity1"> 47 <action android:name="android.dynamicmime.preferred.TEST_ACTION"/> 48 <category android:name="android.intent.category.DEFAULT"/> 49 <data android:mimeType="text/plain"/> 50 <data android:mimeType="image/png"/> 51 </intent-filter> 52 </activity> 53 54 <activity android:name="android.dynamicmime.common.activity.StaticActivity2" 55 android:exported="true"> 56 <intent-filter android:label="StaticActivity2"> 57 <action android:name="android.dynamicmime.preferred.TEST_ACTION"/> 58 <category android:name="android.intent.category.DEFAULT"/> 59 <data android:mimeType="text/plain"/> 60 <data android:mimeType="image/png"/> 61 </intent-filter> 62 </activity> 63 64 <receiver android:name="android.dynamicmime.app.AppMimeGroupsReceiver" 65 android:exported="true"> 66 <intent-filter> 67 <action android:name="android.dynamicmime.UPDATE_MIME_GROUP_REQUEST"/> 68 </intent-filter> 69 </receiver> 70 </application> 71 72 <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner" 73 android:targetPackage="android.dynamicmime.preferred"> 74 </instrumentation> 75</manifest> 76