Home
last modified time | relevance | path

Searched refs:TestActivity (Results 1 – 25 of 153) sorted by relevance

1234567

/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/
DActivityEmbeddingFinishTests.java36 import android.server.wm.jetpack.utils.TestActivity;
77 TestActivity secondaryActivity = (TestActivity) startActivityAndVerifySplitAttributes( in testFinishPrimary()
100 TestActivity primaryActivity = startFullScreenActivityNewTask( in testFinishSecondary()
102 TestActivity secondaryActivity = (TestActivity) startActivityAndVerifySplitAttributes( in testFinishSecondary()
124 Pair<TestActivity, TestActivity> activityPair = new PairedFinishBehaviorScenario() in testFinishPrimaryWithSecondary_ActivitiesStacked_FinishNever()
140 Pair<TestActivity, TestActivity> activityPair = new PairedFinishBehaviorScenario() in testFinishPrimaryWithSecondary_ActivitiesStacked_FinishAdjacent()
156 Pair<TestActivity, TestActivity> activityPair = new PairedFinishBehaviorScenario() in testFinishPrimaryWithSecondary_ActivitiesStacked_FinishAlways()
171 Pair<TestActivity, TestActivity> activityPair = new PairedFinishBehaviorScenario() in testFinishPrimaryWithSecondary_ActivitiesSplit_FinishNever()
187 Pair<TestActivity, TestActivity> activityPair = new PairedFinishBehaviorScenario() in testFinishPrimaryWithSecondary_ActivitiesSplit_FinishAdjacent()
202 Pair<TestActivity, TestActivity> activityPair = new PairedFinishBehaviorScenario() in testFinishPrimaryWithSecondary_ActivitiesSplit_FinishAlways()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DWindowPolicyTests.java66 TestActivity.sStyleId = ID_NULL; in setUp()
67 TestActivity.sLayoutInDisplayCutoutMode = in setUp()
68 TestActivity.LAYOUT_IN_DISPLAY_CUTOUT_MODE_UNSPECIFIED; in setUp()
74 final TestActivity activity = startActivitySync(TestActivity.class); in testWindowInsets()
84 private static void assertFillWindowBounds(TestActivity activity) { in assertFillWindowBounds()
110 TestActivity.sStyleId = R.style.LayoutInDisplayCutoutModeUnspecified; in testWindowStyleLayoutInDisplayCutoutMode_unspecified()
111 assertFillWindowBounds(startActivitySync(TestActivity.class)); in testWindowStyleLayoutInDisplayCutoutMode_unspecified()
117 TestActivity.sStyleId = R.style.LayoutInDisplayCutoutModeNever; in testWindowStyleLayoutInDisplayCutoutMode_never()
118 assertFillWindowBounds(startActivitySync(TestActivity.class)); in testWindowStyleLayoutInDisplayCutoutMode_never()
124 TestActivity.sStyleId = R.style.LayoutInDisplayCutoutModeDefault; in testWindowStyleLayoutInDisplayCutoutMode_default()
[all …]
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DTestActivity.java39 public final class TestActivity extends Activity { class
41 private static final AtomicReference<Function<TestActivity, View>> sInitializer =
44 private Function<TestActivity, View> mInitializer = null;
82 public static TestActivity startSync( in startSync() argument
83 @NonNull Function<TestActivity, View> activityInitializer) { in startSync()
99 public static TestActivity startSync( in startSync() argument
100 @NonNull Function<TestActivity, View> activityInitializer, in startSync()
106 TestActivity.class) in startSync()
110 return (TestActivity) InstrumentationRegistry in startSync()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Fragments/
DPhaseStartFragment.java19 import com.android.cts.verifier.sensors.sixdof.Activities.TestActivity;
39 TestActivity.CTSTest mPhase;
40 TestActivity mActivity;
42 public static PhaseStartFragment newInstance(TestActivity.CTSTest phase) { in newInstance()
56 mActivity = (TestActivity) getActivity(); in onCreateView()
58 mPhase = (TestActivity.CTSTest) getArguments().getSerializable(ARG_PHASE); in onCreateView()
63 …getActivity().setTitle(getResources().getStringArray(R.array.phase)[TestActivity.CTSTest.ACCURACY.… in onCreateView()
67 …getActivity().setTitle(getResources().getStringArray(R.array.phase)[TestActivity.CTSTest.ROBUSTNES… in onCreateView()
71 …getActivity().setTitle(getResources().getStringArray(R.array.phase)[TestActivity.CTSTest.COMPLEX_M… in onCreateView()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DTestActivity.java58 public class TestActivity extends Activity { class
61 private static final AtomicReference<Function<TestActivity, View>> sInitializer =
64 private Function<TestActivity, View> mInitializer = null;
66 private static final AtomicReference<SettableFuture<TestActivity>> sFutureRef =
118 final SettableFuture<TestActivity> future = sFutureRef.getAndSet(null); in onEnterAnimationComplete()
211 public static TestActivity startSync( in startSync() argument
212 @NonNull Function<TestActivity, View> activityInitializer) { in startSync()
213 return DEFAULT_STARTER.startSync(activityInitializer, TestActivity.class); in startSync()
334 public TestActivity startSync(@NonNull Function<TestActivity, View> activityInitializer, in startSync() argument
335 Class<? extends TestActivity> activityClass) { in startSync()
[all …]
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/layout/
DWindowLayoutComponentLetterboxTest.java23 import android.server.wm.jetpack.utils.TestActivity;
59 TestActivity activity = startActivityNewTask(TestActivity.class); in testWindowLayoutComponent_providesWindowLayoutFromLetterboxPortraitActivity()
79 TestActivity activity = startActivityNewTask(TestActivity.class); in testWindowLayoutComponent_providesWindowLayoutFromLetterboxLandscapeActivity()
101 TestActivity activity = startActivityNewTask(TestActivity.class); in testWindowLayoutComponent_providesWindowLayoutFromLetterboxSlimPortraitActivity()
124 TestActivity activity = startActivityNewTask(TestActivity.class); in testWindowLayoutComponent_providesWindowLayoutFromLetterboxSlimLandscapeActivity()
/cts/tests/framework/base/windowmanager/app_base/src/android/server/wm/app/
DTestActivity.java19 import static android.server.wm.app.Components.TestActivity.COMMAND_NAVIGATE_UP_TO;
20 import static android.server.wm.app.Components.TestActivity.COMMAND_START_ACTIVITIES;
21 import static android.server.wm.app.Components.TestActivity.COMMAND_START_ACTIVITY;
22 import static android.server.wm.app.Components.TestActivity.EXTRA_CONFIG_ASSETS_SEQ;
23 import static android.server.wm.app.Components.TestActivity.EXTRA_FIXED_ORIENTATION;
24 import static android.server.wm.app.Components.TestActivity.EXTRA_INTENT;
25 import static android.server.wm.app.Components.TestActivity.EXTRA_INTENTS;
26 import static android.server.wm.app.Components.TestActivity.EXTRA_NO_IDLE;
27 import static android.server.wm.app.Components.TestActivity.EXTRA_OPTION;
28 import static android.server.wm.app.Components.TestActivity.TEST_ACTIVITY_ACTION_FINISH_SELF;
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/
DKeepClearRectsTests.java80 private TestActivitySession<TestActivity> mTestSession;
101 final Intent intent = new Intent(mContext, TestActivity.class); in testSetPreferKeepClearAttr()
104 final TestActivity activity = mTestSession.getActivity(); in testSetPreferKeepClearAttr()
115 mTestSession.launchTestActivityOnDisplaySync(TestActivity.class, DEFAULT_DISPLAY); in testSetPreferKeepClearSingleView()
116 final TestActivity activity = mTestSession.getActivity(); in testSetPreferKeepClearSingleView()
129 mTestSession.launchTestActivityOnDisplaySync(TestActivity.class, DEFAULT_DISPLAY); in testSetPreferKeepClearTwoViews()
130 final TestActivity activity = mTestSession.getActivity(); in testSetPreferKeepClearTwoViews()
150 mTestSession.launchTestActivityOnDisplaySync(TestActivity.class, DEFAULT_DISPLAY); in testSetMultipleKeepClearRectsSingleView()
151 final TestActivity activity = mTestSession.getActivity(); in testSetMultipleKeepClearRectsSingleView()
163 mTestSession.launchTestActivityOnDisplaySync(TestActivity.class, DEFAULT_DISPLAY); in testSetMultipleKeepClearRectsTwoViews()
[all …]
/cts/tests/tests/car/src/android/car/cts/
DCarInputTest.java127 var intent = new Intent(mContext, TestActivity.class); in testHomeKeyForAnyPassengerMainDisplay_bringsHomeForThePassengerDisplayOnly()
131 try (ActivityScenario<TestActivity> driverActivityScenario = ActivityScenario.launch( in testHomeKeyForAnyPassengerMainDisplay_bringsHomeForThePassengerDisplayOnly()
134 try (ActivityScenario<TestActivity> passengerActivityScenario = in testHomeKeyForAnyPassengerMainDisplay_bringsHomeForThePassengerDisplayOnly()
142 final var passengerActivity = new AtomicReference<TestActivity>(); in testHomeKeyForAnyPassengerMainDisplay_bringsHomeForThePassengerDisplayOnly()
159 ActivityScenario<TestActivity> driverActivityScenario, in doTestHomeKeyForAnyPassengerMainDisplay()
160 ActivityScenario<TestActivity> passengerActivityScenario) { in doTestHomeKeyForAnyPassengerMainDisplay()
184 var intent = new Intent(mContext, TestActivity.class); in testBackKeyForAnyPassengerMainDisplay()
188 try (ActivityScenario<TestActivity> passengerActivityScenario = in testBackKeyForAnyPassengerMainDisplay()
194 final var passengerActivity = new AtomicReference<TestActivity>(); in testBackKeyForAnyPassengerMainDisplay()
217 var intent = new Intent(mContext, TestActivity.class); in testAKeyForAnyPassengerMainDisplay()
[all …]
/cts/tests/tests/car/src/android/car/app/cts/
DCarActivityManagerTest.java82 new ComponentName(mTargetContext, TestActivity.class);
138 TestActivity activity = (TestActivity) mInstrumentation.startActivitySync( in testSetPersistentActivity()
155 activity = (TestActivity) mInstrumentation.startActivitySync( in testSetPersistentActivity()
208 TestActivity activity = (TestActivity) mInstrumentation.startActivitySync( in testMoveRootTaskToDisplay()
220 PollingCheck.waitFor(() -> TestActivity.sInstance != null in testMoveRootTaskToDisplay()
221 && activity != TestActivity.sInstance); in testMoveRootTaskToDisplay()
223 assertThat(TestActivity.sInstance.getDisplay().getDisplayId()) in testMoveRootTaskToDisplay()
234 TestActivity activity = (TestActivity) mInstrumentation.startActivitySync( in testGetVisibleTasks()
239 .filter(t -> t.topActivity.getClassName().equals(TestActivity.class.getName())) in testGetVisibleTasks()
260 TestActivity activity = (TestActivity) mInstrumentation.startActivitySync( in testGetVisibleTasksByDisplayId()
[all …]
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputMethodPickerTest.java44 import android.view.inputmethod.cts.util.TestActivity;
87 TestActivity testActivity = TestActivity.startSync(activity -> { in testInputMethodPicker_hidesUntrustedOverlays()
95 mWmState.waitAndAssertWindowSurfaceShown(TestActivity.OVERLAY_WINDOW_NAME, true); in testInputMethodPicker_hidesUntrustedOverlays()
103 mWmState.waitAndAssertWindowSurfaceShown(TestActivity.OVERLAY_WINDOW_NAME, false); in testInputMethodPicker_hidesUntrustedOverlays()
114 TestActivity testActivity = TestActivity.startSync(activity -> { in testShowInputMethodPicker_noDismissWhenOverlayPopup()
142 TestActivity testActivity = new TestActivity.Starter().withDisplayId(dc.mId) in testShowImePickerOnExternalDisplay()
148 }, TestActivity.class); in testShowImePickerOnExternalDisplay()
/cts/tests/JobScheduler/src/android/jobscheduler/
DTestActivity.java27 public class TestActivity extends Activity { class
28 private static final String TAG = TestActivity.class.getSimpleName();
36 Log.d(TAG, "Finishing test activity: " + TestActivity.class.getCanonicalName());
44 Log.d(TAG, "Started test activity: " + TestActivity.class.getCanonicalName()); in onCreate()
/cts/hostsidetests/tagging/sdk_30/src/android/cts/tagging/sdk30/
DHeapZeroInitMemtagAsyncActivity.java30 setResult(TestActivity.RESULT_TEST_IGNORED); in onCreate()
32 setResult(TestActivity.RESULT_TEST_SUCCESS); in onCreate()
34 setResult(TestActivity.RESULT_TEST_FAILED); in onCreate()
DHeapZeroInitActivity.java30 setResult(TestActivity.RESULT_TEST_IGNORED); in onCreate()
32 setResult(TestActivity.RESULT_TEST_SUCCESS); in onCreate()
34 setResult(TestActivity.RESULT_TEST_FAILED); in onCreate()
/cts/tests/JobSchedulerSharedUid/JobSharedUidTestApp/src/android/jobscheduler/cts/jobtestapp/
DTestActivity.java32 public class TestActivity extends Activity { class
33 private static final String TAG = TestActivity.class.getSimpleName();
45 Log.d(TAG, "Finishing test activity: " + TestActivity.class.getCanonicalName());
62 Log.d(TAG, "Started test activity: " + TestActivity.class.getCanonicalName()); in onCreate()
/cts/tests/JobScheduler/JobTestApp/src/android/jobscheduler/cts/jobtestapp/
DTestActivity.java34 public class TestActivity extends Activity { class
35 private static final String TAG = TestActivity.class.getSimpleName();
45 Log.d(TAG, "Finishing test activity: " + TestActivity.class.getCanonicalName());
62 Log.d(TAG, "Started test activity: " + TestActivity.class.getCanonicalName()); in onCreate()
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DLayoutTests.java102 final TestActivity activity = startActivity(TestActivity.class); in testLayoutAfterRemovingFocus()
120 TestActivity activity, Rect visibleFrameBeforeAddingWindow, int systemUiFlags) in doTestLayoutAfterRemovingFocus()
161 final TestActivity activity = startActivity(TestActivity.class); in testAddingImmersiveWindow()
201 final TestActivity activity = startActivity(TestActivity.class); in testChangingFocusableFlag()
256 final TestActivity activity = startActivity(TestActivity.class); in testSysuiFlagLayoutFullscreen()
278 final TestActivity activity = startActivity(TestActivity.class); in testSysuiFlagLayoutHideNavigation()
307 public static class TestActivity extends FocusableActivity { class in LayoutTests
/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/
DWindowInsetsPolicyTest.java80 public final ActivityTestRule<TestActivity> mTestActivity =
81 new ActivityTestRule<>(TestActivity.class, false /* initialTouchMode */,
103 mTestActivityComponentName = new ComponentName(mContext, TestActivity.class); in setUp()
108 final TestActivity activity = launchAndWait(mTestActivity); in testWindowInsets_dispatched()
118 final TestActivity activity = launchAndWait(mTestActivity); in testWindowInsets_root()
135 final TestActivity activity = launchAndWait(mTestActivity); in testForcedConsumedTopInsets()
162 final TestActivity fullscreenActivity = launchAndWait(mFullscreenTestActivity); in testForcedConsumedTopInsets()
169 final TestActivity fullscreenWmFlagsActivity = in testForcedConsumedTopInsets()
181 final TestActivity fullscreenActivity = launchAndWait(mFullscreenTestActivity); in testNonAutomotiveFullScreenNotBlockedBySystemComponents()
199 TestActivity immersiveActivity = launchAndWait(mImmersiveTestActivity); in testImmersiveFullscreenHidesSystemBars()
[all …]
DWindowInsetsControllerTests.java141 final TestActivity activity = startActivityInWindowingModeFullScreen(TestActivity.class); in testHide()
161 final TestActivity activity = startActivityInWindowingModeFullScreen(TestActivity.class); in testShow()
210 final TestActivity activity = startActivityInWindowingModeFullScreen(TestActivity.class); in testTopAppHidesStatusBarByMethod()
221 final TestActivity activity = startActivity(TestActivity.class); in testTopAppHidesStatusBarByWindowFlag()
232 final TestActivity activity = startActivity(TestActivity.class); in testTopAppHidesStatusBarBySystemUiFlag()
246 final TestActivity activity = startActivityInWindowingModeFullScreen(TestActivity.class); in testImeShowAndHide()
269 final TestActivity activity = startActivityInWindowingModeFullScreen(TestActivity.class); in testImeForceShowingNavigationBar()
312 final TestActivity activity = startActivity(TestActivity.class); in testSetSystemBarsAppearance()
350 final TestActivity activity = startActivityInWindowingModeFullScreen(TestActivity.class); in testSetSystemBarsBehavior_default()
380 final TestActivity activity = startActivity(TestActivity.class); in testSetSystemBarsBehavior_showTransientBarsBySwipe()
[all …]
DWindowInsetsLayoutTests.java62 final TestActivity activity = in testSetFitInsetsTypes()
63 startActivityInWindowingMode(TestActivity.class, WINDOWING_MODE_FULLSCREEN); in testSetFitInsetsTypes()
78 private void testSetFitInsetsTypesInner(int types, TestActivity activity) { in testSetFitInsetsTypesInner()
98 final TestActivity activity = in testSetFitInsetsSides()
99 startActivityInWindowingMode(TestActivity.class, WINDOWING_MODE_FULLSCREEN); in testSetFitInsetsSides()
115 private void testSetFitInsetsSidesInner(int sides, TestActivity activity) { in testSetFitInsetsSidesInner()
147 final TestActivity activity = in testSetFitInsetsIgnoringVisibility()
148 startActivityInWindowingMode(TestActivity.class, WINDOWING_MODE_FULLSCREEN); in testSetFitInsetsIgnoringVisibility()
195 public static class TestActivity extends FocusableActivity { class in WindowInsetsLayoutTests
/cts/tests/framework/base/windowmanager/appSecondUid/src/android/server/wm/second/
DTestActivityWithSameAffinityDifferentUid.java19 import android.server.wm.app.TestActivity;
21 public class TestActivityWithSameAffinityDifferentUid extends TestActivity { }
/cts/tests/framework/base/windowmanager/appDeskResources/src/android/server/wm/deskresources/
DDeskResourcesActivity.java19 import android.server.wm.app.TestActivity;
21 public class DeskResourcesActivity extends TestActivity {
/cts/tests/framework/base/windowmanager/appBShareUid/src/android/server/wm/shareuid/b/
DTestActivityWithSameAffinityShareUid.java19 import android.server.wm.app.TestActivity;
21 public class TestActivityWithSameAffinityShareUid extends TestActivity { }
/cts/tests/framework/base/windowmanager/appAShareUid/src/android/server/wm/shareuid/a/
DTestActivityWithSameAffinity.java19 import android.server.wm.app.TestActivity;
21 public class TestActivityWithSameAffinity extends TestActivity { }
DTestActivityWithSameAffinitySameApp.java19 import android.server.wm.app.TestActivity;
21 public class TestActivityWithSameAffinitySameApp extends TestActivity { }

1234567