1 /* 2 * Copyright (C) 2020 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 package com.android.wm.shell.flicker.testapp; 18 19 import android.content.ComponentName; 20 21 public class Components { 22 public static final String PACKAGE_NAME = "com.android.wm.shell.flicker.testapp"; 23 24 public static class SimpleActivity { 25 public static final String LABEL = "SimpleApp"; 26 public static final ComponentName COMPONENT = new ComponentName(PACKAGE_NAME, 27 PACKAGE_NAME + ".SimpleActivity"); 28 } 29 30 public static class FixedActivity { 31 public static final String EXTRA_FIXED_ORIENTATION = "fixed_orientation"; 32 public static final String LABEL = "FixedApp"; 33 public static final ComponentName COMPONENT = new ComponentName(PACKAGE_NAME, 34 PACKAGE_NAME + ".FixedActivity"); 35 } 36 37 public static class NonResizeableActivity { 38 public static final String LABEL = "NonResizeableApp"; 39 public static final ComponentName COMPONENT = new ComponentName(PACKAGE_NAME, 40 PACKAGE_NAME + ".NonResizeableActivity"); 41 } 42 43 public static class PipActivity { 44 // Test App > Pip Activity 45 public static final String LABEL = "PipApp"; 46 public static final String MENU_ACTION_NO_OP = "No-Op"; 47 public static final String MENU_ACTION_ON = "On"; 48 public static final String MENU_ACTION_OFF = "Off"; 49 public static final String MENU_ACTION_CLEAR = "Clear"; 50 51 // Intent action that this activity dynamically registers to enter picture-in-picture 52 public static final String ACTION_ENTER_PIP = PACKAGE_NAME + ".PipActivity.ENTER_PIP"; 53 // Intent action that this activity dynamically registers to set requested orientation. 54 // Will apply the oriention to the value set in the EXTRA_FIXED_ORIENTATION extra. 55 public static final String ACTION_SET_REQUESTED_ORIENTATION = 56 PACKAGE_NAME + ".PipActivity.SET_REQUESTED_ORIENTATION"; 57 58 // Calls enterPictureInPicture() on creation 59 public static final String EXTRA_ENTER_PIP = "enter_pip"; 60 // Sets the fixed orientation (can be one of {@link ActivityInfo.ScreenOrientation} 61 public static final String EXTRA_PIP_ORIENTATION = "fixed_orientation"; 62 // Adds a click listener to finish this activity when it is clicked 63 public static final String EXTRA_TAP_TO_FINISH = "tap_to_finish"; 64 65 public static final ComponentName COMPONENT = new ComponentName(PACKAGE_NAME, 66 PACKAGE_NAME + ".PipActivity"); 67 } 68 69 public static class ImeActivity { 70 public static final String LABEL = "ImeApp"; 71 public static final String ACTION_CLOSE_IME = 72 PACKAGE_NAME + ".action.CLOSE_IME"; 73 public static final String ACTION_OPEN_IME = 74 PACKAGE_NAME + ".action.OPEN_IME"; 75 public static final ComponentName COMPONENT = new ComponentName(PACKAGE_NAME, 76 PACKAGE_NAME + ".ImeActivity"); 77 } 78 79 public static class SplitScreenActivity { 80 public static final String LABEL = "SplitScreenPrimaryApp"; 81 public static final ComponentName COMPONENT = new ComponentName(PACKAGE_NAME, 82 PACKAGE_NAME + ".SplitScreenActivity"); 83 } 84 85 public static class SplitScreenSecondaryActivity { 86 public static final String LABEL = "SplitScreenSecondaryApp"; 87 public static final ComponentName COMPONENT = new ComponentName(PACKAGE_NAME, 88 PACKAGE_NAME + ".SplitScreenSecondaryActivity"); 89 } 90 91 public static class LaunchBubbleActivity { 92 public static final String LABEL = "LaunchBubbleApp"; 93 public static final ComponentName COMPONENT = new ComponentName(PACKAGE_NAME, 94 PACKAGE_NAME + ".LaunchBubbleActivity"); 95 } 96 97 public static class BubbleActivity { 98 public static final String LABEL = "BubbleApp"; 99 public static final ComponentName COMPONENT = new ComponentName(PACKAGE_NAME, 100 PACKAGE_NAME + ".BubbleActivity"); 101 } 102 } 103