These tests render an activity that has 2 autofillable views (username and password) and keep focusing between then, observing what happens in 4 scenarios: 1. No autofill service (baseline) 2. Autofill service returning no datasets. 3. Autofill service returning a dataset with username and password. 4. Autofill service returning a dataset with just username. Because this change introduced a helper class to run shell commands without needing the UiAutomator package, it also changed the MultiUserPerfTests to use such helper. Test: mmma -j ./frameworks/base/apct-tests/perftests/core/ && \ adb install -r $OUT/data/app/CorePerfTests/CorePerfTests.apk && \ adb shell am instrument -w -e class android.view.autofill.AutofillPerfTest \ com.android.perftests.core/android.support.test.runner.AndroidJUnitRunner Test: mmma -j ./frameworks/base/apct-tests/perftests/multiuser && \ adb install -r $OUT/data/app/MultiUserPerfTests/MultiUserPerfTests.apk && \ adb shell am instrument -w -e class android.multiuser.UserLifecycleTests \ com.android.perftests.multiuser/android.support.test.runner.AndroidJUnitRunner Bug: 38345816 Change-Id: Ie283dff8dd19c38ea829de9164b23aae2bfeb015
15 lines
384 B
Makefile
15 lines
384 B
Makefile
LOCAL_PATH := $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_STATIC_JAVA_LIBRARIES := \
|
|
android-support-test \
|
|
androidx.annotation_annotation
|
|
|
|
# Build all java files in the java subdirectory
|
|
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
|
|
# The name of the jar file to create
|
|
LOCAL_MODULE := apct-perftests-utils
|
|
|
|
# Build a static jar file.
|
|
include $(BUILD_STATIC_JAVA_LIBRARY) |