/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/ |
D | LifecycleVerifier.java | 20 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_CREATE; 21 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_DESTROY; 22 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_MULTI_WINDOW_MODE_CHANGE… 23 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE; 24 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_POST_CREATE; 25 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESTART; 26 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESUME; 27 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_START; 28 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_STOP; 29 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_TOP_POSITION_GAINED; [all …]
|
D | ActivityLifecycleClientTestBase.java | 21 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_ACTIVITY_RESULT; 22 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_CREATE; 23 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_DESTROY; 24 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_MULTI_WINDOW_MODE_CHANGE… 25 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_NEW_INTENT; 26 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE; 27 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_POST_CREATE; 28 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESTART; 29 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESUME; 30 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_START; [all …]
|
D | LifecycleTracker.java | 22 import android.server.wm.lifecycle.LifecycleLog.ActivityCallback; 43 Pair<Class<? extends Activity>, ActivityCallback>[] activityCallbacks) { in waitAndAssertActivityStates() 59 List<ActivityCallback> expectedTransitions) { in waitForActivityTransitions() 71 private List<Pair<Class<? extends Activity>, ActivityCallback>> pendingCallbacks( in pendingCallbacks() 72 Pair<Class<? extends Activity>, ActivityCallback>[] activityCallbacks) { in pendingCallbacks() 73 final List<Pair<Class<? extends Activity>, ActivityCallback>> notReachedActivityCallbacks = in pendingCallbacks() 76 for (Pair<Class<? extends Activity>, ActivityCallback> callbackPair : activityCallbacks) { in pendingCallbacks() 78 final List<ActivityCallback> transitionList = in pendingCallbacks()
|
D | LifecycleLog.java | 40 public enum ActivityCallback { enum in LifecycleLog 72 private final static List<Pair<String, ActivityCallback>> sLog = new ArrayList<>(); 92 ActivityCallback callback) { in onActivityCallback() 104 List<Pair<String, ActivityCallback>> getLog() { in getLog() 112 List<ActivityCallback> getActivityLog(Class<? extends Activity> activityClass) { in getActivityLog() 115 final List<ActivityCallback> activityLog = new ArrayList<>(); in getActivityLog() 117 for (Pair<String, ActivityCallback> transition : sLog) { in getActivityLog() 139 void onActivityCallback(ActivityCallback callback) { in onActivityCallback() 171 ActivityCallback.values()[extras.getInt(method)]); in call()
|
D | ActivityLifecycleSplitScreenTests.java | 23 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_ACTIVITY_RESULT; 24 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_CREATE; 25 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_DESTROY; 26 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_MULTI_WINDOW_MODE_CHANGE… 27 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE; 28 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_POST_CREATE; 29 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESTART; 30 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESUME; 31 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_START; 32 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_STOP; [all …]
|
D | ActivityLifecyclePipTests.java | 23 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_CREATE; 24 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_DESTROY; 25 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE; 26 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESTART; 27 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESUME; 28 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_START; 29 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_STOP; 30 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.PRE_ON_CREATE; 105 final List<LifecycleLog.ActivityCallback> expectedSequence = in testPipOnLaunch() 107 final List<LifecycleLog.ActivityCallback> extraCycleSequence = in testPipOnLaunch() [all …]
|
D | ActivityLifecycleTests.java | 24 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_ACTIVITY_RESULT; 25 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_CREATE; 26 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_DESTROY; 27 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_NEW_INTENT; 28 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE; 29 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_POST_CREATE; 30 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESTART; 31 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESUME; 32 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_START; 33 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_STOP; [all …]
|
D | ActivityLifecycleKeyguardTests.java | 22 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE; 23 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESTART; 24 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESUME; 25 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_START; 26 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_STOP;
|
D | ActivityLifecycleTopResumedStateTests.java | 24 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_ACTIVITY_RESULT; 25 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_CREATE; 26 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_DESTROY; 27 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_NEW_INTENT; 28 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE; 29 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_POST_CREATE; 30 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESTART; 31 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESUME; 32 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_START; 33 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_STOP; [all …]
|
D | ActivityLifecycleFreeformTests.java | 28 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESUME; 29 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_TOP_POSITION_LOST;
|
D | ActivityStarterTests.java | 30 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESUME;
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | CommandSession.java | 111 public static ArrayList<ActivityCallback> getCallbackHistory(Bundle data) { in getCallbackHistory() 212 public ArrayList<ActivityCallback> takeCallbackHistory() { 706 private static final StaticHostStorage<ActivityCallback> sCallbackStorage = 714 onCallback(ActivityCallback.ON_CREATE); 783 protected final ArrayList<ActivityCallback> getCallbackHistory() { 811 onCallback(ActivityCallback.ON_START); 817 onCallback(ActivityCallback.ON_RESTART); 823 onCallback(ActivityCallback.ON_RESUME); 830 onCallback(ActivityCallback.ON_PAUSE); 836 onCallback(ActivityCallback.ON_STOP); [all …]
|
D | ActivityManagerTestBase.java | 128 import android.server.wm.CommandSession.ActivityCallback; 1537 countSpec(ActivityCallback.ON_CREATE, CountSpec.EQUALS, createCount), 1538 countSpec(ActivityCallback.ON_START, CountSpec.EQUALS, startCount), 1539 countSpec(ActivityCallback.ON_RESUME, CountSpec.EQUALS, resumeCount), 1540 countSpec(ActivityCallback.ON_PAUSE, CountSpec.EQUALS, pauseCount), 1541 countSpec(ActivityCallback.ON_STOP, CountSpec.EQUALS, stopCount), 1542 countSpec(ActivityCallback.ON_DESTROY, CountSpec.EQUALS, destroyCount), 1543 countSpec(ActivityCallback.ON_CONFIGURATION_CHANGED, CountSpec.EQUALS, 1606 static List<ActivityCallback> assertActivityLifecycle(ActivitySession activitySession, 1609 final List<ActivityCallback> callbackHistory = activitySession.takeCallbackHistory(); [all …]
|
D | TestJournalProvider.java | 30 import android.server.wm.CommandSession.ActivityCallback; 125 public static void putActivityCallback(Activity activity, ActivityCallback callback) { in putActivityCallback() 205 public void addCallback(ActivityCallback callback) { in addCallback() 245 public final ArrayList<ActivityCallback> callbacks = new ArrayList<>(); 292 synchronized void addCallback(String owner, ActivityCallback callback) { in addCallback()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | ConfigChangeTests.java | 46 import android.server.wm.CommandSession.ActivityCallback; 132 .getCount(ActivityCallback.ON_CONFIGURATION_CHANGED); in testRotation180WithCutout() 133 final int relaunchCount1 = count1.getCount(ActivityCallback.ON_CREATE); in testRotation180WithCutout() 139 .getCount(ActivityCallback.ON_CONFIGURATION_CHANGED); in testRotation180WithCutout() 140 final int relaunchCount2 = count2.getCount(ActivityCallback.ON_CREATE); in testRotation180WithCutout() 181 final ActivityCallback expectedCallback = canHandleConfigChange in getLifecycleCountsForRotation() 182 ? ActivityCallback.ON_CONFIGURATION_CHANGED in getLifecycleCountsForRotation() 183 : ActivityCallback.ON_CREATE; in getLifecycleCountsForRotation()
|
D | OverrideConfigTests.java | 27 import android.server.wm.CommandSession.ActivityCallback; 50 countSpec(ActivityCallback.ON_CONFIGURATION_CHANGED, CountSpec.EQUALS, 1)); in testReceiveOverrideConfigFromRelayout() 56 countSpec(ActivityCallback.ON_CONFIGURATION_CHANGED, CountSpec.EQUALS, 0)); in testReceiveOverrideConfigFromRelayout()
|
D | PinnedStackTests.java | 91 import android.server.wm.CommandSession.ActivityCallback; 907 lifecycleCounts.getCount(ActivityCallback.ON_CONFIGURATION_CHANGED)); in testEnterPipInterruptedCallbacks() 909 lifecycleCounts.getCount(ActivityCallback.ON_PICTURE_IN_PICTURE_MODE_CHANGED)); in testEnterPipInterruptedCallbacks() 911 lifecycleCounts.getCount(ActivityCallback.ON_MULTI_WINDOW_MODE_CHANGED)); in testEnterPipInterruptedCallbacks() 932 assertEquals("onStop", 1, lifecycles.getCount(ActivityCallback.ON_STOP)); in testStopBeforeMultiWindowCallbacksOnDismiss() 934 lifecycles.getCount(ActivityCallback.ON_PICTURE_IN_PICTURE_MODE_CHANGED)); in testStopBeforeMultiWindowCallbacksOnDismiss() 936 lifecycles.getCount(ActivityCallback.ON_MULTI_WINDOW_MODE_CHANGED)); in testStopBeforeMultiWindowCallbacksOnDismiss() 937 final int lastStopIndex = lifecycles.getLastIndex(ActivityCallback.ON_STOP); in testStopBeforeMultiWindowCallbacksOnDismiss() 939 ActivityCallback.ON_PICTURE_IN_PICTURE_MODE_CHANGED); in testStopBeforeMultiWindowCallbacksOnDismiss() 941 ActivityCallback.ON_MULTI_WINDOW_MODE_CHANGED); in testStopBeforeMultiWindowCallbacksOnDismiss() [all …]
|
D | SplitScreenTests.java | 61 import android.server.wm.CommandSession.ActivityCallback; 160 assertEquals(1, lifecycleCounts.getCount(ActivityCallback.ON_MULTI_WINDOW_MODE_CHANGED)); in testLaunchToSideMultiWindowCallbacks() 173 1, lifecycleCounts.getCount(ActivityCallback.ON_MULTI_WINDOW_MODE_CHANGED)); in testNoUserLeaveHintOnMultiWindowModeChanged() 175 0, lifecycleCounts.getCount(ActivityCallback.ON_USER_LEAVE_HINT)); in testNoUserLeaveHintOnMultiWindowModeChanged() 186 1, lifecycleCounts.getCount(ActivityCallback.ON_MULTI_WINDOW_MODE_CHANGED)); in testNoUserLeaveHintOnMultiWindowModeChanged() 188 0, lifecycleCounts.getCount(ActivityCallback.ON_USER_LEAVE_HINT)); in testNoUserLeaveHintOnMultiWindowModeChanged()
|
D | MultiDisplayClientTests.java | 20 import static android.server.wm.CommandSession.ActivityCallback.ON_CONFIGURATION_CHANGED; 21 import static android.server.wm.CommandSession.ActivityCallback.ON_RESUME; 145 CommandSession.ActivityCallback callback) { in getCallbackCount()
|
D | MultiDisplayPolicyTests.java | 56 import android.server.wm.CommandSession.ActivityCallback; 201 .getCount(ActivityCallback.ON_CONFIGURATION_CHANGED); in readConfigChangeNumber() 289 .getCount(ActivityCallback.ON_STOP); in testExternalDisplayActivityTurnPrimaryOff()
|
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/ |
D | LogConfigurationActivity.java | 21 import android.server.wm.CommandSession.ActivityCallback; 38 TestJournalProvider.putActivityCallback(this, ActivityCallback.ON_CONFIGURATION_CHANGED); in onConfigurationChanged()
|