diff options
author | Tongfei Guo <tongfei@google.com> | 2019-11-20 18:20:24 -0800 |
---|---|---|
committer | Tongfei Guo <tongfei@google.com> | 2020-01-22 02:00:30 +0000 |
commit | 88a5b80decfad26ae2dd152d08cbd35c527658a2 (patch) | |
tree | eed7ef3f9a44033c286f7d5fd640084a2437c6a9 | |
parent | 1f7bb32b173be0bde9b1036f82c336fdb582e151 (diff) | |
download | platform_testing-88a5b80decfad26ae2dd152d08cbd35c527658a2.tar.gz |
Expand generic app helper interface to allow launch action.
Bug: 144052618
Test: build and run test
Change-Id: Iabfd6e5497ac519db58279d695bee54c661483b9
(cherry picked from commit 0ab740b8d8b2b6b0c44173f65e692bda281f4fab)
-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); } |