/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
H A D | WindowMagnificationControllerTest.java | 221 mInstrumentation.runOnMainSync( in tearDown() 241 mInstrumentation.runOnMainSync( in enableWindowMagnification_notifySourceBoundsChanged() 254 mInstrumentation.runOnMainSync( in enableWindowMagnification_disabled_notifySourceBoundsChanged() 328 mInstrumentation.runOnMainSync( 333 mInstrumentation.runOnMainSync( 362 mInstrumentation.runOnMainSync( in deleteWindowMagnification_notifySourceBoundsChanged() 367 mInstrumentation.runOnMainSync( in deleteWindowMagnification_notifySourceBoundsChanged() 465 mInstrumentation.runOnMainSync( in setScale_enabled_expectedValueAndUpdateStateDescription() 735 mInstrumentation.runOnMainSync( in windowWidthIsNotMax_performA11yActionIncreaseWidth_windowWidthIncreased() 775 mInstrumentation.runOnMainSync( in windowHeightIsNotMax_performA11yActionIncreaseHeight_windowHeightIncreased() [all …]
|
H A D | WindowMagnificationAnimationControllerTest.java | 168 mInstrumentation.runOnMainSync( in enableWindowMagnificationWithoutCallback_enabled_expectedValues() 180 mInstrumentation.runOnMainSync( in enableWindowMagnificationWithScaleOne_disabled_NoAnimationAndInvokeCallback() 235 mInstrumentation.runOnMainSync( in enableWindowMagnificationWithUnchanged_enabling_expectedValuesToDefault() 392 mInstrumentation.runOnMainSync( in enableWindowMagnification_disabling_expectedValuesAndInvokeCallback() 432 mInstrumentation.runOnMainSync( in enableMagnificationWithoutCallback_disabling_expectedValuesAndInvokeFormerCallback() 579 mInstrumentation.runOnMainSync( in moveWindowMagnifierToPosition_enabling_expectedValuesToLastOne() 602 mInstrumentation.runOnMainSync( in moveWindowMagnifierToPositionWithCenterUnchanged_enabling_expectedValuesToDefault() 672 mInstrumentation.runOnMainSync( in deleteWindowMagnification_enabling_expectedValuesAndInvokeCallback() 706 mInstrumentation.runOnMainSync( in deleteWindowMagnificationWithoutCallback_enabling_expectedValuesAndInvokeCallback() 759 mInstrumentation.runOnMainSync( in moveWindowMagnifier_enabled_vertical_only_expectedValue() [all …]
|
/aosp14/frameworks/base/test-base/src/android/test/ |
H A D | InstrumentationTestSuite.java | 37 private final Instrumentation mInstrumentation; field in InstrumentationTestSuite 44 mInstrumentation = instr; in InstrumentationTestSuite() 50 mInstrumentation = instr; in InstrumentationTestSuite() 60 mInstrumentation = instr; in InstrumentationTestSuite() 66 addTest(new InstrumentationTestSuite(testClass, mInstrumentation)); in addTestSuite() 74 ((InstrumentationTestCase) test).injectInstrumentation(mInstrumentation); in runTest()
|
/aosp14/frameworks/base/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/ |
H A D | ImeOpenCloseStressTest.java | 81 private final Instrumentation mInstrumentation; field in ImeOpenCloseStressTest 178 mInstrumentation.runOnMainSync( in testShowHideWithInputMethodManager_inSameFrame() 186 mInstrumentation.waitForIdleSync(); in testShowHideWithInputMethodManager_inSameFrame() 191 mInstrumentation.waitForIdleSync(); in testShowHideWithInputMethodManager_inSameFrame() 194 mInstrumentation.runOnMainSync( in testShowHideWithInputMethodManager_inSameFrame() 202 mInstrumentation.waitForIdleSync(); in testShowHideWithInputMethodManager_inSameFrame() 338 mInstrumentation.runOnMainSync( in testShowHideWithWindowInsetsController_inSameFrame() 346 mInstrumentation.waitForIdleSync(); in testShowHideWithWindowInsetsController_inSameFrame() 351 mInstrumentation.waitForIdleSync(); in testShowHideWithWindowInsetsController_inSameFrame() 354 mInstrumentation.runOnMainSync( in testShowHideWithWindowInsetsController_inSameFrame() [all …]
|
H A D | ImeStressTestRule.java | 46 private final Instrumentation mInstrumentation; field in ImeStressTestRule 55 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in ImeStressTestRule() 56 mUiDevice = UiDevice.getInstance(mInstrumentation); in ImeStressTestRule() 77 mInstrumentation.waitForIdleSync(); in starting()
|
H A D | AutoShowTest.java | 78 private final Instrumentation mInstrumentation; field in AutoShowTest 84 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in AutoShowTest() 85 mIsLargeScreen = mInstrumentation.getContext().getResources() in AutoShowTest() 205 mInstrumentation.waitForIdleSync(); in autoShow_forwardWithKeyboardOn() 239 mInstrumentation.waitForIdleSync(); in autoShow_backwardWithKeyboardOff() 269 mInstrumentation.waitForIdleSync(); in autoShow_backwardWithKeyboardOn() 273 mInstrumentation.waitForIdleSync(); in autoShow_backwardWithKeyboardOn() 292 UiDevice.getInstance(mInstrumentation) in clickFocusableView_requestFocus() 313 UiDevice.getInstance(mInstrumentation) in clickFocusableView_notRequestFocus()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | ListUtil.java | 29 private final Instrumentation mInstrumentation; field in ListUtil 37 mInstrumentation = instrumentation; in ListUtil() 50 mInstrumentation.waitForIdleSync(); in setSelectedPosition() 83 mInstrumentation.sendCharacterSync(KeyEvent.KEYCODE_DPAD_DOWN); in arrowDownToSelectedPosition() 94 mInstrumentation.sendCharacterSync(KeyEvent.KEYCODE_DPAD_UP); in arrowUpToSelectedPosition()
|
H A D | OrientationUtil.java | 32 private final Instrumentation mInstrumentation; field in OrientationUtil 56 mInstrumentation = instrumentation; in OrientationUtil() 60 mInstrumentation.runOnMainSync(mSetToPortrait); in setPortraitOrientation() 64 mInstrumentation.runOnMainSync(mSetToLandscape); in setLandscapeOrientation()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | ProgressBarTest.java | 42 private final Instrumentation mInstrumentation = InstrumentationRegistry.getInstrumentation(); field in ProgressBarTest 49 mInstrumentation.getUiAutomation(); in setUp() 51 mInstrumentation.runOnMainSync(() -> in setUp() 71 mInstrumentation.runOnMainSync(() -> mBar.setProgress(50)); in testStateDescription_determinateProgressBar_default() 91 mInstrumentation.runOnMainSync(() -> mBar.setProgress(50)); in testStateDescription_determinateProgressBar_custom_viewApi() 118 mInstrumentation.runOnMainSync(() -> mBar.setProgress(50)); in testStateDescription_determinateProgressBar_custom_accessibilityNodeInfoApi() 130 mInstrumentation.runOnMainSync(() -> mBar.setMax(200)); in testStateDescription_indeterminateProgressBar_default() 151 mInstrumentation.runOnMainSync(() -> mBar.setMax(200)); in testStateDescription_indeterminateProgressBar_custom_viewApi() 179 mInstrumentation.runOnMainSync(() -> mBar.setMax(200)); in testStateDescription_indeterminateProgressBar_custom_accessibilityNodeInfoApi()
|
H A D | DatePickerFocusTest.java | 37 private Instrumentation mInstrumentation; field in DatePickerFocusTest 49 mInstrumentation = getInstrumentation(); in setUp() 85 mInstrumentation.sendKeyDownUpSync(keycode); in sendKey() 86 mInstrumentation.waitForIdleSync(); in sendKey() 101 mInstrumentation.sendKeySync(shiftDown); in sendShiftKey() 106 mInstrumentation.sendKeySync(keyDown); in sendShiftKey() 111 mInstrumentation.sendKeySync(keyUp); in sendShiftKey() 114 mInstrumentation.sendKeySync(shiftUp); in sendShiftKey() 116 mInstrumentation.waitForIdleSync(); in sendShiftKey() 251 mInstrumentation.waitForIdleSync(); in setKnownDate()
|
H A D | TextViewProcessTextTest.java | 47 private Instrumentation mInstrumentation; field in TextViewProcessTextTest 53 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in before() 60 mInstrumentation.waitForIdleSync(); in testProcessTextActivityResultNonEditable() 71 mInstrumentation.waitForIdleSync(); in testProcessTextActivityResultNonEditable() 80 mInstrumentation.waitForIdleSync(); in testProcessTextActivityResultCancel() 96 mInstrumentation.waitForIdleSync(); in testProcessTextActivityNoData()
|
H A D | EditorCursorDragTest.java | 80 private Instrumentation mInstrumentation; field in EditorCursorDragTest 86 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in before() 297 mInstrumentation.runOnMainSync(() -> editor.onTouchEvent(event1)); in testEditor_onTouchEvent_quickTapAfterDrag() 303 mInstrumentation.runOnMainSync(() -> editor.onTouchEvent(event2)); in testEditor_onTouchEvent_quickTapAfterDrag() 309 mInstrumentation.runOnMainSync(() -> editor.onTouchEvent(event3)); in testEditor_onTouchEvent_quickTapAfterDrag() 315 mInstrumentation.runOnMainSync(() -> editor.onTouchEvent(event4)); in testEditor_onTouchEvent_quickTapAfterDrag() 322 mInstrumentation.runOnMainSync(() -> editor.onTouchEvent(event5)); in testEditor_onTouchEvent_quickTapAfterDrag() 328 mInstrumentation.runOnMainSync(() -> editor.onTouchEvent(event6)); in testEditor_onTouchEvent_quickTapAfterDrag() 335 mInstrumentation.runOnMainSync(() -> editor.onTouchEvent(event7)); in testEditor_onTouchEvent_quickTapAfterDrag() 352 mInstrumentation.runOnMainSync(() -> editor.onTouchEvent(event1)); in testEditor_onTouchEvent_mouseDrag() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | SurfaceControlViewHostInsetsTest.java | 45 private Instrumentation mInstrumentation; field in SurfaceControlViewHostInsetsTest 48 Context context = mInstrumentation.getTargetContext(); in createViewHierarchy() 65 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup() 66 mInstrumentation.runOnMainSync(() -> { createViewHierarchy(); }); in setup() 67 mInstrumentation.waitForIdleSync(); in setup() 90 mInstrumentation.waitForIdleSync(); in sendInsetsSync()
|
H A D | ViewInputConnectionTest.java | 81 private Instrumentation mInstrumentation; field in ViewInputConnectionTest 104 mInstrumentation.waitForIdleSync(); in testInputConnectionCallbacks() 108 mInstrumentation.waitForIdleSync(); in testInputConnectionCallbacks() 115 mInstrumentation.waitForIdleSync(); in testInputConnectionCallbacks() 128 mInstrumentation.waitForIdleSync(); in testInputConnectionCallbacks() 136 mInstrumentation.waitForIdleSync(); in testInputConnectionCallbacks() 158 mInstrumentation.waitForIdleSync(); in testInputConnectionCallbacks_nullInputConnection() 162 mInstrumentation.waitForIdleSync(); in testInputConnectionCallbacks_nullInputConnection() 169 mInstrumentation.waitForIdleSync(); in testInputConnectionCallbacks_nullInputConnection() 182 mInstrumentation.waitForIdleSync(); in testInputConnectionCallbacks_nullInputConnection() [all …]
|
H A D | ViewRootRefreshRateControllerTest.java | 61 private Instrumentation mInstrumentation; field in ViewRootRefreshRateControllerTest 65 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 68 mUseVariableRefreshRateWhenTyping = mInstrumentation.getContext().getResources() in setUp() 81 mInstrumentation.waitForIdleSync(); in testUpdateRefreshRatePreference_shouldLowerThenRestore()
|
/aosp14/frameworks/base/cmds/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/testrunner/ |
H A D | InstrumentationAutomationSupport.java | 30 private Instrumentation mInstrumentation; field in InstrumentationAutomationSupport 33 mInstrumentation = instrumentation; in InstrumentationAutomationSupport() 38 mInstrumentation.sendStatus(resultCode, status); in sendStatus()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
H A D | AccessibilityManagerTest.java | 80 private Instrumentation mInstrumentation; field in AccessibilityManagerTest 88 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 89 mFocusStrokeWidthDefaultValue = mInstrumentation.getContext().getResources() in setUp() 91 mFocusColorDefaultValue = mInstrumentation.getContext().getResources().getColor( in setUp() 112 new AccessibilityManager(mInstrumentation.getContext(), mHandler, mMockService, in createManager() 198 mInstrumentation.runOnMainSync(() -> { in testSendAccessibilityEvent_AccessibilityDisabled() 223 new AccessibilityManager(mInstrumentation.getContext(), mHandler, null, in testGetDefaultValueOfFocusAppearanceData() 236 new AccessibilityManager(mInstrumentation.getContext(), mHandler, mMockService, in testRegisterAccessibilityProxy() 253 new AccessibilityManager(mInstrumentation.getContext(), mHandler, mMockService, in testUnregisterAccessibilityProxy()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/window/ |
H A D | BackNavigationTest.java | 53 private Instrumentation mInstrumentation; field in BackNavigationTest 58 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup() 60 UiDevice.getInstance(mInstrumentation).wakeUp(); in setup() 63 mInstrumentation.getUiAutomation().adoptShellPermissionIdentity(); in setup() 93 mInstrumentation.getUiAutomation().waitForIdle(500, 1000); in assertCallbackIsCalled()
|
H A D | WindowContextTest.java | 88 private final Instrumentation mInstrumentation = InstrumentationRegistry.getInstrumentation(); field in WindowContextTest 100 mInstrumentation.runOnMainSync(() -> { in testCreateWindowContextWindowManagerAttachClientToken() 139 mInstrumentation.runOnMainSync(() -> { in testCreateWindowContextNewTokenFromClient() 179 mInstrumentation.runOnMainSync(() -> { in testCreateWindowContext_AttachActivity_TokenNotRemovedAfterRelease() 214 mInstrumentation.runOnMainSync(() -> { in testCreateWindowContext_AttachWindowToken_TokenNotRemovedAfterRelease() 247 mInstrumentation.runOnMainSync(() -> wm.addView(parentWindow, params)); in testWindowContextAddViewWithSubWindowType_NotCrash() 257 mInstrumentation.runOnMainSync(() -> wm.addView(subWindow, subWindowAttrs)); in testWindowContextAddViewWithSubWindowType_NotCrash() 328 final Context instContext = mInstrumentation.getTargetContext(); in createWindowContext()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/ |
H A D | GesturesObserverTest.java | 56 private Instrumentation mInstrumentation; field in GesturesObserverTest 64 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 75 mInstrumentation.runOnMainSync(() -> { in onActionMove_onGestureCancelled() 87 mInstrumentation.runOnMainSync(() -> { in onMotionEvent_unrecognizedEvents_onGestureCancelledAfterTimeout() 103 mInstrumentation.runOnMainSync(() -> { in onMotionEvent_recognizedEvents_onGestureCompleted()
|
/aosp14/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/ |
H A D | InputMethodServiceTest.java | 72 private Instrumentation mInstrumentation; field in InputMethodServiceTest 84 mUiDevice = UiDevice.getInstance(mInstrumentation); in setUp() 85 mContext = mInstrumentation.getContext(); in setUp() 90 mInstrumentation.waitForIdleSync(); in setUp() 644 mInstrumentation.runOnMainSync(runnable); in verifyInputViewStatusInternal() 648 mInstrumentation.waitForIdleSync(); in verifyInputViewStatusInternal() 700 mInstrumentation.waitForIdleSync(); in verifyFullscreenMode() 730 mInstrumentation.waitForIdleSync(); in prepareIme() 735 mActivity = TestActivity.start(mInstrumentation); in prepareEditor() 753 mInstrumentation.waitForIdleSync(); in setShowImeWithHardKeyboard() [all …]
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/view/ |
H A D | InputStageBenchmark.java | 72 private Instrumentation mInstrumentation; field in InputStageBenchmark 150 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 154 mInstrumentation.runOnMainSync(() -> { in setUp() 178 mInstrumentation.waitForIdleSync(); in setUp() 183 mInstrumentation.runOnMainSync(() -> mWindow.injectInputEvent(event)); in injectInputEvent() 211 mInstrumentation.runOnMainSync(() -> in testMotionEvent()
|
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/view/ |
H A D | AbsCaptureHelperTest.java | 97 private Instrumentation mInstrumentation; field in AbsCaptureHelperTest 101 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in createWindow() 102 Context context = mInstrumentation.getTargetContext(); in createWindow() 107 mInstrumentation.runOnMainSync(() -> mContentRoot = new FrameLayout(context)); in createWindow() 113 mInstrumentation.runOnMainSync(() -> { in createWindow() 281 mInstrumentation.runOnMainSync(() -> { in removeWindow() 290 mInstrumentation.runOnMainSync(() -> { in initHelper() 301 mInstrumentation.runOnMainSync(() -> { in requestScrollSync()
|
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/host/test-apps/DeviceSide/src/com/android/server/pm/ |
H A D | PackageInstallerSessionTest.kt | 44 private val mInstrumentation: Instrumentation = getInstrumentation() 62 val commandsHelper: CommandsHelper = CommandsHelper.getInstance(mInstrumentation) 86 val lines: List<String> = CommandsHelper.getInstance(mInstrumentation) 101 val context: Context = mInstrumentation.targetContext
|
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/appenumeration/src/com/android/server/pm/test/appenumeration/ |
H A D | CrossUserPackageVisibilityTests.java | 99 private Instrumentation mInstrumentation; field in CrossUserPackageVisibilityTests 107 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup() 109 mContext = mInstrumentation.getContext(); in setup() 129 mInstrumentation.getUiAutomation().dropShellPermissionIdentity(); in tearDown() 137 mInstrumentation.getContext().getPackageName(), crossUserId)); in testGetSplashScreenTheme_withCrossUserId() 217 mInstrumentation.getUiAutomation().adoptShellPermissionIdentity(CLEAR_APP_USER_DATA); in testClearApplicationUserData_cannotDetectStubPkg() 227 mInstrumentation.getUiAutomation().adoptShellPermissionIdentity(DELETE_PACKAGES); in testGetBlockUninstallForUser_cannotDetectStubPkg() 246 mInstrumentation.getUiAutomation().adoptShellPermissionIdentity( in testMovePackage_cannotDetectStubPkg()
|