Home
last modified time | relevance | path

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

12

/cts/tests/framework/base/windowmanager/util/src/android/server/wm/activity/lifecycle/
DLifecycleTrackingActivity.java17 package android.server.wm.activity.lifecycle;
19 import static android.server.wm.activity.lifecycle.LifecycleConstants.EXTRA_ACTIVITY_ON_USER_LEAVE_…
20 import static android.server.wm.activity.lifecycle.LifecycleConstants.EXTRA_FINISH_IN_ON_CREATE;
21 import static android.server.wm.activity.lifecycle.LifecycleConstants.EXTRA_FINISH_IN_ON_PAUSE;
22 import static android.server.wm.activity.lifecycle.LifecycleConstants.EXTRA_FINISH_IN_ON_RESUME;
23 import static android.server.wm.activity.lifecycle.LifecycleConstants.EXTRA_FINISH_IN_ON_START;
24 import static android.server.wm.activity.lifecycle.LifecycleConstants.EXTRA_FINISH_IN_ON_STOP;
25 import static android.server.wm.activity.lifecycle.LifecycleConstants.EXTRA_START_ACTIVITY_IN_ON_CR…
26 import static android.server.wm.activity.lifecycle.LifecycleConstants.EXTRA_START_ACTIVITY_WHEN_IDL…
27 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_CREATE;
[all …]
DCallbackTrackingActivity.java17 package android.server.wm.activity.lifecycle;
19 import static android.server.wm.activity.lifecycle.LifecycleConstants.EXTRA_SKIP_TOP_RESUMED_STATE;
20 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_ACTIVITY_RESULT;
21 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_MULTI_WINDOW_MODE_CHANGED;
22 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_NEW_INTENT;
23 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_POST_CREATE;
24 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_TOP_POSITION_GAINED;
25 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_TOP_POSITION_LOST;
DLifecycleConfigChangeHandlingActivity.java17 package android.server.wm.activity.lifecycle;
DLifecycleConstants.java17 package android.server.wm.activity.lifecycle;
/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/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/
DActivityEmbeddingLifecycleTestBase.java19 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_CREATE;
20 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_DESTROY;
21 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_PAUSE;
22 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_RESUME;
23 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_START;
24 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_STOP;
25 import static android.server.wm.activity.lifecycle.TransitionVerifier.transition;
33 import android.server.wm.activity.lifecycle.EventLog;
34 import android.server.wm.activity.lifecycle.EventLog.EventLogClient;
35 import android.server.wm.activity.lifecycle.EventTracker;
DPinActivityStackTests.java19 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_CREATE;
20 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_PAUSE;
21 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_RESUME;
22 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_START;
23 import static android.server.wm.activity.lifecycle.TransitionVerifier.checkOrder;
24 import static android.server.wm.activity.lifecycle.TransitionVerifier.transition;
DActivityEmbeddingLifecycleTests.java19 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_CREATE;
20 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_PAUSE;
21 import static android.server.wm.activity.lifecycle.TransitionVerifier.checkOrder;
22 import static android.server.wm.activity.lifecycle.TransitionVerifier.transition;
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/lifecycle/
DActivityLifecycleLegacySplitScreenTests.java17 package android.server.wm.activity.lifecycle;
22 import static android.server.wm.activity.lifecycle.LifecycleConstants.EXTRA_ACTIVITY_ON_USER_LEAVE_…
23 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_ACTIVITY_RESULT;
24 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_CREATE;
25 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_DESTROY;
26 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_MULTI_WINDOW_MODE_CHANGED;
27 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_PAUSE;
28 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_POST_CREATE;
29 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_RESUME;
30 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_START;
[all …]
DActivityLifecycleKeyguardTests.java17 package android.server.wm.activity.lifecycle;
19 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_PAUSE;
20 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_RESTART;
21 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_RESUME;
22 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_START;
23 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_STOP;
24 import static android.server.wm.activity.lifecycle.TransitionVerifier.assertRestartAndResumeSequenc…
25 import static android.server.wm.activity.lifecycle.TransitionVerifier.assertRestartAndResumeSubSequ…
26 import static android.server.wm.activity.lifecycle.TransitionVerifier.assertResumeToStopSequence;
27 import static android.server.wm.activity.lifecycle.TransitionVerifier.assertSequence;
DActivityLifecyclePipTests.java17 package android.server.wm.activity.lifecycle;
21 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_CREATE;
22 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_DESTROY;
23 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_PAUSE;
24 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_RESTART;
25 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_RESUME;
26 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_START;
27 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_STOP;
28 import static android.server.wm.activity.lifecycle.TransitionVerifier.assertEmptySequence;
29 import static android.server.wm.activity.lifecycle.TransitionVerifier.assertRestartAndResumeSequenc…
[all …]
DActivityTests.java17 package android.server.wm.activity.lifecycle;
22 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_DESTROY;
23 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_PAUSE;
24 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_RESTART;
25 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_RESUME;
26 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_START;
27 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_STOP;
28 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_TOP_POSITION_GAINED;
29 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_TOP_POSITION_LOST;
30 import static android.server.wm.activity.lifecycle.TransitionVerifier.assertEmptySequence;
[all …]
DActivityLifecycleTests.java17 package android.server.wm.activity.lifecycle;
28 import static android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase.LaunchForResultA…
29 import static android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase.LaunchForResultA…
30 import static android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase.NoDisplayActivit…
31 import static android.server.wm.activity.lifecycle.ActivityLifecycleClientTestBase.NoDisplayActivit…
32 import static android.server.wm.activity.lifecycle.LifecycleConstants.EXTRA_ACTIVITY_ON_USER_LEAVE_…
33 import static android.server.wm.activity.lifecycle.LifecycleConstants.EXTRA_FINISH_IN_ON_CREATE;
34 import static android.server.wm.activity.lifecycle.LifecycleConstants.EXTRA_FINISH_IN_ON_PAUSE;
35 import static android.server.wm.activity.lifecycle.LifecycleConstants.EXTRA_FINISH_IN_ON_RESUME;
36 import static android.server.wm.activity.lifecycle.LifecycleConstants.EXTRA_FINISH_IN_ON_START;
[all …]
DActivityLifecycleFreeformTests.java17 package android.server.wm.activity.lifecycle;
27 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_RESUME;
28 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_TOP_POSITION_LOST;
29 import static android.server.wm.activity.lifecycle.LifecycleConstants.getComponentName;
30 import static android.server.wm.activity.lifecycle.TransitionVerifier.assertEmptySequence;
31 import static android.server.wm.activity.lifecycle.TransitionVerifier.assertLaunchAndPauseSequence;
32 import static android.server.wm.activity.lifecycle.TransitionVerifier.assertRestartAndResumeSequenc…
33 import static android.server.wm.activity.lifecycle.TransitionVerifier.assertResumeToDestroySequence;
34 import static android.server.wm.activity.lifecycle.TransitionVerifier.assertSequence;
DActivityLifecycleTopResumedStateTests.java17 package android.server.wm.activity.lifecycle;
26 import static android.server.wm.activity.lifecycle.LifecycleConstants.EXTRA_FINISH_IN_ON_RESUME;
27 import static android.server.wm.activity.lifecycle.LifecycleConstants.EXTRA_SKIP_TOP_RESUMED_STATE;
28 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_ACTIVITY_RESULT;
29 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_CREATE;
30 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_DESTROY;
31 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_NEW_INTENT;
32 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_PAUSE;
33 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_POST_CREATE;
34 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_RESTART;
[all …]
DActivityLifecycleClientTestBase.java17 package android.server.wm.activity.lifecycle;
24 import static android.server.wm.activity.lifecycle.LifecycleConstants.ACTIVITY_LAUNCH_TIMEOUT;
25 import static android.server.wm.activity.lifecycle.LifecycleConstants.EXTRA_RECREATE;
26 import static android.server.wm.activity.lifecycle.LifecycleConstants.EXTRA_SKIP_TOP_RESUMED_STATE;
27 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_MULTI_WINDOW_MODE_CHANGED;
28 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_PAUSE;
29 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_RESUME;
30 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_STOP;
31 import static android.server.wm.activity.lifecycle.LifecycleConstants.ON_TOP_POSITION_GAINED;
32 import static android.server.wm.activity.lifecycle.LifecycleConstants.getComponentName;
/cts/tests/tests/dreams/src/android/service/dreams/cts/
DControlledDreamSession.java85 public static String lifecycleToString(@Dreamlifecycle int lifecycle) { in lifecycleToString() argument
86 return switch (lifecycle) { in lifecycleToString()
183 private void pushLifecycle(@Dreamlifecycle int lifecycle) { in pushLifecycle() argument
184 mSeenLifecycles.add(lifecycle); in pushLifecycle()
188 consumers.forEach(consumer -> consumer.accept(lifecycle)); in pushLifecycle()
281 final Consumer<Integer> consumer = lifecycle -> { in awaitLifecycle()
282 if (lifecycle == targetLifecycle) { in awaitLifecycle()
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DOWNERS1 …id > Android OS & Apps > Framework (Java + Native) > Activity Manager > Task and Activity lifecycle
/cts/tests/app/src/android/app/cts/
DAppTaskTests.java45 import androidx.test.runner.lifecycle.ActivityLifecycleCallback;
46 import androidx.test.runner.lifecycle.ActivityLifecycleMonitor;
47 import androidx.test.runner.lifecycle.ActivityLifecycleMonitorRegistry;
48 import androidx.test.runner.lifecycle.Stage;
/cts/hostsidetests/securitybulletin/test-apps/TestLocationScanningServicesUsingSlices/src/android/security/cts/TestLocationScanningServicesUsingSlices/
DPocActivity.java23 import androidx.lifecycle.LiveData;
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DOWNERS1 …id > Android OS & Apps > Framework (Java + Native) > Activity Manager > Task and Activity lifecycle
/cts/tests/autofillservice/src/android/autofillservice/cts/dialog/
DDialogTest.java28 import androidx.lifecycle.Lifecycle;
/cts/tests/tests/virtualdevice/camera/
DAndroid.bp37 "androidx.camera_camera-lifecycle",
/cts/tests/app/app/src/android/app/stubs/
DLaunchpadActivity.java222 private void addPossibleLifecycle(String debugName, String[] lifecycle) { in addPossibleLifecycle() argument
223 mLifecycleNames.put(lifecycle, debugName); in addPossibleLifecycle()
225 mExpectedLifecycle = lifecycle; in addPossibleLifecycle()
227 mOtherPossibleLifecycles.add(lifecycle); in addPossibleLifecycle()
/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()

12