Home
last modified time | relevance | path

Searched refs:mInstrumentation (Results 1 – 25 of 153) sorted by relevance

1234567

/cts/tests/app/src/android/app/cts/
DInstrumentationTest.java66 private Instrumentation mInstrumentation; field in InstrumentationTest
76 mInstrumentation = getInstrumentation(); in setUp()
77 mContext = mInstrumentation.getTargetContext(); in setUp()
80 mActivity = (InstrumentationTestActivity) mInstrumentation.startActivitySync(mIntent); in setUp()
85 mInstrumentation = null; in tearDown()
131 mInstrumentation.addMonitor(monitor); in testMonitor()
135 Activity activity = mInstrumentation.waitForMonitorWithTimeout(monitor, WAIT_TIME); in testMonitor()
137 assertTrue(mInstrumentation.checkMonitorHit(monitor, 1)); in testMonitor()
140 mInstrumentation.addMonitor(monitor); in testMonitor()
141 mInstrumentation.removeMonitor(monitor); in testMonitor()
[all …]
DTabActivityTest.java32 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()
DAlertDialog_BuilderTest.java71 private Instrumentation mInstrumentation; field in AlertDialog_BuilderTest
102 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
137 mInstrumentation.waitForIdleSync(); in testSetIconWithParamInt()
151 mInstrumentation.waitForIdleSync(); in testSetIconWithParamDrawable()
165 mInstrumentation.waitForIdleSync(); in testSetIconAttribute()
181 mInstrumentation.waitForIdleSync(); in testSetPositiveButtonWithParamInt()
204 mInstrumentation.waitForIdleSync(); in testSetPositiveButtonWithParamCharSequence()
226 mInstrumentation.waitForIdleSync(); in testSetNegativeButtonWithParamCharSequence()
248 mInstrumentation.waitForIdleSync(); in testSetNegativeButtonWithParamInt()
270 mInstrumentation.waitForIdleSync(); in testSetNeutralButtonWithParamInt()
[all …]
DDialogTest.java94 private Instrumentation mInstrumentation; field in DialogTest
104 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup()
105 mContext = mInstrumentation.getContext(); in setup()
106 mInstrumentation.waitForIdleSync(); in setup()
237 mInstrumentation.waitForIdleSync(); in testAccessOwnerActivity()
251 mInstrumentation.waitForIdleSync(); in testShow()
261 mInstrumentation.waitForIdleSync(); in testShow()
301 mInstrumentation.waitForIdleSync(); in testGetCurrentFocus()
320 mInstrumentation.waitForIdleSync(); in testSetContentView()
336 mInstrumentation.waitForIdleSync(); in testSetContentView()
[all …]
DActivityManagerTest.java86 private Instrumentation mInstrumentation; field in ActivityManagerTest
91 mInstrumentation = getInstrumentation(); in setUp()
92 mContext = mInstrumentation.getContext(); in setUp()
103 mInstrumentation.getContext().stopService(mIntent); in tearDown()
207 mInstrumentation.getTargetContext().registerReceiver(this, filter);
212 mInstrumentation.getTargetContext().unregisterReceiver(this);
243 mInstrumentation.addMonitor(monitor);
302 intent.setClass(mInstrumentation.getTargetContext(), MockService.class);
304 mInstrumentation.getTargetContext().startService(intent);
323 final UiDevice uiDevice = UiDevice.getInstance(mInstrumentation);
[all …]
DAlertDialogTest.java51 private Instrumentation mInstrumentation; field in AlertDialogTest
63 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
163 mInstrumentation.waitForIdleSync(); in performClick()
184 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_0); in testCallback()
186 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_0); in testCallback()
201 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_BACK); in testAlertDialogCancelable()
202 mInstrumentation.waitForIdleSync(); in testAlertDialogCancelable()
212 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_BACK); in testAlertDialogNotCancelable()
/cts/tests/tests/widget/src/android/widget/cts/
DTimePickerTest.java67 private Instrumentation mInstrumentation; field in TimePickerTest
77 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup()
373 mInstrumentation.waitForIdleSync(); in testKeyboardTabTraversalModeClock()
382 mInstrumentation.waitForIdleSync(); in testKeyboardTabTraversalModeClock()
402 mInstrumentation.waitForIdleSync(); in testKeyboardTabTraversalModeSpinner()
414 mInstrumentation.waitForIdleSync(); in testKeyboardTabTraversalModeSpinner()
432 CtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mActivityRule, in testKeyboardInputModeClockAmPm()
434 CtsKeyEventUtil.sendKeyDownUp(mInstrumentation, mTimePicker, KeyEvent.KEYCODE_1); in testKeyboardInputModeClockAmPm()
435 CtsKeyEventUtil.sendKeyDownUp(mInstrumentation, mTimePicker, KeyEvent.KEYCODE_0); in testKeyboardInputModeClockAmPm()
441 CtsKeyEventUtil.sendKeyDownUp(mInstrumentation, mTimePicker, KeyEvent.KEYCODE_4); in testKeyboardInputModeClockAmPm()
[all …]
DTextViewTest.java180 private Instrumentation mInstrumentation; field in TextViewTest
211 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup()
235 mInstrumentation.waitForIdleSync(); in initTextViewForTypingOnUiThread()
288 mInstrumentation.waitForIdleSync(); in testGetLayout()
299 mInstrumentation.waitForIdleSync(); in testGetLayout()
307 mInstrumentation.waitForIdleSync(); in testAccessKeyListener()
314 mInstrumentation.waitForIdleSync(); in testAccessKeyListener()
320 mInstrumentation.waitForIdleSync(); in testAccessKeyListener()
341 mInstrumentation.waitForIdleSync(); in testAccessMovementMethod()
346 CtsKeyEventUtil.sendKeys(mInstrumentation, mTextView, KeyEvent.KEYCODE_SHIFT_LEFT, in testAccessMovementMethod()
[all …]
DTabHostTest.java64 private Instrumentation mInstrumentation; field in TabHostTest
73 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup()
108 final Activity activity = mInstrumentation.startActivitySync(launchIntent); in testSetup1()
109 mInstrumentation.waitForIdleSync(); in testSetup1()
127 mInstrumentation.waitForIdleSync(); in testSetup1()
143 (ActivityGroup) mInstrumentation.startActivitySync(launchIntent); in testSetup2()
144 mInstrumentation.waitForIdleSync(); in testSetup2()
164 mInstrumentation.waitForIdleSync(); in testSetup2()
418 mInstrumentation.waitForIdleSync(); in testKeyboardNavigation()
419 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_TAB); in testKeyboardNavigation()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DContentPaneFocusTest.java46 private Instrumentation mInstrumentation; field in ContentPaneFocusTest
55 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup()
64 mInstrumentation.waitForIdleSync(); in testAccessActionBar()
66 mInstrumentation.waitForIdleSync(); in testAccessActionBar()
85 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); in testAccessActionBar()
86 mInstrumentation.waitForIdleSync(); in testAccessActionBar()
93 mInstrumentation.waitForIdleSync(); in testAccessActionBar()
99 mInstrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_UP); in testAccessActionBar()
100 mInstrumentation.waitForIdleSync(); in testAccessActionBar()
112 mInstrumentation.waitForIdleSync(); in testNoFocusablesInContent()
[all …]
DMenuItemTest.java44 private Instrumentation mInstrumentation; field in MenuItemTest
56 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup()
84 mInstrumentation.runOnMainSync(() -> { in testAccessIconTint()
88 mInstrumentation.waitForIdleSync(); in testAccessIconTint()
93 mInstrumentation.runOnMainSync(() -> firstItem.setIcon(R.drawable.icon_yellow)); in testAccessIconTint()
94 mInstrumentation.waitForIdleSync(); in testAccessIconTint()
100 mInstrumentation.runOnMainSync(() -> { in testAccessIconTint()
104 mInstrumentation.waitForIdleSync(); in testAccessIconTint()
DViewTreeObserverTest.java58 private Instrumentation mInstrumentation; field in ViewTreeObserverTest
71 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup()
82 mInstrumentation.waitForIdleSync(); in layout()
98 mInstrumentation.waitForIdleSync(); in testAddOnGlobalFocusChangeListener()
169 CtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mActivityRule, mButton); in testAddOnTouchModeChangeListener()
178 mInstrumentation.waitForIdleSync(); in testAddOnTouchModeChangeListener()
242 mInstrumentation.waitForIdleSync(); in testRemoveOnGlobalFocusChangeListener()
248 mInstrumentation.waitForIdleSync(); in testRemoveOnGlobalFocusChangeListener()
279 CtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mActivityRule, mButton); in testRemoveOnTouchModeChangeListener()
287 mInstrumentation.waitForIdleSync(); in testRemoveOnTouchModeChangeListener()
[all …]
/cts/tests/tests/preference/src/android/preference/cts/
DTestUtils.java43 private final Instrumentation mInstrumentation; field in TestUtils
50 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in TestUtils()
51 mContext = mInstrumentation.getTargetContext(); in TestUtils()
53 mDevice = UiDevice.getInstance(mInstrumentation); in TestUtils()
54 mAutomation = mInstrumentation.getUiAutomation(); in TestUtils()
129 int resourceId = mInstrumentation.getTargetContext().getResources() in getStatusBarHeight()
132 mStatusBarHeight = mInstrumentation.getTargetContext().getResources() in getStatusBarHeight()
146 int resourceId = mInstrumentation.getTargetContext().getResources() in getNavigationBarHeight()
149 mNavigationBarHeight = mInstrumentation.getTargetContext().getResources() in getNavigationBarHeight()
158 return mInstrumentation.getTargetContext().getResources().getConfiguration().orientation in isLandscape()
/cts/tests/tests/text/src/android/text/method/cts/
DTouchTest.java58 private Instrumentation mInstrumentation; field in TouchTest
69 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup()
86 mInstrumentation.waitForIdleSync(); in testScrollTo()
91 mInstrumentation.waitForIdleSync(); in testScrollTo()
98 mInstrumentation.waitForIdleSync(); in testScrollTo()
104 mInstrumentation.waitForIdleSync(); in testScrollTo()
109 mInstrumentation.waitForIdleSync(); in testScrollTo()
137 mInstrumentation.waitForIdleSync(); in testOnTouchEvent()
152 mInstrumentation.waitForIdleSync(); in testOnTouchEvent()
163 mInstrumentation.waitForIdleSync(); in testOnTouchEvent()
[all …]
DTransformationMethodTest.java58 private Instrumentation mInstrumentation; field in TransformationMethodTest
71 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup()
90 mInstrumentation.waitForIdleSync(); in setup()
100 mInstrumentation.waitForIdleSync(); in testGetTransformation()
110 mInstrumentation.waitForIdleSync(); in testOnFocusChanged()
117 mInstrumentation.waitForIdleSync(); in testOnFocusChanged()
DTimeKeyListenerTest.java155 CtsKeyEventUtil.sendString(mInstrumentation, mTextView, "1"); in testTimeKeyListener()
160 CtsKeyEventUtil.sendString(mInstrumentation, mTextView, "2"); in testTimeKeyListener()
168 CtsKeyEventUtil.sendKeyDownUp(mInstrumentation, mTextView, KeyEvent.KEYCODE_A); in testTimeKeyListener()
175 CtsKeyEventUtil.sendKeyDownUp(mInstrumentation, mTextView, KeyEvent.KEYCODE_P); in testTimeKeyListener()
182 CtsKeyEventUtil.sendKeyDownUp(mInstrumentation, mTextView, KeyEvent.KEYCODE_M); in testTimeKeyListener()
189 CtsKeyEventUtil.sendKeys(mInstrumentation, mTextView, keyCode); in testTimeKeyListener()
196 CtsKeyEventUtil.sendString(mInstrumentation, mTextView, "1"); in testTimeKeyListener()
DDateTimeKeyListenerTest.java158 CtsKeyEventUtil.sendString(mInstrumentation, mTextView, "1"); in testDateTimeKeyListener()
163 CtsKeyEventUtil.sendString(mInstrumentation, mTextView, "2"); in testDateTimeKeyListener()
171 CtsKeyEventUtil.sendKeyDownUp(mInstrumentation, mTextView, KeyEvent.KEYCODE_A); in testDateTimeKeyListener()
178 CtsKeyEventUtil.sendKeyDownUp(mInstrumentation, mTextView, KeyEvent.KEYCODE_P); in testDateTimeKeyListener()
185 CtsKeyEventUtil.sendKeyDownUp(mInstrumentation, mTextView, KeyEvent.KEYCODE_M); in testDateTimeKeyListener()
192 CtsKeyEventUtil.sendKeys(mInstrumentation, mTextView, keyCode); in testDateTimeKeyListener()
200 CtsKeyEventUtil.sendString(mInstrumentation, mTextView, "1"); in testDateTimeKeyListener()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DActivityViewTest.java81 private Instrumentation mInstrumentation; field in ActivityViewTest
93 mInstrumentation = getInstrumentation(); in setUp()
170 mInstrumentation.runOnMainSync(() -> mActivityView.setVisibility(View.GONE)); in testAppStoppedWithVisibilityGone()
171 mInstrumentation.waitForIdleSync(); in testAppStoppedWithVisibilityGone()
183 mInstrumentation.runOnMainSync(() -> mActivityView.setVisibility(View.INVISIBLE)); in testAppStoppedWithVisibilityInvisible()
184 mInstrumentation.waitForIdleSync(); in testAppStoppedWithVisibilityInvisible()
196 mInstrumentation.runOnMainSync(() -> mActivityView.setVisibility(View.INVISIBLE)); in testAppStopAndStartWithVisibilityChange()
197 mInstrumentation.waitForIdleSync(); in testAppStopAndStartWithVisibilityChange()
203 mInstrumentation.runOnMainSync(() -> mActivityView.setVisibility(View.VISIBLE)); in testAppStopAndStartWithVisibilityChange()
204 mInstrumentation.waitForIdleSync(); in testAppStopAndStartWithVisibilityChange()
[all …]
DWindowInputTests.java56 private Instrumentation mInstrumentation; field in WindowInputTests
69 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
71 mInstrumentation.waitForIdleSync(); in setUp()
95 mInstrumentation.waitForIdleSync(); in testMoveWindowAndTap()
113 mInstrumentation.waitForIdleSync(); in testMoveWindowAndTap()
114 CtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mActivityRule, mView); in testMoveWindowAndTap()
/cts/tests/app/src/android/app/cts/android/app/cts/tools/
DServiceProcessController.java42 final Instrumentation mInstrumentation; field in ServiceProcessController
66 mInstrumentation = instrumentation; in ServiceProcessController()
109 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in denyBackgroundOp()
118 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in allowBackgroundOp()
123 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in makeUidIdle()
128 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in removeFromWhitelist()
133 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in addToWhitelist()
138 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in tempWhitelist()
143 SystemUtil.runShellCommand(mInstrumentation, cmd); in removeFromTempWhitelist()
148 SystemUtil.runShellCommand(mInstrumentation, cmd); in setAppOpMode()
/cts/tests/tests/os/src/android/os/image/cts/
DDynamicSystemClientTest.java41 private Instrumentation mInstrumentation; field in DynamicSystemClientTest
49 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
50 mInstrumentation.getUiAutomation().adoptShellPermissionIdentity(); in setUp()
63 DynamicSystemClient dSClient = new DynamicSystemClient(mInstrumentation.getTargetContext()); in testDynamicSystemClient()
92 mInstrumentation.getUiAutomation().dropShellPermissionIdentity(); in tearDown()
/cts/tests/tests/widget/src/android/widget/cts/util/
DListUtil.java29 private final Instrumentation mInstrumentation; field in ListUtil
37 mInstrumentation = instrumentation; in ListUtil()
56 mInstrumentation.sendCharacterSync(KeyEvent.KEYCODE_DPAD_DOWN); in arrowDownToSelectedPosition()
67 mInstrumentation.sendCharacterSync(KeyEvent.KEYCODE_DPAD_UP); in arrowUpToSelectedPosition()
/cts/tests/tests/toast/src/android/widget/toast/cts/
DBaseToastTest.java40 protected Instrumentation mInstrumentation; field in BaseToastTest
46 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
47 mUiAutomation = mInstrumentation.getUiAutomation(); in setUp()
57 mInstrumentation.runOnMainSync( in showToastsViaToastApis()
75 mInstrumentation.runOnMainSync(() -> { in showToastsViaAddingWindow()
/cts/libs/input/src/com/android/cts/input/
DHidDevice.java47 private Instrumentation mInstrumentation; field in HidDevice
52 mInstrumentation = instrumentation; in HidDevice()
55 mInstrumentation.runOnMainSync(new Runnable(){ in HidDevice()
59 mInstrumentation.getContext().getSystemService(InputManager.class); in HidDevice()
140 UiAutomation ui = mInstrumentation.getUiAutomation(); in setupPipes()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityVolumeTest.java39 Instrumentation mInstrumentation; field in AccessibilityVolumeTest
48 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
50 (AudioManager) mInstrumentation.getContext().getSystemService(AUDIO_SERVICE); in setUp()
52 PackageManager pm = mInstrumentation.getContext().getPackageManager(); in setUp()
87 .enableService(mInstrumentation, InstrumentedAccessibilityService.class); in testChangeAccessibilityVolume_inAccessibilityService_shouldWork()

1234567