• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Copyright (C) 2007 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.app.usage.cts" android:targetSandboxVersion="2">
20    <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
21
22    <!-- We can't have the test framework turn off the keyguard, because that will
23         prevent us from testing interactions with it.
24    <uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
25    -->
26    <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />
27    <uses-permission android:name="android.permission.SET_TIME" />
28    <uses-permission android:name="android.permission.INTERNET" />
29    <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
30    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
31    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
32
33    <application android:usesCleartextTraffic="true"
34            android:networkSecurityConfig="@xml/network_security_config">
35        <uses-library android:name="android.test.runner"/>
36
37        <activity android:name=".Activities$ActivityOne"
38                  android:resizeableActivity="true"
39                  android:supportsPictureInPicture="true"
40                  android:exported="true"
41        />
42        <activity android:name=".Activities$ActivityTwo"
43                  android:resizeableActivity="true"
44                  android:supportsPictureInPicture="true"
45                  android:exported="true"
46        />
47        <activity android:name=".Activities$ActivityThree"/>
48        <activity android:name=".Activities$ActivityFour" />
49        <activity android:name=".ActivityTransitionActivity" />
50        <activity android:name=".ActivityTransitionActivity2"
51            android:taskAffinity="android.app.usage.cts.other_task"/>
52        <activity android:name=".FragmentTestActivity" />
53        <activity android:name=".TaskRootActivity" />
54        <service android:name=".TestService" />
55    </application>
56
57    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
58                     android:targetPackage="android.app.usage.cts"
59                     android:label="CTS tests of android.app.usage">
60        <meta-data android:name="listener"
61            android:value="com.android.cts.runner.CtsTestRunListener" />
62    </instrumentation>
63
64</manifest>
65