/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
D | BaseKeyEventsTestCase.java | 84 getInstrumentation().waitForIdleSync(); in testBackDismissesActionMode() 85 getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_BACK); in testBackDismissesActionMode() 86 getInstrumentation().waitForIdleSync(); in testBackDismissesActionMode() 103 getInstrumentation().waitForIdleSync(); in testBackCollapsesSearchView() 105 getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_BACK); in testBackCollapsesSearchView() 107 getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_BACK); in testBackCollapsesSearchView() 119 getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_MENU); in testMenuPressInvokesPanelCallbacks() 120 getInstrumentation().waitForIdleSync(); in testMenuPressInvokesPanelCallbacks() 123 getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_MENU); in testMenuPressInvokesPanelCallbacks() 124 getInstrumentation().waitForIdleSync(); in testMenuPressInvokesPanelCallbacks() [all …]
|
D | KeyboardShortcutsTestCaseWithToolbar.java | 50 getInstrumentation().waitForIdleSync(); in testAccessActionBar() 52 getInstrumentation().waitForIdleSync(); in testAccessActionBar() 63 getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); in testAccessActionBar() 64 getInstrumentation().waitForIdleSync(); in testAccessActionBar() 73 getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_UP); in testAccessActionBar() 74 getInstrumentation().waitForIdleSync(); in testAccessActionBar() 86 getInstrumentation().sendKeySync(controlKey); in sendControlChar()
|
D | BaseKeyboardShortcutsTestCase.java | 54 getInstrumentation().sendKeySync(downEvent); in testKeyboardShortcut() 55 getInstrumentation().waitForIdleSync(); in testKeyboardShortcut() 59 getInstrumentation().sendKeySync(upEvent); in testKeyboardShortcut() 60 getInstrumentation().waitForIdleSync(); in testKeyboardShortcut()
|
D | BaseInstrumentationTestCase.java | 44 public Instrumentation getInstrumentation() { in getInstrumentation() method in BaseInstrumentationTestCase 45 return InstrumentationRegistry.getInstrumentation(); in getInstrumentation() 51 getInstrumentation().runOnMainSync(new Runnable() { in runTestOnUiThread()
|
/frameworks/support/fragment/tests/java/android/support/v4/app/ |
D | FragmentTransactionTest.java | 52 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithValidFragment() 62 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testAddTransactionWithValidFragment() 69 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithPrivateFragment() 87 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testAddTransactionWithPrivateFragment() 93 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithPackagePrivateFragment() 111 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testAddTransactionWithPackagePrivateFragment() 117 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithAnonymousFragment() 135 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testAddTransactionWithAnonymousFragment() 141 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testAddTransactionWithNonStaticFragment() 159 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testAddTransactionWithNonStaticFragment()
|
D | FragmentReceiveResultTest.java | 103 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in attachTestFragment() 113 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in attachTestFragment() 119 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in startActivityForResult() 129 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in startActivityForResult() 134 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in startIntentSenderForResult() 152 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in startIntentSenderForResult()
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
D | MtpManagerTest.java | 48 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/core/java/android/test/ |
D | InstrumentationTestCase.java | 74 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/tests/WindowAnimationJank/src/android/windowanimationjank/ |
D | FullscreenRotationTest.java | 34 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/ |
D | RunQueueTest.java | 35 getInstrumentation().waitForIdleSync(); in testRunnableRan() 42 getInstrumentation().waitForIdleSync(); in testRunnableCancelled() 49 getInstrumentation().waitForIdleSync(); in testListenerFired() 56 getInstrumentation().waitForIdleSync(); in testTreeObserverKilled()
|
D | LongpressTest.java | 72 getInstrumentation().waitForIdleSync(); in testKeypadLongClick() 75 getInstrumentation().waitForIdleSync(); in testKeypadLongClick() 82 getInstrumentation().waitForIdleSync(); in testTouchLongClick()
|
/frameworks/base/cmds/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/testrunner/ |
D | UiAutomatorTestCase.java | 70 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/v7/recyclerview/tests/src/android/support/v7/util/ |
D | BaseThreadedTest.java | 37 getInstrumentation().runOnMainSync(new Runnable() { in setUp() 48 public Instrumentation getInstrumentation() { in getInstrumentation() method in BaseThreadedTest 49 return InstrumentationRegistry.getInstrumentation(); in getInstrumentation() 54 getInstrumentation().runOnMainSync(new Runnable() { in runTestOnUiThread()
|
/frameworks/base/packages/DocumentsUI/perf-tests/src/com/android/documentsui/ |
D | FilesJankPerfTest.java | 51 final UiDevice device = UiDevice.getInstance(getInstrumentation()); in setUpInLoop() 52 final Context context = getInstrumentation().getTargetContext(); in setUpInLoop() 58 mActivity = getInstrumentation().startActivitySync(intent); in setUpInLoop() 81 getInstrumentation().waitForIdleSync(); in testOpenRootJankPerformance() 88 getInstrumentation().waitForIdleSync(); in testFlingJankPerformance()
|
/frameworks/base/core/tests/coretests/src/android/print/ |
D | BasePrintTest.java | 84 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in getEnabledImes() 105 runShellCommand(getInstrumentation(), disableImeCommand); in disableImes() 112 runShellCommand(getInstrumentation(), enableImeCommand); in enableImes() 138 System.setProperty("dexmaker.dexcache", getInstrumentation() in setUp() 142 Resources resources = getInstrumentation().getTargetContext().getResources(); in setUp() 172 Resources resources = getInstrumentation().getTargetContext().getResources(); in tearDown() 189 getInstrumentation().runOnMainSync(new Runnable() { in print() 231 mActivity = launchActivity(getInstrumentation().getTargetContext().getPackageName(), in createActivity() 251 runShellCommand(getInstrumentation(), String.format( in clearPrintSpoolerData() 360 return getInstrumentation().getContext().getPackageManager() in supportsPrinting()
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | ScrollingThroughListOfFocusablesTest.java | 86 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/support/design/tests/src/android/support/design/widget/ |
D | BottomSheetDialogTest.java | 52 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testBasicDialogSetup() 71 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testBasicDialogSetup() 83 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testShortDialog() 93 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testShortDialog() 114 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testNonCancelableDialog() 124 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testNonCancelableDialog()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListFocusableTest.java | 194 getInstrumentation().waitForIdleSync(); in setFullAdapter() 203 getInstrumentation().waitForIdleSync(); in setEmptyAdapter() 212 getInstrumentation().waitForIdleSync(); in setNullAdapter() 221 getInstrumentation().waitForIdleSync(); in setFocusable() 230 getInstrumentation().waitForIdleSync(); in setNonFocusable()
|
D | ListRetainsFocusAcrossLayoutsTest.java | 54 getInstrumentation().waitForIdleSync(); in testBottomButtonRetainsFocusAfterLayout() 68 getInstrumentation().waitForIdleSync(); in testTopButtonOfSecondPositionRetainsFocusAfterLayout() 83 getInstrumentation().waitForIdleSync(); in testBottomButtonOfSecondPositionRetainsFocusAfterLayout()
|
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/ |
D | GridWidgetTest.java | 374 mInstrumentation = getInstrumentation(); in testThreeRowHorizontalBasic() 444 mInstrumentation = getInstrumentation(); in testItemDecorationAndMargins() 497 mInstrumentation = getInstrumentation(); in testItemDecorationAndMarginsAndOpticalBounds() 561 mInstrumentation = getInstrumentation(); in testThreeColumnVerticalBasic() 578 mInstrumentation = getInstrumentation(); in testRedundantAppendRemove() 607 mInstrumentation = getInstrumentation(); in testRedundantAppendRemove2() 650 mInstrumentation = getInstrumentation(); in testItemMovedHorizontal() 673 mInstrumentation = getInstrumentation(); in testItemMovedVertical() 697 mInstrumentation = getInstrumentation(); in testItemAddRemoveHorizontal() 732 mInstrumentation = getInstrumentation(); in testSetSelectedPositionDetached() [all …]
|
/frameworks/base/packages/DocumentsUI/app-perf-tests/src/com/android/documentsui/ |
D | FilesAppPerfTest.java | 54 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp() 76 mActivity = launchActivity(getInstrumentation().getTargetContext().getPackageName(), in runFilesStartPerformanceTest() 92 getInstrumentation().sendStatus(Activity.RESULT_OK, status); in reportMetrics() 96 final Context context = getInstrumentation().getContext(); in killProviders()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ |
D | ScreenshotTest.java | 108 getInstrumentation().sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, in takeScreenshot() 110 getInstrumentation().sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, in takeScreenshot() 118 getInstrumentation().sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, in takeScreenshot() 120 getInstrumentation().sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, in takeScreenshot()
|
/frameworks/base/core/tests/coretests/src/android/widget/scroll/ |
D | ScrollViewButtonsAndLabelsTest.java | 75 getInstrumentation().waitForIdleSync(); in testArrowScrollDownOffScreenVerticalFadingEdge() 111 getInstrumentation().waitForIdleSync(); in testArrowScrollDownToBottomElementOnScreen() 133 getInstrumentation().waitForIdleSync(); in testArrowScrollUpOffScreenVerticalFadingEdge() 153 getInstrumentation().waitForIdleSync(); in testArrowScrollUpToTopElementOnScreen() 173 getInstrumentation().waitForIdleSync(); in goToBottomButton()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | AutoCompleteTextViewPopup.java | 48 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/support/compat/tests/java/android/support/v4/view/ |
D | ViewPropertyAnimatorCompatTest.java | 55 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testWithEndAction() 71 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testWithEndAction() 91 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testWithStartAction() 107 InstrumentationRegistry.getInstrumentation().runOnMainSync(new Runnable() { in testWithStartAction()
|