/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | StartActivityFromBackgroundTest.java | 49 TestAppActivityReference testActivity = sDeviceState.dpc().activities().any(); in startActivityFromBackground_dpcNotAllowed_unableToStart() local 52 .setComponent(testActivity.component().componentName()); in startActivityFromBackground_dpcNotAllowed_unableToStart() 58 .toNotBeEqualTo(testActivity.component()).errorOnFail().await(); in startActivityFromBackground_dpcNotAllowed_unableToStart() 65 TestAppActivityReference testActivity = sDeviceState.dpc().activities().any(); in startActivityFromBackground_dpcAllowed_ableToStart() local 68 .setComponent(testActivity.component().componentName()); in startActivityFromBackground_dpcAllowed_ableToStart() 74 .toBeEqualTo(testActivity.component()).errorOnFail().await(); in startActivityFromBackground_dpcAllowed_ableToStart()
|
D | ApplicationExemptionsTest.java | 353 TestAppActivityReference testActivity = testApp.activities().any(); in setApplicationExemptions_noExemption_cannotStartActivityFromBg() local 356 .setComponent(testActivity.component().componentName()); in setApplicationExemptions_noExemption_cannotStartActivityFromBg() 362 .toNotBeEqualTo(testActivity.component()).errorOnFail().await(); in setApplicationExemptions_noExemption_cannotStartActivityFromBg() 379 TestAppActivityReference testActivity = testApp.activities().any(); in setApplicationExemptions_activityBgStartRestrictionExemption_canStartActivityFromBg() local 382 .setComponent(testActivity.component().componentName()); in setApplicationExemptions_activityBgStartRestrictionExemption_canStartActivityFromBg() 388 .toBeEqualTo(testActivity.component()).errorOnFail().await(); in setApplicationExemptions_activityBgStartRestrictionExemption_canStartActivityFromBg()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | InputMethodPickerTest.java | 87 TestActivity testActivity = TestActivity.startSync(activity -> { in testInputMethodPicker_hidesUntrustedOverlays() local 94 getInstrumentation().runOnMainSync(testActivity::showOverlayWindow); in testInputMethodPicker_hidesUntrustedOverlays() 114 TestActivity testActivity = TestActivity.startSync(activity -> { in testShowInputMethodPicker_noDismissWhenOverlayPopup() local 125 testActivity.showOverlayWindow(true /* imeFocusable */)); in testShowInputMethodPicker_noDismissWhenOverlayPopup() 142 TestActivity testActivity = new TestActivity.Starter().withDisplayId(dc.mId) in testShowImePickerOnExternalDisplay() local 149 waitAndAssertActivityStateOnDisplay(testActivity.getComponentName(), in testShowImePickerOnExternalDisplay()
|
D | AccessibilityInputMethodTest.java | 114 TestActivity.startSync(testActivity -> { in testLifecycle() 115 final LinearLayout layout = new LinearLayout(testActivity); in testLifecycle() 117 final EditText editText = new EditText(testActivity); in testLifecycle() 122 final EditText anotherEditText = new EditText(testActivity); in testLifecycle() 158 TestActivity.startSync(testActivity -> { in testRestartInput() 159 final EditText editText = new EditText(testActivity); in testRestartInput() 164 final LinearLayout layout = new LinearLayout(testActivity); in testRestartInput() 255 TestActivity.startSync(testActivity -> { in testNoFallbackInputConnection() 256 final LinearLayout layout = new LinearLayout(testActivity); in testNoFallbackInputConnection() 258 final EditText editText = new EditText(testActivity); in testNoFallbackInputConnection() [all …]
|
D | InputMethodManagerMultiDisplayTest.java | 111 TestActivity testActivity = new TestActivity.Starter().withDisplayId(dc.mId) in testShowInputMethodAndSubtypeEnablerOnNonDefaultDisplay() local 118 waitAndAssertActivityStateOnDisplay(testActivity.getComponentName(), STATE_RESUMED, in testShowInputMethodAndSubtypeEnablerOnNonDefaultDisplay() 124 waitAndAssertTopResumedActivity(testActivity.getComponentName(), in testShowInputMethodAndSubtypeEnablerOnNonDefaultDisplay() 128 final InputMethodManager im = testActivity.getSystemService(InputMethodManager.class); in testShowInputMethodAndSubtypeEnablerOnNonDefaultDisplay()
|
D | FocusHandlingTest.java | 212 final TestActivity testActivity = TestActivity.startSync(activity -> { in testSwitchingBetweenEquivalentNonEditableViews() local 245 testActivity.runOnUiThread(() -> viewRef1.get().requestFocus()); in testSwitchingBetweenEquivalentNonEditableViews() 250 testActivity.runOnUiThread(() -> viewRef2.get().requestFocus()); in testSwitchingBetweenEquivalentNonEditableViews() 258 testActivity.runOnUiThread(() -> in testSwitchingBetweenEquivalentNonEditableViews() 288 final TestActivity testActivity = TestActivity.startSync(activity -> { in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView() local 307 if (testActivity.getApplicationInfo().targetSdkVersion >= Build.VERSION_CODES.P) { in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView() 358 final TestActivity testActivity = TestActivity.startSync(activity -> { in testDelayedAddEditorStartsInput() local 370 testActivity.runOnUiThread(() -> { in testDelayedAddEditorStartsInput() 371 final EditText editText = new EditText(testActivity); in testDelayedAddEditorStartsInput() 776 final TestActivity testActivity = TestActivity.startSync(activity-> { in testKeyboardStateAfterImeFocusableFlagChanged() local [all …]
|
D | KeyboardVisibilityControlTest.java | 328 final TestActivity testActivity = (TestActivity) editText.getContext(); in verifyHideImeBackPressed() local 331 testActivity.getOnBackInvokedDispatcher().registerOnBackInvokedCallback( in verifyHideImeBackPressed() 336 testActivity.setIgnoreBackKey(true); in verifyHideImeBackPressed() 631 final TestActivity testActivity = TestActivity.startSync(activity -> { in testShowSoftInputWithShowForcedFlagWhenAppIsLeaving() local 636 getOnMainSync(testActivity::hasWindowFocus)); in testShowSoftInputWithShowForcedFlagWhenAppIsLeaving() 679 if (isClearShowForcedFlagEnabled(testActivity.getPackageName())) { in testShowSoftInputWithShowForcedFlagWhenAppIsLeaving() 741 final TestActivity testActivity = in testImeVisibilityWhenDismissingDialogWithImeFocused() local 751 final EditText editText = new EditText(testActivity); in testImeVisibilityWhenDismissingDialogWithImeFocused() 755 final AlertDialog dialog = new AlertDialog.Builder(testActivity) in testImeVisibilityWhenDismissingDialogWithImeFocused() 809 TestUtils.waitOnMainUntil(testActivity::hasWindowFocus, TIMEOUT); in testImeVisibilityWhenDismissingDialogWithImeFocused() [all …]
|
D | ImeInsetsVisibilityTest.java | 330 final TestActivity testActivity = TestActivity.startSync(activity -> { in testEditorWontCoveredByImeWhenInputWindowBehindPanel() local 348 final View panel = new View(testActivity); in testEditorWontCoveredByImeWhenInputWindowBehindPanel() 375 lp.token = testActivity.getWindow().getDecorView().getWindowToken(); in testEditorWontCoveredByImeWhenInputWindowBehindPanel() 376 testActivity.getWindowManager().addView(panel, lp); in testEditorWontCoveredByImeWhenInputWindowBehindPanel() 382 testActivity.getWindow().getInsetsController().show(WindowInsets.Type.ime()); in testEditorWontCoveredByImeWhenInputWindowBehindPanel()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | EditTextTest.java | 756 Activity testActivity = mEmptyActivityRule.launchActivity(null); in testCursorNotBlinkingOnNewActivity_WithoutFocus() local 757 EditText et = testActivity.findViewById(R.id.edittext_simple1); in testCursorNotBlinkingOnNewActivity_WithoutFocus() 765 Activity testActivity = mEmptyActivityRule.launchActivity(null); in testCursorBlinkingOnNewActivity_WithFocus() local 766 EditText et = testActivity.findViewById(R.id.edittext_simple1); in testCursorBlinkingOnNewActivity_WithFocus() 779 Activity testActivity = mEmptyActivityRule.launchActivity(null); in testSuspendAndResumeBlinkingCursor() local 780 final EditText et = testActivity.findViewById(R.id.edittext_simple1); in testSuspendAndResumeBlinkingCursor() 822 Activity testActivity = mEmptyActivityRule.launchActivity(null); in testCursorBlinking_ViewDynamicallyAdded_WithFocus() local 823 EditText editText = new EditText(testActivity.getApplicationContext()); in testCursorBlinking_ViewDynamicallyAdded_WithFocus() 825 LinearLayout layout = testActivity.findViewById(R.id.edit_text); in testCursorBlinking_ViewDynamicallyAdded_WithFocus() 843 Activity testActivity = mEmptyActivityRule.launchActivity(null); in testCursorNotBlinking_ViewDynamicallyAdded_NoFocus() local [all …]
|
/cts/tests/tests/content/src/android/content/res/cts/config/ |
D | OverrideConfigTest.kt | 111 testActivity(ApplyOverrideConfigActivity::class) in applyOverrideConfig() 117 testActivity( in applyOverrideConfigHandlesOrientation() 134 testActivity(CreateConfigBaseContextActivity::class) in createConfigContextBaseContext() 139 testActivity( in createConfigContextInflaterContext() 151 private fun <Activity : OverrideConfigBaseActivity> testActivity( in testActivity() method in android.content.res.cts.config.OverrideConfigTest
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/layout/ |
D | ExtensionWindowLayoutComponentTest.java | 158 TestActivity testActivity = startFullScreenActivityNewTask( in testWindowLayoutComponent_onWindowLayoutChangeListener() local 160 changeActivityOrientationThenVerifyWindowLayout(testActivity, testActivity); in testWindowLayoutComponent_onWindowLayoutChangeListener() 172 TestActivity testActivity = startFullScreenActivityNewTask( in testWindowLayoutComponent_onWindowLayoutChangeListener_wrappedContext() local 174 Context wrappedContext = new ContextWrapper(testActivity); in testWindowLayoutComponent_onWindowLayoutChangeListener_wrappedContext() 175 WindowLayoutInfo windowLayoutInfoFromContext = getExtensionWindowLayoutInfo(testActivity); in testWindowLayoutComponent_onWindowLayoutChangeListener_wrappedContext() 180 changeActivityOrientationThenVerifyWindowLayout(testActivity, wrappedContext); in testWindowLayoutComponent_onWindowLayoutChangeListener_wrappedContext() 244 TestActivity testActivity = startFullScreenActivityNewTask( in testWindowLayoutComponent_windowLayoutInfoListener_deviceStateChanged() local 249 mWindowLayoutComponent.addWindowLayoutInfoListener(testActivity, windowLayoutInfoConsumer); in testWindowLayoutComponent_windowLayoutInfoListener_deviceStateChanged() 397 TestActivity testActivity = startFullScreenActivityNewTask( in testGetWindowLayoutInfo_displayMetricsChanged_windowLayoutUpdates() local 405 testActivity, windowLayoutInfoConsumer); in testGetWindowLayoutInfo_displayMetricsChanged_windowLayoutUpdates() [all …]
|
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/content/ |
D | ContextHelperTest.java | 110 ComponentName testActivity = new ComponentName(pkgName, activityClassName); in launchVirtualDisplayIdTestActivity() local 111 launchActivityOnDisplay(testActivity, displayId); in launchVirtualDisplayIdTestActivity() 112 waitForActivityFocused(ACTIVITY_FOCUS_TIMEOUT_MS, testActivity); in launchVirtualDisplayIdTestActivity()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-20913/src/android/security/cts/CVE_2023_20913/ |
D | DeviceTest.java | 73 public void testActivity(String cls) throws Exception { in testActivity() method in DeviceTest 156 testActivity(mContext.getString(R.string.activityAccessibilitySettings)); in testOverlayButtonPresence() 157 testActivity(mContext.getString(R.string.activityPhoneAccountSettings)); in testOverlayButtonPresence() 158 testActivity(mContext.getString(R.string.activityVoicemailSettings)); in testOverlayButtonPresence()
|
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/app/ |
D | TaskInfoHelperTest.java | 163 TaskInfoTestActivity testActivity = (TaskInfoTestActivity) mInstrumentation in launchTestActivity() local 166 ComponentName testActivityName = testActivity.getComponentName(); in launchTestActivity() 170 return testActivity; in launchTestActivity()
|
D | ActivityManagerHelperTest.java | 213 ActivityC testActivity = launchTestActivity(ActivityC.class); in testRemoveTask() local 214 int taskId = testActivity.getTaskId(); in testRemoveTask() 228 PollingCheck.waitFor(TIMEOUT_MS, () -> testActivity.isDestroyed()); in testRemoveTask() 414 Activity testActivity = (Activity) mInstrumentation in launchTestActivity() local 417 ComponentName testActivityName = testActivity.getComponentName(); in launchTestActivity() 421 return type.cast(testActivity); in launchTestActivity()
|
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/ |
D | NavigationBarInfo.java | 155 final TestActivity testActivity = TestActivity.startSync(activity -> { in getBottomNavigationBarBitmapForActivity() local 176 final TextView textView = new TextView(testActivity); in getBottomNavigationBarBitmapForActivity() 178 final AlertDialog alertDialog = new AlertDialog.Builder(testActivity) in getBottomNavigationBarBitmapForActivity()
|
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/view/ |
D | SurfaceControlHelperTest.java | 93 Activity testActivity = (Activity) mInstrumentation in launchTestActivity() local 95 return type.cast(testActivity); in launchTestActivity()
|
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/ |
D | SuspendTestUtils.java | 165 final Intent testActivity = new Intent() in startTestAppActivity() local 170 testActivity.putExtras(extras); in startTestAppActivity() 172 getContext().startActivity(testActivity); in startTestAppActivity()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | ManagedProfileCrossProfileTest.java | 472 final String testActivity = "android.app.Activity"; in launchAllTestAppsForUser() local 473 startActivityAsUser(userId, TEST_APP_1_PKG, testActivity); in launchAllTestAppsForUser() 474 startActivityAsUser(userId, TEST_APP_2_PKG, testActivity); in launchAllTestAppsForUser() 475 startActivityAsUser(userId, TEST_APP_3_PKG, testActivity); in launchAllTestAppsForUser() 476 startActivityAsUser(userId, TEST_APP_4_PKG, testActivity); in launchAllTestAppsForUser()
|
/cts/tests/tests/appcomponentfactory/src/android/app/componentfactory/cts/ |
D | AppComponentFactoryTest.java | 40 public void testActivity() { in testActivity() method in AppComponentFactoryTest
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | BaseJobSchedulerTest.java | 271 final Intent testActivity = new Intent(); in startAndKeepTestActivity() local 272 testActivity.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in startAndKeepTestActivity() 274 testActivity.setComponent(testComponentName); in startAndKeepTestActivity() 275 mContext.startActivity(testActivity); in startAndKeepTestActivity()
|
D | TestAppInterface.java | 300 final Intent testActivity = new Intent(); in startAndKeepTestActivity() local 301 testActivity.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in startAndKeepTestActivity() 303 testActivity.setComponent(testComponentName); in startAndKeepTestActivity() 304 mContext.startActivity(testActivity); in startAndKeepTestActivity()
|
/cts/tests/tests/classloaderfactory/src/android/app/classloaderfactory/cts/ |
D | AppComponentFactoryTest.java | 72 public void testActivity() { in testActivity() method in AppComponentFactoryTest
|
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/content/pm/ |
D | PackageManagerHelperTest.java | 227 String testActivity = testPackage + ".SimpleActivity"; in testForceStopPackageAsUser() local 228 String testActivityLaunchAction = testActivity + ".LAUNCHED_ACTION"; in testForceStopPackageAsUser() 234 .setClassName(testPackage, testActivity) in testForceStopPackageAsUser()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/forcestop/ |
D | RecentTaskRemovalTestActivity.java | 132 final Intent testActivity = new Intent() in onClick() local 137 startActivity(testActivity); in onClick()
|