xref: /aosp_15_r20/frameworks/base/tests/LockTaskTests/AndroidManifest.xml (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1*d57664e9SAndroid Build Coastguard Worker<?xml version="1.0" encoding="utf-8"?>
2*d57664e9SAndroid Build Coastguard Worker
3*d57664e9SAndroid Build Coastguard Worker<manifest xmlns:android="http://schemas.android.com/apk/res/android"
4*d57664e9SAndroid Build Coastguard Worker     package="com.google.android.example.locktasktests"
5*d57664e9SAndroid Build Coastguard Worker     android:versionCode="1"
6*d57664e9SAndroid Build Coastguard Worker     android:versionName="1.0">
7*d57664e9SAndroid Build Coastguard Worker
8*d57664e9SAndroid Build Coastguard Worker    <uses-sdk android:minSdkVersion="22"
9*d57664e9SAndroid Build Coastguard Worker         android:targetSdkVersion="22"/>
10*d57664e9SAndroid Build Coastguard Worker    <uses-permission android:name="android.permission.INTERNET"/>
11*d57664e9SAndroid Build Coastguard Worker
12*d57664e9SAndroid Build Coastguard Worker    <application android:icon="@drawable/ic_launcher"
13*d57664e9SAndroid Build Coastguard Worker         android:label="@string/app_name"
14*d57664e9SAndroid Build Coastguard Worker         android:theme="@style/AppTheme"
15*d57664e9SAndroid Build Coastguard Worker         android:allowBackup="true">
16*d57664e9SAndroid Build Coastguard Worker        <activity android:name="com.google.android.example.locktasktests.MainActivity"
17*d57664e9SAndroid Build Coastguard Worker             android:label="@string/app_name"
18*d57664e9SAndroid Build Coastguard Worker             android:screenOrientation="portrait"
19*d57664e9SAndroid Build Coastguard Worker             android:theme="@style/AppTheme"
20*d57664e9SAndroid Build Coastguard Worker             android:exported="true">
21*d57664e9SAndroid Build Coastguard Worker            <intent-filter>
22*d57664e9SAndroid Build Coastguard Worker                <action android:name="android.intent.action.MAIN"/>
23*d57664e9SAndroid Build Coastguard Worker                <category android:name="android.intent.category.LAUNCHER"/>
24*d57664e9SAndroid Build Coastguard Worker            </intent-filter>
25*d57664e9SAndroid Build Coastguard Worker        </activity>
26*d57664e9SAndroid Build Coastguard Worker        <activity android:name="com.google.android.example.locktasktests.LockDefaultActivity"
27*d57664e9SAndroid Build Coastguard Worker             android:label="@string/title_activity_default"
28*d57664e9SAndroid Build Coastguard Worker             android:taskAffinity=""
29*d57664e9SAndroid Build Coastguard Worker             android:documentLaunchMode="always"
30*d57664e9SAndroid Build Coastguard Worker             android:lockTaskMode="normal">
31*d57664e9SAndroid Build Coastguard Worker        </activity>
32*d57664e9SAndroid Build Coastguard Worker        <activity android:name="com.google.android.example.locktasktests.LockTaskNeverActivity"
33*d57664e9SAndroid Build Coastguard Worker             android:label="@string/title_activity_never"
34*d57664e9SAndroid Build Coastguard Worker             android:taskAffinity=""
35*d57664e9SAndroid Build Coastguard Worker             android:documentLaunchMode="always"
36*d57664e9SAndroid Build Coastguard Worker             android:lockTaskMode="never">
37*d57664e9SAndroid Build Coastguard Worker        </activity>
38*d57664e9SAndroid Build Coastguard Worker        <activity android:name="com.google.android.example.locktasktests.LockWhitelistedActivity"
39*d57664e9SAndroid Build Coastguard Worker             android:label="@string/title_activity_whitelist"
40*d57664e9SAndroid Build Coastguard Worker             android:taskAffinity=""
41*d57664e9SAndroid Build Coastguard Worker             android:documentLaunchMode="always"
42*d57664e9SAndroid Build Coastguard Worker             android:lockTaskMode="if_whitelisted">
43*d57664e9SAndroid Build Coastguard Worker        </activity>
44*d57664e9SAndroid Build Coastguard Worker        <activity android:name="com.google.android.example.locktasktests.LockAtLaunchActivity"
45*d57664e9SAndroid Build Coastguard Worker             android:label="@string/title_activity_always"
46*d57664e9SAndroid Build Coastguard Worker             android:taskAffinity=""
47*d57664e9SAndroid Build Coastguard Worker             android:documentLaunchMode="always"
48*d57664e9SAndroid Build Coastguard Worker             android:lockTaskMode="always">
49*d57664e9SAndroid Build Coastguard Worker        </activity>
50*d57664e9SAndroid Build Coastguard Worker    </application>
51*d57664e9SAndroid Build Coastguard Worker
52*d57664e9SAndroid Build Coastguard Worker</manifest>
53