/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; 1479 countSpec(ActivityCallback.ON_CREATE, CountSpec.EQUALS, createCount), 1480 countSpec(ActivityCallback.ON_START, CountSpec.EQUALS, startCount), 1481 countSpec(ActivityCallback.ON_RESUME, CountSpec.EQUALS, resumeCount), 1482 countSpec(ActivityCallback.ON_PAUSE, CountSpec.EQUALS, pauseCount), 1483 countSpec(ActivityCallback.ON_STOP, CountSpec.EQUALS, stopCount), 1484 countSpec(ActivityCallback.ON_DESTROY, CountSpec.EQUALS, destroyCount), 1485 countSpec(ActivityCallback.ON_CONFIGURATION_CHANGED, CountSpec.EQUALS, 1548 static List<ActivityCallback> assertActivityLifecycle(ActivitySession activitySession, 1551 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<>(); 282 synchronized void addCallback(String owner, ActivityCallback callback) { in addCallback()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
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 | 87 import android.server.wm.CommandSession.ActivityCallback; 878 lifecycleCounts.getCount(ActivityCallback.ON_CONFIGURATION_CHANGED)); in testEnterPipInterruptedCallbacks() 880 lifecycleCounts.getCount(ActivityCallback.ON_PICTURE_IN_PICTURE_MODE_CHANGED)); in testEnterPipInterruptedCallbacks() 882 lifecycleCounts.getCount(ActivityCallback.ON_MULTI_WINDOW_MODE_CHANGED)); in testEnterPipInterruptedCallbacks() 903 assertEquals("onStop", 1, lifecycles.getCount(ActivityCallback.ON_STOP)); in testStopBeforeMultiWindowCallbacksOnDismiss() 905 lifecycles.getCount(ActivityCallback.ON_PICTURE_IN_PICTURE_MODE_CHANGED)); in testStopBeforeMultiWindowCallbacksOnDismiss() 907 lifecycles.getCount(ActivityCallback.ON_MULTI_WINDOW_MODE_CHANGED)); in testStopBeforeMultiWindowCallbacksOnDismiss() 908 final int lastStopIndex = lifecycles.getLastIndex(ActivityCallback.ON_STOP); in testStopBeforeMultiWindowCallbacksOnDismiss() 910 ActivityCallback.ON_PICTURE_IN_PICTURE_MODE_CHANGED); in testStopBeforeMultiWindowCallbacksOnDismiss() 912 ActivityCallback.ON_MULTI_WINDOW_MODE_CHANGED); in testStopBeforeMultiWindowCallbacksOnDismiss() [all …]
|
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 | 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 | ConfigChangeTests.java | 44 import android.server.wm.CommandSession.ActivityCallback; 203 int configChangeCount = counter.getCount(ActivityCallback.ON_CONFIGURATION_CHANGED); in getStateCountForRotation() 204 int relaunchCount = counter.getCount(ActivityCallback.ON_CREATE); in getStateCountForRotation()
|
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()
|