Home
last modified time | relevance | path

Searched refs:getInstrumentation (Results 1 – 25 of 104) sorted by relevance

12345

/frameworks/base/core/tests/coretests/src/android/view/
DRunQueueTest.java35 getInstrumentation().waitForIdleSync(); in testRunnableRan()
42 getInstrumentation().waitForIdleSync(); in testRunnableCancelled()
49 getInstrumentation().waitForIdleSync(); in testListenerFired()
56 getInstrumentation().waitForIdleSync(); in testTreeObserverKilled()
DLongpressTest.java72 getInstrumentation().waitForIdleSync(); in testKeypadLongClick()
75 getInstrumentation().waitForIdleSync(); in testKeypadLongClick()
82 getInstrumentation().waitForIdleSync(); in testTouchLongClick()
DDisabledLongpressTest.java76 getInstrumentation().waitForIdleSync(); in testKeypadLongClick()
79 getInstrumentation().waitForIdleSync(); in testKeypadLongClick()
86 getInstrumentation().waitForIdleSync(); in testTouchLongClick()
/frameworks/base/core/java/android/test/
DInstrumentationTestCase.java68 public Instrumentation getInstrumentation() { in getInstrumentation() method in InstrumentationTestCase
119 T activity = (T) getInstrumentation().startActivitySync(intent); in launchActivityWithIntent()
120 getInstrumentation().waitForIdleSync(); in launchActivityWithIntent()
135 getInstrumentation().runOnMainSync(new Runnable() { in runTestOnUiThread()
186 getInstrumentation().runOnMainSync(new Runnable() { in runTest()
228 getInstrumentation().sendStatus(2, iterations); in runMethod()
251 final Instrumentation instrumentation = getInstrumentation(); in sendKeys()
301 final Instrumentation instrumentation = getInstrumentation(); in sendKeys()
330 final Instrumentation instrumentation = getInstrumentation(); in sendRepeatedKeys()
/frameworks/testing/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/testrunner/
DUiAutomatorTestCase.java67 mAutomationSupport = new InstrumentationAutomationSupport(getInstrumentation()); in getAutomationSupport()
85 getInstrumentation().getUiAutomation().setRunAsMonkey(Boolean.valueOf(monkeyVal)); in initialize()
89 getInstrumentation().getContext(), in initialize()
90 getInstrumentation().getUiAutomation())); in initialize()
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DScrollingThroughListOfFocusablesTest.java86 getInstrumentation().waitForIdleSync(); in testScrollingDownInFirstItem()
119 getInstrumentation().waitForIdleSync(); in testScrollingToSecondItem()
134 getInstrumentation().waitForIdleSync(); in testNoFadingEdgeAtBottomOfLastItem()
159 getInstrumentation().waitForIdleSync(); in testNavigatingUpThroughInternalSelection()
182 getInstrumentation().waitForIdleSync(); in testNavigatingUpThroughInternalSelection()
232 getInstrumentation().waitForIdleSync(); in ensureNotInTouchMode()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListFocusableTest.java194 getInstrumentation().waitForIdleSync(); in setFullAdapter()
203 getInstrumentation().waitForIdleSync(); in setEmptyAdapter()
212 getInstrumentation().waitForIdleSync(); in setNullAdapter()
221 getInstrumentation().waitForIdleSync(); in setFocusable()
230 getInstrumentation().waitForIdleSync(); in setNonFocusable()
DListRetainsFocusAcrossLayoutsTest.java54 getInstrumentation().waitForIdleSync(); in testBottomButtonRetainsFocusAfterLayout()
68 getInstrumentation().waitForIdleSync(); in testTopButtonOfSecondPositionRetainsFocusAfterLayout()
83 getInstrumentation().waitForIdleSync(); in testBottomButtonOfSecondPositionRetainsFocusAfterLayout()
DListManagedCursorTest.java60 Instrumentation inst = getInstrumentation(); in testKeyScrolling()
77 Instrumentation inst = getInstrumentation(); in testTouchScrolling()
95 Instrumentation inst = getInstrumentation(); in testKeyScrollingToTouchMode()
116 Instrumentation inst = getInstrumentation(); in testTouchScrollingToTrackballMode()
DListEmptyViewTest.java55 Instrumentation inst = getInstrumentation(); in testZeroToOne()
65 Instrumentation inst = getInstrumentation(); in testZeroToOneForwardBack()
87 Instrumentation inst = getInstrumentation(); in testZeroToManyToZero()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DScreenshotTest.java104 getInstrumentation().sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, in takeScreenshot()
106 getInstrumentation().sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, in takeScreenshot()
114 getInstrumentation().sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, in takeScreenshot()
116 getInstrumentation().sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, in takeScreenshot()
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
DScrollViewButtonsAndLabelsTest.java73 getInstrumentation().waitForIdleSync(); in testArrowScrollDownOffScreenVerticalFadingEdge()
109 getInstrumentation().waitForIdleSync(); in testArrowScrollDownToBottomElementOnScreen()
131 getInstrumentation().waitForIdleSync(); in testArrowScrollUpOffScreenVerticalFadingEdge()
151 getInstrumentation().waitForIdleSync(); in testArrowScrollUpToTopElementOnScreen()
171 getInstrumentation().waitForIdleSync(); in goToBottomButton()
DRequestRectangleVisibleTest.java104 getInstrumentation().waitForIdleSync(); // wait for scrolling to finish in testScrollToOffScreenRectangleFromTop()
126 getInstrumentation().waitForIdleSync(); // wait for scrolling to finish in testScrollToPartiallyOffScreenRectFromTop()
145 getInstrumentation().waitForIdleSync(); // wait for scrolling to finish in testScrollToOffScreenRectangleFromBottom()
163 getInstrumentation().waitForIdleSync(); // wait for scrolling to finish in testScrollToPartiallyOffScreenRectFromBottom()
184 getInstrumentation().waitForIdleSync(); in pressDownUntilViewInFocus()
/frameworks/base/core/tests/coretests/src/android/widget/
DAutoCompleteTextViewPopup.java48 final Instrumentation instrumentation = getInstrumentation(); in testPopupSetListSelection()
80 final Instrumentation instrumentation = getInstrumentation(); in testPopupGetListSelection()
107 final Instrumentation instrumentation = getInstrumentation(); in testPopupClearListSelection()
140 final Instrumentation instrumentation = getInstrumentation(); in testPopupNavigateNoAdapter()
174 final Instrumentation instrumentation = getInstrumentation(); in testPopupShow()
DAutoCompleteTextViewCallbacks.java39 final Instrumentation instrumentation = getInstrumentation(); in testPopupNoSelection()
64 final Instrumentation instrumentation = getInstrumentation(); in testPopupEnterSelection()
113 final Instrumentation instrumentation = getInstrumentation(); in testPopupLeaveSelection()
DListViewTest.java97 return getInstrumentation().getTargetContext().getResources(); in getResources()
102 return getInstrumentation().getTargetContext().getTheme(); in getTheme()
108 return getInstrumentation().getTargetContext().getSystemService(name); in getSystemService()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
DGridSetSelectionBaseTest.java64 getInstrumentation().waitForIdleSync(); in testSetSelectionToTheEnd()
80 getInstrumentation().waitForIdleSync(); in testSetSelectionToMiddle()
95 getInstrumentation().waitForIdleSync(); in testSetSelectionToTheTop()
/frameworks/base/core/tests/coretests/src/android/util/
DKeyUtils.java46 final Instrumentation inst = test.getInstrumentation(); in tapMenuKey()
59 final Instrumentation inst = test.getInstrumentation(); in chordMenuKey()
78 final Instrumentation inst = test.getInstrumentation(); in longClick()
/frameworks/testing/androidtestlib/src/com/android/test/runner/listener/
DInstrumentationRunListener.java37 public Instrumentation getInstrumentation() { in getInstrumentation() method in InstrumentationRunListener
45 getInstrumentation().sendStatus(code, bundle); in sendStatus()
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListSetSelectionTest.java69 getInstrumentation().waitForIdleSync(); in testSetSelection()
99 getInstrumentation().waitForIdleSync(); in testSetSelectionFromTop()
135 getInstrumentation().waitForIdleSync(); in testSetSelection0()
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DFrameworkPerfTest.java18 getInstrumentation().runOnMainSync(new Runnable() { in testFrameworkPerf()
39 getInstrumentation().sendStatus(Activity.RESULT_OK, testResult); in testFrameworkPerf()
/frameworks/base/test-runner/src/android/test/
DActivityInstrumentationTestCase.java76 getInstrumentation().setInTouchMode(mInitialTouchMode); in setUp()
77 final String targetPackageName = getInstrumentation().getTargetContext().getPackageName(); in setUp()
DActivityUnitTestCase.java99 mActivityContext = getInstrumentation().getTargetContext(); in setUp()
143 newActivity = (T) getInstrumentation().newActivity(mActivityClass, mActivityContext, in startActivity()
158 getInstrumentation().callActivityOnCreate(getActivity(), savedInstanceState); in startActivity()
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
DRsBenchTest.java46 Instrumentation mInst = getInstrumentation(); in setUp()
47 RsPerfTestRunner mRunner = (RsPerfTestRunner) getInstrumentation(); in setUp()
/frameworks/base/core/tests/utillib/src/android/test/
DBandwidthTestCase.java77 getInstrumentation().runOnMainSync(new Runnable() { in runTest()
107 getInstrumentation().sendStatus(2, getBandwidthStats(entry)); in runTest()
137 getInstrumentation().sendStatus(2, iterations); in runMethod()

12345