Home
last modified time | relevance | path

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

123456789

/cts/tests/app/src/android/app/cts/
DInstrumentationTest.java63 private Instrumentation mInstrumentation; field in InstrumentationTest
73 mInstrumentation = getInstrumentation(); in setUp()
74 mContext = mInstrumentation.getTargetContext(); in setUp()
77 mActivity = (InstrumentationTestActivity) mInstrumentation.startActivitySync(mIntent); in setUp()
82 mInstrumentation = null; in tearDown()
127 mInstrumentation.addMonitor(monitor); in testMonitor()
131 Activity activity = mInstrumentation.waitForMonitorWithTimeout(monitor, WAIT_TIME); in testMonitor()
133 assertTrue(mInstrumentation.checkMonitorHit(monitor, 1)); in testMonitor()
136 mInstrumentation.addMonitor(monitor); in testMonitor()
137 mInstrumentation.removeMonitor(monitor); in testMonitor()
[all …]
DActivityManagerFgsBgStartTest.java110 private Instrumentation mInstrumentation; field in ActivityManagerFgsBgStartTest
117 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
118 mContext = mInstrumentation.getContext(); in setUp()
119 mTargetContext = mInstrumentation.getTargetContext(); in setUp()
121 CtsAppTestUtils.makeUidIdle(mInstrumentation, PACKAGE_NAMES[i]); in setUp()
127 CtsAppTestUtils.turnScreenOn(mInstrumentation, mContext); in setUp()
135 CtsAppTestUtils.makeUidIdle(mInstrumentation, PACKAGE_NAMES[i]); in tearDown()
155 mInstrumentation.getUiAutomation().performGlobalAction( in cleanupResiduals()
168 WatchUidRunner uid1Watcher = new WatchUidRunner(mInstrumentation, app1Info.uid, in testFgsLocationStartFromBG()
172 WaitForBroadcast waiter = new WaitForBroadcast(mInstrumentation.getTargetContext()); in testFgsLocationStartFromBG()
[all …]
DAlertDialog_BuilderTest.java68 private Instrumentation mInstrumentation; field in AlertDialog_BuilderTest
99 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
133 mInstrumentation.waitForIdleSync(); in testSetIconWithParamInt()
146 mInstrumentation.waitForIdleSync(); in testSetIconWithParamDrawable()
159 mInstrumentation.waitForIdleSync(); in testSetIconAttribute()
174 mInstrumentation.waitForIdleSync(); in testSetPositiveButtonWithParamInt()
196 mInstrumentation.waitForIdleSync(); in testSetPositiveButtonWithParamCharSequence()
217 mInstrumentation.waitForIdleSync(); in testSetNegativeButtonWithParamCharSequence()
238 mInstrumentation.waitForIdleSync(); in testSetNegativeButtonWithParamInt()
259 mInstrumentation.waitForIdleSync(); in testSetNeutralButtonWithParamInt()
[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()
DActivityManagerTest.java144 private Instrumentation mInstrumentation; field in ActivityManagerTest
149 mInstrumentation = getInstrumentation(); in setUp()
150 mTargetContext = mInstrumentation.getTargetContext(); in setUp()
151 mActivityManager = (ActivityManager) mInstrumentation.getContext() in setUp()
153 mPackageManager = mInstrumentation.getContext().getPackageManager(); in setUp()
163 mInstrumentation.getContext().stopService(mIntent); in tearDown()
267 mInstrumentation.getTargetContext().registerReceiver(this, filter);
272 mInstrumentation.getTargetContext().unregisterReceiver(this);
303 mInstrumentation.addMonitor(monitor);
362 intent.setClass(mInstrumentation.getTargetContext(), MockService.class);
[all …]
DPipNotSupportedActivityTest.java27 private Instrumentation mInstrumentation; field in PipNotSupportedActivityTest
37 mInstrumentation = getInstrumentation(); in setUp()
59 mInstrumentation.waitForIdleSync(); in testLaunchPipNotSupportedActivity()
/cts/tests/tests/widget/src/android/widget/cts/
DTimePickerTest.java68 private Instrumentation mInstrumentation; field in TimePickerTest
78 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setup()
375 mInstrumentation.waitForIdleSync(); in testKeyboardTabTraversalModeClock()
384 mInstrumentation.waitForIdleSync(); in testKeyboardTabTraversalModeClock()
404 mInstrumentation.waitForIdleSync(); in testKeyboardTabTraversalModeSpinner()
416 mInstrumentation.waitForIdleSync(); in testKeyboardTabTraversalModeSpinner()
434 CtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mActivityRule, in testKeyboardInputModeClockAmPm()
436 CtsKeyEventUtil.sendKeyDownUp(mInstrumentation, mTimePicker, KeyEvent.KEYCODE_1); in testKeyboardInputModeClockAmPm()
437 CtsKeyEventUtil.sendKeyDownUp(mInstrumentation, mTimePicker, KeyEvent.KEYCODE_0); in testKeyboardInputModeClockAmPm()
443 CtsKeyEventUtil.sendKeyDownUp(mInstrumentation, mTimePicker, KeyEvent.KEYCODE_4); in testKeyboardInputModeClockAmPm()
[all …]
DBackwardNavigationTest.java47 private Instrumentation mInstrumentation; field in BackwardNavigationTest
59 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
71 mInstrumentation.waitForIdleSync(); in testBackwardNavigation()
75 CtsKeyEventUtil.sendKeyDownUp(mInstrumentation, mRoot, KeyEvent.KEYCODE_TAB); in testBackwardNavigation()
81 CtsKeyEventUtil.sendKeyWhileHoldingModifier(mInstrumentation, mRoot, in testBackwardNavigation()
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/telephony/current/src/android/telephony/ims/cts/
DImsServiceConnector.java262 String result = TelephonyUtils.executeShellCommand(mInstrumentation, in setDeviceImsService()
274 String result = TelephonyUtils.executeShellCommand(mInstrumentation, in setCarrierImsService()
286 String result = TelephonyUtils.executeShellCommand(mInstrumentation, in setDeviceImsService()
297 String result = TelephonyUtils.executeShellCommand(mInstrumentation, in setCarrierImsService()
307 String result = TelephonyUtils.executeShellCommand(mInstrumentation, in clearCarrierImsServiceOverride()
316 RoleManager roleManager = mInstrumentation.getContext() in setDefaultSmsApp()
342 RoleManager roleManager = mInstrumentation.getContext() in getDefaultSmsApp()
372 String result = TelephonyUtils.executeShellCommand(mInstrumentation, in getMmTelCarrierService()
381 String result = TelephonyUtils.executeShellCommand(mInstrumentation, in getRcsCarrierService()
390 String result = TelephonyUtils.executeShellCommand(mInstrumentation, in getMmTelDeviceService()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DSurfaceControlViewHostTests.java75 private Instrumentation mInstrumentation; field in SurfaceControlViewHostTests
104 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
106 mInstrumentation.waitForIdleSync(); in setUp()
210 mInstrumentation.waitForIdleSync(); in testEmbeddedViewReceivesInput()
213 CtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mActivityRule, mSurfaceView); in testEmbeddedViewReceivesInput()
247 mInstrumentation.waitForIdleSync(); in testEmbeddedViewIsHardwareAccelerated()
271 mInstrumentation.waitForIdleSync(); in testEmbeddedViewResizes()
273 CtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mActivityRule, mSurfaceView); in testEmbeddedViewResizes()
279 mInstrumentation.waitForIdleSync(); in testEmbeddedViewResizes()
283 CtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mActivityRule, mSurfaceView); in testEmbeddedViewResizes()
[all …]
DWindowInputTests.java98 private Instrumentation mInstrumentation; field in WindowInputTests
114 mInstrumentation = getInstrumentation(); in setUp()
117 mInstrumentation.waitForIdleSync(); in setUp()
142 mInstrumentation.waitForIdleSync(); in testMoveWindowAndTap()
159 mInstrumentation.waitForIdleSync(); in testMoveWindowAndTap()
162 CtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mActivityRule, mView); in testMoveWindowAndTap()
164 mInstrumentation.waitForIdleSync(); in testMoveWindowAndTap()
219 mInstrumentation.waitForIdleSync(); in testTouchModalWindow()
221 CtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mActivityRule, mView); in testTouchModalWindow()
260 mInstrumentation.waitForIdleSync(); in testFilterTouchesWhenObscuredByWindowFromSameUid()
[all …]
/cts/tests/framework/base/biometrics/src/android/server/biometrics/fingerprint/
DFingerprintServiceTest.java94 @NonNull private Instrumentation mInstrumentation; field in FingerprintServiceTest
100 mInstrumentation = getInstrumentation(); in setUp()
101 mFingerprintManager = mInstrumentation.getContext() in setUp()
107 mInstrumentation.getUiAutomation().adoptShellPermissionIdentity(); in setUp()
124 mInstrumentation.waitForIdleSync(); in cleanup()
142 mInstrumentation.getUiAutomation().dropShellPermissionIdentity(); in cleanup()
159 mInstrumentation.waitForIdleSync(); in testEnrollForSensor()
163 mInstrumentation.waitForIdleSync(); in testEnrollForSensor()
190 mInstrumentation.waitForIdleSync(); in testAuthenticateFromForegroundActivity()
194 mInstrumentation.waitForIdleSync(); in testAuthenticateFromForegroundActivity()
[all …]
/cts/tests/app/src/android/app/cts/android/app/cts/tools/
DServiceProcessController.java43 final Instrumentation mInstrumentation; field in ServiceProcessController
68 mInstrumentation = instrumentation; in ServiceProcessController()
113 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in denyBackgroundOp()
123 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in allowBackgroundOp()
130 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in denyAnyInBackgroundOp()
136 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in allowAnyInBackgroundOp()
141 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in makeUidIdle()
146 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in removeFromWhitelist()
151 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in addToWhitelist()
157 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in tempWhitelist()
[all …]
/cts/tests/tests/preference/src/android/preference/cts/
DTestUtils.java47 private final Instrumentation mInstrumentation; field in TestUtils
55 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in TestUtils()
56 mContext = mInstrumentation.getTargetContext(); in TestUtils()
58 mDevice = UiDevice.getInstance(mInstrumentation); in TestUtils()
59 mAutomation = mInstrumentation.getUiAutomation(); in TestUtils()
135 int resourceId = mInstrumentation.getTargetContext().getResources() in getStatusBarHeight()
138 mStatusBarHeight = mInstrumentation.getTargetContext().getResources() in getStatusBarHeight()
152 int resourceId = mInstrumentation.getTargetContext().getResources() in getNavigationBarHeight()
155 mNavigationBarHeight = mInstrumentation.getTargetContext().getResources() in getNavigationBarHeight()
/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()
55 DynamicSystemClient dSClient = new DynamicSystemClient(mInstrumentation.getTargetContext()); in testDynamicSystemClient()
84 DynamicSystemClient dSClient = new DynamicSystemClient(mInstrumentation.getTargetContext()); in testDynamicSystemClient_withoutOnStatusChangedListener()
110 mInstrumentation.getUiAutomation().dropShellPermissionIdentity(); in tearDown()
/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()
/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/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DBatteryStatsRadioPowerStateTest.java50 private Instrumentation mInstrumentation; field in BatteryStatsRadioPowerStateTest
56 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
57 mContext = mInstrumentation.getContext(); in setUp()
58 mUiAutomation = mInstrumentation.getUiAutomation(); in setUp()
83 final String dump = runShellCommand(mInstrumentation, cmd); in testReportMobileRadioPowerState()
107 final String dump = runShellCommand(mInstrumentation, cmd); in testReportWifiRadioPowerState()
/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/tests/framework/base/biometrics/src/android/server/biometrics/
DBiometricTestBase.java97 @NonNull protected Instrumentation mInstrumentation; field in BiometricTestBase
188 mInstrumentation.waitForIdleSync(); in successfullyAuthenticate()
194 mInstrumentation.waitForIdleSync(); in successfullyAuthenticate()
230 mInstrumentation.waitForIdleSync(); in cancelAuthentication()
284 mInstrumentation.waitForIdleSync(); in showCredentialOnlyBiometricPromptWithContents()
320 mInstrumentation.waitForIdleSync(); in showDeviceCredentialAllowedBiometricPrompt()
441 mInstrumentation.waitForIdleSync(); in launchActivityAndWaitForResumed()
446 mInstrumentation.waitForIdleSync(); in closeActivity()
484 mInstrumentation = getInstrumentation(); in setUp()
485 mBiometricManager = mInstrumentation.getContext().getSystemService(BiometricManager.class); in setUp()
[all …]

123456789