/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/ |
D | CloseOnOutsideTests.java | 53 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/ |
D | TaskInfoHelperTest.java | 66 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/ |
D | SurfaceControlHelperTest.java | 57 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/ |
D | ActivityEmbeddingPropertyTests.java | 44 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/ |
D | VirtualDeviceTestCase.java | 54 windowManagerStateHelper.waitForAppTransitionIdleOnDisplay(mTestActivity.getDisplayId()); in onSetUp() 60 if (mTestActivity != null) { in onTearDown() 61 mTestActivity.finish(); in onTearDown()
|
D | InputTestCase.java | 80 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 …]
|
D | VirtualDeviceMirrorDisplayTest.java | 89 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()
|
D | UsbVoiceCommandTest.java | 93 if (!info.activityInfo.packageName.equals(mTestActivity.getPackageName())) { in addExcludedPackages() 145 new ComponentName(mTestActivity.getPackageName(), in testVoiceAssistantKey()
|
D | RazerRaijuMobileBluetoothTest.java | 55 mTestActivity.addUnhandleKeyCode(KeyEvent.KEYCODE_BUTTON_MODE); in testHomeKey()
|
D | VirtualTouchscreenTest.java | 86 mTestActivity.getWindow().getDecorView().requestUnbufferedDispatch(SOURCE_TOUCHSCREEN); in sendTouchEvent()
|
D | VirtualStylusTest.java | 60 mTestActivity.getWindow().getDecorView().requestUnbufferedDispatch( in onSetUpVirtualInputDevice()
|
/cts/tests/tests/car/src/android/car/cluster/cts/ |
D | ClusterHomeManagerTest.java | 91 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/ |
D | CarActivityManagerTest.java | 81 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()
|
D | CarTaskViewControllerTest.java | 81 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/ |
D | PrivacyIndicatorBoundsTests.java | 83 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()
|
D | EnsureBarContrastTest.java | 70 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/ |
D | VoiceInteractionTest.java | 52 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/ |
D | AssistTestBase.java | 121 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/ |
D | WindowInsetsPolicyTest.java | 80 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/ |
D | ActivityManagerTestBase.java | 534 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/ |
D | ContextTest.java | 1192 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()
|