Home
last modified time | relevance | path

Searched refs:mTestActivity (Results 1 – 7 of 7) sorted by relevance

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DCloseOnOutsideTests.java42 public final ActivityTestRule<CloseOnOutsideTestActivity> mTestActivity = field in CloseOnOutsideTests
52 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()
DEnsureBarContrastTest.java70 private final ActivityTestRule<TestActivity> mTestActivity = field in EnsureBarContrastTest
78 .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()
DWindowInsetsPolicyTest.java73 public final ActivityTestRule<TestActivity> mTestActivity = field in WindowInsetsPolicyTest
96 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()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DLocalVoiceInteractionTest.java45 private TestLocalInteractionActivity mTestActivity; field in LocalVoiceInteractionTest
62 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()
DVoiceInteractionTest.java50 private TestStartActivity mTestActivity; field in VoiceInteractionTest
85 mTestActivity = mActivityTestRule.launchActivity(intent); in startTestActivity()
111 mTestActivity.finish(); in testAll()
/cts/tests/tests/assist/src/android/assist/cts/
DAssistTestBase.java83 private TestStartActivity mTestActivity; field in AssistTestBase
141 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()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityManagerTestBase.java359 private T mTestActivity; field in ActivityManagerTestBase.TestActivitySession
376 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()