/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | WindowMagnificationControllerTest.java | 101 private Instrumentation mInstrumentation; field in WindowMagnificationControllerTest 107 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 138 mInstrumentation.runOnMainSync( in tearDown() 145 mInstrumentation.runOnMainSync(() -> { in enableWindowMagnification_showControlAndNotifyBoundsChanged() 158 mInstrumentation.runOnMainSync(() -> { in enableWindowMagnification_systemGestureExclusionRectsIsSet() 171 mInstrumentation.runOnMainSync(() -> { in deleteWindowMagnification_destroyControl() 176 mInstrumentation.runOnMainSync(() -> { in deleteWindowMagnification_destroyControl() 188 mInstrumentation.runOnMainSync(() -> { in deleteWindowMagnification_enableAtTheBottom_overlapFlagIsFalse() 194 mInstrumentation.runOnMainSync(() -> { in deleteWindowMagnification_enableAtTheBottom_overlapFlagIsFalse() 204 mInstrumentation.runOnMainSync(() -> { in moveMagnifier_schedulesFrame() [all …]
|
D | WindowMagnificationAnimationControllerTest.java | 92 private Instrumentation mInstrumentation; field in WindowMagnificationAnimationControllerTest 99 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 112 mInstrumentation.runOnMainSync(() -> mController.deleteWindowMagnification()); in tearDown() 134 mInstrumentation.runOnMainSync( in enableWindowMagnificationWithScaleOne_disabled_NoAnimationAndInvokeCallback() 155 mInstrumentation.runOnMainSync(() -> { in enableWindowMagnification_enabling_expectedValuesAndInvokeCallback() 182 mInstrumentation.runOnMainSync(() -> { in enableWindowMagnificationWithSameSpec_enabling_NoAnimationAndInvokeCallback() 205 mInstrumentation.runOnMainSync( in enableWindowMagnification_disabling_expectedValuesAndInvokeCallback() 240 mInstrumentation.runOnMainSync(() -> { in enableWindowMagnificationWithSameSpec_disabling_NoAnimationAndInvokeCallback() 263 mInstrumentation.runOnMainSync(() -> { in enableWindowMagnification_enabled_expectedValuesAndInvokeCallback() 300 mInstrumentation.runOnMainSync( in setScale_enabled_expectedScale() [all …]
|
/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/core/tests/coretests/src/android/view/ |
D | ViewInputConnectionTest.java | 58 private Instrumentation mInstrumentation; field in ViewInputConnectionTest 64 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in before() 81 mInstrumentation.waitForIdleSync(); in testInputConnectionCallbacks() 85 mInstrumentation.waitForIdleSync(); in testInputConnectionCallbacks() 92 mInstrumentation.waitForIdleSync(); in testInputConnectionCallbacks() 105 mInstrumentation.waitForIdleSync(); in testInputConnectionCallbacks() 113 mInstrumentation.waitForIdleSync(); in testInputConnectionCallbacks() 135 mInstrumentation.waitForIdleSync(); in testInputConnectionCallbacks_nullInputConnection() 139 mInstrumentation.waitForIdleSync(); in testInputConnectionCallbacks_nullInputConnection() 146 mInstrumentation.waitForIdleSync(); in testInputConnectionCallbacks_nullInputConnection() [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/Input/src/com/android/test/input/ |
D | AnrTest.kt | 56 val mInstrumentation = InstrumentationRegistry.getInstrumentation() constant in com.android.test.input.AnrTest 61 val contentResolver = mInstrumentation.targetContext.contentResolver in setUp() 68 val contentResolver = mInstrumentation.targetContext.contentResolver in tearDown() 75 val uiDevice: UiDevice = UiDevice.getInstance(mInstrumentation) in testGestureMonitorAnr() 90 mInstrumentation.uiAutomation.injectInputEvent(downEvent, false /* sync*/) in testGestureMonitorAnr() 100 val uiDevice: UiDevice = UiDevice.getInstance(mInstrumentation) in clickCloseAppOnAnrDialog() 113 mInstrumentation.uiAutomation.executeShellCommand(startCmd) in startUnresponsiveActivity()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
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 …]
|
D | TextViewActivityTest.java | 117 private Instrumentation mInstrumentation; field in TextViewActivityTest 122 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 317 mInstrumentation.waitForIdleSync(); in testToolbarAppearsAfterSelection_withFirstStringLtrAlgorithmAndRtlHint() 372 mInstrumentation.waitForIdleSync(); in testToolbarAppearsAccessibilityLongClick() 410 mInstrumentation.waitForIdleSync(); in testToolbarMenuItemClickAfterSelectionChange() 423 mInstrumentation.waitForIdleSync(); in testToolbarMenuItemClickAfterSelectionChange() 441 mInstrumentation.waitForIdleSync(); in testSelectionRemovedWhenNonselectableTextLosesFocus() 459 UiDevice device = UiDevice.getInstance(mInstrumentation); in testSelectionRemovedFromNonselectableTextWhenWindowLosesFocus() 486 mInstrumentation.waitForIdleSync(); in addLinkifiedTextToTextView() 952 mInstrumentation.waitForIdleSync(); in testSetSelectionAndActionMode() [all …]
|
D | EditorCursorTest.java | 64 private Instrumentation mInstrumentation; field in EditorCursorTest 71 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 77 mInstrumentation.waitForIdleSync(); in setUp() 202 mInstrumentation.waitForIdleSync(); in setEditTextProperties()
|
/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 | WindowContextTest.java | 75 private final Instrumentation mInstrumentation = InstrumentationRegistry.getInstrumentation(); field in WindowContextTest 85 mInstrumentation.runOnMainSync(() -> { in testCreateWindowContextWindowManagerAttachClientToken() 124 mInstrumentation.runOnMainSync(() -> { in testCreateWindowContextNewTokenFromClient() 164 mInstrumentation.runOnMainSync(() -> { in testCreateWindowContext_AttachActivity_TokenNotRemovedAfterRelease() 199 mInstrumentation.runOnMainSync(() -> { in testCreateWindowContext_AttachWindowToken_TokenNotRemovedAfterRelease() 232 mInstrumentation.runOnMainSync(() -> wm.addView(parentWindow, params)); in testWindowContextAddViewWithSubWindowType_NotCrash() 242 mInstrumentation.runOnMainSync(() -> wm.addView(subWindow, subWindowAttrs)); in testWindowContextAddViewWithSubWindowType_NotCrash() 250 final Context instContext = mInstrumentation.getTargetContext(); in createWindowContext()
|
/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
D | AccessibilityManagerTest.java | 77 private Instrumentation mInstrumentation; field in AccessibilityManagerTest 85 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 86 mFocusStrokeWidthDefaultValue = mInstrumentation.getContext().getResources() in setUp() 88 mFocusColorDefaultValue = mInstrumentation.getContext().getResources().getColor( in setUp() 109 new AccessibilityManager(mInstrumentation.getContext(), mHandler, mMockService, in createManager() 206 mInstrumentation.runOnMainSync(() -> { in testSendAccessibilityEvent_AccessibilityDisabled() 231 new AccessibilityManager(mInstrumentation.getContext(), mHandler, null, in testGetDefaultValueOfFocusAppearanceData()
|
/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/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/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityInteractionControllerNodeRequestsTest.java | 79 private final Instrumentation mInstrumentation = InstrumentationRegistry.getInstrumentation(); field in AccessibilityInteractionControllerNodeRequestsTest 102 mInstrumentation.runOnMainSync(() -> { in setUp() 103 final Context context = mInstrumentation.getTargetContext(); in setUp() 154 mInstrumentation.waitForIdleSync(); in testFindRootView_withOneClient_shouldReturnRootNodeAndPrefetchDescendants() 185 mInstrumentation.waitForIdleSync(); in testFindTextView_withOneClient_shouldReturnNodeAndPrefetchedSiblings() 234 mInstrumentation.waitForIdleSync(); in testFindRootAndTextNodes_withTwoClients_shouldPreventClient1Prefetch() 306 mInstrumentation.waitForIdleSync(); in testFindRootAndTextNode_withOneClient_shouldInterruptPrefetchAndSatisfyPendingMsg() 371 mInstrumentation.waitForIdleSync(); in testFindRoot_withOneClient_shouldInterruptPrefetchAndSatisfyPendingMsg() 427 mInstrumentation.waitForIdleSync(); in testFindRootAndTextNode_withTwoClients_shouldInterruptPrefetchAndSatisfyPendingMsg() 491 mInstrumentation.waitForIdleSync(); in testFindNodeById_withTwoDifferentPrefetchFlags_shouldNotSatisfyPendingRequest()
|
/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()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityLeakTests.java | 51 private final Instrumentation mInstrumentation = getInstrumentation(); field in ActivityLeakTests 52 private final Context mContext = mInstrumentation.getTargetContext(); 57 mInstrumentation.runOnMainSync(() -> { in tearDown() 113 return mInstrumentation.startActivitySync(intent); in startActivity()
|
/frameworks/base/test-runner/src/android/test/ |
D | AndroidTestRunner.java | 50 private Instrumentation mInstrumentation; field in AndroidTestRunner 191 Context testContext = mInstrumentation == null ? mContext : mInstrumentation.getContext(); in runTest() 194 setInstrumentationIfInstrumentationTestCase(testCase, mInstrumentation); in runTest() 218 mInstrumentation = instrumentation; in setInstrumentation()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | KeyguardIndicationControllerTest.java | 172 private Instrumentation mInstrumentation; field in KeyguardIndicationControllerTest 177 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 249 mInstrumentation.runOnMainSync(() -> { in onAlignmentStateChanged_showsSlowChargingIndication() 256 mInstrumentation.waitForIdleSync(); in onAlignmentStateChanged_showsSlowChargingIndication() 267 mInstrumentation.runOnMainSync(() -> { in onAlignmentStateChanged_showsNotChargingIndication() 274 mInstrumentation.waitForIdleSync(); in onAlignmentStateChanged_showsNotChargingIndication() 284 mInstrumentation.runOnMainSync(() -> { in onAlignmentStateChanged_whileDozing_showsSlowChargingIndication() 292 mInstrumentation.waitForIdleSync(); in onAlignmentStateChanged_whileDozing_showsSlowChargingIndication() 302 mInstrumentation.runOnMainSync(() -> { in onAlignmentStateChanged_whileDozing_showsNotChargingIndication() 310 mInstrumentation.waitForIdleSync(); in onAlignmentStateChanged_whileDozing_showsNotChargingIndication() [all …]
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/ |
D | Automator.java | 82 private Instrumentation mInstrumentation; field in Automator.AutomatorHandler 95 mInstrumentation = new Instrumentation(); in AutomatorHandler() 164 mInstrumentation.sendKeyDownUpSync(code); in doInteraction() 172 mInstrumentation.sendPointerSync(event); in doInteraction()
|
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
D | UiBot.java | 49 private final Instrumentation mInstrumentation; field in UiBot 54 mInstrumentation = instrumentation; in UiBot() 114 (StatusBarManager) mInstrumentation.getContext().getSystemService("statusbar"); in collapseStatusBar() 211 final String share = mInstrumentation.getContext().getString( in chooseActivity()
|