Home
last modified time | relevance | path

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

/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DCloseOnOutsideTests.java53 private CloseOnOutsideTestActivity mTestActivity; field in CloseOnOutsideTests
58 mScenarioRule.getScenario().onActivity(activity -> mTestActivity = activity); in setup()
68 mTestActivity.setFinishOnTouchOutside(true); in finishTrue()
74 mTestActivity.setFinishOnTouchOutside(false); in finishFalse()
81 mTestActivity.getResources().getDisplayMetrics(); in touchAndAssert()
83 mTestActivity.getWindowManager().getCurrentWindowMetrics(); in touchAndAssert()
103 instrumentation.runOnMainSync(() -> mTestActivity.setupWindowSize()); in touchAndAssert()
109 assertFalse(mTestActivity.isFinishing()); in touchAndAssert()
110 mTestActivity.dispatchTouchEvent( in touchAndAssert()
112 mTestActivity.dispatchTouchEvent( in touchAndAssert()
[all …]
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/app/
DTaskInfoHelperTest.java66 private TaskInfoTestActivity mTestActivity = null; field in TaskInfoHelperTest
78 mTestActivity = launchTestActivity(); in setUp()
83 if (mTestActivity != null) { in tearDown()
84 mTestActivity.finish(); in tearDown()
91 int taskId = mTestActivity.getTaskId(); in testDisplayIdAndUserId()
96 assertThat(TaskInfoHelper.getDisplayId(taskInfo)).isEqualTo(mTestActivity.getDisplayId()); in testDisplayIdAndUserId()
97 assertThat(TaskInfoHelper.getUserId(taskInfo)).isEqualTo(mTestActivity.getUserId()); in testDisplayIdAndUserId()
103 int taskId = mTestActivity.getTaskId(); in testTaskVisibility()
107 assertThat(TaskInfoHelper.isVisible(taskInfo)).isEqualTo(mTestActivity.isVisible()); in testTaskVisibility()
121 TaskInfo taskInfo = getTaskInfo(mTestActivity.getTaskId()); in testToString()
[all …]
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/view/
DSurfaceControlHelperTest.java57 private TestActivity mTestActivity; field in SurfaceControlHelperTest
61 if (mTestActivity != null) { in tearDown()
62 mTestActivity.finishAndRemoveTask(); in tearDown()
63 mTestActivity.waitForDestroyed(); in tearDown()
64 mTestActivity = null; in tearDown()
86 mTestActivity = launchTestActivity(TestActivity.class); in testGetSurfaceControl()
87 SurfaceControl surface = SurfaceControlHelper.getSurfaceControl(mTestActivity); in testGetSurfaceControl()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/
DActivityEmbeddingPropertyTests.java44 private Activity mTestActivity; field in ActivityEmbeddingPropertyTests
51 mTestActivity = startFullScreenActivityNewTask( in setUp()
53 mPackageManager = mTestActivity.getPackageManager(); in setUp()
67 mTestActivity.getApplicationContext().getPackageName()); in getProperty()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DVirtualDeviceTestCase.java54 windowManagerStateHelper.waitForAppTransitionIdleOnDisplay(mTestActivity.getDisplayId()); in onSetUp()
60 if (mTestActivity != null) { in onTearDown()
61 mTestActivity.finish(); in onTearDown()
DInputTestCase.java80 protected InputCtsActivity mTestActivity; field in InputTestCase
93 .onActivity(activity -> mTestActivity = activity); in setUp()
94 mTestActivity.clearUnhandleKeyCode(); in setUp()
95 mTestActivity.setInputCallback(mInputListener); in setUp()
96 mDecorView = mTestActivity.getWindow().getDecorView(); in setUp()
99 PollingCheck.waitFor(mTestActivity::hasWindowFocus); in setUp()
101 mTestActivity.hasWindowFocus()); in setUp()
416 mTestActivity.setConsumeGenericMotionEvents(enable); in setConsumeGenericMotionEvents()
453 mTestActivity.setPointerCaptureCallback(hasCapture -> { in ensurePointerCaptureState()
458 mTestActivity.runOnUiThread(enable ? mDecorView::requestPointerCapture in ensurePointerCaptureState()
[all …]
DVirtualDeviceMirrorDisplayTest.java89 mDisplayWidth = mTestActivity.getDisplay().getMode().getPhysicalWidth(); in onSetUp()
90 mDisplayHeight = mTestActivity.getDisplay().getMode().getPhysicalHeight(); in onSetUp()
91 int rotation = mTestActivity.getDisplay().getRotation(); in onSetUp()
107 windowManagerStateHelper.waitForAppTransitionIdleOnDisplay(mTestActivity.getDisplayId()); in onSetUp()
111 mTestActivity.getWindow().getDecorView().getLocationOnScreen(location); in onSetUp()
253 mTestActivity.getWindow().getDecorView().requestUnbufferedDispatch( in virtualTouchscreen_touchEvent()
393 mTestActivity.getWindow().getDecorView().requestUnbufferedDispatch( in virtualStylus_touchEvent()
DUsbVoiceCommandTest.java93 if (!info.activityInfo.packageName.equals(mTestActivity.getPackageName())) { in addExcludedPackages()
145 new ComponentName(mTestActivity.getPackageName(), in testVoiceAssistantKey()
DRazerRaijuMobileBluetoothTest.java55 mTestActivity.addUnhandleKeyCode(KeyEvent.KEYCODE_BUTTON_MODE); in testHomeKey()
DVirtualTouchscreenTest.java86 mTestActivity.getWindow().getDecorView().requestUnbufferedDispatch(SOURCE_TOUCHSCREEN); in sendTouchEvent()
DVirtualStylusTest.java60 mTestActivity.getWindow().getDecorView().requestUnbufferedDispatch( in onSetUpVirtualInputDevice()
/cts/tests/tests/car/src/android/car/cluster/cts/
DClusterHomeManagerTest.java91 private TestActivity mTestActivity; field in ClusterHomeManagerTest
111 if (mTestActivity != null) { in tearDown()
112 mTestActivity.finishAndRemoveTask(); in tearDown()
113 mTestActivity.waitForDestroyed(); in tearDown()
114 mTestActivity = null; in tearDown()
139 mTestActivity = (TestActivity) mInstrumentation.startActivitySync( in testStartVisibilityMonitoring()
156 mTestActivity.getMainExecutor().execute(() -> { in testStartVisibilityMonitoring()
158 mTestActivity.getWindow().getDecorView().getWindowInsetsController(); in testStartVisibilityMonitoring()
/cts/tests/tests/car/src/android/car/app/cts/
DCarActivityManagerTest.java81 private final ComponentName mTestActivity = field in CarActivityManagerTest
131 int ret = mCarActivityManager.setPersistentActivity(mTestActivity, in testSetPersistentActivity()
136 Intent startIntent = Intent.makeMainActivity(mTestActivity) in testSetPersistentActivity()
150 ret = mCarActivityManager.setPersistentActivity(mTestActivity, in testSetPersistentActivity()
206 Intent startIntent = Intent.makeMainActivity(mTestActivity) in testMoveRootTaskToDisplay()
232 Intent startIntent = Intent.makeMainActivity(mTestActivity) in testGetVisibleTasks()
257 Intent startIntent = Intent.makeMainActivity(mTestActivity) in testGetVisibleTasksByDisplayId()
275 Intent startIntent = Intent.makeMainActivity(mTestActivity) in getCarTaskViewController()
DCarTaskViewControllerTest.java81 private final ComponentName mTestActivity = field in CarTaskViewControllerTest
109 Intent startIntent = Intent.makeMainActivity(mTestActivity) in setUp()
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/
DPrivacyIndicatorBoundsTests.java83 public final ActivityTestRule<TestActivity> mTestActivity = field in PrivacyIndicatorBoundsTests
95 final PrivacyIndicatorBoundsTests.TestActivity activity = mTestActivity.launchActivity( in testStaticBoundsAreNotNull()
104 mWmState.waitForValidState(mTestActivity.getActivity().getComponentName()); in testStaticBoundsAreNotNull()
112 .getTaskDisplayArea(mTestActivity.getActivity().getComponentName()) in testStaticBoundsAreNotNull()
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()
127 TestActivity activity = launchAndWait(mTestActivity, lightBars, false /* ensureContrast */); in runTestDontEnsureContrast()
129 if (isAssumptionViolated(() -> bar.checkAssumptions(mTestActivity))) { in runTestDontEnsureContrast()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionTest.java52 private TestStartActivity mTestActivity; field in VoiceInteractionTest
88 mTestActivity = mActivityTestRule.launchActivity(intent); in startTestActivity()
115 mTestActivity.finish(); in testAll()
/cts/tests/tests/assist/src/android/assist/cts/
DAssistTestBase.java121 private TestStartActivity mTestActivity; field in AssistTestBase
186 mTestActivity.finish(); in tearDown()
225 mTestActivity.startActivity(intent); in startTest()
262 mTestActivity.startActivity(intent); in start3pApp()
284 mTestActivity = mActivityTestRule.launchActivity(intent); in startTestActivity()
341 Display.Mode dMode = mTestActivity.getWindowManager().getDefaultDisplay().getMode(); in addDimensionsToIntent()
344 Rect bounds = mTestActivity.getWindowManager().getMaximumWindowMetrics().getBounds(); in addDimensionsToIntent()
408 mTestActivity.scrollText(scrollX, scrollY, scrollTextView, scrollScrollView); in scrollTestApp()
435 mView = mTestActivity.findViewById(android.R.id.content).getRootView(); in verifyAssistStructure()
495 parentViewId = mTestActivity.getResources().getResourceEntryName(parentView.getId()); in traverseViewAndStructure()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/
DWindowInsetsPolicyTest.java80 public final ActivityTestRule<TestActivity> mTestActivity = field in WindowInsetsPolicyTest
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()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityManagerTestBase.java534 private T mTestActivity; field in ActivityManagerTestBase.TestActivitySession
593 mTestActivity = in launchTestActivityOnDisplaySync()
597 final ComponentName testActivityName = mTestActivity.getComponentName(); in launchTestActivityOnDisplaySync()
614 mTestActivity = in launchTestActivityOnDisplay()
617 assertNotNull(mTestActivity); in launchTestActivityOnDisplay()
646 mTestActivity = (T) mInstrumentation.waitForMonitorWithTimeout(monitor, in launchActivityOnDisplay()
648 assertNotNull(mTestActivity); in launchActivityOnDisplay()
649 return mTestActivity; in launchActivityOnDisplay()
653 if (mTestActivity != null) { in finishCurrentActivityNoWait()
654 mTestActivity.finishAndRemoveTask(); in finishCurrentActivityNoWait()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java1192 private Activity mTestActivity; field in ContextTest.ActivitySession
1201 mTestActivity = getInstrumentation().waitForMonitorWithTimeout(monitor, in assertActivityLaunched()
1203 assertNotNull(mTestActivity); in assertActivityLaunched()
1208 if (mTestActivity != null) { in close()
1209 mTestActivity.finishAndRemoveTask(); in close()