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

Commit aff52842 authored by Kevin Neas's avatar Kevin Neas
Browse files

AppLaunch tests for Wear

Wear needs specific changes that the platform team is unable to support.
Most of this code is an exact copy of the AppLaunch file, with a specific
check to not kill the app is Wear Home.

Change-Id: I2332416d61676b52518d6988849271e0b0777009
parent 519802d7
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := tests

# Only compile source java files in this apk.
LOCAL_SRC_FILES := $(call all-java-files-under, src)

LOCAL_PACKAGE_NAME := AppLaunchWear

LOCAL_CERTIFICATE := platform
LOCAL_JAVA_LIBRARIES := android.test.base android.test.runner

LOCAL_STATIC_JAVA_LIBRARIES := android-support-test

LOCAL_COMPATIBILITY_SUITE := device-tests

include $(BUILD_PACKAGE)

# Use the following include to make our test apk.
include $(call all-makefiles-under,$(LOCAL_PATH))
+21 −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.android.tests.applaunch"
    android:sharedUserId="android.uid.system" >

   <uses-permission android:name="android.permission.REAL_GET_TASKS" />
   <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

   <uses-sdk
        android:minSdkVersion="22"
        android:targetSdkVersion="24" />

    <instrumentation android:label="Measure app start up time"
                     android:name="android.test.InstrumentationTestRunner"
                     android:targetPackage="com.android.tests.applaunch" />

    <application android:label="App Launch Test">
        <uses-library android:name="android.test.runner" />
    </application>
</manifest>
+821 −0

File added.

Preview size limit exceeded, changes collapsed.