1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2023 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18     package="com.android.frameworks.dreamservicetests">
19
20    <!--
21    Insert permissions here. eg:
22    <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
23    -->
24    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
25
26    <application android:debuggable="true"
27                 android:testOnly="true">
28        <uses-library android:name="android.test.mock" android:required="true" />
29        <uses-library android:name="android.test.runner" />
30
31        <service
32            android:name="com.android.server.dreams.TestDreamService"
33            android:exported="false"
34            android:label="Test Dream" >
35            <intent-filter>
36                <action android:name="android.service.dreams.DreamService" />
37                <category android:name="android.intent.category.DEFAULT" />
38            </intent-filter>
39            <meta-data
40                android:name="android.service.dream"
41                android:resource="@xml/test_dream_metadata" />
42        </service>
43
44        <service
45            android:name="com.android.server.dreams.TestDreamServiceWithInvalidSettings"
46            android:exported="false"
47            android:label="Test Dream" >
48            <intent-filter>
49                <action android:name="android.service.dreams.DreamService" />
50                <category android:name="android.intent.category.DEFAULT" />
51            </intent-filter>
52            <meta-data
53                android:name="android.service.dream"
54                android:resource="@xml/test_dream_metadata_invalid" />
55        </service>
56    </application>
57
58    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
59         android:targetPackage="com.android.frameworks.dreamservicetests"
60         android:label="Frameworks Services Tests"/>
61</manifest>
62