blob: 79a0220e0e87e99fc3af0a5262eb715a71ef85b0 [file] [log] [blame]
Vishnu Nair8248b7c2018-08-01 10:13:36 -07001/*
2 * Copyright (C) 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.server.wm.flicker;
18
19import android.app.Instrumentation;
20import android.platform.helpers.AbstractStandardAppHelper;
21
22/**
23 * Class to take advantage of {@code IAppHelper} interface so the same test can be run against
24 * first party and third party apps.
25 */
26public class StandardAppHelper extends AbstractStandardAppHelper {
27 private final String mPackageName;
28 private final String mLauncherName;
29
30 public StandardAppHelper(Instrumentation instr, String packageName, String launcherName) {
31 super(instr);
32 mPackageName = packageName;
33 mLauncherName = launcherName;
34 }
35
36 /**
37 * {@inheritDoc}
38 */
39 @Override
40 public String getPackage() {
41 return mPackageName;
42 }
43
44 /**
45 * {@inheritDoc}
46 */
47 @Override
48 public String getLauncherName() {
49 return mLauncherName;
50 }
51
52 /**
53 * {@inheritDoc}
54 */
55 @Override
56 public void dismissInitialDialogs() {
57
58 }
59}