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<application android:label="Photo Picker Device Tests">
22    <uses-library android:name="android.test.runner" />
23    <activity android:name="android.photopicker.cts.GetResultActivity"
24              android:exported="false"
25              android:enabled="true">
26        <intent-filter android:priority="999">
27            <action android:name="android.provider.action.PICK_IMAGES" />
28            <category android:name="android.intent.category.DEFAULT" />
29            <data android:mimeType="image/*" />
30            <data android:mimeType="video/*" />
31        </intent-filter>
32        <intent-filter android:priority="999">
33            <action android:name="android.provider.action.PICK_IMAGES" />
34            <category android:name="android.intent.category.DEFAULT" />
35        </intent-filter>
36    </activity>
37
38
39    <provider android:name="android.photopicker.cts.cloudproviders.CloudProviderPrimary"
40              android:authorities="android.photopicker.cts.cloudproviders.cloud_primary"
41              android:permission="com.android.providers.media.permission.MANAGE_CLOUD_MEDIA_PROVIDERS"
42              android:exported="true">
43      <intent-filter>
44        <action android:name="android.content.action.CLOUD_MEDIA_PROVIDER" />
45      </intent-filter>
46    </provider>
47
48    <provider android:name="android.photopicker.cts.cloudproviders.CloudProviderSecondary"
49              android:authorities="android.photopicker.cts.cloudproviders.cloud_secondary"
50              android:permission="com.android.providers.media.permission.MANAGE_CLOUD_MEDIA_PROVIDERS"
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.photopicker.cts.cloudproviders.CloudProviderNoPermission"
58              android:authorities="android.photopicker.cts.cloudproviders.cloud_no_permission"
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.CloudProviderNoIntentFilter"
66              android:authorities="android.photopicker.cts.cloudproviders.cloud_no_intent_filter"
67              android:permission="com.android.providers.media.permission.MANAGE_CLOUD_MEDIA_PROVIDERS"
68              android:exported="true">
69    </provider>
70</application>
71
72<instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
73                 android:targetPackage="android.photopicker.cts"
74                 android:label="Device-only photo picker tests" />
75
76</manifest>
77