Home
last modified time | relevance | path

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

12345678910

/frameworks/base/core/tests/coretests/src/android/content/
DContextTest.java46 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testDisplayIdForTestContext()
54 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testDisplayIdForDefaultDisplayContext()
66 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNullIntentNullUser()
73 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNullIntentNonNullUser()
80 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNonNullIntentNullUser()
87 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNonNullIntentNonNullUser()
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
DFullscreenRotationTest.java35 Utils.startElementLayout(getInstrumentation(), 100); in beforeTest()
41 Utils.rotateDevice(getInstrumentation(), Utils.ROTATION_MODE_NATURAL); in afterTest()
49 Utils.rotateDevice(getInstrumentation(), in testRotation()
50 Utils.getDeviceRotation(getInstrumentation()) == Utils.ROTATION_MODE_LEFT ? in testRotation()
/frameworks/base/core/tests/coretests/src/android/view/
DRunQueueTest.java36 getInstrumentation().waitForIdleSync(); in testRunnableRan()
43 getInstrumentation().waitForIdleSync(); in testRunnableCancelled()
50 getInstrumentation().waitForIdleSync(); in testListenerFired()
57 getInstrumentation().waitForIdleSync(); in testTreeObserverKilled()
DInsetsControllerTest.java77 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> { in setup()
97 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in setup()
147 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> { in testAnimationEndState()
164 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testAnimationEndState()
174 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> { in testApplyImeVisibility()
182 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testApplyImeVisibility()
192 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> { in testShowHideSelectively()
208 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testShowHideSelectively()
218 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> { in testShowHideSingle()
248 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testShowHideSingle()
[all …]
DVisibilityTest.java73 getInstrumentation().waitForIdleSync(); in testVisibleToInvisible()
87 getInstrumentation().waitForIdleSync(); in testVisibleToGone()
101 getInstrumentation().waitForIdleSync(); in testGoneToVisible()
121 getInstrumentation().waitForIdleSync(); in testGoneToInvisible()
141 getInstrumentation().waitForIdleSync(); in testInvisibleToVisible()
161 getInstrumentation().waitForIdleSync(); in testInvisibleToGone()
DDisabledLongpressTest.java74 getInstrumentation().waitForIdleSync(); in testKeypadLongClick()
77 getInstrumentation().waitForIdleSync(); in testKeypadLongClick()
84 getInstrumentation().waitForIdleSync(); in testTouchLongClick()
DLongpressTest.java70 getInstrumentation().waitForIdleSync(); in testKeypadLongClick()
73 getInstrumentation().waitForIdleSync(); in testKeypadLongClick()
80 getInstrumentation().waitForIdleSync(); in testTouchLongClick()
DDisabledTest.java48 getInstrumentation().runOnMainSync( in setUp()
86 getInstrumentation().waitForIdleSync(); in testKeypadClick()
94 getInstrumentation().waitForIdleSync(); in testTouchClick()
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DMtpManagerTest.java48 mUsbDevice = TestUtil.setupMtpDevice(getInstrumentation(), mUsbManager, mManager); in setUp()
57 public TestResultInstrumentation getInstrumentation() { in getInstrumentation() method in MtpManagerTest
58 return (TestResultInstrumentation) super.getInstrumentation(); in getInstrumentation()
87 getInstrumentation().show(Arrays.toString(records[0].operationsSupported)); in testOperationsSupported()
94 getInstrumentation().show(Arrays.toString(records[0].eventsSupported)); in testEventsSupported()
101 getInstrumentation().show("deviceKey: " + records[0].deviceKey); in testDeviceKey()
106 getInstrumentation().show("Please take a photo by using connected MTP device."); in testEventObjectAdded()
162 return getInstrumentation().getContext(); in getContext()
/frameworks/base/test-base/src/android/test/
DInstrumentationTestCase.java74 public Instrumentation getInstrumentation() { in getInstrumentation() method in InstrumentationTestCase
125 T activity = (T) getInstrumentation().startActivitySync(intent); in launchActivityWithIntent()
126 getInstrumentation().waitForIdleSync(); in launchActivityWithIntent()
141 getInstrumentation().runOnMainSync(new Runnable() { in runTestOnUiThread()
192 getInstrumentation().runOnMainSync(new Runnable() { in runTest()
234 getInstrumentation().sendStatus(2, iterations); in runMethod()
257 final Instrumentation instrumentation = getInstrumentation(); in sendKeys()
307 final Instrumentation instrumentation = getInstrumentation(); in sendKeys()
336 final Instrumentation instrumentation = getInstrumentation(); in sendRepeatedKeys()
/frameworks/base/cmds/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/testrunner/
DUiAutomatorTestCase.java70 mAutomationSupport = new InstrumentationAutomationSupport(getInstrumentation()); in getAutomationSupport()
88 getInstrumentation().getUiAutomation().setRunAsMonkey(Boolean.valueOf(monkeyVal)); in initialize()
92 getInstrumentation().getContext(), in initialize()
93 getInstrumentation().getUiAutomation())); in initialize()
/frameworks/base/tests/ServiceCrashTest/src/com/android/tests/servicecrashtest/
DServiceCrashTest.java41 getInstrumentation().getContext().getContentResolver(), in setUp()
56 SystemUtil.runShellCommand(getInstrumentation(), in setAMConstants()
59 SystemUtil.runShellCommand(getInstrumentation(), "settings put global " in setAMConstants()
65 Context ctx = getInstrumentation().getContext(); in testCrashQuickly()
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DScrollingThroughListOfFocusablesTest.java60 getInstrumentation().waitForIdleSync(); in setUp()
90 getInstrumentation().waitForIdleSync(); in testScrollingDownInFirstItem()
123 getInstrumentation().waitForIdleSync(); in testScrollingToSecondItem()
138 getInstrumentation().waitForIdleSync(); in testNoFadingEdgeAtBottomOfLastItem()
163 getInstrumentation().waitForIdleSync(); in testNavigatingUpThroughInternalSelection()
186 getInstrumentation().waitForIdleSync(); in testNavigatingUpThroughInternalSelection()
236 getInstrumentation().waitForIdleSync(); in ensureNotInTouchMode()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DActivityThreadTest.java84 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testDoubleRelaunch()
94 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testResumeAfterRelaunch()
104 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testSleepAndStop()
112 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> { in testRepeatedResume()
131 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> { in testCustomIntentPreservedOnRelaunch()
156 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> { in testHandleActivityConfigurationChanged()
170 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> { in testHandleActivity_assetsChanged()
181 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> { in testHandleActivity_assetsChanged()
195 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> { in testHandleActivityConfigurationChanged_DropStaleConfigurations()
213 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> { in testHandleActivityConfigurationChanged_ApplyNewConfigurations()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
DScrollViewButtonsAndLabelsTest.java71 getInstrumentation().waitForIdleSync(); in testArrowScrollDownOffScreenVerticalFadingEdge()
76 getInstrumentation().waitForIdleSync(); in testArrowScrollDownOffScreenVerticalFadingEdge()
112 getInstrumentation().waitForIdleSync(); in testArrowScrollDownToBottomElementOnScreen()
134 getInstrumentation().waitForIdleSync(); in testArrowScrollUpOffScreenVerticalFadingEdge()
154 getInstrumentation().waitForIdleSync(); in testArrowScrollUpToTopElementOnScreen()
174 getInstrumentation().waitForIdleSync(); in goToBottomButton()
DRequestRectangleVisibleTest.java106 getInstrumentation().waitForIdleSync(); // wait for scrolling to finish in testScrollToOffScreenRectangleFromTop()
128 getInstrumentation().waitForIdleSync(); // wait for scrolling to finish in testScrollToPartiallyOffScreenRectFromTop()
147 getInstrumentation().waitForIdleSync(); // wait for scrolling to finish in testScrollToOffScreenRectangleFromBottom()
165 getInstrumentation().waitForIdleSync(); // wait for scrolling to finish in testScrollToPartiallyOffScreenRectFromBottom()
186 getInstrumentation().waitForIdleSync(); in pressDownUntilViewInFocus()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListRetainsFocusAcrossLayoutsTest.java53 getInstrumentation().waitForIdleSync(); in testBottomButtonRetainsFocusAfterLayout()
67 getInstrumentation().waitForIdleSync(); in testTopButtonOfSecondPositionRetainsFocusAfterLayout()
82 getInstrumentation().waitForIdleSync(); in testBottomButtonOfSecondPositionRetainsFocusAfterLayout()
DListFocusableTest.java195 getInstrumentation().waitForIdleSync(); in setFullAdapter()
204 getInstrumentation().waitForIdleSync(); in setEmptyAdapter()
213 getInstrumentation().waitForIdleSync(); in setNullAdapter()
222 getInstrumentation().waitForIdleSync(); in setFocusable()
231 getInstrumentation().waitForIdleSync(); in setNonFocusable()
/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()
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListWithNoFadingEdgeTest.java53 getInstrumentation().waitForIdleSync(); in testScrollDownToBottom()
66 getInstrumentation().waitForIdleSync(); in testScrollFromBottomToTop()
74 getInstrumentation().waitForIdleSync(); in testScrollFromBottomToTop()
/frameworks/base/core/tests/coretests/src/android/provider/
DFontsContractE2ETest.java58 final Context context = InstrumentationRegistry.getInstrumentation().getTargetContext();
77 InstrumentationRegistry.getInstrumentation().getTargetContext()); in setUp()
83 InstrumentationRegistry.getInstrumentation().getTargetContext()); in tearDown()
116 Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in typefaceCacheTest()
155 Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in typefaceNotCacheTest()
178 Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in typefaceNullFdTest()
/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/content/res/
DResourcesDrawableTest.java43 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testLoadColorAsDrawable()
51 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testLoadColorAsDrawableFailureThrowsOriginalException()
76 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testLoadNormalDrawableInColorDir()
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DGamePerformanceTest.java61 final String output = (new File(getInstrumentation().getContext().getFilesDir(), in testGraphicBufferMetrics()
64 new ATraceRunner(getInstrumentation(), output, 5, "gfx", new ATraceRunner.Delegate() { in testGraphicBufferMetrics()
85 getInstrumentation().sendStatus(Activity.RESULT_OK, status); in testGraphicBufferMetrics()
/frameworks/base/core/tests/coretests/src/android/util/
DKeyUtils.java40 final Instrumentation inst = test.getInstrumentation(); in tapMenuKey()
53 final Instrumentation inst = test.getInstrumentation(); in chordMenuKey()
72 final Instrumentation inst = test.getInstrumentation(); in longClick()

12345678910