Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a18d082 authored by Craig Mautner's avatar Craig Mautner Committed by Android (Google) Code Review
Browse files

Merge "Add tests for android:lockTaskMode."

parents 41014801 2ad0bb46
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_PATH := $(PRODUCT_OUT)/system/priv-app

LOCAL_PACKAGE_NAME := LockTaskTests
LOCAL_CERTIFICATE := platform

LOCAL_SRC_FILES := $(call all-Iaidl-files-under, src) $(call all-java-files-under, src)

include $(BUILD_PACKAGE)

# Use the following include to make our test apk.
include $(call all-makefiles-under,$(LOCAL_PATH))
+57 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.google.android.example.locktasktests"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="22"
        android:targetSdkVersion="22" />
    <uses-permission android:name="android.permission.INTERNET"/>

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme"
        android:allowBackup="true" >
        <activity
            android:name="com.google.android.example.locktasktests.MainActivity"
            android:label="@string/app_name"
            android:screenOrientation="portrait"
            android:theme="@style/AppTheme" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name="com.google.android.example.locktasktests.LockDefaultActivity"
            android:label="@string/title_activity_default"
            android:taskAffinity=""
            android:documentLaunchMode="always"
            android:lockTaskMode="lockTaskModeDefault" >
        </activity>
        <activity
            android:name="com.google.android.example.locktasktests.LockTaskNeverActivity"
            android:label="@string/title_activity_never"
            android:taskAffinity=""
            android:documentLaunchMode="always"
            android:lockTaskMode="lockTaskModeNever" >
        </activity>
        <activity
            android:name="com.google.android.example.locktasktests.LockWhitelistedActivity"
            android:label="@string/title_activity_whitelist"
            android:taskAffinity=""
            android:documentLaunchMode="always"
            android:lockTaskMode="lockTaskModeIfWhitelisted" >
        </activity>
        <activity
            android:name="com.google.android.example.locktasktests.LockAtLaunchActivity"
            android:label="@string/title_activity_always"
            android:taskAffinity=""
            android:documentLaunchMode="always"
            android:lockTaskMode="lockTaskModeAlways" >
        </activity>
    </application>

</manifest>
+7.48 KiB
Loading image diff...
+3.69 KiB
Loading image diff...
+12.2 KiB
Loading image diff...
Loading