Home
last modified time | relevance | path

Searched refs:mInstrumentation (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/test-base/src/android/test/
DInstrumentationTestSuite.java37 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()
DInstrumentationTestCase.java44 private Instrumentation mInstrumentation; field in InstrumentationTestCase
53 mInstrumentation = instrumentation; in injectInstrumentation()
75 return mInstrumentation; in getInstrumentation()
/frameworks/base/core/tests/coretests/src/android/util/
DListUtil.java29 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()
DOrientationUtil.java32 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/core/tests/coretests/src/android/widget/
DDatePickerFocusTest.java37 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()
DTextViewTest.java61 private Instrumentation mInstrumentation; field in TextViewTest
68 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup()
106 mInstrumentation.waitForIdleSync(); in testProcessTextActivityResultNonEditable()
121 mInstrumentation.waitForIdleSync(); in testProcessTextActivityResultNonEditable()
130 mInstrumentation.waitForIdleSync(); in testProcessTextActivityResultEditable()
148 mInstrumentation.waitForIdleSync(); in testProcessTextActivityResultCancel()
167 mInstrumentation.waitForIdleSync(); in testProcessTextActivityNoData()
DEditorCursorTest.java64 private Instrumentation mInstrumentation; field in EditorCursorTest
71 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
77 mInstrumentation.waitForIdleSync(); in setUp()
202 mInstrumentation.waitForIdleSync(); in setEditTextProperties()
DTextViewActivityTest.java110 private Instrumentation mInstrumentation; field in TextViewActivityTest
115 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
308 mInstrumentation.waitForIdleSync(); in testToolbarAppearsAfterSelection_withFirstStringLtrAlgorithmAndRtlHint()
368 mInstrumentation.waitForIdleSync(); in testSelectionRemovedWhenNonselectableTextLosesFocus()
386 UiDevice device = UiDevice.getInstance(mInstrumentation); in testSelectionRemovedFromNonselectableTextWhenWindowLosesFocus()
413 mInstrumentation.waitForIdleSync(); in addLinkifiedTextToTextView()
802 mInstrumentation.waitForIdleSync(); in testSetSelectionAndActionMode()
813 mInstrumentation.waitForIdleSync(); in testSetSelectionAndActionMode()
822 mInstrumentation.waitForIdleSync(); in testSetSelectionAndActionMode()
832 mInstrumentation.waitForIdleSync(); in testSetSelectionAndActionMode()
[all …]
/frameworks/base/cmds/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/testrunner/
DInstrumentationAutomationSupport.java30 private Instrumentation mInstrumentation; field in InstrumentationAutomationSupport
33 mInstrumentation = instrumentation; in InstrumentationAutomationSupport()
38 mInstrumentation.sendStatus(resultCode, status); in sendStatus()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DKeyguardIndicationControllerTest.java114 private Instrumentation mInstrumentation; field in KeyguardIndicationControllerTest
119 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
226 mInstrumentation.runOnMainSync(() -> { in onAlignmentStateChanged_showsSlowChargingIndication()
233 mInstrumentation.waitForIdleSync(); in onAlignmentStateChanged_showsSlowChargingIndication()
243 mInstrumentation.runOnMainSync(() -> { in onAlignmentStateChanged_showsNotChargingIndication()
250 mInstrumentation.waitForIdleSync(); in onAlignmentStateChanged_showsNotChargingIndication()
260 mInstrumentation.runOnMainSync(() -> { in onAlignmentStateChanged_whileDozing_showsSlowChargingIndication()
268 mInstrumentation.waitForIdleSync(); in onAlignmentStateChanged_whileDozing_showsSlowChargingIndication()
278 mInstrumentation.runOnMainSync(() -> { in onAlignmentStateChanged_whileDozing_showsNotChargingIndication()
286 mInstrumentation.waitForIdleSync(); in onAlignmentStateChanged_whileDozing_showsNotChargingIndication()
[all …]
DNotificationTestHelper.java70 private final Instrumentation mInstrumentation; field in NotificationTestHelper
78 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in NotificationTestHelper()
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DATraceRunner.java42 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/
DCompatChangesTest.java49 private Instrumentation mInstrumentation; field in CompatChangesTest
56 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup()
61 return mInstrumentation.getTargetContext().getPackageName(); in getPackageName()
/frameworks/base/test-runner/src/android/test/
DAndroidTestRunner.java50 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/services/tests/servicestests/src/com/android/server/hdmi/
DArcTerminationActionFromAvrTest.java47 private Instrumentation mInstrumentation; field in ArcTerminationActionFromAvrTest
54 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
57 new HdmiControlService(mInstrumentation.getTargetContext()) { in setUp()
DArcInitiationActionFromAvrTest.java57 private Instrumentation mInstrumentation; field in ArcInitiationActionFromAvrTest
64 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
67 new HdmiControlService(mInstrumentation.getTargetContext()) { in setUp()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/
DAutomator.java82 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/
DUiBot.java40 private final Instrumentation mInstrumentation; field in UiBot
45 mInstrumentation = instrumentation; in UiBot()
68 (StatusBarManager) mInstrumentation.getContext().getSystemService("statusbar"); in collapseStatusBar()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityManagerTest.java63 private Instrumentation mInstrumentation; field in AccessibilityManagerTest
69 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
152 mInstrumentation.runOnMainSync(() -> { in testSendAccessibilityEvent_AccessibilityDisabled()
/frameworks/base/core/tests/coretests/src/android/content/res/
DFontResourcesParserTest.java52 private Instrumentation mInstrumentation; field in FontResourcesParserTest
57 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup()
58 mResources = mInstrumentation.getContext().getResources(); in setup()
/frameworks/base/tests/Compatibility/src/com/android/compatibilitytest/
DAppCompatibility.java88 private Instrumentation mInstrumentation; field in AppCompatibility
95 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
118 mInstrumentation.getUiAutomation().setRotation(UiAutomation.ROTATION_FREEZE_0); in setUp()
131 mInstrumentation.getUiAutomation().setRotation(UiAutomation.ROTATION_UNFREEZE); in tearDown()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DScreenDecorWindowTests.java85 private final Instrumentation mInstrumentation = getInstrumentation(); field in ScreenDecorWindowTests
324 mInstrumentation.waitForIdleSync(); in waitForIdle()
332 final Activity activity = mInstrumentation.startActivitySync(intent, options.toBundle()); in startActivityOnDisplay()
/frameworks/base/core/java/android/app/
DActivityThread.java354 Instrumentation mInstrumentation; field in ActivityThread
2377 return mInstrumentation; in getInstrumentation()
3201 activity = mInstrumentation.newActivity( in performLaunchActivity()
3210 if (!mInstrumentation.onException(activity, e)) { in performLaunchActivity()
3218 Application app = r.packageInfo.makeApplication(false, mInstrumentation); in performLaunchActivity()
3262 mInstrumentation.callActivityOnCreate(activity, r.state, r.persistentState); in performLaunchActivity()
3264 mInstrumentation.callActivityOnCreate(activity, r.state); in performLaunchActivity()
3286 if (!mInstrumentation.onException(activity, e)) { in performLaunchActivity()
3325 mInstrumentation.callActivityOnRestoreInstanceState(activity, r.state, in handleStartActivity()
3329 mInstrumentation.callActivityOnRestoreInstanceState(activity, r.state); in handleStartActivity()
[all …]
DActivity.java791 private Instrumentation mInstrumentation; field in Activity
5210 mInstrumentation.execStartActivity(
5305 Instrumentation.ActivityResult ar = mInstrumentation.execStartActivity(
5343 mInstrumentation.execStartActivity( in startActivityAsUser()
5377 mInstrumentation.execStartActivityAsCaller( in startActivityAsCaller()
5583 mInstrumentation.execStartActivities(this, mMainThread.getApplicationThread(), in startActivities()
5826 mInstrumentation.execStartActivity( in startActivityFromChild()
5910 mInstrumentation.execStartActivity( in startActivityForResult()
7321 mInstrumentation.onEnterAnimationComplete(); in dispatchEnterAnimationComplete()
7748 mInstrumentation = instr; in attach()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeDockHandlerTest.java58 private Instrumentation mInstrumentation; field in DozeDockHandlerTest
69 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()

12