/cts/tests/tests/app/src/android/app/cts/ |
D | InstrumentationTest.java | 56 private Instrumentation mInstrumentation; field in InstrumentationTest 66 mInstrumentation = getInstrumentation(); in setUp() 67 mContext = mInstrumentation.getTargetContext(); in setUp() 70 mActivity = (InstrumentationTestActivity) mInstrumentation.startActivitySync(mIntent); in setUp() 74 mInstrumentation = null; in tearDown() 93 mInstrumentation.addMonitor(monitor); in testMonitor() 97 Activity activity = mInstrumentation.waitForMonitorWithTimeout(monitor, WAIT_TIME); in testMonitor() 99 assertTrue(mInstrumentation.checkMonitorHit(monitor, 1)); in testMonitor() 102 mInstrumentation.addMonitor(monitor); in testMonitor() 103 mInstrumentation.removeMonitor(monitor); in testMonitor() [all …]
|
D | TabActivityTest.java | 32 private Instrumentation mInstrumentation; field in TabActivityTest 39 mInstrumentation = super.getInstrumentation(); in setUp() 63 mInstrumentation.waitForIdleSync(); in testTabActivity() 68 mActivity = (MockTabActivity) mInstrumentation.startActivitySync(intent); in testTabActivity() 87 final Context context = mInstrumentation.getTargetContext(); in testChildTitleCallback() 94 mChildActivity = mInstrumentation.newActivity(MockTabActivity.class, mInstrumentation in testChildTitleCallback()
|
D | AlertDialog_BuilderTest.java | 53 private Instrumentation mInstrumentation; field in AlertDialog_BuilderTest 111 mInstrumentation = getInstrumentation(); in setUp() 146 mInstrumentation.waitForIdleSync(); in testSetIconWithParamInt() 158 mInstrumentation.waitForIdleSync(); in testSetIconWithParamDrawable() 171 mInstrumentation.waitForIdleSync(); in testSetPositiveButtonWithParamInt() 187 mInstrumentation.waitForIdleSync(); in testSetPositiveButtonWithParamCharSequence() 202 mInstrumentation.waitForIdleSync(); in testSetNegativeButtonWithParamCharSequence() 217 mInstrumentation.waitForIdleSync(); in testSetNegativeButtonWithParamInt() 232 mInstrumentation.waitForIdleSync(); in testSetNeutralButtonWithParamInt() 247 mInstrumentation.waitForIdleSync(); in testSetNeutralButtonWithParamCharSequence() [all …]
|
D | DialogTest.java | 70 private Instrumentation mInstrumentation; field in DialogTest 82 mInstrumentation = getInstrumentation(); in setUp() 83 mContext = mInstrumentation.getContext(); in setUp() 177 mInstrumentation.waitForIdleSync(); in testAccessOwnerActivity() 190 mInstrumentation.waitForIdleSync(); in testShow() 200 mInstrumentation.waitForIdleSync(); in testShow() 222 OrientationTestUtils.toggleOrientationSync(mActivity, mInstrumentation); in testOnSaveInstanceState() 238 mInstrumentation.waitForIdleSync(); in testGetCurrentFocus() 256 mInstrumentation.waitForIdleSync(); in testSetContentView() 272 mInstrumentation.waitForIdleSync(); in testSetContentView() [all …]
|
D | AlertDialogTest.java | 41 private Instrumentation mInstrumentation; field in AlertDialogTest 54 mInstrumentation = getInstrumentation(); in setUp() 147 mInstrumentation.waitForIdleSync(); in performClick() 165 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_0); in testCallback() 167 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_0); in testCallback() 180 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_BACK); in testAlertDialogCancelable() 181 mInstrumentation.waitForIdleSync(); in testAlertDialogCancelable() 189 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_BACK); in testAlertDialogNotCancelable()
|
D | ActivityManagerTest.java | 70 private Instrumentation mInstrumentation; field in ActivityManagerTest 75 mInstrumentation = getInstrumentation(); in setUp() 76 mContext = mInstrumentation.getContext(); in setUp() 86 mInstrumentation.getContext().stopService(mIntent); in tearDown() 185 mInstrumentation.getTargetContext().registerReceiver(this, filter); 190 mInstrumentation.getTargetContext().unregisterReceiver(this); 221 mInstrumentation.addMonitor(monitor); 280 intent.setClass(mInstrumentation.getTargetContext(), MockService.class); 281 mInstrumentation.getTargetContext().startService(intent); 329 mInstrumentation.getTargetContext().startService(mIntent); in testGetRunningAppProcesses() [all …]
|
D | LauncherActivityTest.java | 35 private Instrumentation mInstrumentation; field in LauncherActivityTest 45 mInstrumentation = getInstrumentation(); in setUp() 66 mInstrumentation.waitForIdleSync(); in testLaunchActivity()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ListViewTest.java | 65 private Instrumentation mInstrumentation; field in ListViewTest 79 mInstrumentation = getInstrumentation(); in setUp() 131 mInstrumentation.runOnMainSync(new Runnable() { in setAdapter() 136 mInstrumentation.waitForIdleSync(); in setAdapter() 140 mInstrumentation.runOnMainSync(new Runnable() { in testAccessDividerHeight() 145 mInstrumentation.waitForIdleSync(); in testAccessDividerHeight() 156 mInstrumentation.runOnMainSync(new Runnable() { in testAccessDividerHeight() 161 mInstrumentation.waitForIdleSync(); in testAccessDividerHeight() 165 mInstrumentation.runOnMainSync(new Runnable() { in testAccessDividerHeight() 170 mInstrumentation.waitForIdleSync(); in testAccessDividerHeight() [all …]
|
D | PopupMenuTest.java | 30 private Instrumentation mInstrumentation; field in PopupMenuTest 40 mInstrumentation = getInstrumentation(); in setUp() 58 mInstrumentation.runOnMainSync(new Runnable() { in testOnDismissListener() 63 mInstrumentation.waitForIdleSync(); in testOnDismissListener() 66 mInstrumentation.runOnMainSync(new Runnable() { in testOnDismissListener() 71 mInstrumentation.waitForIdleSync(); in testOnDismissListener() 74 mInstrumentation.runOnMainSync(new Runnable() { in testOnDismissListener() 79 mInstrumentation.waitForIdleSync(); in testOnDismissListener()
|
D | SeekBarTest.java | 38 private Instrumentation mInstrumentation; field in SeekBarTest 47 mInstrumentation = getInstrumentation(); in setUp() 71 mInstrumentation.sendPointerSync(event); in testSetOnSeekBarChangeListener() 72 mInstrumentation.waitForIdleSync(); in testSetOnSeekBarChangeListener() 82 mInstrumentation.sendPointerSync(event); in testSetOnSeekBarChangeListener() 83 mInstrumentation.waitForIdleSync(); in testSetOnSeekBarChangeListener() 91 mInstrumentation.sendPointerSync(event); in testSetOnSeekBarChangeListener() 92 mInstrumentation.waitForIdleSync(); in testSetOnSeekBarChangeListener()
|
D | PopupWindowTest.java | 49 private Instrumentation mInstrumentation; field in PopupWindowTest 69 mInstrumentation = getInstrumentation(); in setUp() 254 mInstrumentation.runOnMainSync(new Runnable() { in testShowAsDropDown() 259 mInstrumentation.waitForIdleSync(); in testShowAsDropDown() 289 mInstrumentation.runOnMainSync(new Runnable() { in testShowAtLocation() 294 mInstrumentation.waitForIdleSync(); in testShowAtLocation() 320 mInstrumentation.runOnMainSync(new Runnable() { in testShowAsDropDownWithOffsets() 325 mInstrumentation.waitForIdleSync(); in testShowAsDropDownWithOffsets() 348 mInstrumentation.runOnMainSync(new Runnable() { in testOverlapAnchor() 353 mInstrumentation.waitForIdleSync(); in testOverlapAnchor() [all …]
|
D | AutoCompleteTextViewTest.java | 63 private Instrumentation mInstrumentation; field in AutoCompleteTextViewTest 98 mInstrumentation = getInstrumentation(); in setUp() 158 mInstrumentation.waitForIdleSync(); in testEnoughToFilter() 167 mInstrumentation.waitForIdleSync(); in testEnoughToFilter() 394 mInstrumentation.sendStringSync(testString); in testOnFilterComplete() 410 mInstrumentation.sendStringSync(testString); in testOnFilterComplete() 428 mInstrumentation.sendStringSync("83377778"); in testOnFilterComplete() 430 mInstrumentation.sendStringSync("test"); in testOnFilterComplete() 457 mInstrumentation.waitForIdleSync(); in testPerformFiltering() 460 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_BACK); in testPerformFiltering() [all …]
|
D | GridViewTest.java | 57 private Instrumentation mInstrumentation; field in GridViewTest 78 mInstrumentation = getInstrumentation(); in setUp() 152 mInstrumentation.waitForIdleSync(); in testPressKey() 156 mInstrumentation.sendKeySync(event); in testPressKey() 160 mInstrumentation.sendKeySync(event); in testPressKey() 164 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_RIGHT); in testPressKey() 167 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_LEFT); in testPressKey() 170 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); in testPressKey() 174 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); in testPressKey() 179 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_ENTER); in testPressKey() [all …]
|
D | MediaControllerTest.java | 49 private Instrumentation mInstrumentation; field in MediaControllerTest 60 mInstrumentation = getInstrumentation(); in setUp() 118 mInstrumentation.waitForIdleSync(); in testShow() 133 mInstrumentation.waitForIdleSync(); in testShow() 141 mInstrumentation.waitForIdleSync(); in testShow() 150 mInstrumentation.waitForIdleSync(); in testShow() 199 mInstrumentation.waitForIdleSync(); in testOnTrackballEvent() 212 mInstrumentation.waitForIdleSync(); in testOnTrackballEvent() 226 mInstrumentation.sendTrackballEventSync(event); in testOnTrackballEvent() 227 mInstrumentation.waitForIdleSync(); in testOnTrackballEvent()
|
D | ListPopupWindowTest.java | 37 private Instrumentation mInstrumentation; field in ListPopupWindowTest 58 mInstrumentation = getInstrumentation(); in setUp() 163 mInstrumentation.runOnMainSync(new Runnable() { in testShow() 168 mInstrumentation.waitForIdleSync(); in testShow() 189 mInstrumentation.runOnMainSync(new Runnable() { in testSetWindowLayoutType() 194 mInstrumentation.waitForIdleSync(); in testSetWindowLayoutType() 296 mInstrumentation.runOnMainSync(new Runnable() { in showPopup() 307 mInstrumentation.waitForIdleSync(); in showPopup() 314 mInstrumentation.runOnMainSync(new Runnable() { in dismissPopup() 321 mInstrumentation.waitForIdleSync(); in dismissPopup()
|
D | ToastTest.java | 42 private Instrumentation mInstrumentation; field in ToastTest 55 mInstrumentation = getInstrumentation(); in setUp() 122 mInstrumentation.waitForIdleSync(); in makeToast() 139 mInstrumentation.waitForIdleSync(); in testShow() 172 mInstrumentation.waitForIdleSync(); in testCancel() 191 mInstrumentation.waitForIdleSync(); in testAccessView() 204 mInstrumentation.waitForIdleSync(); in testAccessDuration() 218 mInstrumentation.waitForIdleSync(); in testAccessDuration() 242 mInstrumentation.waitForIdleSync(); in testAccessMargin() 264 mInstrumentation.waitForIdleSync(); in testAccessMargin() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | ListUtil.java | 29 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()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewTreeObserverTest.java | 41 private Instrumentation mInstrumentation; field in ViewTreeObserverTest 54 mInstrumentation = getInstrumentation(); in setUp() 63 mInstrumentation.runOnMainSync(new Runnable() { in layout() 69 mInstrumentation.waitForIdleSync(); in layout() 77 mInstrumentation.runOnMainSync(new Runnable() { in testAddOnGlobalFocusChangeListener() 89 mInstrumentation.runOnMainSync(new Runnable() { in testAddOnGlobalFocusChangeListener() 95 mInstrumentation.waitForIdleSync(); in testAddOnGlobalFocusChangeListener() 140 mInstrumentation.runOnMainSync(new Runnable() { in testAddOnTouchModeChangeListener() 146 mInstrumentation.waitForIdleSync(); in testAddOnTouchModeChangeListener() 207 mInstrumentation.runOnMainSync(new Runnable() { in testRemoveOnGlobalFocusChangeListener() [all …]
|
D | SearchEventTest.java | 29 private Instrumentation mInstrumentation; field in SearchEventTest 39 mInstrumentation = getInstrumentation(); in setUp() 44 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_SEARCH); in testTest()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | DateTimeKeyListenerTest.java | 74 mInstrumentation.sendStringSync("1"); in testDateTimeKeyListener() 79 mInstrumentation.sendStringSync("2"); in testDateTimeKeyListener() 87 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_A); in testDateTimeKeyListener() 94 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_P); in testDateTimeKeyListener() 101 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_M); in testDateTimeKeyListener() 116 mInstrumentation.sendStringSync("1"); in testDateTimeKeyListener()
|
D | TimeKeyListenerTest.java | 70 mInstrumentation.sendStringSync("1"); in testTimeKeyListener() 75 mInstrumentation.sendStringSync("2"); in testTimeKeyListener() 83 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_A); in testTimeKeyListener() 90 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_P); in testTimeKeyListener() 97 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_M); in testTimeKeyListener() 111 mInstrumentation.sendStringSync("1"); in testTimeKeyListener()
|
D | KeyListenerTestCase.java | 52 protected Instrumentation mInstrumentation; field in KeyListenerTestCase 64 mInstrumentation = getInstrumentation(); in setUp() 86 mInstrumentation.waitForIdleSync(); in setKeyListenerSync()
|
/cts/libs/wrappedgtest/src/ |
D | WrappedGTestActivity.java | 25 private WrappedGTestInstrumentation mInstrumentation; field in WrappedGTestActivity 28 mInstrumentation = instrumentation; in setInstrumentation() 38 mInstrumentation.sendStatus(1, outputBundle); in sendStatus()
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvInputServiceTest.java | 61 private Instrumentation mInstrumentation; field in TvInputServiceTest 167 mInstrumentation = getInstrumentation(); in setUp() 218 mInstrumentation.waitForIdleSync(); in testTvInputService() 224 mInstrumentation.waitForIdleSync(); in verifyCommandTune() 237 mInstrumentation.waitForIdleSync(); in verifyCommandSetStreamVolume() 250 mInstrumentation.waitForIdleSync(); in verifyCommandSetCaptionEnabled() 264 mInstrumentation.waitForIdleSync(); in verifyCommandSelectTrack() 277 mInstrumentation.waitForIdleSync(); in verifyCommandDispatchKeyDown() 290 mInstrumentation.waitForIdleSync(); in verifyCommandDispatchKeyMultiple() 303 mInstrumentation.waitForIdleSync(); in verifyCommandDispatchKeyUp() [all …]
|
/cts/tests/tests/uidisolation/src/android/uidisolation/cts/ |
D | IsolatedServiceTest.java | 31 private Instrumentation mInstrumentation; field in IsolatedServiceTest 43 mInstrumentation = getInstrumentation(); in setUp() 65 mInstrumentation.runOnMainSync(new Runnable() { in runServiceTest()
|