diff options
author | Joanne Chung <joannechung@google.com> | 2020-07-29 00:49:26 +0800 |
---|---|---|
committer | Joanne Chung <joannechung@google.com> | 2020-07-29 00:49:26 +0800 |
commit | 52c3c4cd36d43eb8cd765241f075884abb2a0f65 (patch) | |
tree | 16422e8c0170407ed8036713a1c6a7348ba25acc | |
parent | 6f7648c945982a52dc4304e9ee50deb1bcefdeb1 (diff) |
Support crystalball perf tests.
1. Add collector library.
2. Enable needed permissions to write the trace file in the device.
Bug: 161918987
Test: atest AutofillPerfTests
Test: adb shell am instrument -w -e package android.view.autofill \
com.android.perftests.autofill/androidx.test.runner.AndroidJUnitRunner
Change-Id: I281a8e6b040d7f645e0b0cc72062f4580f8b5fde
-rw-r--r-- | apct-tests/perftests/autofill/Android.bp | 1 | ||||
-rw-r--r-- | apct-tests/perftests/autofill/AndroidManifest.xml | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/apct-tests/perftests/autofill/Android.bp b/apct-tests/perftests/autofill/Android.bp index 65c28fb4d0a7..9ac8c87d3de0 100644 --- a/apct-tests/perftests/autofill/Android.bp +++ b/apct-tests/perftests/autofill/Android.bp @@ -20,6 +20,7 @@ android_test { "androidx.test.rules", "androidx.annotation_annotation", "apct-perftests-utils", + "collector-device-lib-platform", ], platform_apis: true, test_suites: ["device-tests"], diff --git a/apct-tests/perftests/autofill/AndroidManifest.xml b/apct-tests/perftests/autofill/AndroidManifest.xml index 57595a213d20..51f6a76b2782 100644 --- a/apct-tests/perftests/autofill/AndroidManifest.xml +++ b/apct-tests/perftests/autofill/AndroidManifest.xml @@ -16,6 +16,11 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.perftests.autofill"> + <uses-sdk android:targetSdkVersion="28" /> + + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> + <uses-permission android:name="android.permission.REAL_GET_TASKS" /> + <application> <uses-library android:name="android.test.runner" /> <activity android:name="android.perftests.utils.PerfTestActivity" |