/frameworks/base/test-base/src/android/test/ |
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()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | WindowMagnificationControllerWindowlessMagnifierTest.java | 165 private Instrumentation mInstrumentation; field in WindowMagnificationControllerWindowlessMagnifierTest 197 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 268 mInstrumentation.runOnMainSync( in tearDown() 285 mInstrumentation.runOnMainSync(() -> { in enableWindowMagnification_showControlAndNotifyBoundsChanged() 298 mInstrumentation.runOnMainSync( in enableWindowMagnification_notifySourceBoundsChanged() 311 mInstrumentation.runOnMainSync( in enableWindowMagnification_disabled_notifySourceBoundsChanged() 320 mInstrumentation.runOnMainSync(() -> { in enableWindowMagnification_withAnimation_schedulesFrame() 334 mInstrumentation.runOnMainSync(() -> { in moveWindowMagnifier_enabled_notifySourceBoundsChanged() 339 mInstrumentation.runOnMainSync(() -> { in moveWindowMagnifier_enabled_notifySourceBoundsChanged() 354 mInstrumentation.runOnMainSync(() -> { in enableWindowMagnification_systemGestureExclusionRectsIsSet() [all …]
|
D | WindowMagnificationControllerTest.java | 163 private Instrumentation mInstrumentation; field in WindowMagnificationControllerTest 189 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 258 mInstrumentation.runOnMainSync( in tearDown() 275 mInstrumentation.runOnMainSync(() -> { in enableWindowMagnification_showControlAndNotifyBoundsChanged() 288 mInstrumentation.runOnMainSync( in enableWindowMagnification_notifySourceBoundsChanged() 301 mInstrumentation.runOnMainSync( in enableWindowMagnification_disabled_notifySourceBoundsChanged() 310 mInstrumentation.runOnMainSync(() -> { in enableWindowMagnification_withAnimation_schedulesFrame() 323 mInstrumentation.runOnMainSync(() -> { in moveWindowMagnifier_enabled_notifySourceBoundsChanged() 328 mInstrumentation.runOnMainSync(() -> { in moveWindowMagnifier_enabled_notifySourceBoundsChanged() 343 mInstrumentation.runOnMainSync(() -> { in enableWindowMagnification_systemGestureExclusionRectsIsSet() [all …]
|
/frameworks/base/core/tests/coretests/src/android/util/ |
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()
|
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()
|
/frameworks/base/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/ |
D | ImeOpenCloseStressTest.java | 81 private final Instrumentation mInstrumentation; field in ImeOpenCloseStressTest 95 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in ImeOpenCloseStressTest() 178 mInstrumentation.runOnMainSync( in testShowHideWithInputMethodManager_inSameFrame() 186 mInstrumentation.waitForIdleSync(); in testShowHideWithInputMethodManager_inSameFrame() 189 mInstrumentation.runOnMainSync(activity::showImeWithInputMethodManager); in testShowHideWithInputMethodManager_inSameFrame() 191 mInstrumentation.waitForIdleSync(); in testShowHideWithInputMethodManager_inSameFrame() 194 mInstrumentation.runOnMainSync( in testShowHideWithInputMethodManager_inSameFrame() 202 mInstrumentation.waitForIdleSync(); in testShowHideWithInputMethodManager_inSameFrame() 271 mInstrumentation.runOnMainSync(activity::showImeWithWindowInsetsController); in testShowHideWithWindowInsetsController_waitingVisibilityChange() 273 mInstrumentation.runOnMainSync(activity::hideImeWithWindowInsetsController); in testShowHideWithWindowInsetsController_waitingVisibilityChange() [all …]
|
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()
|
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()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
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()
|
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()
|
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()
|
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 …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
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()
|
D | ViewInputConnectionTest.java | 81 private Instrumentation mInstrumentation; field in ViewInputConnectionTest 87 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in before() 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() [all …]
|
/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/ |
D | InputMethodServiceTest.java | 75 private Instrumentation mInstrumentation; field in InputMethodServiceTest 86 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 87 mUiDevice = UiDevice.getInstance(mInstrumentation); in setUp() 88 mContext = mInstrumentation.getContext(); in setUp() 89 mTargetPackageName = mInstrumentation.getTargetContext().getPackageName(); in setUp() 93 mInstrumentation.waitForIdleSync(); in setUp() 645 mInstrumentation.runOnMainSync(() -> mInputMethodService.getWindow().getWindow() in testShowHideImeNavigationBar_doesDrawImeNavBar() 647 mInstrumentation.waitForIdleSync(); in testShowHideImeNavigationBar_doesDrawImeNavBar() 651 mInstrumentation.runOnMainSync(() -> mInputMethodService.getWindow().getWindow() in testShowHideImeNavigationBar_doesDrawImeNavBar() 653 mInstrumentation.waitForIdleSync(); in testShowHideImeNavigationBar_doesDrawImeNavBar() [all …]
|
/frameworks/base/cmds/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/testrunner/ |
D | InstrumentationAutomationSupport.java | 30 private Instrumentation mInstrumentation; field in InstrumentationAutomationSupport 33 mInstrumentation = instrumentation; in InstrumentationAutomationSupport() 38 mInstrumentation.sendStatus(resultCode, status); in sendStatus()
|
/frameworks/base/core/tests/coretests/src/android/window/ |
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()
|
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()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/ |
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()
|
/frameworks/base/apct-tests/perftests/core/src/android/view/ |
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()
|
/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
D | AccessibilityManagerTest.java | 97 private Instrumentation mInstrumentation; field in AccessibilityManagerTest 105 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 106 mFocusStrokeWidthDefaultValue = mInstrumentation.getContext().getResources() in setUp() 108 mFocusColorDefaultValue = mInstrumentation.getContext().getResources().getColor( in setUp() 129 new AccessibilityManager(mInstrumentation.getContext(), mHandler, mMockService, in createManager() 215 mInstrumentation.runOnMainSync(() -> { in testSendAccessibilityEvent_AccessibilityDisabled() 240 new AccessibilityManager(mInstrumentation.getContext(), mHandler, null, in testGetDefaultValueOfFocusAppearanceData() 253 new AccessibilityManager(mInstrumentation.getContext(), mHandler, mMockService, in testRegisterAccessibilityProxy() 270 new AccessibilityManager(mInstrumentation.getContext(), mHandler, mMockService, in testUnregisterAccessibilityProxy()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/view/ |
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()
|
/frameworks/base/services/tests/PackageManagerServiceTests/host/test-apps/DeviceSide/src/com/android/server/pm/ |
D | PackageInstallerSessionTest.kt | 44 private val mInstrumentation: Instrumentation = getInstrumentation() in <lambda>() constant in com.android.server.pm.PackageInstallerSessionTest 62 val commandsHelper: CommandsHelper = CommandsHelper.getInstance(mInstrumentation) in <lambda>() 86 val lines: List<String> = CommandsHelper.getInstance(mInstrumentation) in <lambda>() 101 val context: Context = mInstrumentation.targetContext in <lambda>()
|
/frameworks/base/tests/GamePerformance/src/android/gameperformance/ |
D | ATraceRunner.java | 42 private final Instrumentation mInstrumentation; field in ATraceRunner 53 mInstrumentation = instrumentation; in ATraceRunner() 70 mInstrumentation.getUiAutomation().executeShellCommand(cmd); in doInBackground()
|
/frameworks/base/core/tests/coretests/src/android/app/compat/ |
D | CompatChangesTest.java | 49 private Instrumentation mInstrumentation; field in CompatChangesTest 56 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup() 61 return mInstrumentation.getTargetContext().getPackageName(); in getPackageName()
|