diff options
author | Tongfei Guo <tongfei@google.com> | 2020-01-24 19:11:13 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-01-24 19:11:13 +0000 |
commit | 87013f6360b029ede9e847ce0a12206105f970ea (patch) | |
tree | ea34984ad716f972351afd3066334163eb7d7191 | |
parent | d71a376b2e9271fd1ff3f73571e733cfca5ab2aa (diff) | |
parent | 88a5b80decfad26ae2dd152d08cbd35c527658a2 (diff) | |
download | platform_testing-87013f6360b029ede9e847ce0a12206105f970ea.tar.gz |
Merge "Expand generic app helper interface to allow launch action." into qt-dev
-rw-r--r-- | libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoGenericAppHelper.java | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoGenericAppHelper.java b/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoGenericAppHelper.java index 842c5db6b..060004ba5 100644 --- a/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoGenericAppHelper.java +++ b/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoGenericAppHelper.java @@ -16,18 +16,27 @@ package android.platform.helpers; +import java.util.Map; + +/** + * An interface to open any applications. One of the member methods must be invoked after creating + * an instance of this class. + */ public interface IAutoGenericAppHelper extends IAppHelper, Scrollable { /** * Set the package to open. The application will be opened using the info activity or launcher - * activity of the package that has been injected here. Either setPackage or setLaunchActivity - * needs to be invoked after creating an instance of this class. + * activity of the package that has been injected here. */ void setPackage(String pkg); /** * Set the launch activity. The application will be opened directly using the provided activity. - * Either setPackage or setLaunchActivity needs to be invoked after creating an instance of this - * class. */ void setLaunchActivity(String pkg); + + /** + * Set the launch action. The application will be opened using the provided launch action with + * given extra arguments. + */ + void setLaunchAction(String action, Map<String, String> extraArgs); } |