diff options
author | vadimt <vadimt@google.com> | 2019-09-27 12:00:09 -0700 |
---|---|---|
committer | vadimt <vadimt@google.com> | 2019-09-27 12:00:09 -0700 |
commit | 2611d79f69a5d9250c90db0d57fea6fda84ab105 (patch) | |
tree | 28325be944ccf2e92a974832c8714455950d02a9 /tests/tapl/com | |
parent | 7028b10c547445f0ea05ce395edc54944e93a6a7 (diff) | |
download | android_packages_apps_Trebuchet-2611d79f69a5d9250c90db0d57fea6fda84ab105.tar.gz android_packages_apps_Trebuchet-2611d79f69a5d9250c90db0d57fea6fda84ab105.tar.bz2 android_packages_apps_Trebuchet-2611d79f69a5d9250c90db0d57fea6fda84ab105.zip |
Deprecating LauncherInstrumentation constructor with parameter
Change-Id: I779b4a8fde2db73cced8133f12d1356ad0b8729e
Diffstat (limited to 'tests/tapl/com')
-rw-r--r-- | tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index 1c8f92e91..49d7c7989 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java @@ -51,6 +51,7 @@ import android.view.accessibility.AccessibilityEvent; import androidx.annotation.NonNull; import androidx.annotation.Nullable; +import androidx.test.InstrumentationRegistry; import androidx.test.uiautomator.By; import androidx.test.uiautomator.BySelector; import androidx.test.uiautomator.Configurator; @@ -144,6 +145,15 @@ public final class LauncherInstrumentation { /** * Constructs the root of TAPL hierarchy. You get all other objects from it. */ + public LauncherInstrumentation() { + this(InstrumentationRegistry.getInstrumentation()); + } + + /** + * Constructs the root of TAPL hierarchy. You get all other objects from it. + * Deprecated: use the constructor without parameters instead. + */ + @Deprecated public LauncherInstrumentation(Instrumentation instrumentation) { mInstrumentation = instrumentation; mDevice = UiDevice.getInstance(instrumentation); |