1 /* 2 * Copyright (C) 2023 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 17 @file:JvmName("CommonConstants") 18 19 package android.tools.utils 20 21 import android.tools.traces.component.ComponentNameMatcher 22 23 object TestComponents { 24 @JvmStatic 25 val CHROME = ComponentNameMatcher("com.android.chrome", "com.google.android.apps.chrome.Main") 26 27 @JvmStatic 28 val CHROME_FIRST_RUN = 29 ComponentNameMatcher( 30 "com.android.chrome", 31 "org.chromium.chrome.browser.firstrun.FirstRunActivity" 32 ) 33 34 @JvmStatic 35 val CHROME_SPLASH_SCREEN = ComponentNameMatcher("", "Splash Screen com.android.chrome") 36 37 @JvmStatic val DOCKER_STACK_DIVIDER = ComponentNameMatcher("", "DockedStackDivider") 38 39 @JvmStatic val IMAGINARY = ComponentNameMatcher("", "ImaginaryWindow") 40 41 @JvmStatic 42 val IME_ACTIVITY = 43 ComponentNameMatcher( 44 "com.android.server.wm.flicker.testapp", 45 "com.android.server.wm.flicker.testapp.ImeActivity" 46 ) 47 48 @JvmStatic 49 val LAUNCHER = 50 ComponentNameMatcher( 51 "com.google.android.apps.nexuslauncher", 52 "com.google.android.apps.nexuslauncher.NexusLauncherActivity" 53 ) 54 55 @JvmStatic val PIP_OVERLAY = ComponentNameMatcher("", "pip-dismiss-overlay") 56 57 @JvmStatic 58 val SIMPLE_APP = 59 ComponentNameMatcher( 60 "com.android.server.wm.flicker.testapp", 61 "com.android.server.wm.flicker.testapp.SimpleActivity" 62 ) 63 64 @JvmStatic 65 val NON_RESIZEABLE_APP = 66 ComponentNameMatcher( 67 "com.android.server.wm.flicker.testapp", 68 "com.android.server.wm.flicker.testapp.NonResizeableActivity" 69 ) 70 71 private const val SHELL_PKG_NAME = "com.android.wm.shell.flicker.testapp" 72 73 @JvmStatic 74 val SHELL_SPLIT_SCREEN_PRIMARY = 75 ComponentNameMatcher(SHELL_PKG_NAME, "$SHELL_PKG_NAME.SplitScreenActivity") 76 77 @JvmStatic 78 val SHELL_SPLIT_SCREEN_SECONDARY = 79 ComponentNameMatcher(SHELL_PKG_NAME, "$SHELL_PKG_NAME.SplitScreenSecondaryActivity") 80 81 @JvmStatic val FIXED_APP = ComponentNameMatcher(SHELL_PKG_NAME, "$SHELL_PKG_NAME.FixedActivity") 82 83 @JvmStatic val PIP_APP = ComponentNameMatcher(SHELL_PKG_NAME, "$SHELL_PKG_NAME.PipActivity") 84 85 @JvmStatic val SCREEN_DECOR_OVERLAY = ComponentNameMatcher("", "ScreenDecorOverlay") 86 87 @JvmStatic 88 val WALLPAPER = 89 ComponentNameMatcher( 90 "", 91 "com.breel.wallpapers18.soundviz.wallpaper.variations.SoundVizWallpaperV2" 92 ) 93 } 94