/cts/tests/app/app/src/android/app/stubs/ |
D | ActivityCallbacksTestActivity.java | 20 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 …]
|
D | ActivityTestsBase.java | 19 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/activity/lifecycle/ |
D | ActivityTests.java | 39 import android.app.Activity; 62 final Activity activity = launchActivityAndWait(FirstActivity.class); in testReleaseActivityInstance_visible() 73 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testReleaseActivityInstance_invisible() 74 final Activity secondActivity = launchActivityAndWait(SecondActivity.class); in testReleaseActivityInstance_invisible() 99 final Class<? extends Activity> rootActivityClass = CallbackTrackingActivity.class; in testFinishTask_FromRoot() 100 final Activity rootActivity = launchActivityAndWait(rootActivityClass); in testFinishTask_FromRoot() 101 final Class<? extends Activity> topActivityClass = SecondCallbackTrackingActivity.class; in testFinishTask_FromRoot() 102 final Activity topActivity = launchActivityAndWait(topActivityClass); in testFinishTask_FromRoot() 126 final Class<? extends Activity> rootActivityClass = CallbackTrackingActivity.class; in testFinishTask_FromRoot_TranslucentOnTop() 127 final Activity rootActivity = launchActivityAndWait(rootActivityClass); in testFinishTask_FromRoot_TranslucentOnTop() [all …]
|
D | ActivityLifecycleLegacySplitScreenTests.java | 48 import android.app.Activity; 79 final Activity sideActivity = launchActivityAndWait(SideActivity.class); in testResumedWhenRecreatedFromInNonFocusedTask() 82 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testResumedWhenRecreatedFromInNonFocusedTask() 85 final Activity secondActivity = launchActivityAndWait(SecondActivity.class); in testResumedWhenRecreatedFromInNonFocusedTask() 119 final Activity sideActivity = launchActivityAndWait(SideActivity.class); in testOccludingOnSplitSecondaryTask() 122 final Activity firstActivity = launchActivityAndWait(FirstActivity.class); in testOccludingOnSplitSecondaryTask() 139 final Activity sideActivity = launchActivityAndWait(ThirdActivity.class); in testTranslucentOnSplitSecondaryTask() 142 final Activity firstActivity = new Launcher(FirstActivity.class) in testTranslucentOnSplitSecondaryTask() 162 final Activity sideActivity = launchActivityAndWait(SideActivity.class); in testResultInNonFocusedTask() 165 final Activity callbackTrackingActivity = launchActivityAndWait( in testResultInNonFocusedTask() [all …]
|
D | ActivityLifecycleClientTestBase.java | 40 import android.app.Activity; 107 private final Class<? extends Activity> mActivityClass; 116 Launcher(@NonNull Class<? extends Activity> activityClass) { in Launcher() 125 Activity launch() throws Exception { in launch() 148 final Activity activity = SystemUtil.callWithShellPermissionIdentity(() -> { in launch() 244 <T extends Activity> T launchActivityAndWait(Class<? extends Activity> activityClass) in launchActivityAndWait() 254 Pair<Class<? extends Activity>, String>... activityCallbacks) { in waitAndAssertActivityStates() argument 264 Class<? extends Activity> activityClass, String expectedState) { in waitAndAssertActivityCurrentState() 274 Class<? extends Activity> activityClass, String expectedState) { in waitForActivityCurrentState() 283 final void waitForActivityTransitions(Class<? extends Activity> activityClass, in waitForActivityTransitions() [all …]
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/ |
D | ActivityEmbeddingUtil.java | 38 import android.app.Activity; 107 Class<? extends Activity> activityClass, boolean shouldClearTop) { in createWildcardSplitPairRuleWithPrimaryActivityClass() 114 Class<? extends Activity> activityClass, boolean shouldClearTop) { in createWildcardSplitPairRuleBuilderWithPrimaryActivityClass() 138 @NonNull Predicate<Pair<Activity, Activity>> activitiesPairPredicate, in createSplitPairRuleBuilder() argument 139 @NonNull Predicate<Pair<Activity, Intent>> activityIntentPairPredicate, in createSplitPairRuleBuilder() 146 @NonNull Activity activityLaunchingFrom) { in startActivityAndVerifyNotSplit() 160 public static Activity startActivityAndVerifySplitAttributes( in startActivityAndVerifySplitAttributes() 161 @NonNull Activity activityLaunchingFrom, @NonNull Activity expectedPrimaryActivity, in startActivityAndVerifySplitAttributes() 162 @NonNull Class<? extends Activity> secondActivityClass, in startActivityAndVerifySplitAttributes() 175 final Activity secondaryActivity = getResumedActivityById(secondaryActivityId); in startActivityAndVerifySplitAttributes() [all …]
|
D | WindowManagerJetpackTestBase.java | 43 import android.app.Activity; 82 private static final Set<Activity> sResumedActivities = new HashSet<>(); 83 private static final Set<Activity> sVisibleActivities = new HashSet<>(); 128 public <T extends Activity> T startActivityNewTask(@NonNull Class<T> activityClass) { in startActivityNewTask() 132 public <T extends Activity> TestActivityLauncher<T> launcherForNewActivity( in launcherForNewActivity() 138 public <T extends Activity> T startActivityNewTask(@NonNull Class<T> activityClass, in startActivityNewTask() 145 public <T extends Activity> T startFullScreenActivityNewTask(@NonNull Class<T> activityClass) { in startFullScreenActivityNewTask() 149 public <T extends Activity> T startFullScreenActivityNewTask(@NonNull Class<T> activityClass, in startFullScreenActivityNewTask() 163 private <T extends Activity> TestActivityLauncher<T> launcherForActivityNewTask( in launcherForActivityNewTask() 210 public static <T extends Activity> void startActivityFromActivity(Activity activityToLaunchFrom, in startActivityFromActivity() [all …]
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/ |
D | ActivityEmbeddingLaunchTests.java | 30 import android.app.Activity; 74 Activity primaryActivity = startFullScreenActivityNewTask( in testSplitWithPrimaryActivity() 78 final Predicate<Pair<Activity, Activity>> activityActivityPredicate = in testSplitWithPrimaryActivity() 89 List<Activity> secondaryActivities = new ArrayList<>(); in testSplitWithPrimaryActivity() 94 Activity secondaryActivity = startActivityAndVerifySplitAttributes(primaryActivity, in testSplitWithPrimaryActivity() 114 final Activity currentSecondaryActivity = secondaryActivities.get(i); in testSplitWithPrimaryActivity() 119 final Activity newSecondaryActivity = secondaryActivities.get(i - 1); in testSplitWithPrimaryActivity() 131 Activity primaryActivity = startFullScreenActivityNewTask( in testPrimaryActivityLaunchToSideClearTop() 137 Activity secondaryActivity = startActivityAndVerifySplitAttributes(primaryActivity, in testPrimaryActivityLaunchToSideClearTop() 145 Activity prevSecondaryActivity; in testPrimaryActivityLaunchToSideClearTop() [all …]
|
D | ActivityEmbeddingPlaceholderTests.java | 30 import android.app.Activity; 85 final Pair<Activity, Activity> activityPair = launchActivityWithPlaceholderAndVerifySplit( in testPlaceholderLaunchesWithPrimaryActivity() 87 final Activity primaryActivity = activityPair.first; in testPlaceholderLaunchesWithPrimaryActivity() 88 final Activity placeholderActivity = activityPair.second; in testPlaceholderLaunchesWithPrimaryActivity() 111 Activity primaryActivity = startFullScreenActivityNewTask(TestActivityWithId.class, in testPlaceholderDoesNotLaunchWhenParentMetricsDoNotAllow() 131 final Pair<Activity, Activity> activityPair = launchActivityWithPlaceholderAndVerifySplit( in testFinishingPlaceholderFinishesPrimaryActivity() 133 final Activity primaryActivity = activityPair.first; in testFinishingPlaceholderFinishesPrimaryActivity() 134 final Activity placeholderActivity = activityPair.second; in testFinishingPlaceholderFinishesPrimaryActivity() 159 final Pair<Activity, Activity> activityPair = launchActivityWithPlaceholderAndVerifySplit( in testPlaceholderFinishPrimaryWithSecondary_finishAdjacentWhenSplit() 161 final Activity primaryActivity = activityPair.first; in testPlaceholderFinishPrimaryWithSecondary_finishAdjacentWhenSplit() [all …]
|
D | ActivityEmbeddingLifecycleTests.java | 38 import android.app.Activity; 76 Activity primaryActivity = startFullScreenActivityNewTask( in testSecondaryActivityLaunch_replacing() 95 Activity secondaryActivity2 = startActivityAndVerifySplitAttributes(primaryActivity, in testSecondaryActivityLaunch_replacing() 117 Activity primaryActivity = startFullScreenActivityNewTask( in testSecondaryActivityLaunch_nonReplacing() 125 Activity secondaryActivity1 = startActivityAndVerifySplitAttributes(primaryActivity, in testSecondaryActivityLaunch_nonReplacing() 137 Activity secondaryActivity2 = startActivityAndVerifySplitAttributes(primaryActivity, in testSecondaryActivityLaunch_nonReplacing() 157 Activity primaryActivity = startFullScreenActivityNewTask( in testSecondaryActivityLaunch_multiSplit() 165 Activity secondaryActivity = startActivityAndVerifySplitAttributes(primaryActivity, in testSecondaryActivityLaunch_multiSplit() 180 Activity secondaryActivity2 = startActivityAndVerifySplitAttributes(secondaryActivity, in testSecondaryActivityLaunch_multiSplit() 200 Activity primaryActivity = startFullScreenActivityNewTask( in testSplitFinish_secondaryOnly() [all …]
|
D | ActivityEmbeddingCrossUidTests.java | 42 import android.app.Activity; 104 final Activity primaryActivity = startFullScreenActivityNewTask( in testCrossUidActivityEmbeddingIsNotAllowed() 108 final Predicate<Pair<Activity, Activity>> activityActivityPredicate = in testCrossUidActivityEmbeddingIsNotAllowed() 132 final Activity primaryActivity = startFullScreenActivityNewTask( in testCrossUidActivityEmbeddingIsNotAllowedWithoutPermission() 136 final Predicate<Pair<Activity, Activity>> activityActivityPredicate = in testCrossUidActivityEmbeddingIsNotAllowedWithoutPermission() 177 final Activity primaryActivity = startFullScreenActivityNewTask( in testUntrustedCrossUidActivityEmbeddingIsAllowedWithOptIn() 181 final Predicate<Pair<Activity, Activity>> activityActivityPredicate = in testUntrustedCrossUidActivityEmbeddingIsAllowedWithOptIn() 204 final Activity primaryActivity = startFullScreenActivityNewTask( in testUntrustedCrossUidActivityEmbedding_notAllowedForNonEmbeddable() 208 final Predicate<Pair<Activity, Activity>> activityActivityPredicate = in testUntrustedCrossUidActivityEmbedding_notAllowedForNonEmbeddable() 241 final Activity primaryActivity = startFullScreenActivityNewTask( in testCrossUidActivityEmbeddingIsAllowedWithEmbedAnyAppPermission() [all …]
|
D | ActivityEmbeddingLifecycleTestBase.java | 29 import android.app.Activity; 86 protected void waitAndAssertActivityOnStop(Class<? extends Activity> activityClass) { in waitAndAssertActivityOnStop() 90 protected void waitAndAssertActivityOnDestroy(Class<? extends Activity> activityClass) { in waitAndAssertActivityOnDestroy() 103 public void onActivityCreated(Activity activity, Bundle savedInstanceState) { in onActivityCreated() 108 public void onActivityStarted(Activity activity) { in onActivityStarted() 113 public void onActivityResumed(Activity activity) { in onActivityResumed() 118 public void onActivityPaused(Activity activity) { in onActivityPaused() 123 public void onActivityStopped(Activity activity) { in onActivityStopped() 128 public void onActivityDestroyed(Activity activity) { in onActivityDestroyed() 133 public void onActivitySaveInstanceState(Activity activity, Bundle outState) { in onActivitySaveInstanceState()
|
D | ActivityStackApisTests.java | 31 import android.app.Activity; 67 final Activity primaryActivity = startFullScreenActivityNewTask( in testFinishActivityStacks_finishPrimary() 69 final Activity secondaryActivity = startActivityAndVerifySplitAttributes(primaryActivity, in testFinishActivityStacks_finishPrimary() 91 final Activity primaryActivity = startFullScreenActivityNewTask( in testFinishActivityStacks_finishSecondary() 93 final Activity secondaryActivity = startActivityAndVerifySplitAttributes(primaryActivity, in testFinishActivityStacks_finishSecondary() 115 final Activity activity = activityActivityPair.second; in testFinishActivityStacks_finishAllSecondaryStacks_primaryStackExpand() 133 final Activity activity = activityActivityPair.second; in testFinishActivityStacks_finishAllSecondaryStacks_primaryStackExpand() 152 final Activity activityA = startFullScreenActivityNewTask( in testFinishActivityStacks_finishAllSecondaryStacks_primaryStackExpand() 154 final Activity activityB = startActivityAndVerifySplitAttributes(activityA, in testFinishActivityStacks_finishAllSecondaryStacks_primaryStackExpand() 157 final Activity activityC = startActivityAndVerifySplitAttributes(activityA, in testFinishActivityStacks_finishAllSecondaryStacks_primaryStackExpand() [all …]
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/activity/lifecycle/ |
D | EventTracker.java | 24 import android.app.Activity; 45 Pair<Class<? extends Activity>, String>[] activityCallbacks) { in waitAndAssertActivityStates() argument 58 public void waitAndAssertActivityCurrentState(Class<? extends Activity> activityClass, in waitAndAssertActivityCurrentState() 71 public boolean waitForActivityCurrentState(Class<? extends Activity> activityClass, in waitForActivityCurrentState() 87 public void waitForActivityTransitions(Class<? extends Activity> activityClass, in waitForActivityTransitions() 99 private List<Pair<Class<? extends Activity>, String>> pendingCallbacks( in pendingCallbacks() argument 100 Pair<Class<? extends Activity>, String>[] activityCallbacks) { in pendingCallbacks() 101 final List<Pair<Class<? extends Activity>, String>> notReachedActivityCallbacks = in pendingCallbacks() 104 for (Pair<Class<? extends Activity>, String> callbackPair : activityCallbacks) { in pendingCallbacks() 105 final Class<? extends Activity> activityClass = callbackPair.first; in pendingCallbacks()
|
D | TransitionVerifier.java | 26 import android.app.Activity; 41 Class<? extends Activity> activityClass, in assertLaunchSequence() 57 public static List<String> getLaunchSequence(Class<? extends Activity> activityClass) { in getLaunchSequence() 71 static List<String> getLaunchAndDestroySequence(Class<? extends Activity> activityClass) { in getLaunchAndDestroySequence() 79 Class<? extends Activity> launchingActivity, in assertLaunchSequence() 80 Class<? extends Activity> existingActivity, in assertLaunchSequence() 128 Class<? extends Activity> activityClass, EventLog eventLog) { in assertLaunchAndStopSequence() 133 Class<? extends Activity> activityClass, EventLog eventLog, boolean onTop) { in assertLaunchAndStopSequence() 159 Class<? extends Activity> activityClass, EventLog eventLog) { in assertLaunchAndPauseSequence() 173 static void assertRestartSequence(Class<? extends Activity> activityClass, EventLog eventLog) { in assertRestartSequence() [all …]
|
/cts/hostsidetests/tagging/common/src/android/cts/tagging/ |
D | Constants.java | 19 import android.app.Activity; 22 public static final int TAGGING_MODE_OFF = Activity.RESULT_FIRST_USER + 100; 23 public static final int TAGGING_MODE_ASYNC = Activity.RESULT_FIRST_USER + 101; 24 public static final int TAGGING_MODE_SYNC = Activity.RESULT_FIRST_USER + 102;
|
D | TestingService.java | 19 import android.app.Activity; 35 public static final int RESULT_TEST_UNKNOWN = Activity.RESULT_FIRST_USER + 1; 36 public static final int RESULT_TEST_SUCCESS = Activity.RESULT_FIRST_USER + 2; 37 public static final int RESULT_TEST_IGNORED = Activity.RESULT_FIRST_USER + 3; 38 public static final int RESULT_TEST_FAILED = Activity.RESULT_FIRST_USER + 4; 39 public static final int RESULT_TEST_CRASHED = Activity.RESULT_FIRST_USER + 5; 40 public static final int RESULT_TEST_BIND_FAILED = Activity.RESULT_FIRST_USER + 6;
|
/cts/tests/app/src/android/app/cts/ |
D | Instrumentation_ActivityResultTest.java | 19 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()
|
D | ActivityCallbacksTest.java | 41 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 …]
|
D | FragmentReceiveResultTest.java | 20 import android.app.Activity; 58 startActivityForResult(10, Activity.RESULT_OK, "content 10"); in testStartActivityForResultOk() 62 .onActivityResult(eq(10), eq(Activity.RESULT_OK), captor.capture()); in testStartActivityForResultOk() 70 startActivityForResult(20, Activity.RESULT_CANCELED, "content 20"); in testStartActivityForResultCanceled() 74 .onActivityResult(eq(20), eq(Activity.RESULT_CANCELED), captor.capture()); in testStartActivityForResultCanceled() 82 startIntentSenderForResult(30, Activity.RESULT_OK, "content 30"); in testStartIntentSenderForResultOk() 86 .onActivityResult(eq(30), eq(Activity.RESULT_OK), captor.capture()); in testStartIntentSenderForResultOk() 94 startIntentSenderForResult(40, Activity.RESULT_CANCELED, "content 40"); in testStartIntentSenderForResultCanceled() 98 .onActivityResult(eq(40), eq(Activity.RESULT_CANCELED), captor.capture()); in testStartIntentSenderForResultCanceled()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/ |
D | LaunchRunner.java | 30 import android.app.Activity; 98 List<Activity> activityLog = Lists.newArrayList(); in verify() 102 Activity firstActivity = launchFromContext(initialContext, firstIntent.getActualIntent()); in verify() 112 Activity activityToLaunchFrom = activityLog.get(generationIntent.getLaunchFromIndex(i)); in verify() 113 Activity result = launch(activityToLaunchFrom, generationIntent.getActualIntent(), in verify() 126 Activity activityToLaunchFrom = activityLog.get( in verify() 128 Activity result = launch(activityToLaunchFrom, generationIntent.getActualIntent(), in verify() 184 List<Activity> activityLog = Lists.newArrayList(); in run() 192 Activity firstActivity = this.launchFromContext(startContext, in run() 201 Activity activity = launch(activityLog.get(launchFromIntent.getLaunchFrom()), in run() [all …]
|
/cts/tests/AlarmManager/app_common/src/android/alarmmanager/alarmtestapp/cts/common/ |
D | RequestReceiver.java | 19 import android.app.Activity; 45 public static final int RESULT_SECURITY_EXCEPTION = Activity.RESULT_FIRST_USER + 12; 60 setResult(Activity.RESULT_OK, String.valueOf(result), null); in onReceive() 66 setResult(Activity.RESULT_OK, null, null); in onReceive() 76 setResult(Activity.RESULT_OK, null, null); in onReceive() 84 setResult(Activity.RESULT_OK, null, null); in onReceive() 93 setResult(Activity.RESULT_OK, null, null); in onReceive() 100 setResult(Activity.RESULT_CANCELED, null, null); in onReceive()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | ActivitiesWatcher.java | 18 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/ |
D | LocalActivity.java | 19 public class LocalActivity extends Activity<android.app.Activity> { 21 LocalActivity(android.app.Activity activity) { in LocalActivity()
|
/cts/tests/tests/mediacujtest/common/src/android/media/cujcommon/cts/ |
D | CujTestBase.java | 21 import android.app.Activity; 76 public static boolean supportOrientationRequest(final Activity activity) { in supportOrientationRequest() 85 public static boolean deviceSupportPhoneCall(final Activity activity) { in deviceSupportPhoneCall() 94 public static boolean deviceSupportPipMode(final Activity activity) { in deviceSupportPipMode() 101 public static boolean deviceSupportSplitScreenMode(final Activity activity) { in deviceSupportSplitScreenMode() 108 public static boolean isWatchDevice(final Activity activity) { in isWatchDevice() 115 public static boolean isTelevisionDevice(final Activity activity) { in isTelevisionDevice() 122 public static boolean isVisibleBackgroundNonProfileUser(Activity activity) { in isVisibleBackgroundNonProfileUser()
|