1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2021 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.photopicker.cts"> 20 <uses-permission android:name="android.permission.READ_MEDIA_VISUAL_USER_SELECTED" /> 21 22 <queries> 23 <intent> 24 <action android:name="com.android.photopicker.core.embedded.EmbeddedService.BIND" /> 25 </intent> 26 </queries> 27 28<application android:label="Photo Picker Device Tests"> 29 <uses-library android:name="android.test.runner" /> 30 <activity android:name="android.photopicker.cts.GetResultActivity" 31 android:exported="false" 32 android:enabled="true"> 33 <intent-filter android:priority="999"> 34 <action android:name="android.provider.action.PICK_IMAGES" /> 35 <category android:name="android.intent.category.DEFAULT" /> 36 <data android:mimeType="image/*" /> 37 <data android:mimeType="video/*" /> 38 </intent-filter> 39 <intent-filter android:priority="999"> 40 <action android:name="android.provider.action.PICK_IMAGES" /> 41 <category android:name="android.intent.category.DEFAULT" /> 42 </intent-filter> 43 </activity> 44 45 <activity android:name="android.photopicker.cts.EmbeddedTestActivity" 46 android:exported="true"> 47 </activity> 48 49 <provider android:name="android.provider.cts.cloudproviders.DefaultCloudMediaProvider" 50 android:authorities="com.android.provider.cts.cloudproviders.cloud_default" 51 android:exported="true"> 52 <intent-filter> 53 <action android:name="android.content.action.CLOUD_MEDIA_PROVIDER" /> 54 </intent-filter> 55 </provider> 56 57 <provider android:name="android.provider.cts.cloudproviders.SearchCloudMediaProvider" 58 android:authorities="com.android.provider.cts.cloudproviders.search" 59 android:exported="true"> 60 <intent-filter> 61 <action android:name="android.content.action.CLOUD_MEDIA_PROVIDER" /> 62 </intent-filter> 63 </provider> 64 65 <provider android:name="android.photopicker.cts.cloudproviders.CloudProviderPrimary" 66 android:authorities="android.photopicker.cts.cloudproviders.cloud_primary" 67 android:permission="com.android.providers.media.permission.MANAGE_CLOUD_MEDIA_PROVIDERS" 68 android:exported="true"> 69 <intent-filter> 70 <action android:name="android.content.action.CLOUD_MEDIA_PROVIDER" /> 71 </intent-filter> 72 </provider> 73 74 <provider android:name="android.photopicker.cts.cloudproviders.CloudProviderSecondary" 75 android:authorities="android.photopicker.cts.cloudproviders.cloud_secondary" 76 android:permission="com.android.providers.media.permission.MANAGE_CLOUD_MEDIA_PROVIDERS" 77 android:exported="true"> 78 <intent-filter> 79 <action android:name="android.content.action.CLOUD_MEDIA_PROVIDER" /> 80 </intent-filter> 81 </provider> 82 83 <provider android:name="android.photopicker.cts.cloudproviders.CloudProviderNoPermission" 84 android:authorities="android.photopicker.cts.cloudproviders.cloud_no_permission" 85 android:exported="true"> 86 <intent-filter> 87 <action android:name="android.content.action.CLOUD_MEDIA_PROVIDER" /> 88 </intent-filter> 89 </provider> 90 91 <provider android:name="android.photopicker.cts.cloudproviders.CloudProviderNoIntentFilter" 92 android:authorities="android.photopicker.cts.cloudproviders.cloud_no_intent_filter" 93 android:permission="com.android.providers.media.permission.MANAGE_CLOUD_MEDIA_PROVIDERS" 94 android:exported="true"> 95 </provider> 96</application> 97 98<instrumentation android:name="androidx.test.runner.AndroidJUnitRunner" 99 android:targetPackage="android.photopicker.cts" 100 android:label="Device-only photo picker tests" /> 101 102</manifest> 103