summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apct-tests/perftests/autofill/Android.mk34
-rw-r--r--apct-tests/perftests/autofill/AndroidManifest.xml40
-rw-r--r--apct-tests/perftests/autofill/AndroidTest.xml28
-rw-r--r--apct-tests/perftests/autofill/res/layout/autofill_dataset_picker_text_only.xml (renamed from apct-tests/perftests/core/res/layout/autofill_dataset_picker_text_only.xml)0
-rw-r--r--apct-tests/perftests/autofill/res/layout/test_autofill_login.xml (renamed from apct-tests/perftests/core/res/layout/test_autofill_login.xml)0
-rw-r--r--apct-tests/perftests/autofill/src/android/view/autofill/AbstractAutofillPerfTestCase.java (renamed from apct-tests/perftests/core/src/android/view/autofill/AbstractAutofillPerfTestCase.java)2
-rw-r--r--apct-tests/perftests/autofill/src/android/view/autofill/LoginTest.java (renamed from apct-tests/perftests/core/src/android/view/autofill/LoginTest.java)2
-rw-r--r--apct-tests/perftests/autofill/src/android/view/autofill/MyAutofillCallback.java (renamed from apct-tests/perftests/core/src/android/view/autofill/MyAutofillCallback.java)0
-rw-r--r--apct-tests/perftests/autofill/src/android/view/autofill/MyAutofillService.java (renamed from apct-tests/perftests/core/src/android/view/autofill/MyAutofillService.java)4
9 files changed, 106 insertions, 4 deletions
diff --git a/apct-tests/perftests/autofill/Android.mk b/apct-tests/perftests/autofill/Android.mk
new file mode 100644
index 000000000000..28555a0d5ca5
--- /dev/null
+++ b/apct-tests/perftests/autofill/Android.mk
@@ -0,0 +1,34 @@
+# Copyright (C) 2018 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_MODULE_TAGS := tests
+
+LOCAL_SRC_FILES := $(call all-java-files-under, src)
+
+LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
+
+LOCAL_STATIC_JAVA_LIBRARIES := \
+ android-support-test \
+ androidx.annotation_annotation \
+ apct-perftests-utils
+
+LOCAL_PACKAGE_NAME := AutofillPerfTests
+LOCAL_PRIVATE_PLATFORM_APIS := true
+
+LOCAL_COMPATIBILITY_SUITE += device-tests
+
+include $(BUILD_PACKAGE)
diff --git a/apct-tests/perftests/autofill/AndroidManifest.xml b/apct-tests/perftests/autofill/AndroidManifest.xml
new file mode 100644
index 000000000000..e706a32ad0c8
--- /dev/null
+++ b/apct-tests/perftests/autofill/AndroidManifest.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.android.perftests.autofill">
+
+ <application>
+ <uses-library android:name="android.test.runner" />
+ <activity android:name="android.perftests.utils.StubActivity">
+ <intent-filter>
+ <action android:name="com.android.perftests.core.PERFTEST" />
+ </intent-filter>
+ </activity>
+
+ <service
+ android:name="android.view.autofill.MyAutofillService"
+ android:label="PERF AutofillService"
+ android:permission="android.permission.BIND_AUTOFILL_SERVICE" >
+ <intent-filter>
+ <action android:name="android.service.autofill.AutofillService" />
+ </intent-filter>
+ </service>
+
+ </application>
+
+ <instrumentation android:name="android.support.test.runner.AndroidJUnitRunner"
+ android:targetPackage="com.android.perftests.autofill"/>
+</manifest>
diff --git a/apct-tests/perftests/autofill/AndroidTest.xml b/apct-tests/perftests/autofill/AndroidTest.xml
new file mode 100644
index 000000000000..29f9f94bcac7
--- /dev/null
+++ b/apct-tests/perftests/autofill/AndroidTest.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<configuration description="Runs AutofillPerfTests metric instrumentation.">
+ <option name="test-suite-tag" value="apct" />
+ <option name="test-suite-tag" value="apct-metric-instrumentation" />
+ <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
+ <option name="cleanup-apks" value="true" />
+ <option name="test-file-name" value="AutofillPerfTests.apk" />
+ </target_preparer>
+
+ <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
+ <option name="package" value="com.android.perftests.autofill" />
+ <option name="hidden-api-checks" value="false"/>
+ </test>
+</configuration>
diff --git a/apct-tests/perftests/core/res/layout/autofill_dataset_picker_text_only.xml b/apct-tests/perftests/autofill/res/layout/autofill_dataset_picker_text_only.xml
index 5e6b277a0a08..5e6b277a0a08 100644
--- a/apct-tests/perftests/core/res/layout/autofill_dataset_picker_text_only.xml
+++ b/apct-tests/perftests/autofill/res/layout/autofill_dataset_picker_text_only.xml
diff --git a/apct-tests/perftests/core/res/layout/test_autofill_login.xml b/apct-tests/perftests/autofill/res/layout/test_autofill_login.xml
index b35bdf1b757b..b35bdf1b757b 100644
--- a/apct-tests/perftests/core/res/layout/test_autofill_login.xml
+++ b/apct-tests/perftests/autofill/res/layout/test_autofill_login.xml
diff --git a/apct-tests/perftests/core/src/android/view/autofill/AbstractAutofillPerfTestCase.java b/apct-tests/perftests/autofill/src/android/view/autofill/AbstractAutofillPerfTestCase.java
index 706da620d631..86a5c109f95a 100644
--- a/apct-tests/perftests/core/src/android/view/autofill/AbstractAutofillPerfTestCase.java
+++ b/apct-tests/perftests/autofill/src/android/view/autofill/AbstractAutofillPerfTestCase.java
@@ -28,7 +28,7 @@ import android.support.test.filters.LargeTest;
import android.support.test.rule.ActivityTestRule;
import android.support.test.InstrumentationRegistry;
-import com.android.perftests.core.R;
+import com.android.perftests.autofill.R;
import java.util.Locale;
import java.util.Collection;
diff --git a/apct-tests/perftests/core/src/android/view/autofill/LoginTest.java b/apct-tests/perftests/autofill/src/android/view/autofill/LoginTest.java
index 07ab5e333950..a93fa3256802 100644
--- a/apct-tests/perftests/core/src/android/view/autofill/LoginTest.java
+++ b/apct-tests/perftests/autofill/src/android/view/autofill/LoginTest.java
@@ -28,7 +28,7 @@ import android.perftests.utils.StubActivity;
import android.provider.Settings;
import android.support.test.rule.ActivityTestRule;
import android.support.test.InstrumentationRegistry;
-import com.android.perftests.core.R;
+import com.android.perftests.autofill.R;
import java.util.Locale;
import java.util.Collection;
diff --git a/apct-tests/perftests/core/src/android/view/autofill/MyAutofillCallback.java b/apct-tests/perftests/autofill/src/android/view/autofill/MyAutofillCallback.java
index 208d632f4f69..208d632f4f69 100644
--- a/apct-tests/perftests/core/src/android/view/autofill/MyAutofillCallback.java
+++ b/apct-tests/perftests/autofill/src/android/view/autofill/MyAutofillCallback.java
diff --git a/apct-tests/perftests/core/src/android/view/autofill/MyAutofillService.java b/apct-tests/perftests/autofill/src/android/view/autofill/MyAutofillService.java
index 7428209bea82..7060233fc80f 100644
--- a/apct-tests/perftests/core/src/android/view/autofill/MyAutofillService.java
+++ b/apct-tests/perftests/autofill/src/android/view/autofill/MyAutofillService.java
@@ -30,7 +30,7 @@ import android.widget.RemoteViews;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
-import com.android.perftests.core.R;
+import com.android.perftests.autofill.R;
import java.util.ArrayList;
import java.util.List;
@@ -46,7 +46,7 @@ public class MyAutofillService extends AutofillService {
private static final String TAG = "MyAutofillService";
private static final int TIMEOUT_MS = 5000;
- private static final String PACKAGE_NAME = "com.android.perftests.core";
+ private static final String PACKAGE_NAME = "com.android.perftests.autofill";
static final String COMPONENT_NAME = PACKAGE_NAME + "/android.view.autofill.MyAutofillService";
private static final BlockingQueue<FillRequest> sFillRequests = new LinkedBlockingQueue<>();