Home
last modified time | relevance | path

Searched refs:lifecycle (Results 1 – 17 of 17) sorted by relevance

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DActivitiesWatcher.java124 private void notifyWatcher(@NonNull Activity activity, @NonNull ActivityLifecycle lifecycle) { in notifyWatcher() argument
128 Log.d(TAG, "notifying watcher of " + className + " of " + lifecycle); in notifyWatcher()
129 watcher.notify(lifecycle); in notifyWatcher()
131 Log.v(TAG, lifecycle + ": no watcher for " + className); in notifyWatcher()
160 public void waitFor(@NonNull ActivityLifecycle lifecycle) throws InterruptedException { in waitFor() argument
161 final CountDownLatch latch = getLatch(lifecycle); in waitFor()
164 throw new IllegalStateException(lifecycle + " not called in " + mTimeoutMs + " ms"); in waitFor()
168 private CountDownLatch getLatch(@NonNull ActivityLifecycle lifecycle) { in getLatch() argument
169 switch (lifecycle) { in getLatch()
185 throw new IllegalArgumentException("unsupported lifecycle: " + lifecycle); in getLatch()
[all …]
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DActivitiesWatcher.java124 private void notifyWatcher(@NonNull Activity activity, @NonNull ActivityLifecycle lifecycle) { in notifyWatcher() argument
128 Log.d(TAG, "notifying watcher of " + className + " of " + lifecycle); in notifyWatcher()
129 watcher.notify(lifecycle); in notifyWatcher()
131 Log.v(TAG, lifecycle + ": no watcher for " + className); in notifyWatcher()
160 public void waitFor(@NonNull ActivityLifecycle lifecycle) throws InterruptedException { in waitFor() argument
161 final CountDownLatch latch = getLatch(lifecycle); in waitFor()
164 throw new IllegalStateException(lifecycle + " not called in " + mTimeoutMs + " ms"); in waitFor()
168 private CountDownLatch getLatch(@NonNull ActivityLifecycle lifecycle) { in getLatch() argument
169 switch (lifecycle) { in getLatch()
185 throw new IllegalArgumentException("unsupported lifecycle: " + lifecycle); in getLatch()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/
DActivityLifecycleClientTestBase.java17 package android.server.wm.lifecycle;
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;
[all …]
DActivityLifecycleSplitScreenTests.java17 package android.server.wm.lifecycle;
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;
[all …]
DActivityLifecycleKeyguardTests.java17 package android.server.wm.lifecycle;
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;
DLifecycleVerifier.java17 package android.server.wm.lifecycle;
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;
[all …]
DActivityLifecyclePipTests.java17 package android.server.wm.lifecycle;
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;
DActivityLifecycleTests.java17 package android.server.wm.lifecycle;
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;
[all …]
DActivityLifecycleTopResumedStateTests.java17 package android.server.wm.lifecycle;
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;
[all …]
DLifecycleTracker.java17 package android.server.wm.lifecycle;
22 import android.server.wm.lifecycle.LifecycleLog.ActivityCallback;
DActivityLifecycleFreeformTests.java17 package android.server.wm.lifecycle;
28 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESUME;
29 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_TOP_POSITION_LOST;
DActivityStarterTests.java17 package android.server.wm.lifecycle;
30 import static android.server.wm.lifecycle.LifecycleLog.ActivityCallback.ON_RESUME;
DLifecycleLog.java17 package android.server.wm.lifecycle;
/cts/tests/app/src/android/app/cts/
DAppTaskTests.java43 import androidx.test.runner.lifecycle.ActivityLifecycleCallback;
44 import androidx.test.runner.lifecycle.ActivityLifecycleMonitor;
45 import androidx.test.runner.lifecycle.ActivityLifecycleMonitorRegistry;
46 import androidx.test.runner.lifecycle.Stage;
/cts/tests/tests/os/src/android/os/cts/
DLaunchpadActivity.java220 private void addPossibleLifecycle(String debugName, String[] lifecycle) { in addPossibleLifecycle() argument
221 mLifecycleNames.put(lifecycle, debugName); in addPossibleLifecycle()
223 mExpectedLifecycle = lifecycle; in addPossibleLifecycle()
225 mOtherPossibleLifecycles.add(lifecycle); in addPossibleLifecycle()
/cts/tests/app/app/src/android/app/stubs/
DLaunchpadActivity.java226 private void addPossibleLifecycle(String debugName, String[] lifecycle) { in addPossibleLifecycle() argument
227 mLifecycleNames.put(lifecycle, debugName); in addPossibleLifecycle()
229 mExpectedLifecycle = lifecycle; in addPossibleLifecycle()
231 mOtherPossibleLifecycles.add(lifecycle); in addPossibleLifecycle()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DMultiDisplayPolicyTests.java40 import static android.server.wm.lifecycle.ActivityStarterTests.StandardActivity;