Home
last modified time | relevance | path

Searched refs:Activity (Results 1 – 25 of 1318) sorted by relevance

12345678910>>...53

/cts/tests/app/app/src/android/app/stubs/
DActivityCallbacksTestActivity.java20 import android.app.Activity;
27 public class ActivityCallbacksTestActivity extends Activity {
71 public void onActivityPreCreated(Activity activity, Bundle savedInstanceState) { in ActivityCallbacksTestActivity()
76 public void onActivityCreated(Activity activity, Bundle savedInstanceState) { in ActivityCallbacksTestActivity()
81 public void onActivityPostCreated(Activity activity, Bundle savedInstanceState) { in ActivityCallbacksTestActivity()
86 public void onActivityPreStarted(Activity activity) { in ActivityCallbacksTestActivity()
91 public void onActivityStarted(Activity activity) { in ActivityCallbacksTestActivity()
96 public void onActivityPostStarted(Activity activity) { in ActivityCallbacksTestActivity()
101 public void onActivityPreResumed(Activity activity) { in ActivityCallbacksTestActivity()
106 public void onActivityResumed(Activity activity) { in ActivityCallbacksTestActivity()
[all …]
DActivityTestsBase.java19 import android.app.Activity;
41 private Activity mActivity;
88 public void activityRunning(Activity activity) { in activityRunning()
111 finishWithResult(Activity.RESULT_OK, null); in finishGood()
115 finishWithResult(Activity.RESULT_CANCELED, new Intent().setAction(error)); in finishBad()
118 public void finishWithActivity(Activity activity) { in finishWithActivity()
121 finishWithResult(Activity.RESULT_OK, null, activity, where); in finishWithActivity()
131 public void finishWithResult(int resultCode, Intent data, Activity activity, in finishWithResult()
166 if (res == Activity.RESULT_CANCELED) { in waitForResultOrThrow()
202 mResultCode = Activity.RESULT_CANCELED; in waitForResult()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/
DActivityTests.java35 import android.app.Activity;
56 final Activity activity = launchActivityAndWait(FirstActivity.class); in testReleaseActivityInstance_visible()
68 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testReleaseActivityInstance_invisible()
69 final Activity secondActivity = launchActivityAndWait(SecondActivity.class); in testReleaseActivityInstance_invisible()
94 final Class<? extends Activity> rootActivityClass = CallbackTrackingActivity.class; in testFinishTask_FromRoot()
95 final Activity rootActivity = launchActivityAndWait(rootActivityClass); in testFinishTask_FromRoot()
96 final Class<? extends Activity> topActivityClass = SecondCallbackTrackingActivity.class; in testFinishTask_FromRoot()
97 final Activity topActivity = launchActivityAndWait(topActivityClass); in testFinishTask_FromRoot()
121 final Class<? extends Activity> rootActivityClass = CallbackTrackingActivity.class; in testFinishTask_FromRoot_TranslucentOnTop()
122 final Activity rootActivity = launchActivityAndWait(rootActivityClass); in testFinishTask_FromRoot_TranslucentOnTop()
[all …]
DLifecycleTracker.java21 import android.app.Activity;
43 Pair<Class<? extends Activity>, ActivityCallback>[] activityCallbacks) { in waitAndAssertActivityStates() argument
52 void waitAndAssertActivityCurrentState(Class<? extends Activity> activityClass, in waitAndAssertActivityCurrentState()
72 void waitForActivityTransitions(Class<? extends Activity> activityClass, in waitForActivityTransitions()
85 private List<Pair<Class<? extends Activity>, ActivityCallback>> pendingCallbacks( in pendingCallbacks() argument
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()
91 final Class<? extends Activity> activityClass = callbackPair.first; in pendingCallbacks()
DActivityLifecycleLegacySplitScreenTests.java41 import android.app.Activity;
73 final Activity sideActivity = launchActivityAndWait(SideActivity.class); in testResumedWhenRecreatedFromInNonFocusedTask()
76 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testResumedWhenRecreatedFromInNonFocusedTask()
79 final Activity secondActivity = launchActivityAndWait(SecondActivity.class); in testResumedWhenRecreatedFromInNonFocusedTask()
113 final Activity sideActivity = launchActivityAndWait(SideActivity.class); in testOccludingOnSplitSecondaryTask()
116 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testOccludingOnSplitSecondaryTask()
133 final Activity sideActivity = launchActivityAndWait(ThirdActivity.class); in testTranslucentOnSplitSecondaryTask()
136 final Activity firstActivity = new Launcher(FirstActivity.class) in testTranslucentOnSplitSecondaryTask()
156 final Activity sideActivity = launchActivityAndWait(SideActivity.class); in testResultInNonFocusedTask()
159 final Activity callbackTrackingActivity = launchActivityAndWait( in testResultInNonFocusedTask()
[all …]
DActivityLifecycleTests.java55 import android.app.Activity;
89 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testLaunchOnTop()
102 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testLaunchTranslucentOnTop()
106 final Activity translucentActivity = launchActivityAndWait(TranslucentActivity.class); in testLaunchTranslucentOnTop()
115 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testLaunchDoubleTranslucentOnTop()
119 final Activity translucentActivity = launchActivityAndWait(TranslucentActivity.class); in testLaunchDoubleTranslucentOnTop()
127 final Activity secondTranslucentActivity = in testLaunchDoubleTranslucentOnTop()
151 final Activity translucentActivity = new Launcher(TranslucentActivity.class) in testTranslucentMovedIntoStack()
154 final Activity firstActivity = new Launcher(FirstActivity.class) in testTranslucentMovedIntoStack()
180 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testDestroyTopTranslucent()
[all …]
DActivityLifecycleTopResumedStateTests.java47 import android.app.Activity;
91 final Activity activity = launchActivityAndWait(CallbackTrackingActivity.class); in testTopPositionLostOnFinish()
103 final Activity activity = launchActivityAndWait(CallbackTrackingActivity.class); in testTopPositionSwitchToActivityOnTop()
106 final Activity topActivity = launchActivityAndWait(SingleTopActivity.class); in testTopPositionSwitchToActivityOnTop()
121 final Activity firstActivity = in testTopPositionSwitchToActivityOnTopSlowDifferentProcess()
127 final Class<? extends Activity> secondActivityClass = in testTopPositionSwitchToActivityOnTopSlowDifferentProcess()
147 final Activity firstActivity = in testTopPositionSwitchToActivityOnTopTimeoutDifferentProcess()
150 final Class<? extends Activity> firstActivityClass = firstActivity.getClass(); in testTopPositionSwitchToActivityOnTopTimeoutDifferentProcess()
154 final Class<? extends Activity> secondActivityClass = in testTopPositionSwitchToActivityOnTopTimeoutDifferentProcess()
178 final Activity activity = launchActivityAndWait(CallbackTrackingActivity.class); in testTopPositionSwitchToTranslucentActivityOnTop()
[all …]
DLifecycleVerifier.java37 import android.app.Activity;
55 static void assertLaunchSequence(Class<? extends Activity> activityClass, in assertLaunchSequence()
72 Class<? extends Activity> activityClass) { in getLaunchSequence()
80 Class<? extends Activity> activityClass) { in getLaunchAndDestroySequence()
87 static void assertLaunchSequence(Class<? extends Activity> launchingActivity, in assertLaunchSequence()
88 Class<? extends Activity> existingActivity, LifecycleLog lifecycleLog, in assertLaunchSequence()
131 static void assertLaunchAndStopSequence(Class<? extends Activity> activityClass, in assertLaunchAndStopSequence()
137 static void assertLaunchAndStopSequence(Class<? extends Activity> activityClass, in assertLaunchAndStopSequence()
159 static void assertLaunchAndPauseSequence(Class<? extends Activity> activityClass, in assertLaunchAndPauseSequence()
171 static void assertRestartSequence(Class<? extends Activity> activityClass, in assertRestartSequence()
[all …]
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/
DActivityEmbeddingUtil.java33 import android.app.Activity;
76 final Predicate<Pair<Activity, Activity>> activityPairPredicate = in createWildcardSplitPairRule()
79 final Predicate<Pair<Activity, Intent>> activityIntentPredicate = in createWildcardSplitPairRule()
94 public static Activity startActivityAndVerifySplit(@NonNull Activity activityLaunchingFrom, in startActivityAndVerifySplit()
95 @NonNull Activity expectedPrimaryActivity, @NonNull Class secondActivityClass, in startActivityAndVerifySplit()
114 Activity secondActivity = getSecondActivity(activeSplitStates, expectedPrimaryActivity, in startActivityAndVerifySplit()
124 public static Activity startActivityAndVerifySplit(@NonNull Activity primaryActivity, in startActivityAndVerifySplit()
133 public static Activity startActivityAndVerifySplit(@NonNull Activity primaryActivity, in startActivityAndVerifySplit()
142 public static Activity getSecondActivity(@Nullable List<SplitInfo> activeSplitStates, in getSecondActivity()
143 @NonNull Activity primaryActivity, @NonNull String secondaryClassId) { in getSecondActivity()
[all …]
DWindowManagerJetpackTestBase.java36 import android.app.Activity;
68 private final static Set<Activity> sResumedActivities = new HashSet<>();
82 public Activity startActivityNewTask(Class activityClass) { in startActivityNewTask()
85 final Activity activity = mInstrumentation.startActivitySync(intent); in startActivityNewTask()
93 public static <T extends Activity> void startActivityFromActivity(Activity activityToLaunchFrom, in startActivityFromActivity()
100 public static IBinder getActivityWindowToken(Activity activity) { in getActivityWindowToken()
112 public static Rect getActivityBounds(Activity activity) {
116 public static Rect getMaximumActivityBounds(Activity activity) {
180 public void onActivityCreated(@NonNull Activity activity,
185 public void onActivityStarted(@NonNull Activity activity) {
[all …]
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/
DActivityEmbeddingLaunchTests.java30 import android.app.Activity;
71 Activity primaryActivity = startActivityNewTask(TestConfigChangeHandlingActivity.class); in testSplitWithPrimaryActivity()
74 final Predicate<Pair<Activity, Activity>> activityActivityPredicate = in testSplitWithPrimaryActivity()
85 List<Activity> secondaryActivities = new ArrayList<>(); in testSplitWithPrimaryActivity()
90 Activity secondaryActivity = startActivityAndVerifySplit(primaryActivity, in testSplitWithPrimaryActivity()
113 final Activity currentSecondaryActivity = secondaryActivities.get(i); in testSplitWithPrimaryActivity()
118 final Activity newSecondaryActivity = secondaryActivities.get(i - 1); in testSplitWithPrimaryActivity()
130 Activity primaryActivity = startActivityNewTask(TestConfigChangeHandlingActivity.class); in testPrimaryActivityLaunchToSideClearTop()
135 Activity secondaryActivity = startActivityAndVerifySplit(primaryActivity, in testPrimaryActivityLaunchToSideClearTop()
143 Activity prevSecondaryActivity; in testPrimaryActivityLaunchToSideClearTop()
[all …]
/cts/tests/app/src/android/app/cts/
DInstrumentation_ActivityResultTest.java19 import android.app.Activity;
29 ActivityResult result = new ActivityResult(Activity.RESULT_OK, intent); in testActivityResultOp()
30 assertEquals(Activity.RESULT_OK, result.getResultCode()); in testActivityResultOp()
33 result = new ActivityResult(Activity.RESULT_CANCELED, intent); in testActivityResultOp()
34 assertEquals(Activity.RESULT_CANCELED, result.getResultCode()); in testActivityResultOp()
DActivityCallbacksTest.java41 import android.app.Activity;
94 public void onActivityPreCreated(Activity activity, Bundle savedInstanceState) { in testActivityCallbackOrder()
101 public void onActivityCreated(Activity activity, Bundle savedInstanceState) { in testActivityCallbackOrder()
108 public void onActivityPostCreated(Activity activity, Bundle savedInstanceState) { in testActivityCallbackOrder()
115 public void onActivityPreStarted(Activity activity) { in testActivityCallbackOrder()
122 public void onActivityStarted(Activity activity) { in testActivityCallbackOrder()
129 public void onActivityPostStarted(Activity activity) { in testActivityCallbackOrder()
136 public void onActivityPreResumed(Activity activity) { in testActivityCallbackOrder()
143 public void onActivityResumed(Activity activity) { in testActivityCallbackOrder()
150 public void onActivityPostResumed(Activity activity) { in testActivityCallbackOrder()
[all …]
DFragmentReceiveResultTest.java20 import android.app.Activity;
57 startActivityForResult(10, Activity.RESULT_OK, "content 10"); in testStartActivityForResultOk()
61 .onActivityResult(eq(10), eq(Activity.RESULT_OK), captor.capture()); in testStartActivityForResultOk()
69 startActivityForResult(20, Activity.RESULT_CANCELED, "content 20"); in testStartActivityForResultCanceled()
73 .onActivityResult(eq(20), eq(Activity.RESULT_CANCELED), captor.capture()); in testStartActivityForResultCanceled()
81 startIntentSenderForResult(30, Activity.RESULT_OK, "content 30"); in testStartIntentSenderForResultOk()
85 .onActivityResult(eq(30), eq(Activity.RESULT_OK), captor.capture()); in testStartIntentSenderForResultOk()
93 startIntentSenderForResult(40, Activity.RESULT_CANCELED, "content 40"); in testStartIntentSenderForResultCanceled()
97 .onActivityResult(eq(40), eq(Activity.RESULT_CANCELED), captor.capture()); in testStartIntentSenderForResultCanceled()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResult.java22 import android.app.Activity;
57 public static void setPassedResult(Activity activity, String testId, String testDetails) { in setPassedResult()
62 public static void setPassedResult(Activity activity, String testId, String testDetails, in setPassedResult()
66 activity.setResult(Activity.RESULT_OK, createResult(activity, TEST_RESULT_PASSED, testId, in setPassedResult()
71 public static void setPassedResult(Activity activity, String testId, String testDetails, in setPassedResult()
75 activity.setResult(Activity.RESULT_OK, createResult(activity, TEST_RESULT_PASSED, testId, in setPassedResult()
80 public static void setFailedResult(Activity activity, String testId, String testDetails) { in setFailedResult()
85 public static void setFailedResult(Activity activity, String testId, String testDetails, in setFailedResult()
89 activity.setResult(Activity.RESULT_OK, createResult(activity, TEST_RESULT_FAILED, testId, in setFailedResult()
94 public static void setFailedResult(Activity activity, String testId, String testDetails, in setFailedResult()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/
DLaunchRunner.java29 import android.app.Activity;
96 List<Activity> activityLog = Lists.newArrayList(); in verify()
105 Activity activityToLaunchFrom = activityLog.get(generationIntent.getLaunchFromIndex(i)); in verify()
106 Activity result = launch(activityToLaunchFrom, generationIntent.getActualIntent(), in verify()
119 Activity activityToLaunchFrom = activityLog.get( in verify()
121 Activity result = launch(activityToLaunchFrom, generationIntent.getActualIntent(), in verify()
177 List<Activity> activityLog = Lists.newArrayList(); in run()
185 Activity firstActivity = this.launchFromContext(startContext, in run()
194 Activity activity = launch(activityLog.get(launchFromIntent.getLaunchFrom()), in run()
205 Activity activity = launch(activityLog.get(launchFromIntent.getLaunchFrom()), in run()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DActivitiesWatcher.java18 import android.app.Activity;
54 public void onActivityCreated(Activity activity, Bundle savedInstanceState) { in onActivityCreated()
60 public void onActivityStarted(Activity activity) { in onActivityStarted()
66 public void onActivityResumed(Activity activity) { in onActivityResumed()
72 public void onActivityPaused(Activity activity) { in onActivityPaused()
78 public void onActivityStopped(Activity activity) { in onActivityStopped()
84 public void onActivitySaveInstanceState(Activity activity, Bundle outState) { in onActivitySaveInstanceState()
90 public void onActivityDestroyed(Activity activity) { in onActivityDestroyed()
100 public ActivityWatcher watch(@NonNull Class<? extends Activity> clazz) { in watch()
124 private void notifyWatcher(@NonNull Activity activity, @NonNull ActivityLifecycle lifecycle) { in notifyWatcher()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/activities/
DLocalActivity.java19 public class LocalActivity extends Activity<android.app.Activity> {
21 LocalActivity(android.app.Activity activity) { in LocalActivity()
/cts/common/device-side/bedstead/activitycontext/src/main/java/com/android/activitycontext/
DActivityContext.java22 import android.app.Activity;
48 public class ActivityContext extends Activity {
54 private static Function<Activity, ?> sRunnable;
71 public static <E> E getWithContext(Function<Activity, E> runnable) throws InterruptedException { in getWithContext() argument
131 public static void runWithContext(Consumer<Activity> runnable) throws InterruptedException { in runWithContext()
137 BiFunction<Activity, E, F> runnable) throws InterruptedException { in getWithContext() argument
145 public static <E> void runWithContext(E arg1, BiConsumer<Activity, E> runnable) in runWithContext() argument
152 TriFunction<Activity, E, F, G> runnable) throws InterruptedException { in getWithContext() argument
158 QuadFunction<Activity, E, F, G, H> runnable) throws InterruptedException { in getWithContext() argument
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAspectRatioTestsBase.java24 import android.app.Activity;
53 final WindowManagerState.Activity activity = mWmState.getActivity(componentName); in runAspectRatioTest()
68 final Activity activity = launchActivity(activityRule); in runAspectRatioTest()
119 private static float getActivityAspectRatio(Activity activity) { in getActivityAspectRatio()
123 private static Point getActivitySize(Activity activity) { in getActivitySize()
129 private static Display getDisplay(Activity activity) { in getDisplay()
141 protected Activity launchActivity(final ActivityTestRule activityRule) { in launchActivity()
142 final Activity activity = activityRule.launchActivity(null); in launchActivity()
148 final Activity activity = activityRule.getActivity(); in finishActivity()
/cts/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/
DGetContentActivity.java19 import android.app.Activity;
23 public class GetContentActivity extends Activity {
28 setResult(Activity.RESULT_OK, new Intent("ReSuLt")); in onCreate()
/cts/tests/tests/permission3/src/android/permission3/cts/
DNoPermissionTest.kt19 import android.app.Activity
30 startAppActivityAndAssertResultCode(Activity.RESULT_OK) {} in testStartActivity22()
39 startAppActivityAndAssertResultCode(Activity.RESULT_OK) {} in testStartActivityLatest()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageReportingTest.java22 import android.app.Activity;
76 Activity activity; in testUsageStartAndStopReporting()
99 Activity activity; in testUsagePastReporting()
115 Activity activity; in testUsageReportingMissingStop()
134 Activity activity; in testExceptionOnRepeatReport()
173 Activity activity; in testMultipleTokenUsageReporting()
196 Activity activity; in testMultipleTokenMissingStop()
231 Activity activity0; in testSplitscreenUsageReporting()
232 Activity activity1; in testSplitscreenUsageReporting()
268 Activity activity0; in testSplitscreenSameToken()
[all …]
/cts/hostsidetests/appcompat/hiddenapi/app/src/android/compat/hiddenapi/cts/
DHiddenApiUsedActivity.java19 import android.app.Activity;
25 public class HiddenApiUsedActivity extends Activity {
31 Field field = Activity.class.getDeclaredField("mWindow"); in onCreate()
/cts/tests/tests/view/src/android/view/cts/util/
DDisplayUtils.java19 import android.app.Activity;
28 public static boolean supportOrientationRequest(final Activity activity) { in supportOrientationRequest()
36 public static boolean isCloseToSquareDisplay(final Activity activity) { in isCloseToSquareDisplay()
55 public static boolean isDevicePortrait(final Activity activity) { in isDevicePortrait()

12345678910>>...53