From 735c98a73711f1c7009dc947eb4688ec815f3e02 Mon Sep 17 00:00:00 2001 From: Tongfei Guo Date: Tue, 8 Oct 2019 14:05:07 -0700 Subject: Add generic helper interface. Bug: 140880589 Test: build and run test Change-Id: Ie61bfe4df9f3049b168f5a370948d04c1fc91b93 (cherry picked from commit 6faf2a8c94fa904d5e4b29c46a149c5f0bf3519c) --- .../platform/helpers/IAutoGenericAppHelper.java | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 libraries/app-helpers/interfaces/auto/src/android/platform/helpers/IAutoGenericAppHelper.java 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); +} -- cgit v1.2.3