Home
last modified time | relevance | path

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

12345678910>>...41

/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/
DActivities.java19 import android.app.Activity;
30 public static class TrackerActivity extends Activity {
33 public static class RegularActivity extends Activity {
36 public static class SingleTopActivity extends Activity {
39 public static class SingleInstanceActivity extends Activity {
42 public static class SingleInstanceActivity2 extends Activity {
45 public static class SingleTaskActivity extends Activity {
48 public static class SingleTaskActivity2 extends Activity {
51 public static class TaskAffinity1Activity extends Activity {
54 public static class TaskAffinity1Activity2 extends Activity {
[all …]
DLaunchRunner.java29 import android.app.Activity;
92 List<Activity> activityLog = Lists.newArrayList(); in verify()
101 Activity activityToLaunchFrom = activityLog.get(generationIntent.getLaunchFromIndex(i)); in verify()
102 Activity result = launch(activityToLaunchFrom, generationIntent.getActualIntent(), in verify()
115 Activity activityToLaunchFrom = activityLog.get( in verify()
117 Activity result = launch(activityToLaunchFrom, generationIntent.getActualIntent(), in verify()
173 List<Activity> activityLog = Lists.newArrayList(); in run()
181 Activity firstActivity = this.launchFromContext(startContext, in run()
190 Activity activity = launch(activityLog.get(launchFromIntent.getLaunchFrom()), in run()
201 Activity activity = launch(activityLog.get(launchFromIntent.getLaunchFrom()), in run()
[all …]
/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/
DActivityLifecyclePipTests.java35 import android.app.Activity;
67 final Activity firstActivity = mFirstActivityTestRule.launchActivity(new Intent()); in testGoToPip()
70 final Activity pipActivity = mPipActivityTestRule.launchActivity(new Intent()); in testGoToPip()
92 final Activity firstActivity = mFirstActivityTestRule.launchActivity(new Intent()); in testPipOnLaunch()
99 final Activity pipActivity = mPipActivityTestRule.launchActivity( in testPipOnLaunch()
120 final Activity firstActivity = mFirstActivityTestRule.launchActivity(new Intent()); in testDestroyPip()
127 final Activity pipActivity = mPipActivityTestRule.launchActivity( in testDestroyPip()
146 final Activity pipActivity = mPipActivityTestRule.launchActivity( in testLaunchBelowPip()
153 final Activity firstActivity = mFirstActivityTestRule.launchActivity(new Intent() in testLaunchBelowPip()
166 final Activity pipActivity = mPipActivityTestRule.launchActivity( in testIntoPipSameTask()
[all …]
DActivityLifecycleTests.java46 import android.app.Activity;
73 final Activity activity = mFirstActivityTestRule.launchActivity(new Intent()); in testSingleLaunch()
81 final Activity firstActivity = mFirstActivityTestRule.launchActivity(new Intent()); in testLaunchOnTop()
85 final Activity secondActivity = mSecondActivityTestRule.launchActivity(new Intent()); in testLaunchOnTop()
96 final Activity firstActivity = mFirstActivityTestRule.launchActivity(new Intent()); in testLaunchTranslucentOnTop()
101 final Activity translucentActivity = in testLaunchTranslucentOnTop()
112 final Activity firstActivity = mFirstActivityTestRule.launchActivity(new Intent()); in testLaunchDoubleTranslucentOnTop()
117 final Activity translucentActivity = in testLaunchDoubleTranslucentOnTop()
127 final Activity secondTranslucentActivity = in testLaunchDoubleTranslucentOnTop()
151 final Activity translucentActivity = in testTranslucentMovedIntoStack()
[all …]
DActivityLifecycleClientTestBase.java38 import android.app.Activity;
138 protected Activity launchActivity(Class<? extends Activity> activityClass) { in launchActivity()
148 Pair<Class<? extends Activity>, ActivityCallback>... activityCallbacks) { in waitAndAssertActivityStates() argument
157 final void waitForActivityTransitions(Class<? extends Activity> activityClass, in waitForActivityTransitions()
168 final void waitAndAssertActivityTransitions(Class<? extends Activity> activityClass, in waitAndAssertActivityTransitions()
181 static Pair<Class<? extends Activity>, ActivityCallback> state(Activity activity, in state()
186 static Pair<Class<? extends Activity>, ActivityCallback> state( in state()
187 Class<? extends Activity> activityClass, ActivityCallback stage) { in state()
195 static Pair<Class<? extends Activity>, ActivityCallback> occludedActivityState( in occludedActivityState()
196 Activity activity, Activity occludingActivity) { in occludedActivityState()
[all …]
DActivityLifecycleSplitScreenTests.java43 import android.app.Activity;
77 final Activity firstActivity = in testResumedWhenRecreatedFromInNonFocusedStack()
81 final Activity secondActivity = in testResumedWhenRecreatedFromInNonFocusedStack()
112 final Activity firstActivity = in testOccludingMovedBetweenStacks()
125 final Activity secondActivity = mSecondActivityTestRule.launchActivity( in testOccludingMovedBetweenStacks()
136 final Activity thirdActivity = mThirdActivityTestRule.launchActivity( in testOccludingMovedBetweenStacks()
156 final Activity firstActivity = in testTranslucentMovedBetweenStacks()
169 final Activity secondActivity = mSecondActivityTestRule.launchActivity( in testTranslucentMovedBetweenStacks()
181 final Activity translucentActivity = mTranslucentActivityTestRule.launchActivity( in testTranslucentMovedBetweenStacks()
201 final Activity callbackTrackingActivity = in testResultInNonFocusedStack()
[all …]
DLifecycleTracker.java21 import android.app.Activity;
43 Pair<Class<? extends Activity>, ActivityCallback>[] activityCallbacks) { in waitAndAssertActivityStates() argument
58 void waitForActivityTransitions(Class<? extends Activity> activityClass, in waitForActivityTransitions()
71 private List<Pair<Class<? extends Activity>, ActivityCallback>> pendingCallbacks( in pendingCallbacks() argument
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()
77 final Class<? extends Activity> activityClass = callbackPair.first; in pendingCallbacks()
DLifecycleVerifier.java37 import android.app.Activity;
51 static void assertLaunchSequence(Class<? extends Activity> activityClass, in assertLaunchSequence()
68 Class<? extends Activity> activityClass) { in getLaunchSequence()
75 static void assertLaunchSequence(Class<? extends Activity> launchingActivity, in assertLaunchSequence()
76 Class<? extends Activity> existingActivity, LifecycleLog lifecycleLog, in assertLaunchSequence()
120 static void assertLaunchAndStopSequence(Class<? extends Activity> activityClass, in assertLaunchAndStopSequence()
126 static void assertLaunchAndStopSequence(Class<? extends Activity> activityClass, in assertLaunchAndStopSequence()
148 static void assertLaunchAndPauseSequence(Class<? extends Activity> activityClass, in assertLaunchAndPauseSequence()
160 static void assertRestartSequence(Class<? extends Activity> activityClass, in assertRestartSequence()
172 static void assertRestartAndResumeSequence(Class<? extends Activity> activityClass, in assertRestartAndResumeSequence()
[all …]
DActivityLifecycleTopResumedStateTests.java46 import android.app.Activity;
78 final Activity activity = mCallbackTrackingActivityTestRule.launchActivity(new Intent()); in testTopPositionAfterLaunch()
86 final Activity activity = mCallbackTrackingActivityTestRule.launchActivity(new Intent()); in testTopPositionLostOnFinish()
99 final Activity activity = mCallbackTrackingActivityTestRule.launchActivity(new Intent()); in testTopPositionSwitchToActivityOnTop()
103 final Activity topActivity = mSingleTopActivityTestRule.launchActivity(new Intent()); in testTopPositionSwitchToActivityOnTop()
119 final Activity firstActivity = in testTopPositionSwitchToActivityOnTopSlowDifferentProcess()
125 final Class<? extends Activity> secondActivityClass = in testTopPositionSwitchToActivityOnTopSlowDifferentProcess()
145 final Activity firstActivity = in testTopPositionSwitchToActivityOnTopTimeoutDifferentProcess()
148 final Class<? extends Activity> firstActivityClass = firstActivity.getClass(); in testTopPositionSwitchToActivityOnTopTimeoutDifferentProcess()
152 final Class<? extends Activity> secondActivityClass = in testTopPositionSwitchToActivityOnTopTimeoutDifferentProcess()
[all …]
/cts/tests/app/src/android/app/cts/
DActivityCallbacksTest.java41 import android.app.Activity;
94 public void onActivityPreCreated(Activity activity, Bundle savedInstanceState) { in testActivityCallbackOrder()
100 public void onActivityCreated(Activity activity, Bundle savedInstanceState) { in testActivityCallbackOrder()
106 public void onActivityPostCreated(Activity activity, Bundle savedInstanceState) { in testActivityCallbackOrder()
112 public void onActivityPreStarted(Activity activity) { in testActivityCallbackOrder()
118 public void onActivityStarted(Activity activity) { in testActivityCallbackOrder()
124 public void onActivityPostStarted(Activity activity) { in testActivityCallbackOrder()
130 public void onActivityPreResumed(Activity activity) { in testActivityCallbackOrder()
136 public void onActivityResumed(Activity activity) { in testActivityCallbackOrder()
142 public void onActivityPostResumed(Activity activity) { in testActivityCallbackOrder()
[all …]
DFragmentReceiveResultTest.java20 import android.app.Activity;
55 startActivityForResult(10, Activity.RESULT_OK, "content 10"); in testStartActivityForResultOk()
59 .onActivityResult(eq(10), eq(Activity.RESULT_OK), captor.capture()); in testStartActivityForResultOk()
67 startActivityForResult(20, Activity.RESULT_CANCELED, "content 20"); in testStartActivityForResultCanceled()
71 .onActivityResult(eq(20), eq(Activity.RESULT_CANCELED), captor.capture()); in testStartActivityForResultCanceled()
79 startIntentSenderForResult(30, Activity.RESULT_OK, "content 30"); in testStartIntentSenderForResultOk()
83 .onActivityResult(eq(30), eq(Activity.RESULT_OK), captor.capture()); in testStartIntentSenderForResultOk()
91 startIntentSenderForResult(40, Activity.RESULT_CANCELED, "content 40"); in testStartIntentSenderForResultCanceled()
95 .onActivityResult(eq(40), eq(Activity.RESULT_CANCELED), captor.capture()); in testStartIntentSenderForResultCanceled()
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()
DAppTaskTests.java28 import android.app.Activity;
97 final Activity a1 = mActivityRule.launchActivity(null); in testSingleAppTask()
108 final ArrayList<Activity> activities = new ArrayList<>(); in testMultipleAppTasks()
125 final Activity a1 = mActivityRule.launchActivity(null); in testFinishAndRemoveTask()
136 final Activity a1 = mActivityRule.launchActivity(null); in testMoveToFront()
137 final Activity a2 = mActivityRule.launchActivity(null); in testMoveToFront()
140 public void onActivityLifecycleChanged(Activity activity, Stage stage) { in testMoveToFront()
157 final Activity a1 = mActivityRule.launchActivity(null); in testStartActivityInTask_NoNewTask()
178 final Activity a1 = mActivityRule.launchActivity(null); in testStartActivityInTask_NewTask()
195 final Activity a1 = mActivityRule.launchActivity(null); in testSetExcludeFromRecents()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResult.java22 import android.app.Activity;
51 public static void setPassedResult(Activity activity, String testId, String testDetails) { in setPassedResult()
56 public static void setPassedResult(Activity activity, String testId, String testDetails, in setPassedResult()
58 activity.setResult(Activity.RESULT_OK, createResult(activity, TEST_RESULT_PASSED, testId, in setPassedResult()
63 public static void setPassedResult(Activity activity, String testId, String testDetails, in setPassedResult()
65 activity.setResult(Activity.RESULT_OK, createResult(activity, TEST_RESULT_PASSED, testId, in setPassedResult()
70 public static void setFailedResult(Activity activity, String testId, String testDetails) { in setFailedResult()
75 public static void setFailedResult(Activity activity, String testId, String testDetails, in setFailedResult()
77 activity.setResult(Activity.RESULT_OK, createResult(activity, TEST_RESULT_FAILED, testId, in setFailedResult()
82 public static void setFailedResult(Activity activity, String testId, String testDetails, in setFailedResult()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAspectRatioTests.java25 import android.app.Activity;
48 public static class MaxAspectRatioActivity extends Activity {
52 public static class MaxAspectRatioResizeableActivity extends Activity {
56 public static class MaxAspectRatioUnsetActivity extends Activity {
62 public static class MetaDataMaxAspectRatioActivity extends Activity {
66 public static class MinAspectRatioActivity extends Activity {
70 public static class MinAspectRatioResizeableActivity extends Activity {
74 public static class MinAspectRatioUnsetActivity extends Activity {
79 public static class MinAspectRatioLandscapeActivity extends Activity {
84 public static class MinAspectRatioPortraitActivity extends Activity {
DAspectRatioTestsBase.java24 import android.app.Activity;
47 final Activity activity = launchActivity(activityRule); in runAspectRatioTest()
80 private static float getActivityAspectRatio(Activity activity) { in getActivityAspectRatio()
84 private static Point getActivitySize(Activity activity) { in getActivitySize()
90 private static Display getDisplay(Activity activity) { in getDisplay()
102 protected Activity launchActivity(final ActivityTestRule activityRule) { in launchActivity()
103 final Activity activity = activityRule.launchActivity(null); in launchActivity()
109 final Activity activity = activityRule.getActivity(); in finishActivity()
/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/util/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/tests/tests/app.usage/src/android/app/usage/cts/
DUsageReportingTest.java22 import android.app.Activity;
74 Activity activity; in testUsageStartAndStopReporting()
97 Activity activity; in testUsagePastReporting()
113 Activity activity; in testUsageReportingMissingStop()
132 Activity activity; in testExceptionOnRepeatReport()
171 Activity activity; in testMultipleTokenUsageReporting()
194 Activity activity; in testMultipleTokenMissingStop()
229 Activity activity0; in testSplitscreenUsageReporting()
230 Activity activity1; in testSplitscreenUsageReporting()
266 Activity activity0; in testSplitscreenSameToken()
[all …]
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityManagerState.java360 for (Activity activity : task.mActivities) { in getStackIndexByActivity()
400 for (Activity activity : task.mActivities) { in containsActivity()
416 for (Activity activity : task.mActivities) { in containsNoneOf()
432 for (Activity activity : task.mActivities) { in containsActivityInWindowingMode()
447 for (Activity activity : task.mActivities) { in isActivityVisible()
461 for (Activity activity : task.mActivities) { in isActivityTranslucent()
475 for (Activity activity : task.mActivities) { in isBehindOpaqueActivities()
492 for (Activity activity : task.mActivities) { in containsStartedActivities()
507 for (Activity activity : task.mActivities) { in hasActivityState()
521 for (Activity activity : task.mActivities) { in getActivityProcId()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DView_InitialFocusTest.java24 import android.app.Activity;
52 Activity activity = mActivityRule.getActivity(); in setup()
61 final Activity activity = mActivityRule.getActivity(); in getInitialAndFirstFocus()
74 Activity activity = mActivityRule.getActivity(); in testNoInitialFocus()
82 Activity activity = mActivityRule.getActivity(); in testDefaultFocus()
90 Activity activity = mActivityRule.getActivity(); in testInitialFocus()
98 Activity activity = mActivityRule.getActivity(); in testClearFocus()
/cts/tests/fragment/src/android/fragment/cts/
DFragmentTestUtil.java21 import android.app.Activity;
39 public static void waitForExecution(final ActivityTestRule<? extends Activity> rule) { in waitForExecution()
54 private static void runOnUiThreadRethrow(ActivityTestRule<? extends Activity> rule, in runOnUiThreadRethrow()
68 final ActivityTestRule<? extends Activity> rule) { in executePendingTransactions()
73 final ActivityTestRule<? extends Activity> rule, final FragmentManager fm) { in executePendingTransactions()
84 public static boolean popBackStackImmediate(final ActivityTestRule<? extends Activity> rule) { in popBackStackImmediate()
88 public static boolean popBackStackImmediate(final ActivityTestRule<? extends Activity> rule, in popBackStackImmediate()
136 final Activity activity = rule.getActivity(); in setContentView()
226 ActivityTestRule<? extends Activity> rule, T activity) throws InterruptedException { in recreateActivity()
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DIntentReceiverActivity.java18 import android.app.Activity;
41 public class IntentReceiverActivity extends Activity {
90 setResult(Activity.RESULT_OK); in onCreate()
104 setResult(Activity.RESULT_OK, result); in onCreate()
109 setResult(Activity.RESULT_OK); in onCreate()
122 setResult(Activity.RESULT_OK, result); in onCreate()
126 setResult(Activity.RESULT_OK); in onCreate()
135 setResult(Activity.RESULT_OK, new Intent()); in onCreate()

12345678910>>...41