summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTongfei Guo <tongfei@google.com>2020-01-17 22:55:23 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-01-17 22:55:23 +0000
commit4196ad466f3471802ce5c13f4a92747408533bb5 (patch)
tree0c9f5edb84003fe7818a59b42a2a6336fae0bacc
parenta29e1861a47382f324a133e07c3062f940e4810d (diff)
parent735c98a73711f1c7009dc947eb4688ec815f3e02 (diff)
downloadplatform_testing-4196ad466f3471802ce5c13f4a92747408533bb5.tar.gz
Merge "Add generic helper interface." into qt-dev
-rw-r--r--libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoGenericAppHelper.java33
1 files changed, 33 insertions, 0 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
new file mode 100644
index 000000000..872f4d6d1
--- /dev/null
+++ b/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoGenericAppHelper.java
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2019 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.
+ */
+
+package android.platform.helpers;
+
+public interface IAutoGenericAppHelper extends IAppHelper {
+ /**
+ * 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.
+ */
+ 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);
+}