Home
last modified time | relevance | path

Searched refs:ActivityCallback (Results 1 – 23 of 23) sorted by relevance

/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/
DLifecycleVerifier.java20 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 …]
DLifecycleTracker.java22 import android.server.wm.lifecycle.LifecycleLog.ActivityCallback;
43 Pair<Class<? extends Activity>, ActivityCallback>[] activityCallbacks) { in waitAndAssertActivityStates()
53 ActivityCallback expectedState) { in waitAndAssertActivityCurrentState()
55 List<ActivityCallback> activityLog = mLifecycleLog.getActivityLog(activityClass); in waitAndAssertActivityCurrentState()
56 ActivityCallback currentState = activityLog.get(activityLog.size() - 1); in waitAndAssertActivityCurrentState()
73 List<ActivityCallback> expectedTransitions) { in waitForActivityTransitions()
85 private List<Pair<Class<? extends Activity>, ActivityCallback>> pendingCallbacks( in pendingCallbacks()
86 Pair<Class<? extends Activity>, ActivityCallback>[] activityCallbacks) { in pendingCallbacks()
87 final List<Pair<Class<? extends Activity>, ActivityCallback>> notReachedActivityCallbacks = in pendingCallbacks()
90 for (Pair<Class<? extends Activity>, ActivityCallback> callbackPair : activityCallbacks) { in pendingCallbacks()
[all …]
DActivityLifecycleClientTestBase.java25 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_ACTIVITY_RESULT;
26 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_CREATE;
27 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_DESTROY;
28 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_MULTI_WINDOW_MODE_CHANGE…
29 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_NEW_INTENT;
30 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE;
31 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_POST_CREATE;
32 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESTART;
33 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESUME;
34 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_START;
[all …]
DLifecycleLog.java40 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()
DActivityLifecycleLegacySplitScreenTests.java22 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_ACTIVITY_RESULT;
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_MULTI_WINDOW_MODE_CHANGE…
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_RESUME;
29 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_START;
30 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_STOP;
31 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_TOP_POSITION_GAINED;
[all …]
DActivityLifecyclePipTests.java22 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_PAUSE;
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;
96 final List<LifecycleLog.ActivityCallback> expectedSequence = in testPipOnLaunch()
98 final List<LifecycleLog.ActivityCallback> extraCycleSequence = in testPipOnLaunch()
280 final List<LifecycleLog.ActivityCallback> expectedSequence = in testPipAboveSplitScreen()
[all …]
DActivityLifecycleTests.java32 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_ACTIVITY_RESULT;
33 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_CREATE;
34 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_DESTROY;
35 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_NEW_INTENT;
36 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE;
37 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_POST_CREATE;
38 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESTART;
39 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESUME;
40 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_START;
41 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_STOP;
[all …]
DActivityTests.java22 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_DESTROY;
23 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE;
24 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESTART;
25 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESUME;
26 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_START;
27 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_STOP;
28 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_TOP_POSITION_GAINED;
29 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_TOP_POSITION_LOST;
DActivityLifecycleKeyguardTests.java22 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;
DActivityLifecycleTopResumedStateTests.java26 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_ACTIVITY_RESULT;
27 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_CREATE;
28 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_DESTROY;
29 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_NEW_INTENT;
30 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_PAUSE;
31 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_POST_CREATE;
32 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESTART;
33 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESUME;
34 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_START;
35 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_STOP;
[all …]
DActivityLifecycleFreeformTests.java29 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESUME;
30 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_TOP_POSITION_LOST;
DActivityStarterTests.java34 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_STOP;
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DOverrideConfigTests.java27 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()
DConfigChangeTests.java46 import android.server.wm.CommandSession.ActivityCallback;
130 final int configChangeCount1 = count1.getCount(ActivityCallback.ON_CONFIGURATION_CHANGED); in testRotation180WithCutout()
131 final int relaunchCount1 = count1.getCount(ActivityCallback.ON_CREATE); in testRotation180WithCutout()
136 final int configChangeCount2 = count2.getCount(ActivityCallback.ON_CONFIGURATION_CHANGED); in testRotation180WithCutout()
137 final int relaunchCount2 = count2.getCount(ActivityCallback.ON_CREATE); in testRotation180WithCutout()
172 final ActivityCallback expectedCallback = canHandleConfigChange in prepareRotation()
173 ? ActivityCallback.ON_CONFIGURATION_CHANGED in prepareRotation()
174 : ActivityCallback.ON_CREATE; in prepareRotation()
DPinnedStackTests.java111 import android.server.wm.CommandSession.ActivityCallback;
472 lifecycleCounts.getFirstIndex(ActivityCallback.ON_USER_LEAVE_HINT); in testAutoEnterPictureInPictureOnUserLeaveHintWhenPipRequestedNotOverridden()
474 lifecycleCounts.getFirstIndex(ActivityCallback.ON_PICTURE_IN_PICTURE_REQUESTED); in testAutoEnterPictureInPictureOnUserLeaveHintWhenPipRequestedNotOverridden()
476 lifecycleCounts.getFirstIndex(ActivityCallback.ON_PICTURE_IN_PICTURE_MODE_CHANGED); in testAutoEnterPictureInPictureOnUserLeaveHintWhenPipRequestedNotOverridden()
505 lifecycleCounts.getFirstIndex(ActivityCallback.ON_USER_LEAVE_HINT); in testAutoEnterPictureInPictureOnPictureInPictureRequested()
507 lifecycleCounts.getFirstIndex(ActivityCallback.ON_PICTURE_IN_PICTURE_REQUESTED); in testAutoEnterPictureInPictureOnPictureInPictureRequested()
509 lifecycleCounts.getFirstIndex(ActivityCallback.ON_PICTURE_IN_PICTURE_MODE_CHANGED); in testAutoEnterPictureInPictureOnPictureInPictureRequested()
1020 lifecycleCounts.getCount(ActivityCallback.ON_CONFIGURATION_CHANGED)); in testEnterPipInterruptedCallbacks()
1022 lifecycleCounts.getCount(ActivityCallback.ON_PICTURE_IN_PICTURE_MODE_CHANGED)); in testEnterPipInterruptedCallbacks()
1024 lifecycleCounts.getCount(ActivityCallback.ON_MULTI_WINDOW_MODE_CHANGED)); in testEnterPipInterruptedCallbacks()
[all …]
DMultiWindowTests.java47 import android.server.wm.CommandSession.ActivityCallback;
215 lifecycleCounts.getCount(ActivityCallback.ON_MULTI_WINDOW_MODE_CHANGED)); in testLaunchToSideMultiWindowCallbacks()
237 1, lifecycleCounts.getCount(ActivityCallback.ON_MULTI_WINDOW_MODE_CHANGED)); in testNoUserLeaveHintOnMultiWindowModeChanged()
239 0, lifecycleCounts.getCount(ActivityCallback.ON_USER_LEAVE_HINT)); in testNoUserLeaveHintOnMultiWindowModeChanged()
263 1, lifecycleCounts.getCount(ActivityCallback.ON_MULTI_WINDOW_MODE_CHANGED)); in testNoUserLeaveHintOnMultiWindowModeChanged()
265 0, lifecycleCounts.getCount(ActivityCallback.ON_USER_LEAVE_HINT)); in testNoUserLeaveHintOnMultiWindowModeChanged()
DMultiDisplayClientTests.java20 import static android.server.wm.CommandSession.ActivityCallback.ON_CONFIGURATION_CHANGED;
21 import static android.server.wm.CommandSession.ActivityCallback.ON_RESUME;
282 CommandSession.ActivityCallback callback) { in getCallbackCount()
DMultiDisplayPolicyTests.java52 import android.server.wm.CommandSession.ActivityCallback;
168 .getCount(ActivityCallback.ON_CONFIGURATION_CHANGED) == 1; in testDisplayResize()
269 countSpec(ActivityCallback.ON_STOP, CountSpec.EQUALS, 1)))) { in testExternalDisplayActivityTurnPrimaryOff()
271 + counts.getCount(ActivityCallback.ON_STOP) in testExternalDisplayActivityTurnPrimaryOff()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DCommandSession.java118 public static ArrayList<ActivityCallback> getCallbackHistory(Bundle data) { in getCallbackHistory()
224 public ArrayList<ActivityCallback> takeCallbackHistory() {
783 private static final StaticHostStorage<ActivityCallback> sCallbackStorage =
792 onCallback(ActivityCallback.ON_CREATE);
876 protected final ArrayList<ActivityCallback> getCallbackHistory() {
904 onCallback(ActivityCallback.ON_START);
910 onCallback(ActivityCallback.ON_RESTART);
916 onCallback(ActivityCallback.ON_RESUME);
923 onCallback(ActivityCallback.ON_PAUSE);
929 onCallback(ActivityCallback.ON_STOP);
[all …]
DActivityManagerTestBase.java142 import android.server.wm.CommandSession.ActivityCallback;
1938 countSpec(ActivityCallback.ON_CREATE, CountSpec.EQUALS, createCount),
1939 countSpec(ActivityCallback.ON_START, CountSpec.EQUALS, startCount),
1940 countSpec(ActivityCallback.ON_RESUME, CountSpec.EQUALS, resumeCount),
1941 countSpec(ActivityCallback.ON_PAUSE, CountSpec.EQUALS, pauseCount),
1942 countSpec(ActivityCallback.ON_STOP, CountSpec.EQUALS, stopCount),
1943 countSpec(ActivityCallback.ON_DESTROY, CountSpec.EQUALS, destroyCount),
1944 countSpec(ActivityCallback.ON_CONFIGURATION_CHANGED, CountSpec.EQUALS,
2001 static List<ActivityCallback> assertActivityLifecycle(ActivitySession activitySession,
2004 final List<ActivityCallback> callbackHistory = activitySession.takeCallbackHistory();
[all …]
DTestJournalProvider.java30 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/app/src/android/server/wm/app/
DLogConfigurationActivity.java21 import android.server.wm.CommandSession.ActivityCallback;
38 TestJournalProvider.putActivityCallback(this, ActivityCallback.ON_CONFIGURATION_CHANGED); in onConfigurationChanged()
DPipActivity.java307 onCallback(CommandSession.ActivityCallback.ON_PICTURE_IN_PICTURE_REQUESTED); in onPictureInPictureRequested()