Home
last modified time | relevance | path

Searched refs:mActivityRule (Results 1 – 25 of 71) sorted by relevance

123

/frameworks/base/apct-tests/perftests/autofill/src/android/view/autofill/
DLoginTest.java64 mActivityRule.runOnUiThread(() -> { in testFocus_noService()
82 mActivityRule.runOnUiThread(() -> mUsername.requestFocus()); in testFocus_serviceDoesNotAutofill()
86 mActivityRule.runOnUiThread(() -> mPassword.requestFocus()); in testFocus_serviceDoesNotAutofill()
90 mActivityRule.runOnUiThread(() -> { in testFocus_serviceDoesNotAutofill()
115 mActivityRule.runOnUiThread(() -> mUsername.requestFocus()); in testFocus_autofillBothFields()
121 mActivityRule.runOnUiThread(() -> mPassword.requestFocus()); in testFocus_autofillBothFields()
131 mActivityRule.runOnUiThread(() -> mUsername.requestFocus()); in testFocus_autofillBothFields()
136 mActivityRule.runOnUiThread(() -> mPassword.requestFocus()); in testFocus_autofillBothFields()
169 mActivityRule.runOnUiThread(() -> mUsername.requestFocus()); in testFocus_autofillUsernameOnly()
175 mActivityRule.runOnUiThread(() -> mPassword.requestFocus()); in testFocus_autofillUsernameOnly()
[all …]
DAbstractAutofillPerfTestCase.java53 protected ActivityTestRule<PerfTestActivity> mActivityRule = field in AbstractAutofillPerfTestCase
61 .around(mActivityRule);
95 mActivityRule.runOnUiThread(() -> { in prepareActivity()
100 PerfTestActivity activity = mActivityRule.getActivity(); in prepareActivity()
/frameworks/base/tests/CtsSurfaceControlTestsStaging/src/main/java/android/view/surfacecontroltests/
DSurfaceControlTest.java44 public ActivityTestRule<GraphicsActivity> mActivityRule = field in SurfaceControlTest
52 GraphicsActivity activity = mActivityRule.getActivity(); in setUp()
87 GraphicsActivity activity = mActivityRule.getActivity(); in testSurfaceControlFrameRateCompatibilityGte()
93 GraphicsActivity activity = mActivityRule.getActivity(); in testSurfaceControlFrameRateCategoryHigh()
99 GraphicsActivity activity = mActivityRule.getActivity(); in testSurfaceControlFrameRateCategoryHighHint()
105 GraphicsActivity activity = mActivityRule.getActivity(); in testSurfaceControlFrameRateCategoryNormal()
111 GraphicsActivity activity = mActivityRule.getActivity(); in testSurfaceControlFrameRateCategoryLow()
117 GraphicsActivity activity = mActivityRule.getActivity(); in testSurfaceControlFrameRateCategoryNoPreference()
123 GraphicsActivity activity = mActivityRule.getActivity(); in testSurfaceControlFrameRateCategoryDefault()
130 GraphicsActivity activity = mActivityRule.getActivity(); in testSurfaceControlFrameRateSelectionStrategyPropagate()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DViewFrameRateTest.java74 public ActivityTestRule<ViewCaptureTestActivity> mActivityRule = new ActivityTestRule<>( field in ViewFrameRateTest
88 mActivity = mActivityRule.getActivity(); in setUp()
89 mActivityRule.runOnUiThread(() -> { in setUp()
109 mActivityRule.runOnUiThread(() -> { in frameRateChangesWhenContentMoves()
137 mActivityRule.runOnUiThread(() -> { in frameBoostDisable()
150 mActivityRule.runOnUiThread(() -> { in frameBoostDisable()
154 mActivityRule.runOnUiThread(() -> { in frameBoostDisable()
168 mActivityRule.runOnUiThread(() -> { in lowVelocity60()
175 mActivityRule.runOnUiThread(() -> { in lowVelocity60()
192 mActivityRule.runOnUiThread(() -> { in velocityWithChildMovement()
[all …]
DViewInputConnectionTest.java78 public ActivityTestRule<ViewInputConnectionTestActivity> mActivityRule = field in ViewInputConnectionTest
88 mActivity = mActivityRule.getActivity(); in before()
100 mActivityRule.runOnUiThread(() -> { in testInputConnectionCallbacks()
107 mActivityRule.runOnUiThread(editText1::requestFocus); in testInputConnectionCallbacks()
114 mActivityRule.runOnUiThread(() -> mImm.showSoftInput(editText1, 0)); in testInputConnectionCallbacks()
116 mActivityRule.runOnUiThread(() -> { in testInputConnectionCallbacks()
127 mActivityRule.runOnUiThread(editText2::requestFocus); in testInputConnectionCallbacks()
135 mActivityRule.runOnUiThread(() -> mImm.showSoftInput(editText2, 0)); in testInputConnectionCallbacks()
137 mActivityRule.runOnUiThread(() -> { in testInputConnectionCallbacks()
154 mActivityRule.runOnUiThread(() -> { in testInputConnectionCallbacks_nullInputConnection()
[all …]
DViewInvalidateTest.java55 public ActivityTestRule<Activity> mActivityRule = new ActivityTestRule<>(Activity.class); field in ViewInvalidateTest
66 mActivityRule.runOnUiThread(() -> { in setup()
72 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mParent, () -> { in setup()
93 return mActivityRule.getActivity(); in getActivity()
165 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mParent, () -> { in testInvalidate_simple()
178 mActivityRule.runOnUiThread(() -> { in testInvalidate_simple()
225 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mParent, () -> { in testInvalidateChild_childHardwareLayer()
230 mActivityRule.runOnUiThread(() -> { in testInvalidateChild_childHardwareLayer()
245 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mParent, () -> { in testInvalidateChild_childSoftwareLayer()
250 mActivityRule.runOnUiThread(() -> { in testInvalidateChild_childSoftwareLayer()
/frameworks/base/core/tests/coretests/src/android/animation/
DValueAnimatorTests.java65 private ActivityTestRule<BasicAnimatorActivity> mActivityRule = field in ValueAnimatorTests
92 mActivityRule.runOnUiThread(new Runnable() { in testStartDelay()
106 mActivityRule.runOnUiThread(new Runnable() { in testStartDelay()
115 mActivityRule.runOnUiThread(new Runnable() { in testStartDelay()
138 mActivityRule.runOnUiThread(new Runnable() { in testListenerCallbacks()
150 mActivityRule.runOnUiThread(new Runnable() { in testListenerCallbacks()
161 mActivityRule.runOnUiThread(new Runnable() { in testListenerCallbacks()
176 mActivityRule.runOnUiThread(new Runnable() { in testListenerCallbacks()
202 mActivityRule.runOnUiThread(new Runnable() { in testIsStarted()
216 mActivityRule.runOnUiThread(new Runnable() { in testIsStarted()
[all …]
DEventsTest.java52 public final ActivityTestRule<BasicAnimatorActivity> mActivityRule = field in EventsTest
280 mActivityRule.runOnUiThread(() -> { in testStartCancel()
301 mActivityRule.runOnUiThread(() -> { in testStartEnd()
322 mActivityRule.runOnUiThread(() -> { in testStartDelayedCancel()
343 mActivityRule.runOnUiThread(() -> { in testStartDelayedEnd()
363 mActivityRule.runOnUiThread(() -> { in testPlayingCancel()
384 mActivityRule.runOnUiThread(() -> { in testPlayingEnd()
406 mActivityRule.runOnUiThread(() -> { in testPlayingDelayedCancel()
428 mActivityRule.runOnUiThread(() -> { in testPlayingDelayedEnd()
449 mActivityRule.runOnUiThread(() -> { in testPlayingDelayedCancelMidDelay()
[all …]
DViewPropertyAnimatorTest.java54 public final ActivityTestRule<BasicAnimatorActivity> mActivityRule = field in ViewPropertyAnimatorTest
139 final BasicAnimatorActivity activity = mActivityRule.getActivity(); in setUp()
143 mActivityRule.runOnUiThread(() -> { in setUp()
209 mActivityRule.runOnUiThread(() -> { in testStartCancel()
230 mActivityRule.runOnUiThread(() -> { in testStartDelayedCancel()
250 mActivityRule.runOnUiThread(() -> { in testPlayingCancel()
272 mActivityRule.runOnUiThread(() -> { in testPlayingDelayedCancel()
293 mActivityRule.runOnUiThread(() -> { in testPlayingDelayedCancelMidDelay()
318 mActivityRule.runOnUiThread(() -> { in testStartDoubleCancel()
340 mActivityRule.runOnUiThread(() -> { in testStartDelayedDoubleCancel()
DAnimatorSetActivityTest.java47 public final ActivityTestRule<AnimatorSetActivity> mActivityRule = field in AnimatorSetActivityTest
83 mActivity = mActivityRule.getActivity(); in setUp()
257 mActivityRule.runOnUiThread(() -> {
277 mActivityRule.runOnUiThread(s::start);
290 mActivityRule.runOnUiThread(s::start);
304 mActivityRule.runOnUiThread(() -> {
313 mActivityRule.runOnUiThread(() -> {
351 mActivityRule.runOnUiThread(() -> { in testStart()
404 mActivityRule.runOnUiThread(s::start); in testCancel()
407 mActivityRule.runOnUiThread(() -> { in testCancel()
[all …]
DAutoCancelTest.java35 public final ActivityTestRule<BasicAnimatorActivity> mActivityRule = field in AutoCancelTest
133 mActivityRule.runOnUiThread(() -> { in testAutoCancel()
147 mActivityRule.runOnUiThread(() -> { in testAutoCancelDelayed()
161 mActivityRule.runOnUiThread(() -> { in testAutoCancelTestLater()
175 mActivityRule.runOnUiThread(() -> { in testAutoCancelDelayedTestLater()
/frameworks/base/core/tests/coretests/src/android/widget/
DHorizontalScrollViewFunctionalTest.java54 public ActivityTestRule<HorizontalScrollViewActivity> mActivityRule = new ActivityTestRule<>( field in HorizontalScrollViewFunctionalTest
63 mActivity = mActivityRule.getActivity(); in setUp()
73 mActivityRule.runOnUiThread(() -> mHorizontalScrollView.scrollTo(100, 0)); in testScrollAfterFlingLeft()
74 mActivityRule.runOnUiThread(() -> mHorizontalScrollView.fling(-10000)); in testScrollAfterFlingLeft()
76 mActivityRule.runOnUiThread(() -> {}); // let the absorb takes effect -- least one frame in testScrollAfterFlingLeft()
87 mActivityRule.runOnUiThread(() -> mHorizontalScrollView.scrollTo(maxScroll - 100, 0)); in testScrollAfterFlingRight()
88 mActivityRule.runOnUiThread(() -> mHorizontalScrollView.fling(10000)); in testScrollAfterFlingRight()
90 mActivityRule.runOnUiThread(() -> {}); // let the absorb takes effect -- at least one frame in testScrollAfterFlingRight()
98 mActivityRule.runOnUiThread(() -> { in testSetVelocity()
106 mActivityRule.runOnUiThread(() -> { in testSetVelocity()
[all …]
DScrollViewFunctionalTest.java55 public ActivityTestRule<ScrollViewActivity> mActivityRule = new ActivityTestRule<>( field in ScrollViewFunctionalTest
64 mActivity = mActivityRule.getActivity(); in setUp()
73 mActivityRule.runOnUiThread(() -> mScrollView.scrollTo(0, 100)); in testScrollAfterFlingTop()
74 mActivityRule.runOnUiThread(() -> mScrollView.fling(-10000)); in testScrollAfterFlingTop()
76 mActivityRule.runOnUiThread(() -> {}); // let the absorb takes effect -- least one frame in testScrollAfterFlingTop()
87 mActivityRule.runOnUiThread(() -> mScrollView.scrollTo(0, maxScroll - 100)); in testScrollAfterFlingBottom()
88 mActivityRule.runOnUiThread(() -> mScrollView.fling(10000)); in testScrollAfterFlingBottom()
90 mActivityRule.runOnUiThread(() -> {}); // let the absorb takes effect -- least one frame in testScrollAfterFlingBottom()
98 mActivityRule.runOnUiThread(() -> { in testSetVelocity()
106 mActivityRule.runOnUiThread(() -> { in testSetVelocity()
[all …]
DTextViewProcessTextTest.java45 public ActivityTestRule<TextViewActivity> mActivityRule = new ActivityTestRule<>( field in TextViewProcessTextTest
54 mActivity = mActivityRule.getActivity(); in before()
59 mActivityRule.runOnUiThread(() -> mTextView = new TextView(mActivity)); in testProcessTextActivityResultNonEditable()
68 mActivityRule.runOnUiThread(() -> { in testProcessTextActivityResultNonEditable()
79 mActivityRule.runOnUiThread(() -> mTextView = new EditText(mActivity)); in testProcessTextActivityResultCancel()
95 mActivityRule.runOnUiThread(() -> mTextView = new EditText(mActivity)); in testProcessTextActivityNoData()
DAbsListViewFunctionalTest.java62 public ActivityTestRule<AbsListViewActivity> mActivityRule = new ActivityTestRule<>( field in AbsListViewFunctionalTest
71 mActivity = mActivityRule.getActivity(); in setUp()
82 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMyListView, in testLsitViewSetVelocity()
84 mActivityRule.runOnUiThread(() -> { in testLsitViewSetVelocity()
91 mActivityRule.runOnUiThread(() -> { in testLsitViewSetVelocity()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/appclips/
DAppClipsTrampolineActivityTest.java116 public final ActivityTestRule<AppClipsTrampolineActivityTestable> mActivityRule = field in AppClipsTrampolineActivityTest
142 mActivityRule.finishActivity(); in tearDown()
172 mActivityRule.launchActivity(mActivityIntent); in queryService_returnedFailed_shouldFinishWithFailed()
174 ActivityResult actualResult = mActivityRule.getActivityResult(); in queryService_returnedFailed_shouldFinishWithFailed()
178 assertThat(mActivityRule.getActivity().isFinishing()).isTrue(); in queryService_returnedFailed_shouldFinishWithFailed()
186 mActivityRule.launchActivity(mActivityIntent); in queryService_returnedWindowModeUnsupported_shouldFinishWithWindowModeUnsupported()
188 ActivityResult actualResult = mActivityRule.getActivityResult(); in queryService_returnedWindowModeUnsupported_shouldFinishWithWindowModeUnsupported()
192 assertThat(mActivityRule.getActivity().isFinishing()).isTrue(); in queryService_returnedWindowModeUnsupported_shouldFinishWithWindowModeUnsupported()
200 mActivityRule.launchActivity(mActivityIntent); in queryService_returnedScreenshotBlocked_shouldFinishWithBlockedByAdmin()
202 ActivityResult actualResult = mActivityRule.getActivityResult(); in queryService_returnedScreenshotBlocked_shouldFinishWithBlockedByAdmin()
[all …]
/frameworks/base/core/tests/coretests/src/android/window/
DWindowMetricsHelperTest.java59 public ActivityTestRule<TestActivity> mActivityRule = field in WindowMetricsHelperTest
69 mActivityRule.runOnUiThread(() -> { in testGetBoundsExcludingNavigationBarAndCutoutMatchesDisplayGetSize()
70 Activity activity = mActivityRule.getActivity(); in testGetBoundsExcludingNavigationBarAndCutoutMatchesDisplayGetSize()
86 mActivityRule.runOnUiThread(() -> { in testGetBoundsExcludingNavigationBarAndCutout()
87 Activity activity = mActivityRule.getActivity(); in testGetBoundsExcludingNavigationBarAndCutout()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DIntentForwarderActivityTest.java129 public ActivityTestRule<IntentForwarderWrapperActivity> mActivityRule = field in IntentForwarderActivityTest
171 IntentForwarderWrapperActivity activity = mActivityRule.launchActivity(intent); in forwardToManagedProfile_canForward_sendIntent()
210 IntentForwarderWrapperActivity activity = mActivityRule.launchActivity(intent); in forwardToManagedProfile_cannotForward_sendIntent()
231 IntentForwarderWrapperActivity activity = mActivityRule.launchActivity(intent); in forwardToManagedProfile_noManagedProfile_sendIntent()
253 IntentForwarderWrapperActivity activity = mActivityRule.launchActivity(intent); in launchInSameProfile_chooserIntent()
290 IntentForwarderWrapperActivity activity = mActivityRule.launchActivity(intent); in forwardToManagedProfile_canForward_selectorIntent()
326 mActivityRule.launchActivity(intent); in shouldSkipDisclosure_notWhitelisted()
341 mActivityRule.launchActivity(intent); in shouldSkipDisclosure_withResolverActivity()
353 mActivityRule.launchActivity(intent); in shouldSkipDisclosure_callIntent_call()
365 mActivityRule.launchActivity(intent); in shouldSkipDisclosure_callIntent_callPrivileged()
[all …]
DResolverActivityTest.java91 public ActivityTestRule<ResolverWrapperActivity> mActivityRule = field in ResolverActivityTest
112 final ResolverWrapperActivity activity = mActivityRule.launchActivity(sendIntent); in twoOptionsAndUserSelectsOne()
146 final ResolverWrapperActivity activity = mActivityRule.launchActivity(sendIntent); in setMaxHeight()
192 final ResolverWrapperActivity activity = mActivityRule.launchActivity(sendIntent); in setShowAtTopToTrue()
227 final ResolverWrapperActivity activity = mActivityRule.launchActivity(sendIntent); in hasLastChosenActivity()
259 final ResolverWrapperActivity activity = mActivityRule.launchActivity(sendIntent); in hasOtherProfileOneOption()
299 final ResolverWrapperActivity activity = mActivityRule.launchActivity(sendIntent); in hasOtherProfileTwoOptionsAndUserSelectsOne()
346 final ResolverWrapperActivity activity = mActivityRule.launchActivity(sendIntent); in hasLastChosenActivityAndOtherProfile()
424 mActivityRule.launchActivity(sendIntent); in testWorkTab_displayedWhenWorkProfileUserAvailable()
436 mActivityRule.launchActivity(sendIntent); in testWorkTab_hiddenWhenWorkProfileUserNotAvailable()
[all …]
DChooserActivityTest.java212 public ActivityTestRule<ChooserActivity> mActivityRule = field in ChooserActivityTest
275 final IChooserWrapper activity = (IChooserWrapper) mActivityRule.launchActivity( in customTitle()
299 mActivityRule.launchActivity(Intent.createChooser(sendIntent, "chooser test")); in customTitleIgnoredForSendIntents()
320 mActivityRule.launchActivity(Intent.createChooser(sendIntent, null)); in emptyTitle()
341 mActivityRule.launchActivity(Intent.createChooser(sendIntent, null)); in emptyPreviewTitleAndThumbnail()
365 mActivityRule.launchActivity(Intent.createChooser(sendIntent, null)); in visiblePreviewTitleWithoutThumbnail()
392 mActivityRule.launchActivity(Intent.createChooser(sendIntent, null)); in visiblePreviewTitleWithInvalidThumbnail()
418 mActivityRule.launchActivity(Intent.createChooser(sendIntent, null)); in visiblePreviewTitleAndThumbnail()
442 mActivityRule.launchActivity(Intent.createChooser(sendIntent, null)); in twoOptionsAndUserSelectsOne()
497 mActivityRule.launchActivity(Intent.createChooser(sendIntent, null)); in fourOptionsStackedIntoOneTarget()
[all …]
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/
DScreenRecordTestBase.kt36 var mActivityRule = ActivityTestRule(MainActivity::class.java) variable
43 mActivity = mActivityRule.launchActivity(Intent()) in setup()
56 mActivityRule.finishActivity() in teardown()
60 mActivityRule.runOnUiThread { in runOnUiThread()
/frameworks/base/core/tests/coretests/src/android/app/
DLoaderLifecycleTest.java42 public ActivityTestRule<EmptyActivity> mActivityRule = field in LoaderLifecycleTest
47 mActivityRule.runOnUiThread(() -> { in loaderIdentityTest()
50 new TestFragmentHostCallback(mActivityRule.getActivity(), h, 0)); in loaderIdentityTest()
101 new TestFragmentHostCallback(mActivityRule.getActivity(), h, 0)); in loaderIdentityTest()
140 mActivityRule.runOnUiThread(() -> { in backStackLoaderIdentityTest()
143 new TestFragmentHostCallback(mActivityRule.getActivity(), h, 0); in backStackLoaderIdentityTest()
183 new TestFragmentHostCallback(mActivityRule.getActivity(), h, 0); in backStackLoaderIdentityTest()
/frameworks/base/core/tests/coretests/src/com/android/internal/policy/
DDecorContextTest.java60 public ActivityTestRule<EmptyActivity> mActivityRule = field in DecorContextTest
103 mActivityRule.runOnUiThread(() -> { in testGetWindowManagerFromVisualDecorContext()
104 Activity activity = mActivityRule.getActivity(); in testGetWindowManagerFromVisualDecorContext()
118 mActivityRule.runOnUiThread(() -> { in testIsUiContextFromVisualDecorContext()
119 Activity activity = mActivityRule.getActivity(); in testIsUiContextFromVisualDecorContext()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityRecordInputSinkTests.java69 public final ActivityScenarioRule<TestActivity> mActivityRule = field in ActivityRecordInputSinkTests
96 mActivityRule.getScenario().onActivity(a -> { in testSimpleButtonPress()
108 mActivityRule.getScenario().onActivity(a -> { in testSimpleButtonPress_withOverlay()
121 mActivityRule.getScenario().onActivity(a -> { in testSimpleButtonPress_withOverlayDisableInputSink()
135 mActivityRule.getScenario().onActivity(a -> { in testSimpleButtonPress_withOverlayDisableInputSink_flagDisabled()
176 mActivityRule.getScenario().onActivity(a -> { in injectTapOnButton()
/frameworks/base/apct-tests/perftests/windowmanager/src/android/wm/
DInternalWindowOperationPerfTest.java50 public final PerfTestActivityRule mActivityRule = new PerfTestActivityRule(); field in InternalWindowOperationPerfTest
89 mActivityRule.launchActivity(); in testLaunchAndFinishActivity()
90 mActivityRule.finishActivity(); in testLaunchAndFinishActivity()
91 mActivityRule.waitForIdleSync(Stage.DESTROYED); in testLaunchAndFinishActivity()

123