Searched refs:mTestActivity (Results 1 – 7 of 7) sorted by relevance
42 public final ActivityTestRule<CloseOnOutsideTestActivity> mTestActivity = field in CloseOnOutsideTests52 mTestActivity.getActivity().setFinishOnTouchOutside(true); in finishTrue()58 mTestActivity.getActivity().setFinishOnTouchOutside(false); in finishFalse()65 mTestActivity.getActivity().getResources().getDisplayMetrics(); in touchAndAssert()72 instrumentation.runOnMainSync(() -> assertFalse(mTestActivity.getActivity().isFinishing())); in touchAndAssert()77 () -> assertEquals(shouldBeFinishing, mTestActivity.getActivity().isFinishing())); in touchAndAssert()
70 private final ActivityTestRule<TestActivity> mTestActivity = field in EnsureBarContrastTest78 .around(mTestActivity);94 TestActivity activity = launchAndWait(mTestActivity, lightBars, true /* ensureContrast */); in runTestEnsureContrast()96 if (isAssumptionViolated(() -> bar.checkAssumptions(mTestActivity))) { in runTestEnsureContrast()130 TestActivity activity = launchAndWait(mTestActivity, lightBars, false /* ensureContrast */); in runTestDontEnsureContrast()
73 public final ActivityTestRule<TestActivity> mTestActivity = field in WindowInsetsPolicyTest96 final TestActivity activity = launchAndWait(mTestActivity); in testWindowInsets_dispatched()106 final TestActivity activity = launchAndWait(mTestActivity); in testWindowInsets_root()132 final TestActivity activity = launchAndWait(mTestActivity); in testForcedConsumedTopInsets()
45 private TestLocalInteractionActivity mTestActivity; field in LocalVoiceInteractionTest62 mTestActivity = mActivityTestRule.launchActivity(intent); in startTestActivity()68 .that(mTestActivity.isLocalVoiceInteractionSupported()).isTrue(); in testLifecycle()69 mTestActivity.startLocalInteraction(mLatchStart); in testLifecycle()74 mTestActivity.stopLocalInteraction(mLatchStop); in testLifecycle()79 mTestActivity.finish(); in testLifecycle()
50 private TestStartActivity mTestActivity; field in VoiceInteractionTest85 mTestActivity = mActivityTestRule.launchActivity(intent); in startTestActivity()111 mTestActivity.finish(); in testAll()
83 private TestStartActivity mTestActivity; field in AssistTestBase141 mTestActivity.finish(); in tearDown()184 mTestActivity.startActivity(intent); in startTest()203 mTestActivity.startActivity(intent); in start3pApp()217 mTestActivity = getActivity(); in startTestActivity()270 Display display = mTestActivity.getWindowManager().getDefaultDisplay(); in addDimensionsToIntent()323 mTestActivity.scrollText(scrollX, scrollY, scrollTextView, scrollScrollView); in scrollTestApp()350 mView = mTestActivity.findViewById(android.R.id.content).getRootView(); in verifyAssistStructure()412 parentViewId = mTestActivity.getResources().getResourceEntryName(parentView.getId()); in traverseViewAndStructure()537 mTestActivity.getResources().getResourceEntryName(viewId), in verifyViewProperties()
359 private T mTestActivity; field in ActivityManagerTestBase.TestActivitySession376 mTestActivity = (T) monitor.waitForActivityWithTimeout(ACTIVITY_LAUNCH_TIMEOUT); in launchTestActivityOnDisplaySync()377 assertNotNull(mTestActivity); in launchTestActivityOnDisplaySync()379 final ComponentName testActivityName = mTestActivity.getComponentName(); in launchTestActivityOnDisplaySync()386 if (mTestActivity != null) { in finishCurrentActivityNoWait()387 mTestActivity.finishAndRemoveTask(); in finishCurrentActivityNoWait()388 mTestActivity = null; in finishCurrentActivityNoWait()415 return mTestActivity; in getActivity()420 if (mTestActivity != null && mFinishAfterClose) { in close()421 mTestActivity.finishAndRemoveTask(); in close()