Home
last modified time | relevance | path

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

12345678910>>...15

/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
DThumbsBarTest.java47 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in checkThumbsBarInitialize()
48 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in checkThumbsBarInitialize()
69 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in checkGetHeroIndexOnEvenNumber()
70 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in checkGetHeroIndexOnEvenNumber()
88 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in checkGetHeroIndexOnOddNumber()
89 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in checkGetHeroIndexOnOddNumber()
107 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in checkSetThumbSize()
108 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in checkSetThumbSize()
151 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in checkSetHeroThumbSize()
152 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in checkSetHeroThumbSize()
[all …]
DControlBarTest.java52 InstrumentationRegistry.getInstrumentation().runOnMainSync( in defaultFocus()
77 InstrumentationRegistry.getInstrumentation().runOnMainSync( in persistFocus()
85 InstrumentationRegistry.getInstrumentation().runOnMainSync( in persistFocus()
94 InstrumentationRegistry.getInstrumentation().runOnMainSync( in persistFocus()
135 InstrumentationRegistry.getInstrumentation().runOnMainSync( in getFocusables()
143 InstrumentationRegistry.getInstrumentation().runOnMainSync( in getFocusables()
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/
DProgressBarManagerTest.java42 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in setUp()
43 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in setUp()
57 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in defaultProgressBarView()
71 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in defaultProgressBarView()
84 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in defaultProgressBarView()
106 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in customProgressBarView()
121 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in customProgressBarView()
135 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in customProgressBarView()
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/app/
DKeyEventsTestCaseWithToolbar.java51 InstrumentationRegistry.getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_MENU); in testMenuKeyOpensToolbarMenu()
52 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testMenuKeyOpensToolbarMenu()
55 InstrumentationRegistry.getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_MENU); in testMenuKeyOpensToolbarMenu()
56 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testMenuKeyOpensToolbarMenu()
75 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testOpenMenuOpensToolbarMenu()
84 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testOpenMenuOpensToolbarMenu()
DKeyboardShortcutsTestCaseWithToolbar.java64 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testAccessActionBar()
66 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testAccessActionBar()
80 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testAccessActionBar()
144 InstrumentationRegistry.getInstrumentation().sendKeySync(unhandledShortcutKey); in testKeyShortcuts()
154 InstrumentationRegistry.getInstrumentation().sendKeySync(keyDown); in sendMetaKey()
158 InstrumentationRegistry.getInstrumentation().sendKeySync(keyUp); in sendMetaKey()
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/media/
DMediaPlayerGlueTest.java50 final Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in mediaPlayer()
52 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in mediaPlayer()
75 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in mediaPlayer()
90 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in mediaPlayer()
100 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in mediaPlayer()
111 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in mediaPlayer()
121 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in mediaPlayer()
131 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in mediaPlayer()
DPlaybackBannerControlGlueTest.java73 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in usingDefaultRowAndPresenter()
74 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in usingDefaultRowAndPresenter()
91 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in customRowPresenter()
92 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in customRowPresenter()
117 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in customControlsRow()
118 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in customControlsRow()
138 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in customRowAndPresenter()
139 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in customRowAndPresenter()
167 InstrumentationRegistry.getInstrumentation().getTargetContext(), in playerAdapterTest()
175 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in playerAdapterTest()
[all …]
DPlaybackControlGlueTest.java98 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in usingDefaultRowAndPresenter()
99 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in usingDefaultRowAndPresenter()
117 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in customRowPresenter()
118 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in customRowPresenter()
144 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in customControlsRow()
145 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in customControlsRow()
166 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in customRowAndPresenter()
167 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in customRowAndPresenter()
DPlaybackTransportControlGlueTest.java76 InstrumentationRegistry.getInstrumentation().getTargetContext(), in setupWithMockAdapterAndViewHolder()
84 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in setupWithMockAdapterAndViewHolder()
110 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in usingDefaultRowAndPresenter()
111 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in usingDefaultRowAndPresenter()
128 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in customRowPresenter()
129 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in customRowPresenter()
154 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in customControlsRow()
155 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in customControlsRow()
175 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in customRowAndPresenter()
176 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in customRowAndPresenter()
[all …]
/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/
DDialogFragmentTest.java48 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testDialogFragmentShows()
53 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testDialogFragmentShows()
61 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testDialogFragmentShowsNow()
72 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testDialogFragmentShowsNow()
80 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testDialogFragmentDismiss()
85 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testDialogFragmentDismiss()
92 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testDialogFragmentDismiss()
/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/support/webkit/src/androidTest/java/androidx/webkit/
DWebViewOnUiThread.java61 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in WebViewOnUiThread()
76 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in cleanUp()
113 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in setWebViewClient()
131 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() {
140 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() {
164 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() {
255 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() {
264 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() {
277 InstrumentationRegistry.getInstrumentation().runOnMainSync(getter);
322 InstrumentationRegistry.getInstrumentation().runOnMainSync(call);
/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/support/lifecycle/integration-tests/testapp/src/androidTest/java/androidx/lifecycle/
DSynchronousActivityLifecycleTest.java19 import static android.support.test.InstrumentationRegistry.getInstrumentation;
61 activity -> getInstrumentation().callActivityOnCreate(activity, null)); in testOnCreateCall()
68 activity -> getInstrumentation().callActivityOnCreate(activity, null), in testOnStartCall()
77 getInstrumentation().callActivityOnCreate(activity, null); in testOnResumeCall()
88 getInstrumentation().callActivityOnCreate(activity, null); in testOnStopCall()
97 activity -> getInstrumentation().callActivityOnCreate(activity, null), in testOnDestroyCall()
98 activity -> getInstrumentation().callActivityOnDestroy(activity)); in testOnDestroyCall()
108 Instrumentation instrumentation = getInstrumentation(); in testSynchronousCall()
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
DFullscreenRotationTest.java34 Utils.startElementLayout(getInstrumentation(), 100); in beforeTest()
40 Utils.rotateDevice(getInstrumentation(), Utils.ROTATION_MODE_NATURAL); in afterTest()
48 Utils.rotateDevice(getInstrumentation(), in testRotation()
49 Utils.getDeviceRotation(getInstrumentation()) == Utils.ROTATION_MODE_LEFT ? in testRotation()
/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()
DVisibilityTest.java72 getInstrumentation().waitForIdleSync(); in testVisibleToInvisible()
86 getInstrumentation().waitForIdleSync(); in testVisibleToGone()
100 getInstrumentation().waitForIdleSync(); in testGoneToVisible()
120 getInstrumentation().waitForIdleSync(); in testGoneToInvisible()
140 getInstrumentation().waitForIdleSync(); in testInvisibleToVisible()
160 getInstrumentation().waitForIdleSync(); in testInvisibleToGone()
/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/support/loader/src/androidTest/java/androidx/loader/app/
DLoaderManagerTest.java62 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testDestroyFromOnCreateLoader()
93 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testDestroyFromOnLoadFinished()
114 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testDestroyLoaderBeforeDeliverData()
133 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testDestroyLoaderAfterDeliverData()
141 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testDestroyLoaderAfterDeliverData()
161 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testRestartLoaderBeforeDeliverData()
181 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testRestartLoaderAfterDeliverData()
192 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testRestartLoaderAfterDeliverData()
212 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testRestartLoaderMultiple()
225 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testRestartLoaderMultiple()
/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/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/support/dynamic-animation/src/androidTest/java/androidx/dynamicanimation/tests/
DSpringTests.java102 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testCustomProperties()
140 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testFloatValueHolder()
213 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testDampingRatioOverAndCriticallyDamped()
277 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testDampingRatioUnderDamped()
293 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testDampingRatioUnderDamped()
340 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testStiffness()
352 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testStiffness()
410 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testRemoveListeners()
474 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testSetMinMax()
497 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAnimateToFinalPosition()
[all …]
/frameworks/support/lifecycle/service/src/androidTest/java/androidx/lifecycle/
DServiceLifecycleTest.java116 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testStartBindUnbindStop()
122 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testStartBindUnbindStop()
138 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testStartBindStopUnbind()
144 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testStartBindStopUnbind()
162 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testBindStartUnbindStop()
168 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testBindStartUnbindStop()
185 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testBindStartStopUnbind()
191 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testBindStartStopUnbind()
/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()
/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()

12345678910>>...15